| 1 |
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.echarts=e():t.echarts=e()}(this,function(){return function(i){function n(t){if(r[t])return r[t].exports;var e=r[t]={exports:{},id:t,loaded:!1};return i[t].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var r={};return n.m=i,n.c=r,n.p="",n(0)}([function(t,e,i){t.exports=i(2),i(85),i(79),i(90),i(163),i(196),i(176),i(34),i(187),i(182),i(181),i(166),i(188),i(204)},function(t,e,i){function a(t){if("object"==typeof t&&null!==t){var e=t;if(t instanceof Array){e=[];for(var i=0,n=t.length;n>i;i++)e[i]=a(t[i])}else if(!A(t)&&!T(t)){e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=a(t[r]))}return e}return t}function s(t,e,i){if(!S(e)||!S(t))return i?a(e):t;for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],o=e[n];!S(o)||!S(r)||b(o)||b(r)||T(o)||T(r)||A(o)||A(r)?!i&&n in t||(t[n]=a(e[n],!0)):s(r,o,i)}return t}function n(t,e){for(var i=t[0],n=1,r=t.length;r>n;n++)i=s(i,t[n],e);return i}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function o(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 l(){return document.createElement("canvas")}function h(){return L||(L=F.createCanvas().getContext("2d")),L}function c(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)t.prototype[r]=n[r];t.prototype.constructor=t,t.superClass=e}function d(t,e,i){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,o(t,e,i)}function f(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function p(t,e,i){if(t&&e)if(t.forEach&&t.forEach===E)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;r>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function g(t,e,i){if(t&&e){if(t.map&&t.map===N)return t.map(e,i);for(var n=[],r=0,o=t.length;o>r;r++)n.push(e.call(i,t[r],r,t));return n}}function m(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===V)return t.reduce(e,i,n);for(var r=0,o=t.length;o>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t.filter&&t.filter===R)return t.filter(e,i);for(var n=[],r=0,o=t.length;o>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function y(t,e,i){if(t&&e)for(var n=0,r=t.length;r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function x(t,e){var i=B.call(arguments,2);return function(){return t.apply(e,i.concat(B.call(arguments)))}}function _(t){var e=B.call(arguments,1);return function(){return t.apply(this,e.concat(B.call(arguments)))}}function b(t){return"[object Array]"===z.call(t)}function w(t){return"function"==typeof t}function M(t){return"[object String]"===z.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function A(t){return!!P[z.call(t)]||t instanceof D}function T(t){return t&&1===t.nodeType&&"string"==typeof t.nodeName}function C(t){for(var e=0,i=arguments.length;i>e;e++)if(null!=arguments[e])return arguments[e]}function I(){return Function.call.apply(B,arguments)}function k(t,e){if(!t)throw new Error(e)}var L,D=i(16),P={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},z=Object.prototype.toString,O=Array.prototype,E=O.forEach,R=O.filter,B=O.slice,N=O.map,V=O.reduce,F={inherits:u,mixin:d,clone:a,merge:s,mergeAll:n,extend:r,defaults:o,getContext:h,createCanvas:l,indexOf:c,slice:I,find:y,isArrayLike:f,each:p,map:g,reduce:m,filter:v,bind:x,curry:_,isArray:b,isString:M,isObject:S,isFunction:w,isBuildInObject:A,isDom:T,retrieve:C,assert:k,noop:function(){}};t.exports=F},function(t,e,i){function n(n){return function(t,e,i){t=t&&t.toLowerCase(),k.prototype[n].call(this,t,e,i)}}function r(){k.call(this)}function o(t,e,i){i=i||{},"string"==typeof e&&(e=W[e]),e&&L(G,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=A.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio}),this._theme=T.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new v(this),this._coordSysMgr=new y,k.call(this),this._messageCenter=new r,this._initEvents(),this.resize=T.bind(this.resize,this)}function a(n,r){var o=this._model;o&&o.eachComponent({mainType:"series",query:r},function(t,e){var i=this._chartsMap[t.__viewId];i&&i.__alive&&i[n](t,o,this._api,r)},this)}function s(n,r,o){var a=this._api;L(this._componentsViews,function(t){var e=t.__model;t[n](e,r,a,o),p(e,t)},this),r.eachSeries(function(t,e){var i=this._chartsMap[t.__viewId];i[n](t,r,a,o),p(t,i)},this)}function l(t,a){for(var s="component"===t,l=s?this._componentsViews:this._chartsViews,h=s?this._componentsMap:this._chartsMap,c=this._zr,e=0;e<l.length;e++)l[e].__alive=!1;a[s?"eachComponent":"eachSeries"](function(t,e){if(s){if("series"===t)return}else e=t;var i=e.id+"_"+e.type,n=h[i];if(!n){var r=_.parseClassType(e.type),o=s?w.getClass(r.main,r.sub):M.getClass(r.sub);if(!o)return;n=new o,n.init(a,this._api),h[i]=n,l.push(n),c.add(n.group)}e.__viewId=i,n.__alive=!0,n.__id=i,n.__model=e},this);for(var e=0;e<l.length;){var i=l[e];i.__alive?e++:(c.remove(i.group),i.dispose(a,this._api),l.splice(e,1),delete h[i.__id])}}function h(e,i){L(P,function(t){L(F[t]||[],function(t){t(e,i)})})}function c(t){var r={};t.eachSeries(function(t){var e=t.get("stack"),i=t.getData();if(e&&"list"===i.type){var n=r[e];n&&(i.stackedOn=n),r[e]=i}})}function u(e,i){var n=this._api;L(V,function(t){t(e,n,i)})}function d(e,i){L(D,function(t){L(Z[t]||[],function(t){t(e,i)})})}function f(n,r){var o=this._api;L(this._componentsViews,function(t){var e=t.__model;t.render(e,n,o,r),p(e,t)},this),L(this._chartsViews,function(t){t.__alive=!1},this),n.eachSeries(function(t,e){var i=this._chartsMap[t.__viewId];i.__alive=!0,i.render(t,n,o,r),p(t,i)},this),L(this._chartsViews,function(t){t.__alive||t.remove(n,o)},this)}function p(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){null!=i&&(t.z=i),null!=n&&(t.zlevel=n)})}function g(o){function a(t,e){for(var i=0;i<t.length;i++){var n=t[i];n[c]=e}}var s=0,l=1,h=2,c="__connectUpdateStatus";T.each(N,function(t,e){o._messageCenter.on(e,function(t){if(q[o.group]&&o[c]!==s){var e=o.makeActionFromEvent(t),i=[];for(var n in H){var r=H[n];r!==o&&r.group===o.group&&i.push(r)}a(i,s),L(i,function(t){t[c]!==l&&t.dispatchAction(e)}),a(i,h)}})})}var m=i(112),v=i(78),y=i(28),x=i(113),_=i(10),b=i(13),w=i(54),M=i(25),S=i(3),A=i(67),T=i(1),C=i(22),I=i(15),k=i(21),L=T.each,D=["echarts","chart","component"],P=["transform","filter","statistic"];r.prototype.on=n("on"),r.prototype.off=n("off"),r.prototype.one=n("one"),T.mixin(r,k);var z=o.prototype;z.getDom=function(){return this._dom},z.getZr=function(){return this._zr},z.setOption=function(t,e,i){this._model&&!e||(this._model=new m(null,null,this._theme,new x(this._api))),this._model.setOption(t,G),O.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},z.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},z.getModel=function(){return this._model},z.getOption=function(){return this._model.getOption()},z.getWidth=function(){return this._zr.getWidth()},z.getHeight=function(){return this._zr.getHeight()},z.getRenderedCanvas=function(t){if(I.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return T.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},z.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;L(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(n,function(t){t.group.ignore=!1}),o},z.getConnectedDataURL=function(t){if(I.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(q[e]){var o=r,a=r,s=-r,l=-r,h=[],c=t&&t.pixelRatio||1;for(var u in H){var d=H[u];if(d.group===e){var f=d.getRenderedCanvas(T.clone(t)),p=d.getDom().getBoundingClientRect();o=i(p.left,o),a=i(p.top,a),s=n(p.right,s),l=n(p.bottom,l),h.push({dom:f,left:p.left,top:p.top})}}o*=c,a*=c,s*=c,l*=c;var g=s-o,m=l-a,v=T.createCanvas();v.width=g,v.height=m;var y=A.init(v);return L(h,function(t){var e=new S.Image({style:{x:t.left*c-o,y:t.top*c-a,image:t.dom}});y.add(e)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var O={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr;if(e){e.restoreData(),n.create(this._model,this._api),h.call(this,e,i),c.call(this,e),n.update(e,i),u.call(this,e,t),d.call(this,e,t),f.call(this,e,t);var r=e.get("backgroundColor")||"transparent",o=this._zr.painter;if(o.isSingleCanvas&&o.isSingleCanvas())this._zr.configLayer(0,{clearColor:r});else{if(!I.canvasSupported){var a=C.parse(r);r=C.stringify(a,"rgb"),0===a[3]&&(r="transparent")}r=r,this._dom.style.backgroundColor=r}}},updateView:function(t){var e=this._model;e&&(u.call(this,e,t),d.call(this,e,t),s.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(d.call(this,e,t),s.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(u.call(this,e,t),s.call(this,"updateLayout",e,t))},highlight:function(t){a.call(this,"highlight",t)},downplay:function(t){a.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;l.call(this,"component",e),l.call(this,"chart",e),O.update.call(this,t)}};z.resize=function(){this._zr.resize();var t=this._model&&this._model.resetOption("media");O[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize()};var E=i(111);z.showLoading=function(t,e){T.isObject(t)&&(e=t,t="default"),this.hideLoading();var i=E(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},z.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},z.makeActionFromEvent=function(t){var e=T.extend({},t);return e.type=N[t.type],e},z.dispatchAction=function(e,t){var i=B[e.type];if(i){var n=i.actionInfo,r=n.update||"update",o=[e],a=!1;e.batch&&(a=!0,o=T.map(e.batch,function(t){return t=T.defaults(T.extend({},t),e),t.batch=null,t}));for(var s,l=[],h="highlight"===e.type||"downplay"===e.type,c=0;c<o.length;c++){var u=o[c];s=i.action(u,this._model),s=s||T.extend({},u),s.type=n.event||s.type,l.push(s),h&&O[r].call(this,u)}"none"!==r&&!h&&O[r].call(this,e),t||(s=a?{type:n.event||e.type,batch:l}:l[0],this._messageCenter.trigger(s.type,s))}},z.on=n("on"),z.off=n("off"),z.one=n("one");var R=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];z._initEvents=function(){var t=this._zr;L(R,function(o){t.on(o,function(t){var e=this.getModel(),i=t.target;if(i&&null!=i.dataIndex){var n=i.dataModel||e.getSeriesByIndex(i.seriesIndex),r=n&&n.getDataParams(i.dataIndex)||{};r.event=t,r.type=o,this.trigger(o,r)}},this)},this),L(N,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},z.isDisposed=function(){return this._disposed},z.clear=function(){this.setOption({},!0)},z.dispose=function(){this._disposed=!0;var e=this._api,i=this._model;L(this._componentsViews,function(t){t.dispose(i,e)}),L(this._chartsViews,function(t){t.dispose(i,e)}),this._zr.dispose(),delete H[this.id]},T.mixin(o,k);var B=[],N={},V=[],F={},G=[],Z={},W={},H={},q={},j=new Date-0,X=new Date-0,U="_echarts_instance_",Y={version:"3.1.5",dependencies:{zrender:"3.0.6"}};Y.init=function(t,e,i){if(A.version.replace(".","")-0<Y.dependencies.zrender.replace(".","")-0)throw new Error("ZRender "+A.version+" is too old for ECharts "+Y.version+". Current version need ZRender "+Y.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var n=new o(t,e,i);return n.id="ec_"+j++,H[n.id]=n,t.setAttribute&&t.setAttribute(U,n.id),g(n),n},Y.connect=function(e){if(T.isArray(e)){var t=e;e=null,T.each(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+X++,T.each(t,function(t){t.group=e})}return q[e]=!0,e},Y.disConnect=function(t){q[t]=!1},Y.dispose=function(t){T.isDom(t)?t=Y.getInstanceByDom(t):"string"==typeof t&&(t=H[t]),t instanceof o&&!t.isDisposed()&&t.dispose()},Y.getInstanceByDom=function(t){var e=t.getAttribute(U);return H[e]},Y.getInstanceById=function(t){return H[t]},Y.registerTheme=function(t,e){W[t]=e},Y.registerPreprocessor=function(t){G.push(t)},Y.registerProcessor=function(t,e){if(T.indexOf(P,t)<0)throw new Error("stage should be one of "+P);var i=F[t]||(F[t]=[]);i.push(e)},Y.registerAction=function(t,e,i){"function"==typeof e&&(i=e,e="");var n=T.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,B[n]||(B[n]={action:i,actionInfo:t}),N[e]=n},Y.registerCoordinateSystem=function(t,e){y.register(t,e)},Y.registerLayout=function(t){T.indexOf(V,t)<0&&V.push(t)},Y.registerVisualCoding=function(t,e){if(T.indexOf(D,t)<0)throw new Error("stage should be one of "+D);var i=Z[t]||(Z[t]=[]);i.push(e)},Y.extendChartView=function(t){return M.extend(t)},Y.extendComponentModel=function(t){return _.extend(t)},Y.extendSeriesModel=function(t){return b.extend(t)},Y.extendComponentView=function(t){return w.extend(t)},Y.setCanvasCreator=function(t){T.createCanvas=t},Y.registerVisualCoding("echarts",T.curry(i(74),"","itemStyle")),Y.registerPreprocessor(i(120)),Y.registerAction({type:"highlight",event:"highlight",update:"highlight"},T.noop),Y.registerAction({type:"downplay",event:"downplay",update:"downplay"},T.noop),Y.graphic=i(3),Y.number=i(4),Y.format=i(9),Y.matrix=i(19),Y.vector=i(5),Y.util={},L(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend"],function(t){Y.util[t]=T[t]}),t.exports=Y},function(t,e,i){"use strict";function n(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style.stroke,i=t.style.fill,n=t.__hoverStl,r=v.lift;n.fill=n.fill||i&&(i instanceof _?i:r(i,-.1)),n.stroke=n.stroke||e&&(e instanceof _?e:r(e,-.1));var o={};for(var a in n)n.hasOwnProperty(a)&&(o[a]=t.style[a]);t.__normalStl=o,t.__hoverStlDirty=!1}t.setStyle(t.__hoverStl),t.z2+=1,t.__isHover=!0}}function r(t){if(t.__isHover){var e=t.__normalStl;e&&t.setStyle(e),t.z2-=1,t.__isHover=!1}}function o(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&n(t)}):n(t)}function a(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&r(t)}):r(t)}function s(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0}function l(){!this.__isEmphasis&&o(this)}function h(){!this.__isEmphasis&&a(this)}function c(){this.__isEmphasis=!0,o(this)}function u(){this.__isEmphasis=!1,a(this)}function d(t,e,i,n,r){var o=t?"Update":"",a=n&&n.getShallow("animationDuration"+o),s=n&&n.getShallow("animationEasing"+o);n&&n.getShallow("animation")?e.animateTo(i,a,s,r):(e.attr(i),r&&r())}var f=i(1),p=i(156),g=Math.round,m=i(6),v=i(22),y=i(19),x=i(5),_=i(16),b={};b.Group=i(26),b.Image=i(46),b.Text=i(65),b.Circle=i(147),b.Sector=i(153),b.Ring=i(152),b.Polygon=i(149),b.Polyline=i(150),b.Rect=i(151),b.Line=i(148),b.BezierCurve=i(146),b.Arc=i(145),b.LinearGradient=i(76),b.RadialGradient=i(141),b.BoundingRect=i(8),b.extendShape=function(t){return m.extend(t)},b.extendPath=function(t,e){return p.extendFromString(t,e)},b.makePath=function(t,e,i,n){var r=p.createFromString(t,e),o=r.getBoundingRect();if(i){var a=o.width/o.height;if("center"===n){var s,l=i.height*a;l<=i.width?s=i.height:(l=i.width,s=l/a);var h=i.x+i.width/2,c=i.y+i.height/2;i.x=h-l/2,i.y=c-s/2,i.width=l,i.height=s}this.resizePath(r,i)}return r},b.mergePath=p.mergePath,b.resizePath=function(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}},b.subPixelOptimizeLine=function(t){var e=b.subPixelOptimize,i=t.shape,n=t.style.lineWidth;return g(2*i.x1)===g(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),g(2*i.y1)===g(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},b.subPixelOptimizeRect=function(t){var e=b.subPixelOptimize,i=t.shape,n=t.style.lineWidth,r=i.x,o=i.y,a=i.width,s=i.height;return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+a,n,!1)-i.x,0===a?0:1),i.height=Math.max(e(o+s,n,!1)-i.y,0===s?0:1),t},b.subPixelOptimize=function(t,e,i){var n=g(2*t);return(n+g(e))%2===0?n/2:(n+(i?1:-1))/2},b.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t,e)}):s(t,e),t.on("mouseover",l).on("mouseout",h),t.on("emphasis",c).on("normal",u)},b.setText=function(t,e,i){var n=e.getShallow("position")||"inside",r=n.indexOf("inside")>=0?"white":i,o=e.getModel("textStyle");f.extend(t,{textDistance:e.getShallow("distance")||5,textFont:o.getFont(),textPosition:n,textFill:o.getTextColor()||r})},b.updateProps=f.curry(d,!0),b.initProps=f.curry(d,!1),b.getTransform=function(t,e){for(var i=y.identity([]);t&&t!==e;)y.mul(i,t.getLocalTransform(),i),t=t.parent;return i},b.applyTransform=function(t,e,i){return i&&(e=y.invert([],e)),x.applyTransform([],t,e)},b.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]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=b.applyTransform(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},t.exports=b},function(t,e){function i(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}var n={},r=1e-4;n.linearMap=function(t,e,i,n){var r=e[1]-e[0];if(0===r)return(i[0]+i[1])/2;var o=(t-e[0])/r;return n&&(o=Math.min(Math.max(o,0),1)),o*(i[1]-i[0])+i[0]},n.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?i(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},n.round=function(t){return+(+t).toFixed(12)},n.asc=function(t){return t.sort(function(t,e){return t-e}),t},n.getPrecision=function(t){if(isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},n.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+o,0)},n.MAX_SAFE_INTEGER=9007199254740991,n.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},n.isRadianAroundZero=function(t){return t>-r&&r>t},n.parseDate=function(t){return t instanceof Date?t:new Date("string"==typeof t?t.replace(/-/g,"/"):Math.round(t))},n.nice=function(t,e){var i,n=Math.floor(Math.log(t)/Math.LN10),r=Math.pow(10,n),o=t/r;return i=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,i*r},t.exports=n},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array,r={create:function(t,e){var i=new n(2);return i[0]=t||0,i[1]=e||0,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},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,e){var i=r.len(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,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}};r.length=r.len,r.lengthSquare=r.lenSquare,r.dist=r.distance,r.distSquare=r.distanceSquare,t.exports=r},function(t,e,i){function l(t){var e=t.fill;return null!=e&&"none"!==e}function h(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function o(t){n.call(this,t),this.path=new r}var n=i(35),a=i(1),r=i(27),c=i(137),u=i(16),s=Math.abs;o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var e=this.style,i=this.path,n=h(e),r=l(e);this.__dirtyPath&&(r&&e.fill instanceof u&&e.fill.updateCanvasGradient(this,t),n&&e.stroke instanceof u&&e.stroke.updateCanvasGradient(this,t)),e.bind(t,this),this.setTransform(t);var o=e.lineDash,a=e.lineDashOffset,s=!!t.setLineDash;this.__dirtyPath||o&&!s&&n?(i=this.path.beginPath(t),o&&!s&&(i.setLineDash(o),i.setLineDashOffset(a)),this.buildPath(i,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),r&&i.fill(t),o&&s&&(t.setLineDash(o),t.lineDashOffset=a),n&&i.stroke(t),null!=e.text&&this.drawRectText(t,this.getBoundingRect()),t.restore()},buildPath:function(t,e){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape)),t=n.getBoundingRect()}if(this._rect=t,h(e)){var r=this._rectWithStroke;if(this.__dirty||i){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());r.copy(t);var o=e.lineWidth,a=e.strokeNoScale?this.getLineScale():1;l(e)||(o=Math.max(o,this.strokeContainThreshold)),a>1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path.data;if(h(r)){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(l(r)||(a=Math.max(a,this.strokeContainThreshold)),c.containStroke(o,a/s,t,e)))return!0}if(l(r))return c.contain(o,t,e)}return!1},dirty:function(t){0===arguments.length&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?this.setShape(e):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a.isObject(t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&s(t[0]-1)>1e-10&&s(t[3]-1)>1e-10?Math.sqrt(s(t[0]*t[3]-t[2]*t[1])):1}},o.extend=function(r){var t=function(t){o.call(this,t),r.style&&this.style.extendFrom(r.style,!1);var e=r.shape;if(e){this.shape=this.shape||{};var i=this.shape;for(var n in e)!i.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(i[n]=e[n])}r.init&&r.init.call(this,t)};a.inherits(t,o);for(var e in r)"style"!==e&&"shape"!==e&&(t.prototype[e]=r[e]);return t},a.inherits(o,n),t.exports=o},function(t,e,i){var a=i(9),n=i(4),c=i(1),r=i(12),o=["x","y","z","radius","angle"],h={};h.createNameEach=function(t,a){t=t.slice();var s=c.map(t,h.capitalFirst);a=(a||[]).slice();var l=c.map(a,h.capitalFirst);return function(r,o){c.each(t,function(t,e){for(var i={name:t,capital:s[e]},n=0;n<a.length;n++)i[a[n]]=t+l[n];r.call(o,i)})}},h.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},h.eachAxisDim=h.createNameEach(o,["axisIndex","axis","index"]),h.normalizeToArray=function(t){return c.isArray(t)?t:null==t?[]:[t]},h.createLinkedNodesFinder=function(r,o,a){function s(t,e){return c.indexOf(e.nodes,t)>=0}function l(t,i){var n=!1;return o(function(e){c.each(a(t,e)||[],function(t){i.records[e.name][t]&&(n=!0)})}),n}function h(t,i){i.nodes.push(t),o(function(e){c.each(a(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(t){function e(t){!s(t,i)&&l(t,i)&&(h(t,i),n=!0)}var i={nodes:[],records:{}};if(o(function(t){i.records[t.name]={}}),!t)return i;h(t,i);var n;do{n=!1,r(e)}while(n);return i}},h.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t.normal=t.normal||{};c.each(e,function(t){var e=c.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},h.createDataFormatModel=function(t,e,i){var n=new r;return c.mixin(n,h.dataFormatMixin),n.seriesIndex=t.seriesIndex,n.name=t.name||"",n.getData=function(){return e},n.getRawDataArray=function(){return i},n},h.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},h.converDataValue=function(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"!==i||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?NaN:+t)},h.dataFormatMixin={getDataParams:function(t){var e=this.getData(),i=this.seriesIndex,n=this.name,r=this.getRawValue(t),o=e.getRawIndex(t),a=e.getName(t,!0),s=this.getRawDataArray(),l=s&&s[o];return{seriesIndex:i,seriesName:n,name:a,dataIndex:o,data:l,value:r,color:e.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i){e=e||"normal";var n=this.getData(),r=n.getItemModel(t),o=this.getDataParams(t);return null==i&&(i=r.get(["label",e,"formatter"])),"function"==typeof i?(o.status=e,i(o)):"string"==typeof i?a.formatTpl(i,o):void 0},getRawValue:function(t){var e=this.getData().getItemModel(t);if(e&&null!=e.option){var i=e.option;return c.isObject(i)&&!c.isArray(i)?i.value:i}}},h.mappingToExists=function(t,r){r=(r||[]).slice();var o=c.map(t||[],function(t,e){return{exist:t}});return c.each(r,function(t,e){if(c.isObject(t))for(var i=0;i<o.length;i++){var n=o[i].exist;if(!o[i].option&&(null!=t.id&&n.id===t.id+""||null!=t.name&&!h.isIdInner(t)&&!h.isIdInner(n)&&n.name===t.name+"")){o[i].option=t,r[e]=null;break}}}),c.each(r,function(t,e){if(c.isObject(t)){for(var i=0;i<o.length;i++){var n=o[i].exist;if(!o[i].option&&!h.isIdInner(n)&&null==t.id){o[i].option=t;break}}i>=o.length&&o.push({option:t})}}),o},h.isIdInner=function(t){return c.isObject(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")},t.exports=h},function(t,e,i){"use strict";function n(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n}var r=i(5),o=i(19),a=r.applyTransform,s=Math.min,l=Math.abs,h=Math.max;n.prototype={constructor:n,union:function(t){var e=s(t.x,this.x),i=s(t.y,this.y);this.width=h(t.x+t.width,this.x+this.width)-e,this.height=h(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:function(){var e=[],i=[];return function(t){t&&(e[0]=this.x,e[1]=this.y,i[0]=this.x+this.width,i[1]=this.y+this.height,a(e,e,t),a(i,i,t),this.x=s(e[0],i[0]),this.y=s(e[1],i[1]),this.width=l(i[0]-e[0]),this.height=l(i[1]-e[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=o.create();return o.translate(r,r,[-e.x,-e.y]),o.scale(r,r,[i,n]),o.translate(r,r,[t.x,t.y]),r},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,o=e.y+e.height,a=t.x,s=t.x+t.width,l=t.y,h=t.y+t.height;return!(a>n||i>s||l>o||r>h)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new n(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}},t.exports=n},function(t,e,i){function n(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function r(t){return t.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function o(t){var e=t.length;return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function a(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(t,e){return"{"+t+(null==e?"":e)+"}"}function s(t,e){u.isArray(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars,r=0;r<n.length;r++){var o=f[r];t=t.replace(l(o),l(o,0))}for(var a=0;i>a;a++)for(var s=0;s<n.length;s++)t=t.replace(l(f[s],a),e[a][n[s]]);return t}function h(t,e){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=d.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),s=i.getMinutes(),l=i.getSeconds();return t=t.replace("MM",c(r)).toLowerCase().replace("yyyy",n).replace("yy",n%100).replace("dd",c(o)).replace("d",o).replace("hh",c(a)).replace("h",a).replace("mm",c(s)).replace("m",s).replace("ss",c(l)).replace("s",l)}function c(t){return 10>t?"0"+t:t}var u=i(1),d=i(4),f=["a","b","c","d","e","f","g"];t.exports={normalizeCssArray:o,addCommas:n,toCamelCase:r,encodeHTML:a,formatTpl:s,formatTime:h}},function(t,e,i){function n(t){var e=[];return o.each(c.getClassesByMainType(t),function(t){a.apply(e,t.prototype.dependencies||[])}),o.map(e,function(t){return l.parseClassType(t).main})}var r=i(12),o=i(1),a=Array.prototype.push,s=i(41),l=i(20),h=i(11),c=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(t,e,i,n){this.mergeDefaultAndTheme(this.option,this.ecModel)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?h.getLayoutParams(t):{},r=e.getTheme();o.merge(t,r.get(this.mainType)),o.merge(t,this.getDefaultOption()),i&&h.mergeLayoutParam(t,n,i)},mergeOption:function(t){o.merge(this.option,t,!0);var e=this.layoutMode;e&&h.mergeLayoutParam(this.option,t,e)},optionUpdated:function(t){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e.prototype.defaultOption;i&&t.push(i),e=e.superClass}for(var n={},r=t.length-1;r>=0;r--)n=o.merge(n,t[r],!0);this.__defaultOption=n}return this.__defaultOption}});l.enableClassExtend(c,function(t,e,i,n){o.extend(this,n),this.uid=s.getUID("componentModel")}),l.enableClassManagement(c,{registerWhenExtend:!0}),s.enableSubTypeDefaulter(c),s.enableTopologicalTravel(c,n),o.mixin(c,i(116)),t.exports=c},function(t,e,i){"use strict";function n(c,u,d,f,p){var g=0,m=0;null==f&&(f=1/0),null==p&&(p=1/0);var v=0;u.eachChild(function(t,e){var i,n,r=t.position,o=t.getBoundingRect(),a=u.childAt(e+1),s=a&&a.getBoundingRect();if("horizontal"===c){var l=o.width+(s?-s.x+o.x:0);i=g+l,i>f||t.newline?(g=0,i=l,m+=v+d,v=o.height):v=Math.max(v,o.height)}else{var h=o.height+(s?-s.y+o.y:0);n=m+h,n>p||t.newline?(g+=v+d,m=0,n=h,v=o.width):v=Math.max(v,o.width)}t.newline||(r[0]=g,r[1]=m,"horizontal"===c?g=i+d:m=n+d)})}var a=i(1),g=i(8),r=i(4),m=i(9),v=r.parsePercent,f=a.each,o={},s=["left","right","top","bottom","width","height"];o.box=n,o.vbox=a.curry(n,"vertical"),o.hbox=a.curry(n,"horizontal"),o.getAvailableSize=function(t,e,i){var n=e.width,r=e.height,o=v(t.x,n),a=v(t.y,r),s=v(t.x2,n),l=v(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),i=m.normalizeCssArray(i||0),{width:Math.max(s-o-i[1]-i[3],0),height:Math.max(l-a-i[0]-i[2],0)}},o.getLayoutRect=function(t,e,i){i=m.normalizeCssArray(i||0);var n=e.width,r=e.height,o=v(t.left,n),a=v(t.top,r),s=v(t.right,n),l=v(t.bottom,r),h=v(t.width,n),c=v(t.height,r),u=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(h)&&(h=n-s-d-o),isNaN(c)&&(c=r-l-u-a),isNaN(h)&&isNaN(c)&&(f>n/r?h=.8*n:c=.8*r),null!=f&&(isNaN(h)&&(h=f*c),isNaN(c)&&(c=h/f)),isNaN(o)&&(o=n-s-h-d),isNaN(a)&&(a=r-l-c-u),t.left||t.right){case"center":o=n/2-h/2-i[3];break;case"right":o=n-h-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-i[0];break;case"bottom":a=r-c-u}o=o||0,a=a||0,isNaN(h)&&(h=n-o-(s||0)),isNaN(c)&&(c=r-a-(l||0));var p=new g(o+i[3],a+i[0],h,c);return p.margin=i,p},o.positionGroup=function(t,e,i,n){var r=t.getBoundingRect();e=a.extend(a.clone(e),{width:r.width,height:r.height}),e=o.getLayoutRect(e,i,n),t.position=[e.x-r.x,e.y-r.y]},o.mergeLayoutParam=function(l,h,c){function t(t){var e={},i=0,n={},r=0,o=c.ignoreSize?1:2;if(f(t,function(t){n[t]=l[t]}),f(t,function(t){u(h,t)&&(e[t]=n[t]=h[t]),d(e,t)&&i++,d(n,t)&&r++}),r!==o&&i){if(i>=o)return e;for(var a=0;a<t.length;a++){var s=t[a];if(!u(e,s)&&u(l,s)){e[s]=l[s];break}}return e}return n}function u(t,e){return t.hasOwnProperty(e)}function d(t,e){return null!=t[e]&&"auto"!==t[e]}function e(t,e,i){f(t,function(t){e[t]=i[t]})}!a.isObject(c)&&(c={});var i=["width","left","right"],n=["height","top","bottom"],r=t(i),o=t(n);e(i,l,r),e(n,l,o)},o.getLayoutParams=function(t){return o.copyLayoutParams({},t)},o.copyLayoutParams=function(e,i){return i&&e&&f(s,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e},t.exports=o},function(t,e,i){function o(t,e,i,n){this.parentModel=e,this.ecModel=i,this.option=t,this.init&&(arguments.length<=4?this.init(t,e,i,n):this.init.apply(this,arguments))}var n=i(1),r=i(20);o.prototype={constructor:o,init:null,mergeOption:function(t){n.merge(this.option,t,!0)},get:function(t,e){if(!t)return this.option;"string"==typeof t&&(t=t.split("."));for(var i=this.option,n=this.parentModel,r=0;r<t.length&&(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.option,n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r.getShallow(t)),n},getModel:function(t,e){var i=this.get(t,!0),n=this.parentModel,r=new o(i,e||n&&n.getModel(t),this.ecModel);return r},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(n.clone(this.option))},setReadOnly:function(t){r.setReadOnly(this,t)}},r.enableClassExtend(o);var a=n.mixin;a(o,i(118)),a(o,i(115)),a(o,i(119)),a(o,i(117)),t.exports=o},function(t,e,i){"use strict";var l=i(1),n=i(9),r=i(7),o=i(10),h=n.encodeHTML,c=n.addCommas,a=o.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i,n){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,e){l.merge(t,e.getTheme().get(this.subType)),l.merge(t,this.getDefaultOption()),r.defaultEmphasis(t.label,["position","show","textStyle","distance","formatter"]);for(var i=t.data||[],n=0;n<i.length;n++)i[n]&&i[n].label&&r.defaultEmphasis(i[n].label,["position","show","textStyle","distance","formatter"])},mergeOption:function(t,e){t=l.merge(this.option,t,!0);var i=this.getInitialData(t,e);i&&(this._data=i,this._dataBeforeProcessed=i.cloneShallow())},getInitialData:function(){},getData:function(){return this._data},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},getRawDataArray:function(){return this.option.data},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e){var i=this._data,n=this.getRawValue(t),r=l.isArray(n)?l.map(n,c).join(", "):c(n),o=i.getName(t),a=i.getItemVisual(t,"color"),s='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+a+'"></span>';return e?s+h(this.name)+" : "+r:h(this.name)+"<br />"+s+(o?h(o)+" : "+r:r)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});l.mixin(a,r.dataFormatMixin),t.exports=a},function(p,t,g){(function(t){function u(t){return b.isArray(t)||(t=[t]),t}function y(t,e){var i=t.dimensions,n=new c(b.map(i,t.getDimensionInfo,t),t.hostModel);h(n,t,t._wrappedMethods);for(var r=n._storage={},o=t._storage,a=0;a<i.length;a++){var s=i[a],l=o[s];b.indexOf(e,s)>=0?r[s]=new l.constructor(o[s].length):r[s]=o[s]}return n}var e="undefined",i="undefined"==typeof window?t:window,n=typeof i.Float64Array===e?Array:i.Float64Array,r=typeof i.Int32Array===e?Array:i.Int32Array,_={float:n,int:r,ordinal:Array,number:Array,time:Array},o=g(12),a=g(52),b=g(1),w=g(7),s=b.isObject,l=["stackedOn","_nameList","_idList","_rawData"],h=function(e,i,t){b.each(l.concat(t||[]),function(t){i.hasOwnProperty(t)&&(e[t]=i[t])})},c=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t.length;r++){var o,a={};"string"==typeof t[r]?(o=t[r],a={name:o,stackable:!1,type:"number"}):(a=t[r],o=a.name,a.type=a.type||"number"),n.push(o),i[o]=a}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,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},d=c.prototype;d.type="list",d.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},d.getDimensionInfo=function(t){return b.clone(this._dimensionInfos[this.getDimension(t)])},d.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],o=this.dimensions,a=t.length,s=this._dimensionInfos,l=[],h={};e=e||[];for(var c=0;c<o.length;c++){var u=s[o[c]],d=_[u.type];n[o[c]]=new d(a)}i=i||function(t,e,i,n){var r=w.getDataItemValue(t);return w.converDataValue(b.isArray(r)?r[n]:r,s[e])};for(var f=0;f<t.length;f++){for(var p=t[f],g=0;g<o.length;g++){var m=o[g],v=n[m];v[f]=i(p,m,f,g)}r.push(f)}for(var c=0;c<t.length;c++){var y="";e[c]||(e[c]=t[c].name,y=t[c].id);var x=e[c]||"";!y&&x&&(h[x]=h[x]||0,y=x,h[x]>0&&(y+="__ec__"+h[x]),h[x]++),y&&(l[c]=y)}this._nameList=e,this._idList=l},d.count=function(){return this.indices.length},d.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return NaN;var o=n[t]&&n[t][r];if(i){var a=this._dimensionInfos[t];if(a&&a.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(o>=0&&l>0||0>=o&&0>l)&&(o+=l),s=s.stackedOn}}return o},d.getValues=function(t,e,i){var n=[];b.isArray(t)||(i=e,e=t,t=this.dimensions);for(var r=0,o=t.length;o>r;r++)n.push(this.get(t[r],e,i));return n},d.hasValue=function(t){for(var e=this.dimensions,i=this._dimensionInfos,n=0,r=e.length;r>n;n++)if("ordinal"!==i[e[n]].type&&isNaN(this.get(e[n],t)))return!1;return!0},d.getDataExtent=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,o=(this._extent||(this._extent={}))[t+!!e];if(o)return o;if(i){for(var a=1/0,s=-(1/0),l=0,h=this.count();h>l;l++)r=this.get(t,l,e),a>r&&(a=r),r>s&&(s=r);return this._extent[t+e]=[a,s]}return[1/0,-(1/0)]},d.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,o=this.count();o>r;r++){var a=this.get(t,r,e);isNaN(a)||(n+=a)}return n},d.indexOf=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var o=0,a=r.length;a>o;o++){var s=r[o];if(n[s]===e)return o}return-1},d.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e.length;r>n;n++){var o=e[n];if(i[o]===t)return n}return-1},d.indexOfNearest=function(t,e,i){var n=this._storage,r=n[t];if(r){for(var o=Number.MAX_VALUE,a=-1,s=0,l=this.count();l>s;s++){var h=e-this.get(t,s,i),c=Math.abs(h);(o>c||c===o&&h>0)&&(o=c,a=s)}return a}return-1},d.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},d.getName=function(t){return this._nameList[this.indices[t]]||""},d.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},d.each=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]),t=b.map(u(t),this.getDimension,this);var r=[],o=t.length,a=this.indices;n=n||this;for(var s=0;s<a.length;s++)if(0===o)e.call(n,s);else if(1===o)e.call(n,this.get(t[0],s,i),s);else{for(var l=0;o>l;l++)r[l]=this.get(t[l],s,i);r[l]=s,e.apply(n,r)}},d.filterSelf=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]),t=b.map(u(t),this.getDimension,this);var r=[],o=[],a=t.length,s=this.indices;n=n||this;for(var l=0;l<s.length;l++){var h;if(1===a)h=e.call(n,this.get(t[0],l,i),l);else{for(var c=0;a>c;c++)o[c]=this.get(t[c],l,i);o[c]=l,h=e.apply(n,o)}h&&r.push(s[l])}return this.indices=r,this._extent={},this},d.mapArray=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},d.map=function(a,s,t,e){a=b.map(u(a),this.getDimension,this);var i=y(this,a),l=i.indices=this.indices,h=i._storage,c=[];return this.each(a,function(){var t=arguments[arguments.length-1],e=s&&s.apply(this,arguments);if(null!=e){"number"==typeof e&&(c[0]=e,e=c);for(var i=0;i<e.length;i++){var n=a[i],r=h[n],o=l[t];r&&(r[o]=e[i])}}},t,e),i},d.downSample=function(t,e,i,n){for(var r=y(this,[t]),o=this._storage,a=r._storage,s=this.indices,l=r.indices=[],h=[],c=[],u=Math.floor(1/e),d=a[t],f=this.count(),p=0;p<o[t].length;p++)a[t][p]=o[t][p];for(var p=0;f>p;p+=u){u>f-p&&(u=f-p,h.length=u);for(var g=0;u>g;g++){var m=s[p+g];h[g]=d[m],c[g]=m}var v=i(h),m=c[n(h,v)||0];d[m]=v,l.push(m)}return r},d.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new o(this._rawData[t],e,e.ecModel)},d.diff=function(t){var e=this._idList,i=t&&t._idList;return new a(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},d.getVisual=function(t){var e=this._visual;return e&&e[t]},d.setVisual=function(t,e){if(s(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},d.setLayout=function(t,e){if(s(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},d.getLayout=function(t){return this._layout[t]},d.getItemLayout=function(t){return this._itemLayouts[t]},d.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?b.extend(this._itemLayouts[t]||{},e):e},d.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},d.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,s(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var f=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex};d.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(f,e)),this._graphicEls[t]=e},d.getItemGraphicEl=function(t){return this._graphicEls[t]},d.eachItemGraphicEl=function(i,n){b.each(this._graphicEls,function(t,e){t&&i&&i.call(n,t,e)})},d.cloneShallow=function(){var t=b.map(this.dimensions,this.getDimensionInfo,this),e=new c(t,this.hostModel);return e._storage=this._storage,h(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},d.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.call(this,t)})},p.exports=c}).call(t,function(){return this}())},function(t,e){function i(t){var e={},i={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=t.match(/(iPad).*OS\s([\d_]+)/),a=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!o&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=l&&t.match(/TouchPad/),c=t.match(/Kindle\/([\d.]+)/),u=t.match(/Silk\/([\d._]+)/),d=t.match(/(BlackBerry).*Version\/([\d.]+)/),f=t.match(/(BB10).*Version\/([\d.]+)/),p=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),g=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),v=t.match(/Firefox\/([\d.]+)/),y=n&&t.match(/Mobile\//)&&!m,x=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,_=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),b=t.match(/Edge\/([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!a&&(e.ios=e.iphone=!0,e.version=s[2].replace(/_/g,".")),o&&(e.ios=e.ipad=!0,e.version=o[2].replace(/_/g,".")),a&&(e.ios=e.ipod=!0,e.version=a[3]?a[3].replace(/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),h&&(e.touchpad=!0),d&&(e.blackberry=!0,e.version=d[2]),f&&(e.bb10=!0,e.version=f[2]),p&&(e.rimtabletos=!0,e.version=p[2]),g&&(i.playbook=!0),c&&(e.kindle=!0,e.version=c[1]),u&&(i.silk=!0,i.version=u[1]),!u&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),v&&(i.firefox=!0,i.version=v[1]),_&&(i.ie=!0,i.version=_[1]),y&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),x&&(i.webview=!0),_&&(i.ie=!0,i.version=_[1]),b&&(i.edge=!0,i.version=b[1]),e.tablet=!!(o||g||r&&!t.match(/Mobile/)||v&&t.match(/Tablet/)||_&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||d||f||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||v&&t.match(/Mobile/)||_&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var n={};n="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:i(navigator.userAgent),t.exports=n},function(t,e){var i=function(t){this.colorStops=t||[]};i.prototype={constructor:i,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t.exports=i},function(t,e,i){function h(t,e){var i=t+":"+e;if(c[i])return c[i];for(var n=(t+"").split("\n"),r=0,o=0,a=n.length;a>o;o++)r=Math.max(g.measureText(n[o],e).width,r);return u>d&&(u=0,c={}),u++,c[i]=r,r}function n(t,e,i,n){var r=((t||"")+"").split("\n").length,o=h(t,e),a=h("国",e),s=r*a,l=new p(0,0,o,s);switch(l.lineHeight=a,n){case"bottom":case"alphabetic":l.y-=a;break;case"middle":l.y-=a/2}switch(i){case"end":case"right":l.x-=l.width;break;case"center":l.x-=l.width/2}return l}function r(t,e,i,n){var r=e.x,o=e.y,a=e.height,s=e.width,l=i.height,h=a/2-l/2,c="left";switch(t){case"left":r-=n,o+=h,c="right";break;case"right":r+=n+s,o+=h,c="left";break;case"top":r+=s/2,o-=n+l,c="center";break;case"bottom":r+=s/2,o+=a+n,c="center";break;case"inside":r+=s/2,o+=h,c="center";break;case"insideLeft":r+=n,o+=h,c="left";break;case"insideRight":r+=s-n,o+=h,c="right";break;case"insideTop":r+=s/2,o+=n,c="center";break;case"insideBottom":r+=s/2,o+=a-l-n,c="center";break;case"insideTopLeft":r+=n,o+=n,c="left";break;case"insideTopRight":r+=s-n,o+=n,c="right";break;case"insideBottomLeft":r+=n,o+=a-l-n;break;case"insideBottomRight":r+=s-n,o+=a-l-n,c="right"}return{x:r,y:o,textAlign:c,textBaseline:"top"}}function o(t,e,i,n){if(!i)return"";n=f.defaults({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:h("国",e),ascCharWidth:h("a",e)},n,!0),i-=h(n.ellipsis);for(var r=(t+"").split("\n"),o=0,a=r.length;a>o;o++)r[o]=s(r[o],e,i,n);return r.join("\n")}function s(t,e,i,n){for(var r=0;;r++){var o=h(t,e);if(i>o||r>=n.maxIterations){t+=n.ellipsis;break}var a=0===r?l(t,i,n):Math.floor(t.length*i/o);if(a<n.minCharacters){t="";break}t=t.substr(0,a)}return t}function l(t,e,i){for(var n=0,r=0,o=t.length;o>r&&e>n;r++){var a=t.charCodeAt(r);n+=a>=0&&127>=a?i.ascCharWidth:i.cnCharWidth}return r}var c={},u=0,d=5e3,f=i(1),p=i(8),g={getWidth:h,getBoundingRect:n,adjustTextPositionOnRect:r,ellipsis:o,measureText:function(t,e){var i=f.getContext();return i.font=e,i.measureText(t)}};t.exports=g},function(t,e,i){"use strict";function T(t){return t>-m&&m>t}function f(t){return t>m||-m>t}function _(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function n(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function r(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),h=t-r,c=s*s-3*a*l,u=s*l-9*a*h,d=l*l-3*s*h,f=0;if(T(c)&&T(u))if(T(s))o[0]=0;else{var p=-l/s;p>=0&&1>=p&&(o[f++]=p)}else{var g=u*u-4*c*d;if(T(g)){var m=u/c,p=-s/a+m,v=-m/2;p>=0&&1>=p&&(o[f++]=p),v>=0&&1>=v&&(o[f++]=v)}else if(g>0){var y=I(g),x=c*s+1.5*a*(-u+y),_=c*s+1.5*a*(-u-y);x=0>x?-C(-x,L):C(x,L),_=0>_?-C(-_,L):C(_,L);var p=(-s-(x+_))/(3*a);p>=0&&1>=p&&(o[f++]=p)}else{var b=(2*c*s-3*a*u)/(2*I(c*c*c)),w=Math.acos(b)/3,M=I(c),S=Math.cos(w),p=(-s-2*M*S)/(3*a),v=(-s+M*(S+k*Math.sin(w)))/(3*a),A=(-s+M*(S-k*Math.sin(w)))/(3*a);p>=0&&1>=p&&(o[f++]=p),v>=0&&1>=v&&(o[f++]=v),A>=0&&1>=A&&(o[f++]=A)}}return f}function o(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(T(a)){if(f(o)){var h=-s/o;h>=0&&1>=h&&(r[l++]=h)}}else{var c=o*o-4*a*s;if(T(c))r[0]=-o/(2*a);else if(c>0){var u=I(c),h=(-o+u)/(2*a),d=(-o-u)/(2*a);h>=0&&1>=h&&(r[l++]=h),d>=0&&1>=d&&(r[l++]=d)}}return l}function a(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,h=(s-a)*r+a,c=(l-s)*r+s,u=(c-h)*r+h;o[0]=t,o[1]=a,o[2]=h,o[3]=u,o[4]=u,o[5]=c,o[6]=l,o[7]=n}function s(t,e,i,n,r,o,a,s,l,h,c){var u,d,f,p,g,m=.005,v=1/0;M[0]=l,M[1]=h;for(var y=0;1>y;y+=.05)S[0]=_(t,i,r,a,y),S[1]=_(e,n,o,s,y),p=b(M,S),v>p&&(u=y,v=p);v=1/0;for(var x=0;32>x&&!(w>m);x++)d=u-m,f=u+m,S[0]=_(t,i,r,a,d),S[1]=_(e,n,o,s,d),p=b(S,M),d>=0&&v>p?(u=d,v=p):(A[0]=_(t,i,r,a,f),A[1]=_(e,n,o,s,f),g=b(A,M),1>=f&&v>g?(u=f,v=g):m*=.5);return c&&(c[0]=_(t,i,r,a,u),c[1]=_(e,n,o,s,u)),I(v)}function y(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function l(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(T(o)){if(f(a)){var h=-s/a;h>=0&&1>=h&&(r[l++]=h)}}else{var c=a*a-4*o*s;if(T(c)){var h=-a/(2*o);h>=0&&1>=h&&(r[l++]=h)}else if(c>0){var u=I(c),h=(-a+u)/(2*o),d=(-a-u)/(2*o);h>=0&&1>=h&&(r[l++]=h),d>=0&&1>=d&&(r[l++]=d)}}return l}function c(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function u(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function d(t,e,i,n,r,o,a,s,l){var h,c=.005,u=1/0;M[0]=a,M[1]=s;for(var d=0;1>d;d+=.05){S[0]=y(t,i,r,d),S[1]=y(e,n,o,d);var f=b(M,S);u>f&&(h=d,u=f)}u=1/0;for(var p=0;32>p&&!(w>c);p++){var g=h-c,m=h+c;S[0]=y(t,i,r,g),S[1]=y(e,n,o,g);var f=b(S,M);if(g>=0&&u>f)h=g,u=f;else{A[0]=y(t,i,r,m),A[1]=y(e,n,o,m);var v=b(A,M);1>=m&&u>v?(h=m,u=v):c*=.5}}return l&&(l[0]=y(t,i,r,h),l[1]=y(e,n,o,h)),I(u)}var p=i(5),g=p.create,b=p.distSquare,C=Math.pow,I=Math.sqrt,m=1e-8,w=1e-4,k=I(3),L=1/3,M=g(),S=g(),A=g();t.exports={cubicAt:_,cubicDerivativeAt:n,cubicRootAt:r,cubicExtrema:o,cubicSubdivide:a,cubicProjectPoint:s,quadraticAt:y,quadraticDerivativeAt:l,quadraticRootAt:h,quadraticExtremum:c,quadraticSubdivide:u,quadraticProjectPoint:d}},function(t,e){var i="undefined"==typeof Float32Array?Array:Float32Array,n={create:function(){var t=new i(6);return n.identity(t),t},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],o=e[0]*i[2]+e[2]*i[3],a=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]=o,t[3]=a,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],o=e[4],a=e[1],s=e[3],l=e[5],h=Math.sin(i),c=Math.cos(i);return t[0]=n*c+a*h,t[1]=-n*h+a*c,t[2]=r*c+s*h,t[3]=-r*h+c*s,t[4]=c*o+h*l,t[5]=c*l-h*o,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],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}};t.exports=n},function(t,e,i){function r(t,e){var i=a.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function o(t,e,i){return this.superClass.prototype[e].apply(t,i)}var a=i(1),n={},s=".",l="___EC__COMPONENT__CONTAINER___",h=n.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(s),e.main=t[0]||"",e.sub=t[1]||""),e};n.enableClassExtend=function(i,n){i.extend=function(t){var e=function(){n&&n.apply(this,arguments),i.apply(this,arguments)};return a.extend(e.prototype,t),e.extend=this.extend,e.superCall=r,e.superApply=o,a.inherits(e,this),e.superClass=this,e}},n.enableClassManagement=function(i,t){function n(t){var e=r[t.main];return e&&e[l]||(e=r[t.main]={},e[l]=!0),e}t=t||{};var r={};if(i.registerClass=function(t,e){if(e)if(e=h(e),e.sub){if(e.sub!==l){var i=n(e);i[e.sub]=t}}else{if(r[e.main])throw new Error(e.main+"exists.");r[e.main]=t}return t},i.getClass=function(t,e,i){var n=r[t];if(n&&n[l]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},i.getClassesByMainType=function(t){t=h(t);var i=[],e=r[t.main];return e&&e[l]?a.each(e,function(t,e){e!==l&&i.push(t)}):i.push(e),i},i.hasClass=function(t){return t=h(t),!!r[t.main]},i.getAllClassMainTypes=function(){var i=[];return a.each(r,function(t,e){i.push(e)}),i},i.hasSubTypes=function(t){t=h(t);var e=r[t.main];return e&&e[l]},i.parseClassType=h,t.registerWhenExtend){var o=i.extend;o&&(i.extend=function(t){var e=o.call(this,t);return i.registerClass(e,t.type)})}return i},n.setReadOnly=function(t,e){},t.exports=n},function(t,e,i){var s=Array.prototype.slice,n=i(1),r=n.indexOf,o=function(){this._$handlers={}};o.prototype={constructor:o,one:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),r(n[t],t)>=0?this:(n[t].push({h:e,one:!0,ctx:i||this}),this)):this},on:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),n[t].push({h:e,one:!1,ctx:i||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;o>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>3&&(e=s.call(e,1));for(var n=this._$handlers[t],r=n.length,o=0;r>o;){switch(i){case 1:n[o].h.call(n[o].ctx);break;case 2:n[o].h.call(n[o].ctx,e[1]);break;case 3:n[o].h.call(n[o].ctx,e[1],e[2]);break;default:n[o].h.apply(n[o].ctx,e)}n[o].one?(n.splice(o,1),r--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>4&&(e=s.call(e,1,e.length-1));for(var n=e[e.length-1],r=this._$handlers[t],o=r.length,a=0;o>a;){switch(i){case 1:r[a].h.call(n);break;case 2:r[a].h.call(n,e[1]);break;case 3:r[a].h.call(n,e[1],e[2]);break;default:r[a].h.apply(n,e)}r[a].one?(r.splice(a,1),o--):a++}}return this}},t.exports=o},function(t,e){function c(t){return t=Math.round(t),0>t?0:t>255?255:t}function r(t){return t=Math.round(t),0>t?0:t>360?360:t}function u(t){return 0>t?0:t>1?1:t}function l(t){return c(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function h(t){return u(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function s(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 d(t,e,i){return t+(e-t)*i}function f(t){if(t){t+="";var e=t.replace(/ /g,"").toLowerCase();if(e in _)return _[e].slice();if("#"!==e.charAt(0)){var i=e.indexOf("("),n=e.indexOf(")");if(-1!==i&&n+1===e.length){var r=e.substr(0,i),o=e.substr(i+1,n-(i+1)).split(","),a=1;switch(r){case"rgba":if(4!==o.length)return;a=h(o.pop());case"rgb":if(3!==o.length)return;return[l(o[0]),l(o[1]),l(o[2]),a];case"hsla":if(4!==o.length)return;return o[3]=h(o[3]),p(o);case"hsl":if(3!==o.length)return;return p(o);default:return}}}else{if(4===e.length){var s=parseInt(e.substr(1),16);if(!(s>=0&&4095>=s))return;return[(3840&s)>>4|(3840&s)>>8,240&s|(240&s)>>4,15&s|(15&s)<<4,1]}if(7===e.length){var s=parseInt(e.substr(1),16);if(!(s>=0&&16777215>=s))return;return[(16711680&s)>>16,(65280&s)>>8,255&s,1]}}}}function p(t){var e=(parseFloat(t[0])%360+360)%360/360,i=h(t[1]),n=h(t[2]),r=.5>=n?n*(i+1):n+i-n*i,o=2*n-r,a=[c(255*s(o,r,e+1/3)),c(255*s(o,r,e)),c(255*s(o,r,e-1/3))];return 4===t.length&&(a[3]=t[3]),a}function o(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>h?l/(s+a):l/(2-s-a);var c=((s-n)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-u:r===s?e=1/3+c-d:o===s&&(e=2/3+u-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,h];return null!=t[3]&&f.push(t[3]),f}}function i(t,e){var i=f(t);if(i){for(var n=0;3>n;n++)0>e?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0;return x(i,4===i.length?"rgba":"rgb")}}function n(t,e){var i=f(t);return i?((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1):void 0}function a(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[0,0,0,0];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=c(d(a[0],s[0],l)),i[1]=c(d(a[1],s[1],l)),i[2]=c(d(a[2],s[2],l)),i[3]=c(d(a[3],s[3],l)),i}}function g(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=f(e[r]),s=f(e[o]),l=n-r,h=x([c(d(a[0],s[0],l)),c(d(a[1],s[1],l)),c(d(a[2],s[2],l)),u(d(a[3],s[3],l))],"rgba");return i?{color:h,leftIndex:r,rightIndex:o,value:n}:h}}function m(t,e){if(!(2!==t.length||t[1]<t[0])){for(var i=g(t[0],e,!0),n=g(t[1],e,!0),r=[{color:i.color,offset:0}],o=n.value-i.value,a=Math.max(i.value,i.rightIndex),s=Math.min(n.value,n.leftIndex),l=a;o>0&&s>=l;l++)r.push({color:e[l],offset:(l-i.value)/o});return r.push({color:n.color,offset:1}),r}}function v(t,e,i,n){return t=f(t),t?(t=o(t),null!=e&&(t[0]=r(e)),null!=i&&(t[1]=h(i)),null!=n&&(t[2]=h(n)),x(p(t),"rgba")):void 0}function y(t,e){return t=f(t),t&&null!=e?(t[3]=u(e),x(t,"rgba")):void 0}function x(t,e){return"rgb"!==e&&"hsv"!==e&&"hsl"!==e||(t=t.slice(0,3)),e+"("+t.join(",")+")"}var _={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]};t.exports={parse:f,lift:i,toHex:n,fastMapToColor:a,mapToColor:g,mapIntervalToColor:m,modifyHSL:v,modifyAlpha:y,stringify:x}},function(t,e,i){var n=i(124),r=i(37);i(125),i(123);var o=i(32),u=i(4),d=i(1),f=i(17),s={};s.getScaleExtent=function(t,e){var i=t.scale,n=i.getExtent(),r=n[1]-n[0];if("ordinal"===i.type)return isFinite(r)?n:[0,0];var o=e.getMin?e.getMin():e.get("min"),a=e.getMax?e.getMax():e.get("max"),s=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),l=e.get("boundaryGap");d.isArray(l)||(l=[l||0,l||0]),l[0]=u.parsePercent(l[0],1),l[1]=u.parsePercent(l[1],1);var h=!0,c=!0;return null==o&&(o=n[0]-l[0]*r,h=!1),null==a&&(a=n[1]+l[1]*r,c=!1),"dataMin"===o&&(o=n[0]),"dataMax"===a&&(a=n[1]),s&&(o>0&&a>0&&!h&&(o=0),0>o&&0>a&&!c&&(a=0)),[o,a]},s.niceScaleExtent=function(t,e){var i=t.scale,n=s.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),o=null!=(e.getMax?e.getMax():e.get("max"));i.setExtent(n[0],n[1]),i.niceExtent(e.get("splitNumber"),r,o);var a=e.get("interval");null!=a&&i.setInterval&&i.setInterval(a)},s.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new n(t.getCategories(),[1/0,-(1/0)]);case"value":return new r;default:return(o.getClass(e)||r).create(t)}},s.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},s.getAxisLabelInterval=function(t,e,i,n){var r,o=0,a=0,s=1;e.length>40&&(s=Math.round(e.length/40));for(var l=0;l<t.length;l+=s){var h=t[l],c=f.getBoundingRect(e[l],i,"center","top");c[n?"x":"y"]+=h,c[n?"width":"height"]*=1.5,r?r.intersect(c)?(a++,o=Math.max(o,a)):(r.union(c),a=0):r=c.clone()}return 0===o&&s>1?s:o*s},s.getFormattedLabels=function(i,n){var r=i.scale,t=r.getTicksLabels(),e=r.getTicks();return"string"==typeof n?(n=function(e){return function(t){return e.replace("{value}",t)}}(n),d.map(t,n)):"function"==typeof n?d.map(e,function(t,e){return n("category"===i.type?r.getLabel(t):t,e)},this):t},t.exports=s},function(t,e,i){"use strict";var l=i(3),h=i(8),n=l.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),r=l.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),o=l.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,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,h=Math.asin(s/a),c=Math.cos(h)*a,u=Math.sin(h),d=Math.cos(h);t.arc(i,l,a,Math.PI-h,2*Math.PI+h);var f=.6*a,p=.7*a;t.bezierCurveTo(i+c-u*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+u*f,l+s+d*f,i-c,l+s),t.closePath()}}),a=l.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),s={line:l.Line,rect:l.Rect,roundRect:l.Rect,square:l.Rect,circle:l.Circle,diamond:r,pin:o,arrow:a,triangle:n},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.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},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.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},u={};for(var d in s)u[d]=new s[d];var f=l.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&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e){var i=e.symbolType,n=u[i];"none"!==e.symbolType&&(n||(i="rect",n=u[i]),c[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape))}}),p=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty()}},g={createSymbol:function(t,e,i,n,r,o){var a=0===t.indexOf("empty");a&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var s;return s=0===t.indexOf("image://")?new l.Image({style:{image:t.slice(8),x:e,y:i,width:n,height:r}}):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new h(e,i,n,r)):new f({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),s.__isEmptyBrush=a,s.setColor=p,s.setColor(o),s}};t.exports=g},function(t,e,i){function n(){this.group=new a,this.uid=s.getUID("viewChart")}function o(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i<t.childCount();i++)o(t.childAt(i),e)}function r(t,e,i){if(null!=e.dataIndex){var n=t.getItemGraphicEl(e.dataIndex);o(n,i)}else if(e.name){var r=t.indexOfName(e.name),n=t.getItemGraphicEl(r);o(n,i)}else t.eachItemGraphicEl(function(t){o(t,i)})}var a=i(26),s=i(41),l=i(20);n.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){r(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){r(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){}};var h=n.prototype;h.updateView=h.updateLayout=h.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},l.enableClassExtend(n),l.enableClassManagement(n,{registerWhenExtend:!0}),t.exports=n},function(t,e,i){var o=i(1),n=i(55),h=i(8),a=function(t){t=t||{},n.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,type:"group",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.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},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.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(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 e=this.__zr,i=this.__storage,n=this._children,r=o.indexOf(n,t);return 0>r?this:(n.splice(r,1),t.parent=null,i&&(i.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i.length;e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),t.parent=null;return i.length=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;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.length;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.length;e++){var i=this._children[e];t.delFromMap(i.id),i instanceof a&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new h(0,0,0,0),n=t||this._children,r=[],o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(i.copy(s),i.applyTransform(l),e=e||i.clone(),e.union(i)):(e=e||s.clone(),e.union(s))}}return e||i}},o.inherits(a,n),t.exports=a},function(t,e,i){"use strict";var w=i(18),m=i(5),v=i(64),y=i(8),x={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_=[],b=[],M=[],S=[],A=Math.min,T=Math.max,C=Math.cos,I=Math.sin,k=Math.sqrt,s="undefined"!=typeof Float32Array,n=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};n.prototype={constructor:n,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum: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(x.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(x.L,t,e),this._ctx&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),this._xi=t,this._yi=e,this},bezierCurveTo:function(t,e,i,n,r,o){return this.addData(x.C,t,e,i,n,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,o):this._ctx.bezierCurveTo(t,e,i,n,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData(x.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,o){return this.addData(x.A,t,e,i,i,n,r-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=C(r)*i+t,this._xi=I(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(x.R,t,e,i,n),this},closePath:function(){this.addData(x.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.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;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.length;this.data&&this.data.length==e||!s||(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.length,i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();s&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},addData:function(t){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var i=0;i<arguments.length;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,n,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,h=this._yi,c=t-l,u=e-h,d=k(c*c+u*u),f=l,p=h,g=a.length;for(c/=d,u/=d,0>o&&(o=r+o),o%=r,f-=o*c,p-=o*u;c>=0&&t>=f||0>c&&f>t;)n=this._dashIdx,i=a[n],f+=c*i,p+=u*i,this._dashIdx=(n+1)%g,c>0&&l>f||0>c&&f>l||s[n%2?"moveTo":"lineTo"](c>=0?A(f,t):T(f,t),u>=0?A(p,e):T(p,e));c=f-t,u=p-e,this._dashOffset=-k(c*c+u*u)},_dashedBezierTo:function(t,e,i,n,r,o){var a,s,l,h,c,u=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=w.cubicAt,y=0,x=this._dashIdx,_=f.length,b=0;for(0>d&&(d=u+d),d%=u,a=0;1>a;a+=.1)s=v(g,t,i,r,a+.1)-v(g,t,i,r,a),l=v(m,e,n,o,a+.1)-v(m,e,n,o,a),y+=k(s*s+l*l);for(;_>x&&(b+=f[x],!(b>d));x++);for(a=(b-d)/y;1>=a;)h=v(g,t,i,r,a),c=v(m,e,n,o,a),x%2?p.moveTo(h,c):p.lineTo(h,c),a+=f[x]/y,x=(x+1)%_;x%2!==0&&p.lineTo(r,o),s=r-h,l=o-c,this._dashOffset=-k(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var r=i,o=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,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,s&&(this.data=new Float32Array(t)))},getBoundingRect:function(){_[0]=_[1]=M[0]=M[1]=Number.MAX_VALUE,b[0]=b[1]=S[0]=S[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,r=0,o=0;o<t.length;){var a=t[o++];switch(1==o&&(e=t[o],i=t[o+1],n=e,r=i),a){case x.M:n=t[o++],r=t[o++],e=n,i=r,M[0]=n,M[1]=r,S[0]=n,S[1]=r;break;case x.L:v.fromLine(e,i,t[o],t[o+1],M,S),e=t[o++],i=t[o++];break;case x.C:v.fromCubic(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],M,S),e=t[o++],i=t[o++];break;case x.Q:v.fromQuadratic(e,i,t[o++],t[o++],t[o],t[o+1],M,S),e=t[o++],i=t[o++];break;case x.A:var s=t[o++],l=t[o++],h=t[o++],c=t[o++],u=t[o++],d=t[o++]+u,f=(t[o++],1-t[o++]);1==o&&(n=C(u)*h+s,r=I(u)*c+l),v.fromArc(s,l,h,c,u,d,f,M,S),e=C(d)*h+s,i=I(d)*c+l;break;case x.R:n=e=t[o++],r=i=t[o++];var p=t[o++],g=t[o++];v.fromLine(n,r,n+p,r+g,M,S);break;case x.Z:e=n,i=r}m.min(_,_,M),m.max(b,b,S)}return 0===o&&(_[0]=_[1]=b[0]=b[1]=0),new y(_[0],_[1],b[0]-_[0],b[1]-_[1])},rebuildPath:function(t){for(var e=this.data,i=0;i<this._len;){var n=e[i++];switch(n){case x.M:t.moveTo(e[i++],e[i++]);break;case x.L:t.lineTo(e[i++],e[i++]);break;case x.C:t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case x.Q:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case x.A:var r=e[i++],o=e[i++],a=e[i++],s=e[i++],l=e[i++],h=e[i++],c=e[i++],u=e[i++],d=a>s?a:s,f=a>s?1:a/s,p=a>s?s/a:1,g=Math.abs(a-s)>.001;g?(t.translate(r,o),t.rotate(c),t.scale(f,p),t.arc(0,0,d,l,l+h,1-u),t.scale(1/f,1/p),t.rotate(-c),t.translate(-r,-o)):t.arc(r,o,d,l,l+h,1-u);break;case x.R:t.rect(e[i++],e[i++],e[i++],e[i++]);break;case x.Z:t.closePath()}}}},n.CMD=x,t.exports=n},function(t,e){"use strict";function i(){this._coordinateSystems=[]}var o={};i.prototype={constructor:i,create:function(t,e){var i=[];for(var n in o){var r=o[n].create(t,e);r&&(i=i.concat(r))}this._coordinateSystems=i},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i.length;n++)i[n].update&&i[n].update(t,e)}},i.register=function(t,e){o[t]=e},i.get=function(t){return o[t]},t.exports=i},function(t,e){"use strict";var i={};t.exports={register:function(t,e){i[t]=e},get:function(t){return i[t]}}},function(t,e,i){var a=i(1);t.exports=function(o){for(var t=0;t<o.length;t++)o[t][1]||(o[t][1]=o[t][0]);return function(t){for(var e={},i=0;i<o.length;i++){var n=o[i][1];if(!(t&&a.indexOf(t,n)>=0)){var r=this.getShallow(n);null!=r&&(e[o[i][0]]=r)}}return e}}},function(t,e,i){function n(t,e,i,n){if(!e)return t;var r=h(e[0]),o=c.isArray(r)&&r.length||1;i=i||[],n=n||"extra";for(var a=0;o>a;a++)if(!t[a]){var s=i[a]||n+(a-i.length);t[a]=l(e,a)?{type:"ordinal",name:s}:s}return t}function l(t,e){for(var i=0,n=t.length;n>i;i++){var r=h(t[i]);if(!c.isArray(r))return!1;var r=r[e];if(null!=r&&isFinite(r))return!1;if(c.isString(r)&&"-"!==r)return!0}return!1}function h(t){return c.isArray(t)?t:c.isObject(t)?t.value:t}var c=i(1);t.exports=n},function(t,e,i){function n(){this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var r=i(20),o=n.prototype;o.parse=function(t){return t},o.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},o.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},o.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},o.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},o.getExtent=function(){return this._extent.slice()},o.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},o.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e.length;i++)t.push(this.getLabel(e[i]));return t},r.enableClassExtend(n),r.enableClassManagement(n,{registerWhenExtend:!0}),t.exports=n},function(t,e,i){"use strict";function s(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function n(t,e){if(e=e||window.event,null!=e.zrX)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var r="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];if(r){var o=s(t);e.zrX=r.clientX-o.left,e.zrY=r.clientY-o.top}}else{var a=s(t);e.zrX=e.clientX-a.left,e.zrY=e.clientY-a.top,e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3}return e}function r(t,e,i){l?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){l?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=i(21),l="undefined"!=typeof window&&!!window.addEventListener,h=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};t.exports={normalizeEvent:n,addEventListener:r,removeEventListener:o,stop:h,Dispatcher:a}},function(t,e,i){"use strict";var n=i(3),r=i(1);i(51),i(96),i(2).extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new n.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})},function(t,e,i){function n(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new o(t.style),this._rect=null,this.__clipPaths=[]}var r=i(1),o=i(142),a=i(55),s=i(66);n.prototype={constructor:n,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t){},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.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this}},r.inherits(n,a),r.mixin(n,s),t.exports=n},function(t,e,i){"use strict";function n(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function f(t){var e=n(t);return null!=e&&!a.isArray(y(e))}function r(t,e,i){t=t||[];var n=e.get("coordinateSystem"),r=_[n],o=v.get(n),a=r&&r(t,e,i),s=a&&a.dimensions;s||(s=o&&o.dimensions||["x","y"],s=m(s,t,s.concat(["value"])));var l=a&&a.categoryAxisModel,h="ordinal"===s[0].type?0:"ordinal"===s[1].type?1:-1,c=new g(s,e),u=p(a,t),d=l&&f(t)?function(t,e,i,n){return n===h?i:x(y(t),s[n])}:function(t,e,i,n){var r=y(t);return x(r&&r[n],s[n])};return c.initData(t,u,d),c}function u(t){return"category"!==t&&"time"!==t}function d(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function p(t,e){var i=[];if(t&&t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e.length;if(a.isArray(e[0])&&e[0].length>1){i=[];for(var o=0;r>o;o++)i[o]=n[e[o][t.categoryIndex||0]]}else i=n.slice(0)}}return i}var g=i(14),m=i(31),a=i(1),o=i(7),v=i(28),y=o.getDataItemValue,x=o.converDataValue,_={cartesian2d:function(t,e,i){var n=i.getComponent("xAxis",e.get("xAxisIndex")),r=i.getComponent("yAxis",e.get("yAxisIndex")),o=n.get("type"),a=r.get("type"),s=[{name:"x",type:d(o),stackable:u(o)},{name:"y",type:d(a),stackable:u(a)}],l="category"===o;return m(s,t,["x","y","z"]),{dimensions:s,categoryIndex:l?0:1,categoryAxisModel:l?n:"category"===a?r:null}},polar:function(t,e,i){var n=e.get("polarIndex")||0,r=function(t){return t.get("polarIndex")===n},o=i.findComponents({mainType:"angleAxis",filter:r})[0],a=i.findComponents({mainType:"radiusAxis",filter:r})[0],s=a.get("type"),l=o.get("type"),h=[{name:"radius",type:d(s),stackable:u(s)},{name:"angle",type:d(l),stackable:u(l)}],c="category"===l;return m(h,t,["radius","angle","value"]),{dimensions:h,categoryIndex:c?1:0,categoryAxisModel:c?o:"category"===s?a:null}},geo:function(t,e,i){return{dimensions:m([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};t.exports=r},function(t,e,i){var s=i(4),n=i(9),r=i(32),l=Math.floor,h=Math.ceil,o=r.extend({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.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,e=this._extent,i=[],n=1e4;if(t){var r=this._niceExtent;e[0]<r[0]&&i.push(e[0]);for(var o=r[0];o<=r[1];)if(i.push(o),o=s.round(o+t),i.length>n)return[];e[1]>r[1]&&i.push(e[1])}return i},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e.length;i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return n.addCommas(t)},niceTicks:function(t){t=t||5;var e=this._extent,i=e[1]-e[0];if(isFinite(i)){0>i&&(i=-i,e.reverse());var n=s.nice(i/t,!0),r=[s.round(h(e[0]/n)*n),s.round(l(e[1]/n)*n)];this._interval=n,this._niceExtent=r}},niceExtent:function(t,e,i){var n=this._extent;if(n[0]===n[1])if(0!==n[0]){var r=n[0]/2;n[0]-=r,n[1]+=r}else n[1]=1;var o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.niceTicks(t);var a=this._interval;e||(n[0]=s.round(l(n[0]/a)*a)),i||(n[1]=s.round(h(n[1]/a)*a))}});o.create=function(){return new o},t.exports=o},function(t,e,i){function n(t){this.group=new u.Group,this._symbolCtor=t||r}function c(t,e,i){var n=t.getItemLayout(e);return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(i&&i(e))&&"none"!==t.getItemVisual(e,"symbol")}var u=i(3),r=i(47),o=n.prototype;o.updateData=function(r,o){var a=this.group,s=r.hostModel,l=this._data,h=this._symbolCtor;r.diff(l).add(function(t){var e=r.getItemLayout(t);if(c(r,t,o)){var i=new h(r,t);i.attr("position",e),r.setItemGraphicEl(t,i),a.add(i)}}).update(function(t,e){var i=l.getItemGraphicEl(e),n=r.getItemLayout(t);return c(r,t,o)?(i?(i.updateData(r,t),u.updateProps(i,{position:n},s)):(i=new h(r,t),i.attr("position",n)),a.add(i),void r.setItemGraphicEl(t,i)):void a.remove(i)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&e.fadeOut(function(){a.remove(e)})}).execute(),this._data=r},o.updateLayout=function(){var i=this._data;i&&i.eachItemGraphicEl(function(t,e){t.attr("position",i.getItemLayout(e))})},o.remove=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},t.exports=n},function(t,e,i){function r(e){var i={};return c(["start","end","startValue","endValue"],function(t){i[t]=e[t]}),i}function n(t,e,i,n){null!=i[e]&&null==i[t]&&(n[t]=null)}var s=i(1),o=i(15),a=i(2),l=i(7),h=i(167),c=s.each,u=l.eachAxisDim,d=a.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,angleAxisIndex:null,radiusAxisIndex:null,filterMode:"filter",throttle:100,start:0,end:100,startValue:null,endValue:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel;var n=r(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=r(t);s.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;o.canvasSupported||(e.realtime=!1),n("start","startValue",t,e),n("end","endValue",t,e),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var a=this._axisProxies;this.eachTargetAxis(function(t,e,i,n){var r=this.dependentModels[t.axis][e],o=r.__dzAxisProxy||(r.__dzAxisProxy=new h(t.name,e,this,n));a[t.name+"_"+e]=o},this)},_resetTarget:function(){var i=this.option,t=this._judgeAutoMode();u(function(t){var e=t.axisIndex;i[e]=l.normalizeToArray(i[e])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,i=!1;u(function(t){null!=e[t.axisIndex]&&(i=!0)},this);var t=e.orient;return null==t&&i?"orient":i?void 0:(null==t&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var o=!0,t=this.get("orient",!0),a=this.option;if(o){var e="vertical"===t?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[e.axis].length&&(a[e.axisIndex]=[0],o=!1)}o&&u(function(t){if(o){var e=[],i=this.dependentModels[t.axis];if(i.length&&!e.length)for(var n=0,r=i.length;r>n;n++)"category"===i[n].get("type")&&e.push(n);a[t.axisIndex]=e,e.length&&(o=!1)}},this),o&&this.ecModel.eachSeries(function(n){this._isSeriesHasAllAxesTypeOf(n,"value")&&u(function(t){var e=a[t.axisIndex],i=n.get(t.axisIndex);s.indexOf(e,i)<0&&e.push(i)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(t){!e&&(e=t.name)},this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(n,r){var o=!0;return u(function(t){var e=n.get(t.axisIndex),i=this.dependentModels[t.axis][e];i&&i.get("type")===r||(o=!1)},this),o},getFirstTargetAxisModel:function(){var i;return u(function(t){if(null==i){var e=this.get(t.axisIndex);e.length&&(i=this.dependentModels[t.axis][e[0]])}},this),i},eachTargetAxis:function(i,n){var r=this.ecModel;u(function(e){c(this.get(e.axisIndex),function(t){i.call(n,e,t,this,r)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(e){c(["start","end","startValue","endValue"],function(t){this.option[t]=e[t]},this)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}});t.exports=d},function(t,e,i){var n=i(54);t.exports=n.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetInfo:function(){function a(t,e,i,n){for(var r,o=0;o<i.length;o++)if(i[o].model===t){r=i[o];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var t=this.dataZoomModel,s=this.ecModel,l=[],h=[],c=[];return t.eachTargetAxis(function(t,e){var i=s.getComponent(t.axis,e);if(i){c.push(i);var n=i.get("gridIndex"),r=i.get("polarIndex");if(null!=n){var o=s.getComponent("grid",n);a(o,i,l,n)}else if(null!=r){var o=s.getComponent("polar",r);a(o,i,h,r)}}},this),{cartesians:l,polars:h,axisModels:c}}})},function(t,e,i){var p=i(1),n=i(20),a=n.parseClassType,r=0,o={},s="_";o.getUID=function(t){return[t||"",r++,Math.random()].join(s)},o.enableSubTypeDefaulter=function(r){var o={};return r.registerSubTypeDefaulter=function(t,e){t=a(t),o[t.main]=e},r.determineSubType=function(t,e){var i=e.type;if(!i){var n=a(t).main;r.hasSubTypes(t)&&o[n]&&(i=o[n](e))}return i},r},o.enableTopologicalTravel=function(t,s){function f(r){var o={},a=[];return p.each(r,function(i){var n=l(o,i),t=n.originalDeps=s(i),e=h(t,r);n.entryCount=e.length,0===n.entryCount&&a.push(i),p.each(e,function(t){p.indexOf(n.predecessor,t)<0&&n.predecessor.push(t);var e=l(o,t);p.indexOf(e.successor,t)<0&&e.successor.push(i)})}),{graph:o,noEntryList:a}}function l(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function h(t,e){var i=[];return p.each(t,function(t){p.indexOf(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,i,n){function r(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function o(t){h[t]=!0,r(t)}if(t.length){var a=f(e),s=a.graph,l=a.noEntryList,h={};for(p.each(t,function(t){h[t]=!0});l.length;){var c=l.pop(),u=s[c],d=!!h[c];d&&(i.call(n,c,u.originalDeps.slice()),delete h[c]),p.each(u.successor,d?o:r)}p.each(h,function(){throw new Error("Circle dependency may exists")})}}},t.exports=o},function(t,e){var i=1;"undefined"!=typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n={debugMode:0,devicePixelRatio:i};t.exports=n},function(t,e,i){function o(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var n=i(4),a=n.linearMap,r=i(1),s=[0,1],l=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};l.prototype={constructor:l,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.contain(this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return n.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),o(i,n.count())),a(t,s,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),o(i,n.count()));var r=a(t,i,s,e);return this.scale.scale(r)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],i=0;i<t.length;i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e.length;n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this.getExtent(),e=[],i=this.scale.count(),n=t[0],r=t[1],o=r-n,a=0;i>a;a++)e.push([o*a/i+n,o*(a+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),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}},t.exports=l},function(t,e){t.exports=function(t,e,i,a,n){a.eachRawSeriesByType(t,function(n){var r=n.getData(),t=n.get("symbol")||e,o=n.get("symbolSize");r.setVisual({legendSymbol:i||t,symbol:t,symbolSize:o}),a.isSeriesFiltered(n)||("function"==typeof o&&r.each(function(t){var e=n.getRawValue(t),i=n.getDataParams(t);r.setItemVisual(t,"symbolSize",o(e,i))}),r.each(function(t){var e=r.getItemModel(t),i=e.get("symbol",!0),n=e.get("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}},function(t,e,i){var n=i(42);t.exports=function(){if(0!==n.debugMode)if(1==n.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(n.debugMode>1)for(var t in arguments)console.log(arguments[t])}},function(t,e,i){function n(t){r.call(this,t)}var r=i(35),o=i(8),a=i(1),f=i(60),s=i(140),p=new s(50);n.prototype={constructor:n,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e="string"==typeof n?this._image:n,!e&&n){var r=p.get(n);if(!r)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<r.pending.length;t++)r.pending[t].dirty()},r={image:e,pending:[this]},e.src=n,p.put(n,r),void(this._image=e);if(e=r.image,this._image=e,!e.width||!e.height)return void r.pending.push(this)}if(e){var o=i.width||e.width,a=i.height||e.height,s=i.x||0,l=i.y||0;if(!e.width||!e.height)return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t.beginPath(),f.buildPath(t,i),t.clip()),i.sWidth&&i.sHeight){var h=i.sx||0,c=i.sy||0;t.drawImage(e,h,c,i.sWidth,i.sHeight,s,l,o,a)}else if(i.sx&&i.sy){var h=i.sx,c=i.sy,u=o-h,d=a-c;t.drawImage(e,h,c,u,d,s,l,o,a)}else t.drawImage(e,s,l,o,a);null==i.width&&(i.width=o),null==i.height&&(i.height=a),null!=i.text&&this.drawRectText(t,this.getBoundingRect()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new o(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(n,r),t.exports=n},function(t,e,i){function _(t){return b.isArray(t)||(t=[+t,+t]),t}function n(t,e){w.Group.call(this),this.updateData(t,e)}function s(t,e){this.parent.drift(t,e)}var b=i(1),l=i(24),w=i(3),M=i(4),r=n.prototype;r._createSymbol=function(t,e,i){this.removeAll();var n=e.hostModel,r=e.getItemVisual(i,"color"),o=l.createSymbol(t,-.5,-.5,1,1,r);o.attr({style:{strokeNoScale:!0},z2:100,culling:!0,scale:[0,0]}),o.drift=s;var a=_(e.getItemVisual(i,"symbolSize"));w.initProps(o,{scale:a},n),this._symbolType=t,this.add(o)},r.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},r.getScale=function(){return this.childAt(0).scale},r.highlight=function(){this.childAt(0).trigger("emphasis")},r.downplay=function(){this.childAt(0).trigger("normal")},r.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},r.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},r.updateData=function(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.hostModel,r=_(t.getItemVisual(e,"symbolSize"));if(i!==this._symbolType)this._createSymbol(i,t,e);else{var o=this.childAt(0);w.updateProps(o,{scale:r},n)}this._updateCommon(t,e,r),this._seriesModel=n};var S=["itemStyle","normal"],A=["itemStyle","emphasis"],T=["label","normal"],C=["label","emphasis"];r._updateCommon=function(t,e,i){var n=this.childAt(0),r=t.hostModel,o=t.getItemModel(e),a=o.getModel(S),s=t.getItemVisual(e,"color"),l=o.getModel(A).getItemStyle();n.rotation=o.getShallow("symbolRotate")*Math.PI/180||0;var h=o.getShallow("symbolOffset");if(h){var c=n.position;c[0]=M.parsePercent(h[0],i[0]),c[1]=M.parsePercent(h[1],i[1])}n.setColor(s),b.extend(n.style,a.getItemStyle(["color"]));for(var u,d=o.getModel(T),f=o.getModel(C),p=n.style,g=t.dimensions.slice(),m=g.pop();"ordinal"===(u=t.getDimensionInfo(m).type)||"time"===u;)m=g.pop();d.get("show")?(w.setText(p,d,s),p.text=b.retrieve(r.getFormattedLabel(e,"normal"),t.get(m,e))):p.text="",f.getShallow("show")?(w.setText(l,f,s),l.text=b.retrieve(r.getFormattedLabel(e,"emphasis"),t.get(m,e))):l.text="";var v=_(t.getItemVisual(e,"symbolSize"));if(n.off("mouseover").off("mouseout").off("emphasis").off("normal"),w.setHoverStyle(n,l),o.getShallow("hoverAnimation")){var y=function(){var t=v[1]/v[0];this.animateTo({scale:[Math.max(1.1*v[0],v[0]+3),Math.max(1.1*v[1],v[1]+3*t)]},400,"elasticOut")},x=function(){this.animateTo({scale:v},400,"elasticOut")};n.on("mouseover",y).on("mouseout",x).on("emphasis",y).on("normal",x)}},r.fadeOut=function(t){var e=this.childAt(0);e.style.text="",w.updateProps(e,{scale:[0,0]},this._seriesModel,t)},b.inherits(n,w.Group),t.exports=n},function(t,e,i){function w(t,e,i){var n,r,o=l(e-t.rotation);return h(o)?(r=i>0?"top":"bottom",n="center"):h(o-A)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&A>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,verticalAlign:r}}function u(t,e,i){var n,r,o=l(-t.rotation),a=i[0]>i[1],s="start"===e&&!a||"start"!==e&&a;return h(o-A/2)?(r=s?"bottom":"top",n="center"):h(o-1.5*A)?(r=s?"top":"bottom",n="center"):(r="middle",n=1.5*A>o&&o>A/2?s?"left":"right":s?"right":"left"),{rotation:o,textAlign:n,verticalAlign:r}}var n=i(1),M=i(3),S=i(12),r=i(4),l=r.remRadian,h=r.isRadianAroundZero,A=Math.PI,o=function(t,e){this.opt=e,this.axisModel=t,n.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new M.Group({position:e.position.slice(),rotation:e.rotation})};o.prototype={constructor:o,hasBuilder:function(t){return!!a[t]},add:function(t){a[t].call(this)},getGroup:function(){return this.group}};var a={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent();this.group.add(new M.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:n.extend({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.silent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t.getModel("axisTick"),n=this.opt,r=i.getModel("lineStyle"),o=i.get("length"),a=d(i,n.labelInterval),s=e.getTicksCoords(),l=[],h=0;h<s.length;h++)if(!T(e,h,a)){var c=s[h];l.push(new M.Line(M.subPixelOptimizeLine({shape:{x1:c,y1:0,x2:c,y2:n.tickDirection*o},style:{lineWidth:r.get("width")},silent:!0})))}this.group.add(M.mergePath(l,{style:r.getLineStyle(),z2:2,silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();return i&&n?(i.applyTransform(t.getLocalTransform()),n.applyTransform(e.getLocalTransform()),i.intersect(n)):void 0}var e=this.axisModel;if(e.get("axisLabel.show")){var i=this.opt,n=e.axis,r=e.getModel("axisLabel"),o=r.getModel("textStyle"),a=r.get("margin"),s=n.scale.getTicks(),l=e.getFormattedLabels(),h=i.labelRotation;null==h&&(h=r.get("rotate")||0),h=h*A/180;for(var c=w(i,h,i.labelDirection),u=e.get("data"),d=[],f=0;f<s.length;f++)if(!T(n,f,i.labelInterval)){var p=o;u&&u[f]&&u[f].textStyle&&(p=new S(u[f].textStyle,o,e.ecModel));var g=n.dataToCoord(s[f]),m=[g,i.labelOffset+i.labelDirection*a],v=new M.Text({style:{text:l[f],textAlign:p.get("align",!0)||c.textAlign,textVerticalAlign:p.get("baseline",!0)||c.verticalAlign,textFont:p.getFont(),fill:p.getTextColor()},position:m,rotation:c.rotation,silent:!0,z2:10});d.push(v),this.group.add(v)}if("category"!==n.type){if(e.getMin?e.getMin():e.get("min")){var y=d[0],x=d[1];t(y,x)&&(y.ignore=!0)}if(e.getMax?e.getMax():e.get("max")){var _=d[d.length-1],b=d[d.length-2];t(b,_)&&(_.ignore=!0)}}}},axisName:function(){var t=this.opt,e=this.axisModel,i=this.opt.axisName;if(null==i&&(i=e.get("name")),i){var n,r=e.get("nameLocation"),o=t.nameDirection,a=e.getModel("nameTextStyle"),s=e.get("nameGap")||0,l=this.axisModel.axis.getExtent(),h=l[0]>l[1]?-1:1,c=["start"===r?l[0]-h*s:"end"===r?l[1]+h*s:(l[0]+l[1])/2,"middle"===r?t.labelOffset+o*s:0];n="middle"===r?w(t,t.rotation,o):u(t,r,l),this.group.add(new M.Text({style:{text:i,textFont:a.getFont(),fill:a.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.verticalAlign},position:c,rotation:n.rotation,silent:!0,z2:1}))}}},T=o.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return"ordinal"===r.type&&("function"==typeof i?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},d=o.getInterval=function(t,e){var i=t.get("interval");return null!=i&&"auto"!=i||(i=e),i};t.exports=o},function(t,e,i){function n(t){return a.isObject(t)&&null!=t.value?t.value:t}function r(){return"category"===this.get("type")&&a.map(this.get("data"),n)}function o(){return s.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var a=i(1),s=i(23);t.exports={getFormattedLabels:o,getCategories:r}},function(t,e,i){"use strict";function n(t,e){return e.type||(e.data?"category":"value")}var r=i(10),o=i(1),a=i(61),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},getMin:function(){var t=this.option;return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this.option;return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});o.merge(s.prototype,i(49));var l={gridIndex:0};a("x",s,n,l),a("y",s,n,l),t.exports=s},function(t,e,i){function d(t,e,i){return i.getComponent("grid",t.get("gridIndex"))===e}function o(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,o=n.length;o>40&&(r=Math.ceil(o/40));for(var a=0;o>a;a+=r)if(!t.isLabelIgnored(a)){var s=i.getTextRect(n[a]);e?e.union(s):e=s}return e}function a(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function s(t,e){var i=t.getExtent(),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 l=i(11),u=i(23),n=i(1),f=i(107),p=i(105),g=n.each,h=u.ifAxisCrossZero,c=u.niceScaleExtent;i(108);var r=a.prototype;r.type="grid",r.getRect=function(){return this._rect},r.update=function(t,e){function i(t){var e=r[t];for(var i in e){var n=e[i];if(n&&("category"===n.type||!h(n)))return!0}return!1}var r=this._axesMap;this._updateScale(t,this._model),g(r.x,function(t){c(t,t.model)}),g(r.y,function(t){c(t,t.model)}),g(r.x,function(t){i("y")&&(t.onZero=!1)}),g(r.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this._model,e)},r.resize=function(t,e){function i(){g(n,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),s(t,e?r.x:r.y)})}var r=l.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var n=this._axesList;i(),t.get("containLabel")&&(g(n,function(t){if(!t.model.get("axisLabel.inside")){var e=o(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n)}}}),i())},r.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]}},r.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},r._initCartesian=function(a,s,t){function e(o){return function(t,e){if(d(t,a,s)){var i=t.get("position");"x"===o?("top"!==i&&"bottom"!==i&&(i="bottom"),l[i]&&(i="top"===i?"bottom":"top")):("left"!==i&&"right"!==i&&(i="left"),l[i]&&(i="left"===i?"right":"left")),l[i]=!0;var n=new p(o,u.createScaleByModel(t),[0,0],t.get("type"),i),r="category"===n.type;n.onBand=r&&t.get("boundaryGap"),n.inverse=t.get("inverse"),n.onZero=t.get("axisLine.onZero"),t.axis=n,n.model=t,n.index=e,this._axesList.push(n),h[o][e]=n,c[o]++}}}var l={left:!1,right:!1,top:!1,bottom:!1},h={x:{},y:{}},c={x:0,y:0};return s.eachComponent("xAxis",e("x"),this),s.eachComponent("yAxis",e("y"),this),c.x&&c.y?(this._axesMap=h,void g(h.x,function(r,o){g(h.y,function(t,e){var i="x"+o+"y"+e,n=new f(i);n.grid=this,this._coordsMap[i]=n,this._coordsList.push(n),n.addAxis(r),n.addAxis(t)},this)},this)):(this._axesMap={},void(this._axesList=[]))},r._updateScale=function(h,c){function u(e,i,t){g(t.coordDimToDataDim(i.dim),function(t){i.scale.unionExtent(e.getDataExtent(t,"ordinal"!==i.scale.type))})}n.each(this._axesList,function(t){t.scale.setExtent(1/0,-(1/0))}),h.eachSeries(function(t){if("cartesian2d"===t.get("coordinateSystem")){var e=t.get("xAxisIndex"),i=t.get("yAxisIndex"),n=h.getComponent("xAxis",e),r=h.getComponent("yAxis",i);if(!d(n,c,h)||!d(r,c,h))return;var o=this.getCartesian(e,i),a=t.getData(),s=o.getAxis("x"),l=o.getAxis("y");"list"===a.type&&(u(a,s,t),u(a,l,t))}},this)},a.create=function(r,n){var o=[];return r.eachComponent("grid",function(t,e){var i=new a(t,r,n);i.name="grid_"+e,i.resize(t,n),t.coordinateSystem=i,o.push(i)}),r.eachSeries(function(t){if("cartesian2d"===t.get("coordinateSystem")){var e=t.get("xAxisIndex"),i=r.getComponent("xAxis",e),n=o[i.get("gridIndex")];t.coordinateSystem=n.getCartesian(e,t.get("yAxisIndex"))}}),o},a.dimensions=f.prototype.dimensions,i(28).register("cartesian2d",a),t.exports=a},function(t,e){"use strict";function r(t){return t}function i(t,e,i,n){this._old=t,this._new=e,this._oldKeyGetter=i||r,this._newKeyGetter=n||r}function c(t,e,i){for(var n=0;n<t.length;n++){var r=i(t[n]),o=e[r];null==o?e[r]=n:(o.length||(e[r]=o=[o]),o.push(n))}}i.prototype={constructor:i,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,i=this._new,n=this._oldKeyGetter,r=this._newKeyGetter,o={},a={};for(c(e,o,n),c(i,a,r),t=0;t<e.length;t++){var s=n(e[t]),l=a[s];if(null!=l){var h=l.length;h?(1===h&&(a[s]=null),l=l.unshift()):a[s]=null,this._update&&this._update(l,t)}else this._remove&&this._remove(t)}for(var s in a)if(a.hasOwnProperty(s)){var l=a[s];if(null==l)continue;if(l.length)for(var t=0,h=l.length;h>t;t++)this._add&&this._add(l[t]);else this._add&&this._add(l)}}},t.exports=i},function(t,e){t.exports=function(t,e,i){e.eachSeriesByType(t,function(t){var r=t.getData(),o=t.coordinateSystem,e=o.dimensions;r.each(e,function(t,e,i){var n;n=isNaN(t)||isNaN(e)?[NaN,NaN]:o.dataToPoint([t,e]),r.setItemLayout(i,n)},!0)})}},function(t,e,i){var n=i(26),r=i(41),o=i(20),a=function(){this.group=new n,this.uid=r.getUID("viewComponent")};a.prototype={constructor:a,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){},o.enableClassExtend(a),o.enableClassManagement(a,{registerWhenExtend:!0}),t.exports=a},function(t,e,i){"use strict";var n=i(58),r=i(21),o=i(77),a=i(154),s=i(1),l=function(t){o.call(this,t),r.call(this,t),a.call(this,t),this.id=t.id||n()};l.prototype={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.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"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.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.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.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,a),s.mixin(l,o),s.mixin(l,r),t.exports=l},function(t,e,i){function r(t,e){return t[e]}function o(t,e,i){t[e]=i}function O(t,e,i){return(e-t)*i+t}function E(t,e,i){return i>.5?e:t}function R(t,e,i,n,r){var o=t.length;if(1==r)for(var a=0;o>a;a++)n[a]=O(t[a],e[a],i);else for(var s=t[0].length,a=0;o>a;a++)for(var l=0;s>l;l++)n[a][l]=O(t[a][l],e[a][l],i)}function B(t,e,i){var n=t.length,r=e.length;if(n!==r){var o=n>r;if(o)t.length=r;else for(var a=n;r>a;a++)t.push(1===i?e[a]:s.call(e[a]))}}function N(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var o=t[0].length,r=0;n>r;r++)for(var a=0;o>a;a++)if(t[r][a]!==e[r][a])return!1;return!0}function V(t,e,i,n,r,o,a,s,l){var h=t.length;if(1==l)for(var c=0;h>c;c++)s[c]=F(t[c],e[c],i[c],n[c],r,o,a);else for(var u=t[0].length,c=0;h>c;c++)for(var d=0;u>d;d++)s[c][d]=F(t[c][d],e[c][d],i[c][d],n[c][d],r,o,a)}function F(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function a(t){if(H(t)){var e=t.length;if(H(t[0])){for(var i=[],n=0;e>n;n++)i.push(s.call(t[n]));return i}return s.call(t)}return t}function G(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function l(t,e,i,n,o){var a=t._getter,s=t._setter,l="spline"===e,h=n.length;if(h){var r,c=n[0].value,u=H(c),d=!1,f=!1,p=u&&H(c[0])?2:1;n.sort(function(t,e){return t.time-e.time}),r=n[h-1].time;for(var g=[],m=[],v=n[0].value,y=!0,x=0;h>x;x++){g.push(n[x].time/r);var _=n[x].value;if(u&&N(_,v,p)||!u&&_===v||(y=!1),v=_,"string"==typeof _){var b=W.parse(_);b?(_=b,d=!0):f=!0}m.push(_)}if(!y){if(u){for(var w=m[h-1],x=0;h-1>x;x++)B(m[x],w,p);B(a(t._target,o),w,p)}var M,S,A,T,C,I,k=0,L=0;if(d)var D=[0,0,0,0];var P=function(t,e){var i;if(L>e){for(M=Math.min(k+1,h-1),i=M;i>=0&&!(g[i]<=e);i--);i=Math.min(i,h-2)}else{for(i=k;h>i&&!(g[i]>e);i++);i=Math.min(i-1,h-2)}k=i,L=e;var n=g[i+1]-g[i];if(0!==n)if(S=(e-g[i])/n,l)if(T=m[i],A=m[0===i?i:i-1],C=m[i>h-2?h-1:i+1],I=m[i>h-3?h-1:i+2],u)V(A,T,C,I,S,S*S,S*S*S,a(t,o),p);else{var r;if(d)r=V(A,T,C,I,S,S*S,S*S*S,D,1),r=G(D);else{if(f)return E(T,C,S);r=F(A,T,C,I,S,S*S,S*S*S)}s(t,o,r)}else if(u)R(m[i],m[i+1],S,a(t,o),p);else{var r;if(d)R(m[i],m[i+1],S,D,1),r=G(D);else{if(f)return E(m[i],m[i+1],S);r=O(m[i],m[i+1],S)}s(t,o,r)}},z=new Z({target:t._target,life:r,loop:t._loop,delay:t._delay,onframe:P,ondestroy:i});return e&&"spline"!==e&&(z.easing=e),z}}}var Z=i(132),W=i(22),n=i(1),H=n.isArrayLike,s=Array.prototype.slice,h=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||r,this._setter=n||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={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:a(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.length=0;for(var t=this._doneList,e=t.length,i=0;e>i;i++)t[i].call(this)},start:function(t){var e,n=this,i=0,r=function(){i--,i||n._doneCallback()};for(var o in this._tracks){var a=l(this,t,r,this._tracks[o],o);a&&(this._clipList.push(a),i++,this.animation&&this.animation.addClip(a),e=a)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return i||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},t.exports=h},function(t,e){var i=2*Math.PI;t.exports={normalizeRadian:function(t){return t%=i,0>t&&(t+=i),t}}},function(t,e){var i=2311;t.exports=function(){return"zr_"+i++}},function(t,e,i){var d=i(144),f=i(143);t.exports={buildPath:function(t,e,i){var n=e.points,r=e.smooth;if(n&&n.length>=2){if(r&&"spline"!==r){var o=f(n,r,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var a=n.length,s=0;(i?a:a-1)>s;s++){var l=o[2*s],h=o[2*s+1],c=n[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],c[0],c[1])}}else{"spline"===r&&(n=d(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,u=n.length;u>s;s++)t.lineTo(n[s][0],n[s][1])}i&&t.closePath()}}}},function(t,e){t.exports={buildPath:function(t,e){var i,n,r,o,a=e.x,s=e.y,l=e.width,h=e.height,c=e.r;0>l&&(a+=l,l=-l),0>h&&(s+=h,h=-h),"number"==typeof c?i=n=r=o=c:c instanceof Array?1===c.length?i=n=r=o=c[0]:2===c.length?(i=r=c[0],n=o=c[1]):3===c.length?(i=c[0],n=o=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],o=c[3]):i=n=r=o=0;var u;i+n>l&&(u=i+n,i*=l/u,n*=l/u),r+o>l&&(u=r+o,r*=l/u,o*=l/u),n+r>h&&(u=n+r,n*=h/u,r*=h/u),i+o>h&&(u=i+o,i*=h/u,o*=h/u),t.moveTo(a+i,s),t.lineTo(a+l-n,s),0!==n&&t.quadraticCurveTo(a+l,s,a+l,s+n),t.lineTo(a+l,s+h-r),0!==r&&t.quadraticCurveTo(a+l,s+h,a+l-r,s+h),t.lineTo(a+o,s+h),0!==o&&t.quadraticCurveTo(a,s+h,a,s+h-o),t.lineTo(a,s+i),0!==i&&t.quadraticCurveTo(a,s,a+i,s)}}},function(t,e,i){var n=i(72),l=i(1),r=i(10),h=i(11),o=["value","category","time","log"];t.exports=function(a,t,s,e){l.each(o,function(o){t.extend({type:a+"Axis."+o,mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?h.getLayoutParams(t):{},r=e.getTheme();l.merge(t,r.get(o+"Axis")),l.merge(t,this.getDefaultOption()),t.type=s(a,t),i&&h.mergeLayoutParam(t,n,i)},defaultOption:l.mergeAll([{},n[o+"Axis"],e],!0)})}),r.registerSubTypeDefaulter(a+"Axis",l.curry(s,a))}},function(t,e){t.exports=function(t,e){var r=e.findComponents({mainType:"legend"});r&&r.length&&e.eachSeriesByType(t,function(t){var n=t.getData();n.filterSelf(function(t){for(var e=n.getName(t),i=0;i<r.length;i++)if(!r[i].isSelected(e))return!1;return!0},this)},this)}},function(t,e){t.exports=function(t,e){var h=e.get("color"),c=0;e.eachRawSeriesByType(t,function(t){var a=t.get("color",!0),s=t.getRawData();if(!e.isSeriesFiltered(t)){var l=t.getData();l.each(function(t){var e=l.getItemModel(t),i=l.getRawIndex(t),n=l.getItemVisual(t,"color",!0);if(n)s.setItemVisual(i,"color",n);else{var r=a?a[i%a.length]:h[(i+c)%h.length],o=e.get("itemStyle.normal.color")||r;s.setItemVisual(i,"color",o),l.setItemVisual(t,"color",o)}})}c+=s.count()})}},function(t,e,i){var p=i(5),m=i(18),n={},v=Math.min,y=Math.max,g=Math.sin,x=Math.cos,_=p.create(),b=p.create(),w=p.create(),M=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t.length){var n,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(n=1;n<t.length;n++)r=t[n],o=v(o,r[0]),a=y(a,r[0]),s=v(s,r[1]),l=y(l,r[1]);e[0]=o,e[1]=s,i[0]=a,i[1]=l}},n.fromLine=function(t,e,i,n,r,o){r[0]=v(t,i),r[1]=v(e,n),o[0]=y(t,i),o[1]=y(e,n)};var S=[],A=[];n.fromCubic=function(t,e,i,n,r,o,a,s,l,h){var c,u=m.cubicExtrema,d=m.cubicAt,f=u(t,i,r,a,S);for(l[0]=1/0,l[1]=1/0,h[0]=-(1/0),h[1]=-(1/0),c=0;f>c;c++){var p=d(t,i,r,a,S[c]);l[0]=v(p,l[0]),h[0]=y(p,h[0])}for(f=u(e,n,o,s,A),c=0;f>c;c++){var g=d(e,n,o,s,A[c]);l[1]=v(g,l[1]),h[1]=y(g,h[1])}l[0]=v(t,l[0]),h[0]=y(t,h[0]),l[0]=v(a,l[0]),h[0]=y(a,h[0]),l[1]=v(e,l[1]),h[1]=y(e,h[1]),l[1]=v(s,l[1]),h[1]=y(s,h[1])},n.fromQuadratic=function(t,e,i,n,r,o,a,s){var l=m.quadraticExtremum,h=m.quadraticAt,c=y(v(l(t,i,r),1),0),u=y(v(l(e,n,o),1),0),d=h(t,i,r,c),f=h(e,n,o,u);a[0]=v(t,r,d),a[1]=v(e,o,f),s[0]=y(t,r,d),s[1]=y(e,o,f)},n.fromArc=function(t,e,i,n,r,o,a,s,l){var h=p.min,c=p.max,u=Math.abs(r-o);if(1e-4>u%M&&u>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(_[0]=x(r)*i+t,_[1]=g(r)*n+e,b[0]=x(o)*i+t,b[1]=g(o)*n+e,h(s,_,b),c(l,_,b),r%=M,0>r&&(r+=M),o%=M,0>o&&(o+=M),r>o&&!a?o+=M:o>r&&a&&(r+=M),a){var d=o;o=r,r=d}for(var f=0;o>f;f+=Math.PI/2)f>r&&(w[0]=x(f)*i+t,w[1]=g(f)*n+e,h(s,w,s),c(l,w,l))},t.exports=n},function(t,e,i){var n=i(35),r=i(1),u=i(17),o=function(t){n.call(this,t)};o.prototype={constructor:o,type:"text",brush:function(t){var e=this.style,i=e.x||0,n=e.y||0,r=e.text,o=e.fill,a=e.stroke;if(null!=r&&(r+=""),r){if(t.save(),this.style.bind(t),this.setTransform(t),o&&(t.fillStyle=o),a&&(t.strokeStyle=a),t.font=e.textFont||e.font,t.textAlign=e.textAlign,e.textVerticalAlign){var s=u.getBoundingRect(r,t.font,e.textAlign,"top");switch(t.textBaseline="top",e.textVerticalAlign){case"middle":n-=s.height/2;break;case"bottom":n-=s.height}}else t.textBaseline=e.textBaseline;for(var l=u.measureText("国",t.font).width,h=r.split("\n"),c=0;c<h.length;c++)o&&t.fillText(h[c],i,n),a&&t.strokeText(h[c],i,n),n+=l;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=u.getBoundingRect(t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":i.y-=i.height/2;break;case"bottom":i.y-=i.height}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},r.inherits(o,n),t.exports=o},function(t,e,i){function _(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function b(t,e){t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}var w=i(17),n=i(8),M=new n,r=function(){};r.prototype={constructor:r,drawRectText:function(t,e,i){var n=this.style,r=n.text;if(null!=r&&(r+=""),r){var o,a,s=n.textPosition,l=n.textDistance,h=n.textAlign,c=n.textFont||n.font,u=n.textBaseline,d=n.textVerticalAlign;i=i||w.getBoundingRect(r,c,h,u);var f=this.transform,p=this.invTransform;if(f&&(M.copy(e),M.applyTransform(f),e=M,b(t,p)),s instanceof Array)o=e.x+_(s[0],e.width),a=e.y+_(s[1],e.height),h=h||"left",u=u||"top";else{var g=w.adjustTextPositionOnRect(s,e,i,l);o=g.x,a=g.y,h=h||g.textAlign,u=u||g.textBaseline}if(t.textAlign=h,d){switch(d){case"middle":a-=i.height/2;break;case"bottom":a-=i.height}t.textBaseline="top"}else t.textBaseline=u;var m=n.textFill,v=n.textStroke;m&&(t.fillStyle=m),v&&(t.strokeStyle=v),t.font=c,t.shadowColor=n.textShadowColor,t.shadowBlur=n.textShadowBlur,t.shadowOffsetX=n.textShadowOffsetX,t.shadowOffsetY=n.textShadowOffsetY;for(var y=r.split("\n"),x=0;x<y.length;x++)m&&t.fillText(y[x],o,a),v&&t.strokeText(y[x],o,a),a+=i.lineHeight;f&&b(t,f)}}},t.exports=r},function(t,e,i){function n(t){delete o[t]}var r=i(58),h=i(15),c=i(127),u=i(130),d=i(131),f=!h.canvasSupported,p={canvas:i(129)},o={},a={};a.version="3.0.6",a.init=function(t,e){var i=new s(r(),t,e);return o[i.id]=i,i},a.dispose=function(t){if(t)t.dispose();else{for(var e in o)o[e].dispose();o={}}return a},a.getInstance=function(t){return o[t]},a.registerPainter=function(t,e){p[t]=e};var s=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,r=new u,o=i.renderer;if(f){if(!p.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&p[o]||(o="canvas");var a=new p[o](e,r,i);this.storage=r,this.painter=a,h.node||(this.handler=new c(a.getViewportRoot(),r,a)),this.animation=new d({stage:{update:function(){n._needsRefresh&&n.refreshImmediately()}}}),this.animation.start(),this._needsRefresh;var s=r.delFromMap,l=r.addToMap;r.delFromMap=function(t){var e=r.get(t);s.call(r,t),e&&e.removeSelfFromZr(n)},r.addToMap=function(t){l.call(r,t),t.addSelfToZr(n)}};s.prototype={constructor:s,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter.resize(),this.handler&&this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},toDataURL:function(t,e,i){return this.painter.toDataURL(t,e,i)},pathToImage:function(t,e,i){var n=r();return this.painter.pathToImage(n,t,e,i)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,i){this.handler&&this.handler.on(t,e,i)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,n(this.id)}},t.exports=a},function(t,e,i){var n=i(2),r=i(1);t.exports=function(i,t){r.each(t,function(o){o.update="updateView",n.registerAction(o,function(t,e){var r={};return e.eachComponent({mainType:"series",subType:i,query:t},function(i){i[o.method]&&i[o.method](t.name);var n=i.getData();n.each(function(t){var e=n.getName(t);r[e]=i.isSelected(e)||!1})}),{name:t.name,selected:r}})})}},function(t,e,i){var r=i(1);t.exports={updateSelectedMap:function(){var t=this.option;this._dataOptMap=r.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var e=this._dataOptMap,i=e[t],n=this.get("selectedMode");"single"===n&&r.each(e,function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}},function(t,e,i){function h(t){if(!t.target||!t.target.draggable){var e=t.offsetX,i=t.offsetY,n=this.rect;n&&n.contain(e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function c(t){if(this._dragging&&(s.stop(t.event),"pinch"!==t.gestureEvent)){if(l.isTaken("globalPan",this._zr))return;var e=t.offsetX,i=t.offsetY,n=e-this._x,r=i-this._y;this._x=e,this._y=i;var o=this.target;if(o){var a=o.position;a[0]+=n,a[1]+=r,o.dirty()}s.stop(t.event),this.trigger("pan",n,r)}}function u(t){this._dragging=!1}function d(t){s.stop(t.event);var e=t.wheelDelta>0?1.1:1/1.1;n.call(this,t,e,t.offsetX,t.offsetY)}function f(t){if(!l.isTaken("globalPan",this._zr)){s.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;n.call(this,t,e,t.pinchX,t.pinchY)}}function n(t,e,i,n){var r=this.rect;if(r&&r.contain(i,n)){var o=this.target,a=this.zoomLimit;if(o){var s=o.position,l=o.scale,h=this.zoom=this.zoom||1;h*=e,a&&(h=Math.max(Math.min(a.max,h),a.min));var c=h/this.zoom;this.zoom=h,s[0]-=(i-s[0])*(c-1),s[1]-=(n-s[1])*(c-1),l[0]*=c,l[1]*=c,o.dirty()}this.trigger("zoom",e,i,n)}}function r(e,t,i){this.target=t,this.rect=i,this.zoomLimit,this.zoom,this._zr=e;var n=g.bind,r=n(h,this),o=n(c,this),a=n(u,this),s=n(d,this),l=n(f,this);p.call(this),this.enable=function(t){this.disable(),null==t&&(t=!0),t!==!0&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",o),e.on("mouseup",a)),t!==!0&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",l))},this.disable=function(){e.off("mousedown",r),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var p=i(21),g=i(1),s=i(33),l=i(102);g.mixin(r,p),t.exports=r},function(t,e){t.exports=function(t,e,i,n,r){function o(t,e,i){var n=e.length?e.slice():[e,e];return e[0]>e[1]&&n.reverse(),0>t&&n[0]+t<i[0]&&(t=i[0]-n[0]),t>0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=o(t,e,i),e[0]+=t,e[1]+=t):(t=o(t,e[r],i),e[r]+=t,"push"===n&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}},function(t,e,i){var n=i(1),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o=n.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},r),a=n.defaults({boundaryGap:[0,0],splitNumber:5},r),s=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},a),l=n.defaults({},a);l.scale=!0,t.exports={categoryAxis:o,valueAxis:a,timeAxis:s,logAxis:l}},,function(t,e,i){var s=i(16);t.exports=function(t,o,a){function e(e){var n=[o,"normal","color"],t=a.get("color"),r=e.getData(),i=e.get(n)||t[e.seriesIndex%t.length];r.setVisual("color",i),a.isSeriesFiltered(e)||("function"!=typeof i||i instanceof s||r.each(function(t){r.setItemVisual(t,"color",i(e.getDataParams(t)))}),r.each(function(t){var e=r.getItemModel(t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t?a.eachSeriesByType(t,e):a.eachSeries(e)}},function(t,e){t.exports=function(t,e,i,n,r,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var a=e>n?1:-1,s=(o-e)/(n-e),l=s*(i-t)+t;return l>r?a:0}},function(t,e,i){"use strict";var n=i(1),o=i(16),r=function(t,e,i,n,r){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,o.call(this,r)};r.prototype={constructor:r,type:"linear",updateCanvasGradient:function(t,e){for(var i=t.getBoundingRect(),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,o=this.y*i.height+i.y,a=this.y2*i.height+i.y,s=e.createLinearGradient(n,o,r,a),l=this.colorStops,h=0;h<l.length;h++)s.addColorStop(l[h].offset,l[h].color);this.canvasGradient=s}},n.inherits(r,o),t.exports=r},function(t,e,i){"use strict";function a(t){return t>n||-n>t}var s=i(19),r=i(5),o=s.identity,n=5e-5,l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},h=l.prototype;h.transform=null,h.needLocalTransform=function(){return a(this.rotation)||a(this.position[0])||a(this.position[1])||a(this.scale[0]-1)||a(this.scale[1]-1)},h.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;return i||e?(n=n||s.create(),i?this.getLocalTransform(n):o(n),e&&(i?s.mul(n,t.transform,n):s.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||s.create(),void s.invert(this.invTransform,n)):void(n&&o(n))},h.getLocalTransform=function(t){t=t||[],o(t);var e=this.origin,i=this.scale,n=this.rotation,r=this.position;return e&&(t[4]-=e[0],t[5]-=e[1]),s.scale(t,t,i),n&&s.rotate(t,t,n),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=r[0],t[5]+=r[1],t},h.setTransform=function(t){var e=this.transform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])};var c=[];h.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(s.mul(c,t.invTransform,e),e=c);var i=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=this.position,o=this.scale;a(i-1)&&(i=Math.sqrt(i)),a(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(i=-i),e[3]<0&&(n=-n),r[0]=e[4],r[1]=e[5],o[0]=i,o[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/i)}},h.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&r.applyTransform(i,i,n),i},h.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&r.applyTransform(i,i,n),i},t.exports=l},function(t,e,i){"use strict";function n(e){r.each(o,function(t){this[t]=r.bind(e[t],e)},this)}var r=i(1),o=["getDom","getZr","getWidth","getHeight","dispatchAction","on","off","getDataURL","getConnectedDataURL","getModel","getOption"];t.exports=n},function(t,e,i){var n=i(1);i(51),i(80),i(81);var r=i(110),o=i(2);o.registerLayout(n.curry(r,"bar")),o.registerVisualCoding("chart",function(t){t.eachSeriesByType("bar",function(t){var e=t.getData();e.setVisual("legendSymbol","roundRect")})}),i(34)},function(t,e,i){"use strict";var n=i(13),r=i(36);t.exports=n.extend({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return r(t.data,this,e)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(t),n=this.getData(),r=n.getLayout("offset"),o=n.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return i[a]+=r+o/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})},function(t,e,i){"use strict";function f(t,e){var i=t.width>0?1:-1,n=t.height>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t.height)),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t.height-=n*e}var g=i(1),m=i(3);g.extend(i(12).prototype,i(82)),t.exports=i(2).extendChartView({type:"bar",render:function(t,e,i){var n=t.get("coordinateSystem");return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(l,t,e){function o(t,e){var i=h.getItemLayout(t),n=h.getItemModel(t).get(d)||0;f(i,n);var r=new m.Rect({shape:g.extend({},i)});if(u){var o=r.shape,a=c?"height":"width",s={};o[a]=0,s[a]=i[a],m[e?"updateProps":"initProps"](r,{shape:s},l)}return r}var a=this.group,h=l.getData(),s=this._data,i=l.coordinateSystem,n=i.getBaseAxis(),c=n.isHorizontal(),u=l.get("animation"),d=["itemStyle","normal","barBorderWidth"];h.diff(s).add(function(t){if(h.hasValue(t)){var e=o(t);h.setItemGraphicEl(t,e),a.add(e)}}).update(function(t,e){var i=s.getItemGraphicEl(e);if(!h.hasValue(t))return void a.remove(i);i||(i=o(t,!0));var n=h.getItemLayout(t),r=h.getItemModel(t).get(d)||0;f(n,r),m.updateProps(i,{shape:n},l),h.setItemGraphicEl(t,i),a.add(i)}).remove(function(t){var e=s.getItemGraphicEl(t);e&&(e.style.text="",m.updateProps(e,{shape:{width:0}},l,function(){a.remove(e)}))}).execute(),this._updateStyle(l,h,c),this._data=h},_updateStyle:function(u,d,f){function p(t,e,i,n,r){m.setText(t,e,i),t.text=n,"outside"===t.textPosition&&(t.textPosition=r)}d.eachItemGraphicEl(function(t,e){var i=d.getItemModel(e),n=d.getItemVisual(e,"color"),r=d.getItemLayout(e),o=i.getModel("itemStyle.normal"),a=i.getModel("itemStyle.emphasis").getItemStyle();t.setShape("r",o.get("barBorderRadius")||0),t.setStyle(g.defaults({fill:n},o.getBarItemStyle()));var s=f?r.height>0?"bottom":"top":r.width>0?"left":"right",l=i.getModel("label.normal"),h=i.getModel("label.emphasis"),c=t.style;l.get("show")?p(c,l,n,g.retrieve(u.getFormattedLabel(e,"normal"),u.getRawValue(e)),s):c.text="",h.get("show")?p(a,h,n,g.retrieve(u.getFormattedLabel(e,"emphasis"),u.getRawValue(e)),s):a.text="",m.setHoverStyle(t,a)})},remove:function(e,t){var i=this.group;e.get("animation")?this._data&&this._data.eachItemGraphicEl(function(t){t.style.text="",m.updateProps(t,{shape:{width:0}},e,function(){i.remove(t)})}):i.removeAll()}})},function(t,e,i){t.exports={getBarItemStyle:i(30)([["fill","color"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}},function(t,e,i){function d(t,e,i){var n=e.getItemVisual(i,"color"),r=e.getItemVisual(i,"symbol"),o=e.getItemVisual(i,"symbolSize");if("none"!==r){v.isArray(o)||(o=[o,o]);var a=s.createSymbol(r,-o[0]/2,-o[1]/2,o[0],o[1],n);return a.name=t,a}}function c(t){var e=new o({name:"line",style:{strokeNoScale:!0}});return f(e.shape,t),e}function f(t,e){var i=e[0],n=e[1],r=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,r&&(t.cpx1=r[0],t.cpy1=r[1])}function u(t){return"symbol"===t.type&&"arrow"===t.shape.symbolType}function n(){var t=this,e=t.childOfName("line");if(this.__dirty||e.__dirty){var i=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.childOfName("label"),o=e.pointAt(0),a=e.pointAt(e.shape.percent),s=g.sub([],a,o);g.normalize(s,s),i&&(i.attr("position",o),u(i)&&i.attr("rotation",p(a,o))),n&&(n.attr("position",a),u(n)&&n.attr("rotation",p(o,a))),r.attr("position",a);var l,h,c;"end"===r.__position?(l=[5*s[0]+a[0],5*s[1]+a[1]],h=s[0]>.8?"left":s[0]<-.8?"right":"center",c=s[1]>.8?"top":s[1]<-.8?"bottom":"middle"):(l=[5*-s[0]+o[0],5*-s[1]+o[1]],h=s[0]>.8?"right":s[0]<-.8?"left":"center",c=s[1]>.8?"bottom":s[1]<-.8?"top":"middle"),r.attr({style:{textVerticalAlign:r.__verticalAlign||c,textAlign:r.__textAlign||h},position:l})}}function p(t,e){return-Math.PI/2-Math.atan2(e[1]-t[1],e[0]-t[0])}function r(t,e,i,n){m.Group.call(this),this._createLine(t,e,i,n)}var s=i(24),g=i(5),o=i(162),m=i(3),v=i(1),y=i(4),a=r.prototype;a.beforeUpdate=n,a._createLine=function(t,e,i,n){var r=t.hostModel,o=t.getItemLayout(n),a=c(o);a.shape.percent=0,m.initProps(a,{shape:{percent:1}},r),this.add(a);var s=new m.Text({name:"label"});if(this.add(s),e){var l=d("fromSymbol",e,n);this.add(l),this._fromSymbolType=e.getItemVisual(n,"symbol")}if(i){var h=d("toSymbol",i,n);this.add(h),this._toSymbolType=i.getItemVisual(n,"symbol")}this._updateCommonStl(t,e,i,n)},a.updateData=function(t,e,i,n){var r=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(n),s={shape:{}};if(f(s.shape,a),m.updateProps(o,s,r),e){var l=e.getItemVisual(n,"symbol");if(this._fromSymbolType!==l){var h=d("fromSymbol",e,n);this.remove(this.childOfName("fromSymbol")),this.add(h)}this._fromSymbolType=l}if(i){var c=i.getItemVisual(n,"symbol");if(c!==this._toSymbolType){var u=d("toSymbol",i,n);this.remove(this.childOfName("toSymbol")),this.add(u)}this._toSymbolType=c}this._updateCommonStl(t,e,i,n)},a._updateCommonStl=function(t,e,i,n){var r=t.hostModel,o=this.childOfName("line"),a=t.getItemModel(n),s=a.getModel("label.normal"),l=s.getModel("textStyle"),h=a.getModel("label.emphasis"),c=h.getModel("textStyle"),u=y.round(r.getRawValue(n));isNaN(u)&&(u=t.getName(n)),o.setStyle(v.extend({stroke:t.getItemVisual(n,"color")},a.getModel("lineStyle.normal").getLineStyle()));var d=this.childOfName("label");d.setStyle({text:s.get("show")?v.retrieve(r.getFormattedLabel(n,"normal"),u):"",textFont:l.getFont(),fill:l.getTextColor()||t.getItemVisual(n,"color")}),d.hoverStyle={text:h.get("show")?v.retrieve(r.getFormattedLabel(n,"emphasis"),u):"",textFont:c.getFont(),fill:c.getTextColor()},d.__textAlign=l.get("align"),d.__verticalAlign=l.get("baseline"),d.__position=s.get("position"),m.setHoverStyle(this,a.getModel("lineStyle.emphasis").getLineStyle())},a.updateLayout=function(t,e,i,n){var r=t.getItemLayout(n),o=this.childOfName("line");f(o.shape,r),o.dirty(!0)},v.inherits(r,m.Group),t.exports=r},function(t,e,i){function n(t){this._ctor=t||o,this.group=new r.Group}var r=i(3),o=i(83),a=n.prototype;a.updateData=function(n,r,o){var a=this._lineData,s=this.group,i=this._ctor;n.diff(a).add(function(t){var e=new i(n,r,o,t);n.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var i=a.getItemGraphicEl(e);i.updateData(n,r,o,t),n.setItemGraphicEl(t,i),s.add(i)}).remove(function(t){s.remove(a.getItemGraphicEl(t))}).execute(),this._lineData=n,this._fromData=r,this._toData=o},a.updateLayout=function(){var i=this._lineData;i.eachItemGraphicEl(function(t,e){t.updateLayout(i,this._fromData,this._toData,e)},this)},a.remove=function(){this.group.removeAll()},t.exports=n},function(t,e,i){var n=i(1),r=i(2);i(86),i(87),r.registerVisualCoding("chart",n.curry(i(44),"line","circle","line")),r.registerLayout(n.curry(i(53),"line")),r.registerProcessor("statistic",n.curry(i(122),"line")),i(34)},function(t,e,i){"use strict";var n=i(36),r=i(13);t.exports=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return n(t.data,this,e)},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"}},symbol:"emptyCircle",symbolSize:4,showSymbol:!0,animationEasing:"linear"}})},function(t,e,i){"use strict";function A(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function T(t){return"number"==typeof t?t:t?.3:0}function u(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 d(t){return t>=0?1:-1}function C(o,a){var s=o.getBaseAxis(),t=o.getOtherAxis(s),l=s.onZero?0:t.scale.getExtent()[0],h=t.dim,c="x"===h||"radius"===h?1:0;return a.mapArray([h],function(t,e){for(var i,n=a.stackedOn;n&&d(n.get(h,e))===d(t);){i=n;break}var r=[];return r[c]=a.get(s.dim,e),r[1-c]=i?i.get(h,e,!0):l,o.dataToPoint(r)},!0)}function l(t,e){return null!=e.dataIndex?e.dataIndex:null!=e.name?t.indexOfName(e.name):void 0}function n(t,e,i){var n=u(t.getAxis("x")),r=u(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),a=n[0],s=r[0],l=n[1]-a,h=r[1]-s;i.get("clipOverflow")||(o?(s-=h,h*=3):(a-=l,l*=3));var c=new p.Rect({shape:{x:a,y:s,width:l,height:h}});return e&&(c.shape[o?"width":"height"]=0,p.initProps(c,{shape:{width:l,height:h}},i)),c}function r(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),o=r.getExtent(),a=n.getExtent(),s=Math.PI/180,l=new p.Sector({shape:{cx:t.cx,cy:t.cy,r0:o[0],r:o[1],startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-a[0]*s,p.initProps(l,{shape:{endAngle:-a[1]*s}},i)),l}function I(t,e,i){return"polar"===t.type?r(t,e,i):n(t,e,i)}var k=i(1),o=i(38),h=i(47),f=i(88),p=i(3),a=i(89),c=i(25);t.exports=c.extend({type:"line",init:function(){var t=new p.Group,e=new o;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var n=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle.normal"),s=t.getModel("areaStyle.normal"),l=o.mapArray(o.getItemLayout,!0),h="polar"===n.type,c=this._coordSys,u=this._symbolDraw,d=this._polyline,f=this._polygon,p=this._lineGroup,g=t.get("animation"),m=!s.isEmpty(),v=C(n,o),y=t.get("showSymbol"),x=y&&!h&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(o,n),_=this._data;_&&_.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),_.setItemGraphicEl(e,null))}),y||u.remove(),r.add(p),d&&c.type===n.type?(m&&!f?f=this._newPolygon(l,v,n,g):f&&!m&&(p.remove(f),f=this._polygon=null),p.setClipPath(I(n,!1,t)),y&&u.updateData(o,x),o.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),A(this._stackedOnPoints,v)&&A(this._points,l)||(g?this._updateAnimation(o,v,n,i):(d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:v})))):(y&&u.updateData(o,x),d=this._newPolyline(l,n,g),m&&(f=this._newPolygon(l,v,n,g)),p.setClipPath(I(n,!0,t))),d.setStyle(k.defaults(a.getLineStyle(),{stroke:o.getVisual("color"),lineJoin:"bevel"}));var b=t.get("smooth");if(b=T(t.get("smooth")),d.setShape({smooth:b,smoothMonotone:t.get("smoothMonotone")}),f){var w=o.stackedOn,M=0;if(f.style.opacity=.7,f.setStyle(k.defaults(s.getAreaStyle(),{fill:o.getVisual("color"),lineJoin:"bevel"})),w){var S=w.hostModel;M=T(S.get("smooth"))}f.setShape({smooth:b,stackedOnSmooth:M,smoothMonotone:t.get("smoothMonotone")})}this._data=o,this._coordSys=n,this._stackedOnPoints=v,this._points=l},highlight:function(t,e,i,n){var r=t.getData(),o=l(r,n);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);a=new h(r,o,i),a.position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else c.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t.getData(),o=l(r,n);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else c.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new a.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.remove(i),i=new a.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale("ordinal")[0];return i&&i.isLabelIgnored?k.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n){var r=this._polyline,o=this._polygon,a=t.hostModel,s=f(this._data,t,this._stackedOnPoints,e,this._coordSys,i);r.shape.points=s.current,p.updateProps(r,{shape:{points:s.next}},a),o&&(o.setShape({points:s.current,stackedOnPoints:s.stackedOnCurrent}),p.updateProps(o,{shape:{points:s.next,stackedOnPoints:s.stackedOnNext}},a));for(var l=[],h=s.status,c=0;c<h.length;c++){var u=h[c].cmd;if("="===u){var d=t.getItemGraphicEl(h[c].idx1);d&&l.push({el:d,ptIdx:c})}}r.animators&&r.animators.length&&r.animators[0].during(function(){for(var t=0;t<l.length;t++){var e=l[t].el;e.attr("position",r.shape.points[l[t].ptIdx])}})},remove:function(t){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,e){t.__temp&&(i.remove(t),n.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})},function(t,e){function d(t){return t>=0?1:-1}function C(t,e,i){for(var n,r=t.getBaseAxis(),o=t.getOtherAxis(r),a=r.onZero?0:o.scale.getExtent()[0],s=o.dim,l="x"===s||"radius"===s?1:0,h=e.stackedOn,c=e.get(s,i);h&&d(h.get(s,i))===d(c);){n=h;break}var u=[];return u[l]=e.get(r.dim,i),u[1-l]=n?n.get(s,i,!0):a,t.dataToPoint(u)}function I(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}t.exports=function(t,e,i,n,r,o){for(var a=I(t,e),s=[],l=[],h=[],c=[],u=[],d=[],f=[],p=o.dimensions,g=0;g<a.length;g++){var m=a[g],v=!0;switch(m.cmd){case"=":var y=t.getItemLayout(m.idx),x=e.getItemLayout(m.idx1);(isNaN(y[0])||isNaN(y[1]))&&(y=x.slice()),s.push(y),l.push(x),h.push(i[m.idx]),c.push(n[m.idx1]),f.push(e.getRawIndex(m.idx1));break;case"+":var _=m.idx;s.push(r.dataToPoint([e.get(p[0],_,!0),e.get(p[1],_,!0)])),l.push(e.getItemLayout(_).slice()),h.push(C(r,e,_)),c.push(n[_]),f.push(e.getRawIndex(_));break;case"-":var _=m.idx,b=t.getRawIndex(_);b!==_?(s.push(t.getItemLayout(_)),l.push(o.dataToPoint([t.get(p[0],_,!0),t.get(p[1],_,!0)])),h.push(i[_]),c.push(C(o,t,_)),f.push(b)):v=!1}v&&(u.push(m),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var w=[],M=[],S=[],A=[],T=[],g=0;g<d.length;g++){var _=d[g];w[g]=s[_],M[g]=l[_],S[g]=h[_],A[g]=c[_],T[g]=u[_]}return{current:w,next:M,stackedOnCurrent:S,stackedOnNext:A,status:T}}},function(t,e,i){function c(t,e,i,n,r,o,a,s,l,h){for(var c=i,u=0;r>u;u++){var d=e[c];if(c>=n||0>c||isNaN(d[0])||isNaN(d[1]))break;if(c===i)t[o>0?"moveTo":"lineTo"](d[0],d[1]),A(C,d);else if(l>0){var f=c-o,p=c+o,g=.5,m=e[f],v=e[p];if(o>0&&(c===r-1||isNaN(v[0])||isNaN(v[1]))||0>=o&&(0===c||isNaN(v[0])||isNaN(v[1])))A(I,d);else{(isNaN(v[0])||isNaN(v[1]))&&(v=d),b.sub(T,v,m);var y,x;if("x"===h||"y"===h){var _="x"===h?0:1;y=Math.abs(d[_]-m[_]),x=Math.abs(d[_]-v[_])}else y=b.dist(d,m),x=b.dist(d,v);g=x/(x+y),S(I,d,T,-l*(1-g))}w(C,C,s),M(C,C,a),w(I,I,s),M(I,I,a),t.bezierCurveTo(C[0],C[1],I[0],I[1],d[0],d[1]),S(C,d,T,l*g)}else t.lineTo(d[0],d[1]);c+=o}return u}function u(t,e){var i=[1/0,1/0],n=[-(1/0),-(1/0)];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<i[0]&&(i[0]=o[0]),o[1]<i[1]&&(i[1]=o[1]),o[0]>n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:e?i:n,max:e?n:i}}var n=i(6),b=i(5),w=b.min,M=b.max,S=b.scaleAndAdd,A=b.copy,T=[],C=[],I=[];t.exports={Polyline:n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null},style:{fill:null,stroke:"#000"},buildPath:function(t,e){for(var i=e.points,n=0,r=i.length,o=u(i,e.smoothConstraint);r>n;)n+=c(t,i,n,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone)+1}}),Polygon:n.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null},buildPath:function(t,e){for(var i=e.points,n=e.stackedOnPoints,r=0,o=i.length,a=e.smoothMonotone,s=u(i,e.smoothConstraint),l=u(n,e.smoothConstraint);o>r;){var h=c(t,i,r,o,o,1,s.min,s.max,e.smooth,a);c(t,n,r+h-1,o,h,-1,l.min,l.max,e.stackedOnSmooth,a),r+=h+1,t.closePath()}}})}},function(t,e,i){var n=i(1),r=i(2);i(91),i(92),i(68)("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),r.registerVisualCoding("chart",n.curry(i(63),"pie")),r.registerLayout(n.curry(i(94),"pie")),r.registerProcessor("filter",n.curry(i(62),"pie"))},function(t,e,i){"use strict";var r=i(14),n=i(1),o=i(7),a=i(31),s=i(69),l=i(2).extendSeriesModel({type:"series.pie",init:function(t){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(),this._defaultLabelLine(t)},mergeOption:function(t){l.superCall(this,"mergeOption",t),this.updateSelectedMap()},getInitialData:function(t,e){var i=a(["value"],t.data),n=new r(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=l.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){o.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,i=t.labelLine.emphasis;e.show=e.show&&t.label.normal.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:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});n.mixin(l,s),t.exports=l},function(t,e,i){function p(t,e,i,n){var r=e.getData(),o=this.dataIndex,a=r.getName(o),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),r.each(function(t){d(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,i)})}function d(t,e,i,n,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=i?n:0,h=[a*l,s*l];r?t.animate().when(200,{position:h}).start("bounceOut"):t.attr("position",h)}function g(t,e){function i(){o.ignore=o.hoverIgnore,a.ignore=a.hoverIgnore}function n(){o.ignore=o.normalIgnore,a.ignore=a.normalIgnore}v.Group.call(this);var r=new v.Sector({z2:2}),o=new v.Polyline,a=new v.Text;this.add(r),this.add(o),this.add(a),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function m(t,e,i,n,r){var o=n.getModel("textStyle"),a="inside"===r||"inner"===r;return{fill:o.getTextColor()||(a?"#fff":t.getItemVisual(e,"color")),textFont:o.getFont(),text:y.retrieve(t.hostModel.getFormattedLabel(e,i),t.getName(e))}}var v=i(3),y=i(1),n=g.prototype;n.updateData=function(t,e,i){function n(){o.stopAnimation(!0),o.animateTo({shape:{r:l.r+10}},300,"elasticOut")}function r(){o.stopAnimation(!0),o.animateTo({shape:{r:l.r}},300,"elasticOut")}var o=this.childAt(0),a=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),h=y.extend({},l);h.label=null,i?(o.setShape(h),o.shape.endAngle=l.startAngle,v.updateProps(o,{shape:{endAngle:l.endAngle}},a)):v.updateProps(o,{shape:h},a);var c=s.getModel("itemStyle"),u=t.getItemVisual(e,"color");o.setStyle(y.defaults({fill:u},c.getModel("normal").getItemStyle())),o.hoverStyle=c.getModel("emphasis").getItemStyle(),d(this,t.getItemLayout(e),s.get("selected"),a.get("selectedOffset"),a.get("animation")),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),s.get("hoverAnimation")&&o.on("mouseover",n).on("mouseout",r).on("emphasis",n).on("normal",r),this._updateLabel(t,e),v.setHoverStyle(this)},n._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=a.label,l=t.getItemVisual(e,"color");v.updateProps(i,{shape:{points:s.linePoints||[[s.x,s.y],[s.x,s.y],[s.x,s.y]]}},r),v.updateProps(n,{style:{x:s.x,y:s.y}},r),n.attr({style:{textVerticalAlign:s.verticalAlign,textAlign:s.textAlign,textFont:s.font},rotation:s.rotation,origin:[s.x,s.y],z2:10});var h=o.getModel("label.normal"),c=o.getModel("label.emphasis"),u=o.getModel("labelLine.normal"),d=o.getModel("labelLine.emphasis"),f=h.get("position")||c.get("position");n.setStyle(m(t,e,"normal",h,f)),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!c.get("show"),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!d.get("show"),i.setStyle({stroke:l}),i.setStyle(u.getModel("lineStyle").getLineStyle()),n.hoverStyle=m(t,e,"emphasis",c,f),i.hoverStyle=d.getModel("lineStyle").getLineStyle();var p=u.get("smooth");p&&p===!0&&(p=.4),i.setShape({smooth:p})},y.inherits(g,v.Group);var r=i(25).extend({type:"pie",init:function(){var t=new v.Group;this._sectorGroup=t},render:function(t,e,i,n){if(!n||n.from!==this.uid){var r=t.getData(),o=this._data,a=this.group,s=e.get("animation"),l=!o,h=y.curry(p,this.uid,t,s,i),c=t.get("selectedMode");if(r.diff(o).add(function(t){var e=new g(r,t);l&&e.eachChild(function(t){t.stopAnimation(!0)}),c&&e.on("click",h),r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var i=o.getItemGraphicEl(e);i.updateData(r,t),i.off("click"),c&&i.on("click",h),a.add(i),r.setItemGraphicEl(t,i)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),s&&l&&r.count()>0){var u=r.getItemLayout(0),d=Math.max(i.getWidth(),i.getHeight())/2,f=y.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(u.cx,u.cy,d,u.startAngle,u.clockwise,f,t))}this._data=r}},_createClipPath:function(t,e,i,n,r,o,a){var s=new v.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return v.initProps(s,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},a,o),s}});t.exports=r},function(t,e,i){"use strict";function u(o,t,e,i,n,r,a){function s(t,e,i,n){for(var r=t;e>r;r++)if(o[r].y+=i,r>t&&e>r+1&&o[r+1].y>o[r].y+o[r].height)return void l(r,i/2);l(e-1,i/2)}function l(t,e){for(var i=t;i>=0&&(o[i].y-=e,!(i>0&&o[i].y>o[i-1].y+o[i-1].height));i--);}function h(t,e,i,n,r,o){for(var a=o>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;l>s;s++)if("center"!==t[s].position){var h=Math.abs(t[s].y-n),c=t[s].len,u=t[s].len2,d=r+c>h?Math.sqrt((r+c+u)*(r+c+u)-h*h):Math.abs(t[s].x-i);e&&d>=a&&(d=a-10),!e&&a>=d&&(d=a+10),t[s].x=i+d*o,a=d}}o.sort(function(t,e){return t.y-e.y});for(var c,u=0,d=o.length,f=[],p=[],g=0;d>g;g++)c=o[g].y-u,0>c&&s(g,d,-c,n),u=o[g].y+o[g].height;0>a-u&&l(d-1,u-a);for(var g=0;d>g;g++)o[g].y>=e?p.push(o[g]):f.push(o[g]);h(f,!1,t,e,i,n),h(p,!0,t,e,i,n)}function n(t,e,i,n,r,o){for(var a=[],s=[],l=0;l<t.length;l++)t[l].x<e?a.push(t[l]):s.push(t[l]);u(s,e,i,n,1,r,o),u(a,e,i,n,-1,r,o);for(var l=0;l<t.length;l++){var h=t[l].linePoints;if(h){var c=h[1][0]-h[2][0];t[l].x<e?h[2][0]=t[l].x+3:h[2][0]=t[l].x-3,h[1][1]=h[2][1]=t[l].y,h[1][0]=h[2][0]+c}}}var z=i(17);t.exports=function(T,C,t,e){var I,k,L=T.getData(),D=[],P=!1;L.each(function(t){var e,i,n,r,o=L.getItemLayout(t),a=L.getItemModel(t),s=a.getModel("label.normal"),l=s.get("position")||a.get("label.emphasis.position"),h=a.getModel("labelLine.normal"),c=h.get("length"),u=h.get("length2"),d=(o.startAngle+o.endAngle)/2,f=Math.cos(d),p=Math.sin(d);I=o.cx,k=o.cy;var g="inside"===l||"inner"===l;if("center"===l)e=o.cx,i=o.cy,r="center";else{var m=(g?o.r/2*f:o.r*f)+I,v=(g?o.r/2*p:o.r*p)+k;if(e=m+3*f,i=v+3*p,!g){var y=m+f*(c+C-o.r),x=v+p*(c+C-o.r),_=y+(0>f?-1:1)*u,b=x;e=_+(0>f?-5:5),i=b,n=[[m,v],[y,x],[_,b]]}r=g?"center":f>0?"left":"right"}var w=s.getModel("textStyle").getFont(),M=s.get("rotate")?0>f?-d+Math.PI:-d:0,S=T.getFormattedLabel(t,"normal")||L.getName(t),A=z.getBoundingRect(S,w,r,"top");P=!!M,o.label={x:e,y:i,position:l,height:A.height,len:c,len2:u,linePoints:n,textAlign:r,verticalAlign:"middle",font:w,rotation:M},g||D.push(o.label)}),!P&&T.get("avoidLabelOverlap")&&n(D,I,k,C,t,e)}},function(t,e,i){var S=i(4),A=S.parsePercent,T=i(93),C=i(1),I=2*Math.PI,k=Math.PI/180;t.exports=function(t,e,M){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");C.isArray(i)||(i=[0,i]),C.isArray(e)||(e=[e,e]);var n=M.getWidth(),r=M.getHeight(),o=Math.min(n,r),a=A(e[0],n),s=A(e[1],r),l=A(i[0],o/2),h=A(i[1],o/2),c=t.getData(),u=-t.get("startAngle")*k,d=t.get("minAngle")*k,f=c.getSum("value"),p=Math.PI/(f||c.count())*2,g=t.get("clockwise"),m=t.get("roseType"),v=c.getDataExtent("value");v[0]=0;var y=I,x=0,_=u,b=g?1:-1;if(c.each("value",function(t,e){var i;i="area"!==m?0===f?p:t*p:I/(c.count()||1),d>i?(i=d,y-=d):x+=t;var n=_+b*i;c.setItemLayout(e,{angle:i,startAngle:_,endAngle:n,clockwise:g,cx:a,cy:s,r0:l,r:m?S.linearMap(t,v,[l,h]):h}),_=n},!0),I>y)if(.001>=y){var w=I/c.count();c.each(function(t){var e=c.getItemLayout(t);e.startAngle=u+b*t*w,e.endAngle=u+b*(t+1)*w})}else p=y/x,_=u,c.each("value",function(t,e){var i=c.getItemLayout(e),n=i.angle===d?d:t*p;i.startAngle=_,i.endAngle=_+b*n,_+=n});T(t,h,n,r)})}},,function(t,e,i){"use strict";i(50),i(97)},function(t,e,i){function o(t,e){function i(t,e){var i=n.getAxis(t);return i.toGlobalCoord(i.dataToCoord(0))}var n=t.coordinateSystem,r=e.axis,o={},a=r.position,s=r.onZero?"onZero":a,l=r.dim,h=n.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],u={x:{top:c[2],bottom:c[3]},y:{left:c[0],right:c[1]}};u.x.onZero=Math.max(Math.min(i("y"),u.x.bottom),u.x.top),u.y.onZero=Math.max(Math.min(i("x"),u.y.right),u.y.left),o.position=["y"===l?u.y[s]:c[0],"x"===l?u.x[s]:c[3]];var d={x:0,y:1};o.rotation=Math.PI/2*d[l];var f={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=f[a],r.onZero&&(o.labelOffset=u[l][a]-u[l].onZero),e.getModel("axisTick").get("inside")&&(o.tickDirection=-o.tickDirection),e.getModel("axisLabel").get("inside")&&(o.labelDirection=-o.labelDirection);var p=e.getModel("axisLabel").get("rotate");return o.labelRotation="top"===s?-p:p,o.labelInterval=r.getLabelInterval(),o.z2=1,o}var w=i(1),M=i(3),a=i(48),S=a.ifIgnoreOnTick,A=a.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"],n=i(2).extendComponentView({type:"axis",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=t.getComponent("grid",e.get("gridIndex")),n=o(i,e),r=new a(e,n);w.each(s,r.add,r),this.group.add(r.getGroup()),w.each(l,function(t){e.get(t+".show")&&this["_"+t](e,i,n.labelInterval)},this)}},_splitLine:function(t,e,i){var n=t.axis,r=t.getModel("splitLine"),o=r.getModel("lineStyle"),a=o.get("width"),s=o.get("color"),l=A(r,i);s=w.isArray(s)?s:[s];for(var h=e.coordinateSystem.getRect(),c=n.isHorizontal(),u=[],d=0,f=n.getTicksCoords(),p=[],g=[],m=0;m<f.length;m++)if(!S(n,m,l)){var v=n.toGlobalCoord(f[m]);c?(p[0]=v,p[1]=h.y,g[0]=v,g[1]=h.y+h.height):(p[0]=h.x,p[1]=v,g[0]=h.x+h.width,g[1]=v);var y=d++%s.length;u[y]=u[y]||[],u[y].push(new M.Line(M.subPixelOptimizeLine({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:{lineWidth:a},silent:!0})))}for(var x=o.getLineStyle(),m=0;m<u.length;m++)this.group.add(M.mergePath(u[m],{style:w.defaults({stroke:s[m%s.length]},x),silent:!0}))},_splitArea:function(t,e,i){var n=t.axis,r=t.getModel("splitArea"),o=r.getModel("areaStyle"),a=o.get("color"),s=e.coordinateSystem.getRect(),l=n.getTicksCoords(),h=n.toGlobalCoord(l[0]),c=n.toGlobalCoord(l[0]),u=[],d=0,f=A(r,i);a=w.isArray(a)?a:[a];for(var p=1;p<l.length;p++)if(!S(n,p,f)){var g,m,v,y,x=n.toGlobalCoord(l[p]);n.isHorizontal()?(g=h,m=s.y,v=x-g,y=s.height):(g=s.x,m=c,v=s.width,y=x-m);var _=d++%a.length;u[_]=u[_]||[],u[_].push(new M.Rect({shape:{x:g,y:m,width:v,height:y},silent:!0})),h=g+v,c=m+y}for(var b=o.getAreaStyle(),p=0;p<u.length;p++)this.group.add(M.mergePath(u[p],{style:w.defaults({fill:a[p%a.length]},b),silent:!0}))}});n.extend({type:"xAxis"}),n.extend({type:"yAxis"})},function(t,e,i){var o=i(1),a=i(7),n=i(2);n.registerAction("dataZoom",function(i,t){var n=a.createLinkedNodesFinder(o.bind(t.eachComponent,t,"dataZoom"),a.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),r=[];t.eachComponent({mainType:"dataZoom",query:i},function(t,e){r.push.apply(r,n(t).nodes)}),o.each(r,function(t,e){t.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})},function(t,e,i){function n(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function r(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var o=i(2);o.registerProcessor("filter",function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(n),t.eachTargetAxis(r)}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})})})},function(t,e,i){function o(t){var e=t[r];return e||(e=t[r]=[{}]),e}var n=i(1),l=n.each,r="\0_ec_hist_store",a={push:function(a,t){var s=o(a);l(t,function(t,e){for(var i=s.length-1;i>=0;i--){var n=s[i];if(n[e])break}if(0>i){var r=a.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(r){var o=r.getPercentRange();s[0][e]={dataZoomId:e,start:o[0],end:o[1]}}}}),s.push(t)},pop:function(t){var n=o(t),e=n[n.length-1];n.length>1&&n.pop();var r={};return l(e,function(t,e){for(var i=n.length-1;i>=0;i--){var t=n[i][e];if(t){r[e]=t;break}}}),r},clear:function(t){t[r]=null},count:function(t){return o(t).length}};t.exports=a},function(t,e,i){i(10).registerSubTypeDefaulter("dataZoom",function(t){return"slider"})},function(t,e){function i(t){return t[n]||(t[n]={})}var n="\0_ec_interaction_mutex",r={take:function(t,e){i(e)[t]=!0},release:function(t,e){i(e)[t]=!1},isTaken:function(t,e){return!!i(e)[t]}};t.exports=r},function(t,e,i){function r(t,e,i){o.positionGroup(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},e.get("padding"))}var o=i(11),a=i(9),s=i(3);t.exports={layout:function(t,e,i){var n=o.getLayoutRect(e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},e.get("padding"));o.box(e.get("orient"),t,e.get("itemGap"),n.width,n.height),r(t,e,i)},addBackground:function(t,e){var i=a.normalizeCssArray(e.get("padding")),n=t.getBoundingRect(),r=e.getItemStyle(["color","opacity"]);r.fill=e.get("backgroundColor");var o=new s.Rect({shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},style:r,silent:!0,z2:-1});s.subPixelOptimizeRect(o),t.add(o)}}},function(t,e,i){function c(t,e,i){var n=-1;do{n=Math.max(r.getPrecision(t.get(e,i)),n),t=t.stackedOn}while(t);return n}function n(t,e,i,n,r,o){var a=[],s=p(e,n,t),l=e.indexOfNearest(n,s,!0);a[r]=e.get(i,l,!0),a[o]=e.get(n,l,!0);var h=c(e,n,l);return h>=0&&(a[o]=+a[o].toFixed(h)),a}var l=i(1),r=i(4),h=l.indexOf,o=l.curry,u={min:o(n,"min"),max:o(n,"max"),average:o(n,"average")},a=function(t,e){var i=t.getData(),n=t.coordinateSystem;if((isNaN(e.x)||isNaN(e.y))&&!l.isArray(e.coord)&&n){var r=d(e,i,n,t);if(e=l.clone(e),e.type&&u[e.type]&&r.baseAxis&&r.valueAxis){var o=n.dimensions,a=h(o,r.baseAxis.dim),s=h(o,r.valueAxis.dim);e.coord=u[e.type](i,r.baseDataDim,r.valueDataDim,a,s),e.value=e.coord[s]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}return e},d=function(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(n.dataDimToCoordDim(r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=n.coordDimToDataDim(r.baseAxis.dim)[0]):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=n.coordDimToDataDim(r.baseAxis.dim)[0],r.valueDataDim=n.coordDimToDataDim(r.valueAxis.dim)[0]),r},s=function(t,e){return t&&t.containData&&e.coord&&(null==e.x||null==e.y)?t.containData(e.coord):!0},f=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:t.value},p=function(t,e,i){return"average"===i?t.getSum(e,!0)/t.count():t.getDataExtent(e,!0)["max"===i?1:0]};t.exports={dataTransform:a,dataFilter:s,dimValueGetter:f,getAxisInfo:d,numCalculate:p}},function(t,e,i){var n=i(1),o=i(43),r=i(109),a=function(t,e,i,n,r){o.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom"};a.prototype={constructor:a,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(){var t=this.getExtent();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=r(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},n.inherits(a,o),t.exports=a},function(t,e,i){"use strict";function n(t){return this._axes[t]}var r=i(1),o=function(t){this._axes={},this._dimList=[],this.name=t||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return r.map(this._dimList,n,this)},getAxesByScale:function(e){return e=e.toLowerCase(),r.filter(this.getAxes(),function(t){return t.scale.type===e})},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.length;r++){var o=i[r],a=this._axes[o];n[o]=a[e](t[o])}return n}},t.exports=o},function(t,e,i){"use strict";function n(t){o.call(this,t)}var r=i(1),o=i(106);n.prototype={constructor:n,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(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")}},r.inherits(n,o),t.exports=n},function(t,e,i){"use strict";i(50);var n=i(10);t.exports=n.extend({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"}})},function(t,e,i){"use strict";var r=i(1),o=i(23);t.exports=function(t){var e=t.model,i=e.getModel("axisLabel"),n=i.get("interval");return"category"!==t.type||"auto"!==n?"auto"===n?0:n:o.getAxisLabelInterval(r.map(t.scale.getTicks(),t.dataToCoord,t),e.getFormattedLabels(),i.getModel("textStyle").getFont(),t.isHorizontal())}},function(t,e,i){"use strict";function y(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function n(t,e){var u={};p.each(t,function(t,e){var i=t.coordinateSystem,n=i.getBaseAxis(),r=u[n.index]||{remainedWidth:n.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:n,stacks:{}},o=r.stacks;u[n.index]=r;var a=y(t);o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.get("barWidth"),l=t.get("barMaxWidth"),h=t.get("barGap"),c=t.get("barCategoryGap");s&&!o[a].width&&(s=Math.min(r.remainedWidth,s),o[a].width=s,r.remainedWidth-=s),l&&(o[a].maxWidth=l),null!=h&&(r.gap=h),null!=c&&(r.categoryGap=c)});var f={};return p.each(u,function(t,i){f[i]={};var e=t.stacks,n=t.axis,r=n.getBandWidth(),o=g(t.categoryGap,r),a=g(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-o)/(l+(l-1)*a);h=Math.max(h,0),p.each(e,function(t,e){var i=t.maxWidth;!t.width&&i&&h>i&&(i=Math.min(i,s),s-=i,t.width=i,l--)}),h=(s-o)/(l+(l-1)*a),h=Math.max(h,0);var c,u=0;p.each(e,function(t,e){t.width||(t.width=h),c=t,u+=t.width*(1+a)}),c&&(u-=c.width*a);var d=-u/2;p.each(e,function(t,e){f[i][e]=f[i][e]||{offset:d,width:t.width},d+=t.width*(1+a)})}),f}function r(t,e,i){var r=n(p.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})),v={};e.eachSeriesByType(t,function(t){var h=t.getData(),e=t.coordinateSystem,i=e.getBaseAxis(),c=y(t),n=r[i.index][c],u=n.offset,d=n.width,f=e.getOtherAxis(i),p=t.get("barMinHeight")||0,g=i.onZero?f.toGlobalCoord(f.dataToCoord(0)):f.getGlobalExtent()[0],m=e.dataToPoints(h,!0);v[c]=v[c]||[],h.setLayout({offset:u,size:d}),h.each(f.dim,function(t,e){if(!isNaN(t)){v[c][e]||(v[c][e]={p:g,n:g});var i,n,r,o,a=t>=0?"p":"n",s=m[e],l=v[c][e][a];f.isHorizontal()?(i=l,n=s[1]+u,r=s[0]-l,o=d,Math.abs(r)<p&&(r=(0>r?-1:1)*p),v[c][e][a]+=r):(i=s[0]+u,n=l,r=d,o=s[1]-l,Math.abs(o)<p&&(o=(0>=o?-1:1)*p),v[c][e][a]+=o),h.setItemLayout(e,{x:i,y:n,width:r,height:o})}},!0)},this)}var p=i(1),o=i(4),g=o.parsePercent;t.exports=r},function(t,e,i){var s=i(3),l=i(1),h=Math.PI;t.exports=function(n,t){t=t||{},l.defaults(t,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var r=new s.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),o=new s.Arc({shape:{startAngle:-h/2,endAngle:-h/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),a=new s.Rect({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*h/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*h/2}).delay(300).start("circularInOut");var e=new s.Group;return e.add(o),e.add(a),e.add(r),e.resize=function(){var t=n.getWidth()/2,e=n.getHeight()/2;o.setShape({cx:t,cy:e});var i=o.shape.r;a.setShape({x:t-i,y:e-i,width:2*i,height:2*i}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}},function(t,e,i){function n(t,e){for(var i in e)_.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?d.merge(t[i],e[i],!1):d.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function a(t){t=t,this.option={},this.option[w]=1,this._componentsMap={},this._seriesIndices=null,n(t,this._theme.option),d.merge(t,b,!1),this.mergeOption(t)}function r(e,t){d.isArray(t)||(t=t?[t]:[]);var i={};return p(t,function(t){i[t]=(e[t]||[]).slice()}),i}function h(r,t){var a={};p(t,function(t,e){var i=t.exist;i&&(a[i.id]=t)}),p(t,function(t,e){var i=t.option;if(d.assert(!i||null==i.id||!a[i.id]||a[i.id]===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(a[i.id]=t),x(i)){var n=o(r,i,t.exist);t.keyInfo={mainType:r,subType:n}}}),p(t,function(t,e){var i=t.exist,n=t.option,r=t.keyInfo;if(x(n)){if(r.name=null!=n.name?n.name+"":i?i.name:"\0-",i)r.id=i.id;else if(null!=n.id)r.id=n.id+"";else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(a[r.id])}a[r.id]=t}})}function o(t,e,i){var n=e.type?e.type:i?i.subType:_.determineSubType(t,e);return n}function c(t){return m(t,function(t){return t.componentIndex})||[]}function u(t,e){return e.hasOwnProperty("subType")?g(t,function(t){return t.subType===e.subType}):t}function s(t){if(!t._seriesIndices)throw new Error("Series has not been initialized yet.")}var d=i(1),f=i(7),l=i(12),p=d.each,g=d.filter,m=d.map,v=d.isArray,y=d.indexOf,x=d.isObject,_=i(10),b=i(114),w="\0_ec_inner",M=l.extend({constructor:M,init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new l(i),this._optionManager=n},setOption:function(t,e){d.assert(!(w in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):a.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&p(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(n){function t(o,t){var e=f.normalizeToArray(n[o]),i=f.mappingToExists(l[o],e);h(o,i);var a=r(l,t);s[o]=[],l[o]=[],p(i,function(t,e){var i=t.exist,n=t.option;if(d.assert(x(n)||i,"Empty component definition"),n){var r=_.getClass(o,t.keyInfo.subType,!0);i&&i instanceof r?(i.mergeOption(n,this),i.optionUpdated(this)):(i=new r(n,this,this,d.extend({dependentModels:a,componentIndex:e},t.keyInfo)),i.optionUpdated(this))}else i.mergeOption({},this),i.optionUpdated(this);l[o][e]=i,s[o][e]=i.option},this),"series"===o&&(this._seriesIndices=c(l.series))}var s=this.option,l=this._componentsMap,i=[];p(n,function(t,e){null!=t&&(_.hasClass(e)?i.push(e):s[e]=null==s[e]?d.clone(t):d.merge(s[e],t,!0))}),_.topologicalTravel(i,_.getAllClassMainTypes(),t,this)},getOption:function(){var n=d.clone(this.option);return p(n,function(t,e){if(_.hasClass(e)){for(var t=f.normalizeToArray(t),i=t.length-1;i>=0;i--)f.isIdInner(t[i])&&t.splice(i,1);n[e]=t}}),delete n[w],n},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,o=this._componentsMap[e];if(!o||!o.length)return[];var a;if(null!=i)v(i)||(i=[i]),a=g(m(i,function(t){return o[t]}),function(t){return!!t});else if(null!=n){var s=v(n);a=g(o,function(t){return s&&y(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var l=v(r);a=g(o,function(t){return l&&y(r,t.name)>=0||!l&&t.name===r})}return u(a,t)},findComponents:function(e){function t(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(t){return e.filter?g(t,e.filter):t}var n=e.query,r=e.mainType,o=t(n),a=o?this.queryComponents(o):this._componentsMap[r];return i(u(a,e))},eachComponent:function(t,n,r){var e=this._componentsMap;if("function"==typeof t)r=n,n=t,p(e,function(t,i){p(t,function(t,e){n.call(r,i,t,e)})});else if(d.isString(t))p(e[t],n,r);else if(x(t)){var i=this.findComponents(t);p(i,n,r)}},getSeriesByName:function(e){var t=this._componentsMap.series;return g(t,function(t){return t.name===e})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(e){var t=this._componentsMap.series;return g(t,function(t){return t.subType===e})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(i,n){s(this),p(this._seriesIndices,function(t){var e=this._componentsMap.series[t];i.call(n,e,t)},this)},eachRawSeries:function(t,e){p(this._componentsMap.series,t,e)},eachSeriesByType:function(i,n,r){s(this),p(this._seriesIndices,function(t){var e=this._componentsMap.series[t];e.subType===i&&n.call(r,e,t)},this)},eachRawSeriesByType:function(t,e,i){return p(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return s(this),d.indexOf(this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){s(this);var i=g(this._componentsMap.series,t,e);this._seriesIndices=c(i)},restoreData:function(){var i=this._componentsMap;this._seriesIndices=c(i.series);var n=[];p(i,function(t,e){n.push(e)}),_.topologicalTravel(n,_.getAllClassMainTypes(),function(t,e){p(i[t],function(t){t.restoreData()})})}});t.exports=M},function(t,e,i){function n(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newOptionBackup}function r(t,i){var e,n,r=[],o=[],a=t.timeline;if(t.baseOption&&(n=t.baseOption),(a||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var s=t.media;d(s,function(t){t&&t.option&&(t.query?o.push(t):e||(e=t))})}return n||(n=t),n.timeline||(n.timeline=a),d([n].concat(r).concat(l.map(o,function(t){return t.option})),function(e){d(i,function(t){t(e)})}),{baseOption:n,timelineOptions:r,mediaDefault:e,mediaList:o}}function h(t,e,i){var o={width:e,height:i,aspectratio:e/i},a=!0;return l.each(t,function(t,e){var i=e.match(m);if(i&&i[1]&&i[2]){var n=i[1],r=i[2].toLowerCase();s(o[r],t,n)||(a=!1)}}),a}function s(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function c(t,e){return t.join(",")===e.join(",")}function o(r,t){t=t||{},d(t,function(t,e){if(null!=t){var i=r[e];if(u.hasClass(e)){t=a.normalizeToArray(t),i=a.normalizeToArray(i);var n=a.mappingToExists(i,t);r[e]=p(n,function(t){return t.option&&t.exist?g(t.exist,t.option,!0):t.exist||t.option})}else r[e]=g(i,t,!0)}})}var l=i(1),a=i(7),u=i(10),d=l.each,f=l.clone,p=l.map,g=l.merge,m=/^(min|max)?(.+)$/;n.prototype={constructor:n,setOption:function(t,e){t=f(t,!0);var i=this._optionBackup,n=this._newOptionBackup=r.call(this,t,e);i?(o(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=t?this._optionBackup:this._newOptionBackup;return this._timelineOptions=p(e.timelineOptions,f),this._mediaList=p(e.mediaList,f),this._mediaDefault=f(e.mediaDefault),this._currentMediaIndices=[],f(e.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=f(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!n.length&&!r)return a;for(var s=0,l=n.length;l>s;s++)h(n[s].query,e,i)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!c(o,this._currentMediaIndices)&&(a=p(o,function(t){return f(-1===t?r.option:n[t].option)})),this._currentMediaIndices=o,a}},t.exports=n},function(t,e){var i="";"undefined"!=typeof navigator&&(i=navigator.platform||""),t.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],grid:{},textStyle:{fontFamily:i.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}},function(t,e,i){t.exports={getAreaStyle:i(30)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}},function(t,e){t.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(t,e,i){t.exports={getItemStyle:i(30)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}},function(t,e,i){var n=i(30)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getLineStyle:function(t){var e=n.call(this,t),i=this.getLineDash();return i&&(e.lineDash=i),e},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}},function(t,e,i){function n(t,e){return t&&t.getShallow(e)}var r=i(17);t.exports={getTextColor:function(){var t=this.ecModel;return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,e=t&&t.getModel("textStyle");return[this.getShallow("fontStyle")||n(e,"fontStyle"),this.getShallow("fontWeight")||n(e,"fontWeight"),(this.getShallow("fontSize")||n(e,"fontSize")||12)+"px",this.getShallow("fontFamily")||n(e,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get("textStyle")||{};return r.getBoundingRect(t,this.getFont(),e.align,e.baseline)},ellipsis:function(t,e,i){return r.ellipsis(t,this.getFont(),e,i)}}},function(t,e,i){function r(t,e){e=e.split(",");for(var i=t,n=0;n<e.length&&(i=i&&i[e[n]],null!=i);n++);return i}function o(t,e,i,n){e=e.split(",");for(var r,o=t,a=0;a<e.length-1;a++)r=e[a],null==o[r]&&(o[r]={}),o=o[r];(n||null==o[e[a]])&&(o[e[a]]=i)}function a(e){u(n,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var s=i(1),l=i(121),n=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=s.each;t.exports=function(i){u(i.series,function(t){if(s.isObject(t)){var e=t.type;if(l(t),"pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var i=r(t,"pointer.color");null!=i&&o(t,"itemStyle.normal.color",i)}for(var n=0;n<c.length;n++)if(c[n]===t.type){a(t);break}}}),i.dataRange&&(i.visualMap=i.dataRange),u(h,function(t){var e=i[t];e&&(s.isArray(e)||(e=[e]),u(e,function(t){a(t)}))})}},function(t,e,i){function s(n){var r=n&&n.itemStyle;r&&l.each(o,function(t){var e=r.normal,i=r.emphasis;e&&e[t]&&(n[t]=n[t]||{},n[t].normal?l.merge(n[t].normal,e[t]):n[t].normal=e[t],e[t]=null),i&&i[t]&&(n[t]=n[t]||{},n[t].emphasis?l.merge(n[t].emphasis,i[t]):n[t].emphasis=i[t],i[t]=null)})}var l=i(1),o=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];t.exports=function(t){if(t){s(t),s(t.markPoint),s(t.markLine);var e=t.data;if(e){for(var i=0;i<e.length;i++)s(e[i]);var n=t.markPoint;if(n&&n.data)for(var r=n.data,i=0;i<r.length;i++)s(r[i]);var o=t.markLine;if(o&&o.data)for(var a=o.data,i=0;i<a.length;i++)l.isArray(a[i])?(s(a[i][0]),s(a[i][1])):s(a[i])}}}},function(t,e){var c={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-(1/0),i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return e}},u=function(t,e){return Math.round(t.length/2)};t.exports=function(t,e,i){e.eachSeriesByType(t,function(t){var e=t.getData(),i=t.get("sampling"),n=t.coordinateSystem;if("cartesian2d"===n.type&&i){var r=n.getBaseAxis(),o=n.getOtherAxis(r),a=r.getExtent(),s=a[1]-a[0],l=Math.round(e.count()/s);if(l>1){var h;"string"==typeof i?h=c[i]:"function"==typeof i&&(h=i),h&&(e=e.downSample(o.dim,1/l,h,u),t.setData(e))}}},this)}},function(t,e,i){var n=i(1),r=i(32),a=i(4),o=i(37),s=r.prototype,l=o.prototype,h=Math.floor,c=Math.ceil,u=Math.pow,d=10,f=Math.log,p=r.extend({type:"log",getTicks:function(){return n.map(l.getTicks.call(this),function(t){return a.round(u(d,t))})},getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),u(d,t)},setExtent:function(t,e){t=f(t)/f(d),e=f(e)/f(d),l.setExtent.call(this,t,e)},getExtent:function(){var t=s.getExtent.call(this);return t[0]=u(d,t[0]),t[1]=u(d,t[1]),t},unionExtent:function(t){t[0]=f(t[0])/f(d),t[1]=f(t[1])/f(d),s.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||0>=i)){var n=u(10,h(f(i/t)/Math.LN10)),r=t/i*n;.5>=r&&(n*=10);var o=[a.round(c(e[0]/n)*n),a.round(h(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:l.niceExtent});n.each(["contain","normalize"],function(e){p.prototype[e]=function(t){return t=f(t)/f(d),s[e].call(this,t)}}),p.create=function(){return new p},t.exports=p},function(t,e,i){var n=i(1),r=i(32),o=r.prototype,a=r.extend({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t.length-1]},parse:function(t){return"string"==typeof t?n.indexOf(this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._data[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.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:n.noop,niceExtent:n.noop});a.create=function(){return new a},t.exports=a},function(t,e,i){var n=i(1),u=i(4),r=i(9),o=i(37),a=o.prototype,d=Math.ceil,f=Math.floor,s=864e5,p=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},l=o.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return r.formatTime(e[0],i)},niceExtent:function(t,e,i){var n=this._extent;if(n[0]===n[1]&&(n[0]-=s,n[1]+=s),n[1]===-(1/0)&&n[0]===1/0){var r=new Date;n[1]=new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-s}this.niceTicks(t,e,i);var o=this._interval;e||(n[0]=u.round(f(n[0]/o)*o)),i||(n[1]=u.round(d(n[1]/o)*o))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=g.length,o=p(g,n,0,r),a=g[Math.min(o,r-1)],s=a[2];if("year"===a[0]){var l=i/s,h=u.nice(l/t,!0);s*=h}var c=[d(e[0]/s)*s,f(e[1]/s)*s];this._stepLvl=a,this._interval=s,this._niceExtent=c},parse:function(t){return+u.parseDate(t)}});n.each(["contain","normalize"],function(e){l.prototype[e]=function(t){return a[e].call(this,this.parse(t))}});var g=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,s],["week",7,7*s],["month",1,31*s],["quarter",3,380*s/4],["half-year",6,380*s/2],["year",1,380*s]];l.create=function(){return new l},t.exports=l},function(t,e){var s={},l="\0__throttleOriginMethod",h="\0__throttleRate";s.throttle=function(n,r,o,a){function t(t){function e(){d=(new Date).getTime(),f=null,(p?n:n[t]).apply(l,h||[])}var i=function(){c=(new Date).getTime(),l=this,h=arguments,s=c-(a?u:d)-r,clearTimeout(f),a?o?f=setTimeout(e,r):s>=0&&e():s>=0?e():o&&(f=setTimeout(e,-s)),u=c};return i.clear=function(){f&&(clearTimeout(f),f=null)},i}var s,l,h,c=(new Date).getTime(),u=0,d=0,f=null,p="function"==typeof n;if(r=r||0,p)return t();for(var e=[],i=0;i<n.length;i++)e[i]=t(i);return e},s.fixRate=function(t,e){return null!=e?s.throttle(t,e,!0,!1):t},s.debounce=function(t,e){return null!=e?s.throttle(t,e,!0,!0):t},s.createOrUpdate=function(t,e,i,n){var r=t[e];if(r&&null!=i&&n){var o=r[l]||r,a=r[h];a!==i&&(r=t[e]=s[n](o,i),r[l]=o,r[h]=i)}},s.clear=function(t,e){var i=t[e];i&&i[l]&&(t[e]=i[l])},t.exports=s},function(t,e,i){"use strict";function a(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 n(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var o=r.type;e.gestureEvent=o,t._dispatchProxy(r.target,o,r.event)}}function r(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=y.concat(x),n=0;n<i.length;n++){var r=i[n];t._handlers[r]=f.bind(S[r],t)}for(var n=0;n<v.length;n++){var r=v[n];t._handlers[r]=e(S[r],t)}}function o(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t.parent;n;){if(n.clipPath&&!n.clipPath.contain(e,i))return!1;n=n.parent}return!0}return!1}function s(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function l(){return!1}function h(){return u.touchEventsSupported}function c(t){return"mousewheel"===t&&u.browser.firefox?"DOMMouseScroll":t}var u=i(15),d=i(33),f=i(1),p=i(155),g=i(139),m=i(21),v=["click","dblclick","mousewheel","mouseout"];!l()&&v.push("mouseup","mousedown","mousemove");var y=["touchstart","touchend","touchmove"],x=["pointerdown","pointerup","pointermove"],_=300,b=d.addEventListener,w=d.removeEventListener,M=d.normalizeEvent,S={mousemove:function(t){t=M(this.root,t);var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,"mouseout",t),this._dispatchProxy(n,"mousemove",t),n&&n!==r&&this._dispatchProxy(n,"mouseover",t)},mouseout:function(t){t=M(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e.parentNode}this._dispatchProxy(this._hovered,"mouseout",t),this.trigger("globalout",{event:t})},touchstart:function(t){t=M(this.root,t),this._lastTouchMoment=new Date,n(this,t,"start"),S.mousemove.call(this,t),S.mousedown.call(this,t),s(this)},touchmove:function(t){t=M(this.root,t),n(this,t,"change"),S.mousemove.call(this,t),s(this)},touchend:function(t){t=M(this.root,t),n(this,t,"end"),S.mouseup.call(this,t),+new Date-this._lastTouchMoment<_&&S.click.call(this,t),s(this)}};f.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(i){S[i]=function(t){t=M(this.root,t);var e=this.findHover(t.zrX,t.zrY,null);this._dispatchProxy(e,i,t)}});var A=function(i,t,e){function n(t,e){f.each(t,function(t){b(i,c(t),e._handlers[t])},e)}m.call(this),this.root=i,this.storage=t,this.painter=e,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new g,this._handlers=[],this._touching=!1,this._touchTimer,r(this),l()?n(x,this):h()&&n(y,this),n(v,this),p.call(this)};A.prototype={constructor:A,resize:function(t){this._hovered=null},dispatch:function(t,e){var i=this._handlers[t];i&&i.call(this,e)},dispose:function(){for(var t=this.root,e=v.concat(y),i=0;i<e.length;i++){var n=e[i];w(t,c(n),this._handlers[n])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,e,i){for(var n="on"+e,r=a(e,t,i),o=t;o&&(o[n]&&(r.cancelBubble=o[n].call(o,r)),o.trigger(e,r),o=o.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[n]&&t[n].call(t,r),t.trigger&&t.trigger(e,r)}))},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r=n.length-1;r>=0;r--)if(!n[r].silent&&n[r]!==i&&!n[r].ignore&&o(n[r],t,e))return n[r]}},f.mixin(A,m),f.mixin(A,p),t.exports=A},function(t,e,i){function o(){return!1}function a(t,e,i,n){var r=document.createElement(e),o=i.getWidth(),a=i.getHeight(),s=r.style;return s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",r.width=o*n,r.height=a*n,r.setAttribute("data-zr-dom-id",t),r}var s=i(1),l=i(42),n=function(t,e,i){var n;i=i||l.devicePixelRatio,"string"==typeof t?n=a(t,"canvas",e,i):s.isObject(t)&&(n=t,t=n.id),this.id=t,this.dom=n;var r=n.style;r&&(n.onselectstart=o,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};n.prototype={constructor:n,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=a("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r.width=t+"px",r.height=e+"px",n.width=t*i,n.height=e*i,1!=i&&this.ctx.scale(i,i),o&&(o.width=t*i,o.height=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e.height,o=this.clearColor,a=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),o&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i.restore()),a){var h=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(h,0,0,n/l,r/l),i.restore()}}},t.exports=n},function(t,e,c){"use strict";function i(t){return parseInt(t,10)}function h(t){return t?t.isBuildin?!0:"function"==typeof t.resize&&"function"==typeof t.refresh:!1}function f(t){t.__unusedCount++}function p(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function g(t,e,i){return o.copy(t.getBoundingRect()),t.transform&&o.applyTransform(t.transform),a.width=e,a.height=i,!o.intersect(a)}function m(t,e){if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0}function v(t,e){for(var i=0;i<t.length;i++){var n,r=t[i];r.transform&&(n=r.transform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]));var o=r.path;o.beginPath(e),r.buildPath(o,r.shape),e.clip(),r.transform&&(n=r.invTransform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]))}}var u=c(42),r=c(1),y=c(45),n=c(8),d=c(128),o=new n(0,0,0,0),a=new n(0,0,0,0),s=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||u.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,n){var o=t.width,a=t.height;this._width=o,this._height=a;var s=new d(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var o=this._getWidth(),a=this._getHeight();this._width=o,this._height=a;var l=document.createElement("div");this._domRoot=l;var h=l.style;h.position="relative",h.overflow="hidden",h.width=this._width+"px",h.height=this._height+"px",t.appendChild(l),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};s.prototype={constructor:s,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i.length;n++){var r=i[n],o=this._layers[r];!o.isBuildin&&o.refresh&&o.refresh()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,n,r,o=this._width,a=this._height;this.eachBuildinLayer(f);for(var s=null,l=0,h=t.length;h>l;l++){var c=t[l],u=this._singleCanvas?0:c.zlevel;if(n!==u&&(n=u,i=this.getLayer(n),i.isBuildin||y("ZLevel "+n+" has been used by unkown layer "+i.id),r=i.ctx,i.__unusedCount=0,(i.__dirty||e)&&i.clear()),(i.__dirty||e)&&!c.invisible&&0!==c.style.opacity&&c.scale[0]&&c.scale[1]&&(!c.culling||!g(c,o,a))){var d=c.__clipPaths;m(d,s)&&(s&&r.restore(),d&&(r.save(),v(d,r)),s=d),c.beforeBrush&&c.beforeBrush(r),c.brush(r,!1),c.afterBrush&&c.afterBrush(r)}c.__dirty=!1}s&&r.restore(),this.eachBuildinLayer(p)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new d("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&r.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=null,a=-1,s=this._domRoot;if(i[t])return void y("ZLevel "+t+" has been used already");if(!h(e))return void y("Layer of zlevel "+t+" is not valid");if(r>0&&t>n[0]){for(a=0;r-1>a&&!(n[a]<t&&n[a+1]>t);a++);o=i[n[a]]}if(n.splice(a+1,0,t),o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);i[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r.length;n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var n=0,r=t.length;r>n;n++){var o=t[n],a=this._singleCanvas?0:o.zlevel,s=e[a];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=o.__dirty}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?r.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&r.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.splice(r.indexOf(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.height=e+"px";for(var n in this._layers)this._layers[n].resize(t,e);this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new d("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var n=this.storage.getDisplayList(!0),r=0;r<n.length;r++){var o=n[r];o.invisible||(o.beforeBrush&&o.beforeBrush(i),o.brush(i,!1),o.afterBrush&&o.afterBrush(i))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,e=document.defaultView.getComputedStyle(t);return(t.clientWidth||i(e.width)||i(t.style.width))-(i(e.paddingLeft)||0)-(i(e.paddingRight)||0)|0},_getHeight:function(){var t=this.root,e=document.defaultView.getComputedStyle(t);return(t.clientHeight||i(e.height)||i(t.style.height))-(i(e.paddingTop)||0)-(i(e.paddingBottom)||0)|0},_pathToImage:function(t,e,i,n,r){var o=document.createElement("canvas"),a=o.getContext("2d");o.width=i*r,o.height=n*r,a.clearRect(0,0,i*r,n*r);var s={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[0,0,0],e.rotation=0,e.scale=[1,1],e&&e.brush(a);var l=c(46),h=new l({id:t,style:{x:0,y:0,image:o}});return null!=s.position&&(h.position=e.position=s.position),null!=s.rotation&&(h.rotation=e.rotation=s.rotation),null!=s.scale&&(h.scale=e.scale=s.scale),h},_createPathToImage:function(){var r=this;return function(t,e,i,n){return r._pathToImage(t,e,i,n,r.dpr)}}},t.exports=s},function(t,e,i){"use strict";function o(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var a=i(1),s=i(26),n=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};n.prototype={constructor:n,getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;r>n;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen;for(var n=0,r=i.length;r>n;n++)i[n].__renderidx=n;i.sort(o)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.clipPath;if(n&&(n.parent=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),"group"==t.type){for(var r=t._children,o=0;o<r.length;o++){var a=r[o];a.__dirty=t.__dirty||a.__dirty,this._updateAndAddDisplayable(a,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof s&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var i=this._roots[e];i instanceof s&&i.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var r;r="string"==typeof t?this._elements[t]:t;var o=a.indexOf(this._roots,r);o>=0&&(this.delFromMap(r.id),this._roots.splice(o,1),r instanceof s&&r.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof s&&(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 s&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},t.exports=n},function(t,e,i){"use strict";var n=i(1),r=i(33).Dispatcher,o="undefined"!=typeof window&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},a=i(56),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,r.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=n.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i.length,r=[],o=[],a=0;n>a;a++){var s=i[a],l=s.step(t);l&&(r.push(l),o.push(s))}for(var a=0;n>a;)i[a]._needsRemove?(i[a]=i[n-1],i.pop(),n--):a++;n=r.length;for(var a=0;n>a;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},start:function(){function t(){e._running&&(o(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),o(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new a(t,e.loop,e.getter,e.setter);return i}},n.mixin(s,r),t.exports=s},function(t,e,i){function n(t){this._target=t.target,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 o=i(133);n.prototype={constructor:n,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 i=this.easing,n="string"==typeof i?o[i]:i,r="function"==typeof n?n(e):e;return this.fire("frame",r),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)}},t.exports=n},function(t,e){var i={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((t-e)*(2*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((t-e)*(2*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((t-e)*(2*Math.PI)/n)):i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*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(t){return 1-i.bounceOut(1-t)},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(t){return.5>t?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};t.exports=i},function(t,e,i){var f=i(57).normalizeRadian,p=2*Math.PI;t.exports={containStroke:function(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var h=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-h>i||i>c+h)return!1;if(Math.abs(n-r)%p<1e-4)return!0;if(o){var u=n;n=f(r),r=f(u)}else n=f(n),r=f(r);n>r&&(r+=p);var d=Math.atan2(l,s);return 0>d&&(d+=p),d>=n&&r>=d||d+p>=n&&r>=d+p}}},function(t,e,i){var f=i(18);t.exports={containStroke:function(t,e,i,n,r,o,a,s,l,h,c){if(0===l)return!1;var u=l;if(c>e+u&&c>n+u&&c>o+u&&c>s+u||e-u>c&&n-u>c&&o-u>c&&s-u>c||h>t+u&&h>i+u&&h>r+u&&h>a+u||t-u>h&&i-u>h&&r-u>h&&a-u>h)return!1;var d=f.cubicProjectPoint(t,e,i,n,r,o,a,s,h,c,null);return u/2>=d}}},function(t,e){t.exports={containStroke:function(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,h=t;if(a>e+s&&a>n+s||e-s>a&&n-s>a||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),h=(t*n-i*e)/(t-i);var c=l*o-a+h,u=c*c/(l*l+1);return s/2*s/2>=u}}},function(t,e,i){"use strict";function S(t,e){return Math.abs(t-e)<o}function y(){var t=b[0];b[0]=b[1],b[1]=t}function A(t,e,i,n,r,o,a,s,l,h){if(h>e&&h>n&&h>o&&h>s||e>h&&n>h&&o>h&&s>h)return 0;var c=x.cubicRootAt(e,n,o,s,h,_);if(0===c)return 0;for(var u,d,f=0,p=-1,g=0;c>g;g++){var m=_[g],v=x.cubicAt(t,i,r,a,m);l>v||(0>p&&(p=x.cubicExtrema(e,n,o,s,b),b[1]<b[0]&&p>1&&y(),u=x.cubicAt(e,n,o,s,b[0]),p>1&&(d=x.cubicAt(e,n,o,s,b[1]))),f+=2==p?m<b[0]?e>u?1:-1:m<b[1]?u>d?1:-1:d>s?1:-1:m<b[0]?e>u?1:-1:u>s?1:-1)}return f}function T(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=x.quadraticRootAt(e,n,o,s,_);if(0===l)return 0;var h=x.quadraticExtremum(e,n,o);if(h>=0&&1>=h){for(var c=0,u=x.quadraticAt(e,n,o,h),d=0;l>d;d++){var f=x.quadraticAt(t,i,r,_[d]);a>f||(c+=_[d]<h?e>u?1:-1:u>o?1:-1)}return c}var f=x.quadraticAt(t,i,r,_[0]);return a>f?0:e>o?1:-1}function C(t,e,i,n,r,o,a,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);_[0]=-l,_[1]=l;var h=Math.abs(n-r);if(1e-4>h)return 0;if(1e-4>h%m){n=0,r=m;var c=o?1:-1;return a>=_[0]+t&&a<=_[1]+t?c:0}if(o){var l=n;n=g(r),r=g(l)}else n=g(n),r=g(r);n>r&&(r+=m);for(var u=0,d=0;2>d;d++){var f=_[d];if(f+t>a){var p=Math.atan2(s,f),c=o?1:-1;0>p&&(p=m+p),(p>=n&&r>=p||p+m>=n&&r>=p+m)&&(p>Math.PI/2&&p<1.5*Math.PI&&(c=-c),u+=c)}}return u}function r(t,e,i,n,r){for(var o=0,a=0,s=0,l=0,h=0,c=0;c<t.length;){var u=t[c++];if(u===I.M&&c>1&&(i||(o+=P(a,s,l,h,n,r)),0!==o))return!0;switch(1==c&&(a=t[c],s=t[c+1],l=a,h=s),u){case I.M:l=t[c++],h=t[c++],a=l,s=h;break;case I.L:if(i){if(z(a,s,t[c],t[c+1],e,n,r))return!0}else o+=P(a,s,t[c],t[c+1],n,r)||0;a=t[c++],s=t[c++];break;case I.C:if(i){if(k.containStroke(a,s,t[c++],t[c++],t[c++],t[c++],t[c],t[c+1],e,n,r))return!0}else o+=A(a,s,t[c++],t[c++],t[c++],t[c++],t[c],t[c+1],n,r)||0;a=t[c++],s=t[c++];break;case I.Q:if(i){if(L.containStroke(a,s,t[c++],t[c++],t[c],t[c+1],e,n,r))return!0}else o+=T(a,s,t[c++],t[c++],t[c],t[c+1],n,r)||0;a=t[c++],s=t[c++];break;case I.A:var d=t[c++],f=t[c++],p=t[c++],g=t[c++],m=t[c++],v=t[c++],y=(t[c++],1-t[c++]),x=Math.cos(m)*p+d,_=Math.sin(m)*g+f;c>1?o+=P(a,s,x,_,n,r):(l=x,h=_);var b=(n-d)*g/p+d;if(i){if(D.containStroke(d,f,g,m,m+v,y,e,b,r))return!0}else o+=C(d,f,g,m,m+v,y,b,r);a=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case I.R:l=a=t[c++],h=s=t[c++];var w=t[c++],M=t[c++],x=l+w,_=h+M;if(i){if(z(l,h,x,h,e,n,r)||z(x,h,x,_,e,n,r)||z(x,_,l,_,e,n,r)||z(l,_,x,_,e,n,r))return!0}else o+=P(x,h,x,_,n,r),o+=P(l,_,l,h,n,r);break;case I.Z:if(i){if(z(a,s,l,h,e,n,r))return!0}else if(o+=P(a,s,l,h,n,r),0!==o)return!0;a=l,s=h}}return i||S(s,h)||(o+=P(a,s,l,h,n,r)||0),0!==o}var I=i(27).CMD,n=i(136),k=i(135),L=i(138),D=i(134),g=i(57).normalizeRadian,x=i(18),P=i(75),z=n.containStroke,m=2*Math.PI,o=1e-4,_=[-1,-1,-1],b=[-1,-1];t.exports={contain:function(t,e,i){return r(t,0,!1,e,i)},containStroke:function(t,e,i,n){return r(t,e,!0,i,n)}}},function(t,e,i){var u=i(18);t.exports={containStroke:function(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var h=a;if(l>e+h&&l>n+h&&l>o+h||e-h>l&&n-h>l&&o-h>l||s>t+h&&s>i+h&&s>r+h||t-h>s&&i-h>s&&r-h>s)return!1;var c=u.quadraticProjectPoint(t,e,i,n,r,o,s,l,null);return h/2>=c}}},function(t,e){"use strict";function s(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function l(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var i=function(){this._track=[]};i.prototype={constructor:i,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,o=i.length;o>r;r++){var a=i[r];n.points.push([a.clientX,a.clientY]),n.touches.push(a)}this._track.push(n)}},_recognize:function(t){for(var e in n)if(n.hasOwnProperty(e)){var i=n[e](this._track,t);if(i)return i}}};var n={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=s(n)/s(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=l(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};t.exports=i},function(t,e){var i=function(){this.head=null,this.tail=null,this._len=0},n=i.prototype;n.insert=function(t){var e=new r(t);return this.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},n.remove=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--},n.len=function(){return this._len};var r=function(t){this.value=t,this.next,this.prev},o=function(t){this._list=new i,this._map={},this._maxSize=t||10},a=o.prototype;a.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 o=i.head;i.remove(o),delete n[o.key]}var a=i.insert(e);a.key=t,n[t]=a}},a.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},a.clear=function(){this._list.clear(),this._map={}},t.exports=o},function(t,e,i){"use strict";var n=i(1),r=i(16),o=function(t,e,i,n){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,r.call(this,n)};o.prototype={constructor:o,type:"radial",updateCanvasGradient:function(t,e){for(var i=t.getBoundingRect(),n=i.width,r=i.height,o=Math.min(n,r),a=this.x*n+i.x,s=this.y*r+i.y,l=this.r*o,h=e.createRadialGradient(a,s,0,a,s,l),c=this.colorStops,u=0;u<c.length;u++)h.addColorStop(c[u].offset,c[u].color);this.canvasGradient=h}},n.inherits(o,r),t.exports=o},function(t,e){var s=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],i=function(t){this.extendFrom(t)};i.prototype={constructor:i,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(t,e){for(var i=this.fill,n=this.stroke,r=0;r<s.length;r++){var o=s[r];null!=this[o]&&(t[o]=this[o])}if(null!=n){var a=this.lineWidth;t.lineWidth=a/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}null!=i&&(t.fillStyle=i.canvasGradient?i.canvasGradient:i),null!=n&&(t.strokeStyle=n.canvasGradient?n.canvasGradient:n),null!=this.opacity&&(t.globalAlpha=this.opacity)},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){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t}};var n,r,o=i.prototype;for(r=0;r<s.length;r++)n=s[r],n in o||(o[n]=null);t.exports=i},function(t,e,i){var _=i(5),b=_.min,w=_.max,M=_.scale,S=_.distance,A=_.add;t.exports=function(t,e,i,n){var r,o,a,s,l=[],h=[],c=[],u=[];if(n){a=[1/0,1/0],s=[-(1/0),-(1/0)];for(var d=0,f=t.length;f>d;d++)b(a,a,t[d]),w(s,s,t[d]);b(a,a,n[0]),w(s,s,n[1])}for(var d=0,f=t.length;f>d;d++){var p=t[d];if(i)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(_.clone(t[d]));continue}r=t[d-1],o=t[d+1]}_.sub(h,o,r),M(h,h,e);var g=S(p,r),m=S(p,o),v=g+m;0!==v&&(g/=v,m/=v),M(c,h,-g),M(u,h,m);var y=A([],p,c),x=A([],p,u);n&&(w(y,y,a),b(y,y,s),w(x,x,a),b(x,x,s)),l.push(y),l.push(x)}return i&&l.push(l.shift()),l}},function(t,e,i){function m(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}var v=i(5);t.exports=function(t,e){for(var i=t.length,n=[],r=0,o=1;i>o;o++)r+=v.distance(t[o-1],t[o]);var a=r/2;a=i>a?i:a;for(var o=0;a>o;o++){var s,l,h,c=o/(a-1)*(e?i:i-1),u=Math.floor(c),d=c-u,f=t[u%i];e?(s=t[(u-1+i)%i],l=t[(u+1)%i],h=t[(u+2)%i]):(s=t[0===u?u:u-1],l=t[u>i-2?i-1:u+1],h=t[u>i-3?i-1:u+2]);var p=d*d,g=d*p;n.push([m(s[0],f[0],l[0],h[0],d,p,g),m(s[1],f[1],l[1],h[1],d,p,g)])}return n}},function(t,e,i){t.exports=i(6).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),h=Math.sin(o);t.moveTo(l*r+i,h*r+n),t.arc(i,n,r,o,a,!s)}})},function(t,e,i){"use strict";var n=i(18),u=n.quadraticSubdivide,d=n.cubicSubdivide,r=n.quadraticAt,o=n.cubicAt,f=[];t.exports=i(6).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,c=e.percent;0!==c&&(t.moveTo(i,n),null==l||null==h?(1>c&&(u(i,a,r,c,f),a=f[1],r=f[2],u(n,s,o,c,f),s=f[1],o=f[2]),t.quadraticCurveTo(a,s,r,o)):(1>c&&(d(i,a,l,r,c,f),a=f[1],l=f[2],r=f[3],d(n,s,h,o,c,f),s=f[1],h=f[2],o=f[3]),t.bezierCurveTo(a,s,l,h,r,o)))},pointAt:function(t){var e=this.shape,i=e.cpx2,n=e.cpy2;return null===i||null===n?[r(e.x1,e.cpx1,e.x2,t),r(e.y1,e.cpy1,e.y2,t)]:[o(e.x1,e.cpx1,e.cpx1,e.x2,t),o(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})},function(t,e,i){"use strict";t.exports=i(6).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})},function(t,e,i){t.exports=i(6).extend({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,n=e.y1,r=e.x2,o=e.y2,a=e.percent;0!==a&&(t.moveTo(i,n),1>a&&(r=i*(1-a)+r*a,o=n*(1-a)+o*a),t.lineTo(r,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})},function(t,e,i){var n=i(59);t.exports=i(6).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){n.buildPath(t,e,!0)}})},function(t,e,i){var n=i(59);t.exports=i(6).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){n.buildPath(t,e,!1)}})},function(t,e,i){var a=i(60);t.exports=i(6).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width,o=e.height;e.r?a.buildPath(t,e):t.rect(i,n,r,o),t.closePath()}})},function(t,e,i){t.exports=i(6).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}})},function(t,e,i){t.exports=i(6).extend({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,n=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,h=Math.cos(a),c=Math.sin(a);t.moveTo(h*r+i,c*r+n),t.lineTo(h*o+i,c*o+n),t.arc(i,n,o,a,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,a,l),t.closePath()}})},function(t,e,i){"use strict";var d=i(56),f=i(1),h=f.isString,c=f.isFunction,u=f.isObject,p=i(45),n=function(){this.animators=[]};n.prototype={constructor:n,animate:function(t,e){var i,n=!1,r=this,o=this.__zr;if(t){var a=t.split("."),s=r;n="shape"===a[0];for(var l=0,h=a.length;h>l;l++)s&&(s=s[a[l]]);s&&(i=s)}else i=r;if(!i)return void p('Property "'+t+'" is not existed in element '+r.id);var c=r.animators,u=new d(i,e);return u.during(function(t){r.dirty(n)}).done(function(){c.splice(f.indexOf(c,u),1)}),c.push(u),o&&o.animation.addAnimator(u),u},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;i>n;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,r){function o(){s--,s||r&&r()}h(i)?(r=n,n=i,i=0):c(n)?(r=n,n="linear",i=0):c(i)?(r=i,i=0):c(e)?(r=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,n,r);var a=this.animators.slice(),s=a.length;s||r&&r();for(var l=0;l<a.length;l++)a[l].done(o).start(n)},_animateToShallow:function(t,e,i,n,r){var o={},a=0;for(var s in i)if(null!=e[s])u(i[s])&&!f.isArrayLike(i[s])?this._animateToShallow(t?t+"."+s:s,e[s],i[s],n,r):(o[s]=i[s],a++);else if(null!=i[s])if(t){var l={};l[t]={},l[t][s]=i[s],this.attr(l)}else this.attr(s,i[s]);return a>0&&this.animate(t,!1).when(null==n?500:n,o).delay(r||0),this}},t.exports=n},function(t,e){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}i.prototype={constructor:i,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this._dispatchProxy(e,"drag",t.event);var a=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this._dispatchProxy(s,"dragleave",t.event),a&&a!==s&&this._dispatchProxy(a,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t.exports=i},function(t,e,i){function T(t,e,i,n,r,o,a,s,l,h,c){var u=l*(L/180),d=k(u)*(t-i)/2+A(u)*(e-n)/2,f=-1*A(u)*(t-i)/2+k(u)*(e-n)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=S(p),s*=S(p));var g=(r===o?-1:1)*S((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+i)/2+k(u)*m-A(u)*v,x=(e+n)/2+A(u)*m+k(u)*v,_=P([1,0],[(d-m)/a,(f-v)/s]),b=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],M=P(b,w);D(b,w)<=-1&&(M=L),D(b,w)>=1&&(M=0),0===o&&M>0&&(M-=2*L),1===o&&0>M&&(M+=2*L),c.addData(h,y,x,a,s,_,M,u,o)}function r(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<I.length;e++)i=i.replace(new RegExp(I[e],"g"),"|"+I[e]);var n,r=i.split("|"),o=0,a=0,s=new C,l=C.CMD;for(e=1;e<r.length;e++){var h,c=r[e],u=c.charAt(0),d=0,f=c.slice(1).replace(/e,-/g,"e-").split(",");f.length>0&&""===f[0]&&f.shift();for(var p=0;p<f.length;p++)f[p]=parseFloat(f[p]);for(;d<f.length&&!isNaN(f[d])&&!isNaN(f[0]);){var g,m,v,y,x,_,b,w=o,M=a;switch(u){case"l":o+=f[d++],a+=f[d++],h=l.L,s.addData(h,o,a);break;case"L":o=f[d++],a=f[d++],h=l.L,s.addData(h,o,a);break;case"m":o+=f[d++],a+=f[d++],h=l.M,s.addData(h,o,a),u="l";break;case"M":o=f[d++],a=f[d++],h=l.M,s.addData(h,o,a),u="L";break;case"h":o+=f[d++],h=l.L,s.addData(h,o,a);break;case"H":o=f[d++],h=l.L,s.addData(h,o,a);break;case"v":a+=f[d++],h=l.L,s.addData(h,o,a);break;case"V":a=f[d++],h=l.L,s.addData(h,o,a);break;case"C":h=l.C,s.addData(h,f[d++],f[d++],f[d++],f[d++],f[d++],f[d++]),o=f[d-2],a=f[d-1];break;case"c":h=l.C,s.addData(h,f[d++]+o,f[d++]+a,f[d++]+o,f[d++]+a,f[d++]+o,f[d++]+a),o+=f[d-2],a+=f[d-1];break;case"S":g=o,m=a;var S=s.len(),A=s.data;n===l.C&&(g+=o-A[S-4],m+=a-A[S-3]),h=l.C,w=f[d++],M=f[d++],o=f[d++],a=f[d++],s.addData(h,g,m,w,M,o,a);break;case"s":g=o,m=a;var S=s.len(),A=s.data;n===l.C&&(g+=o-A[S-4],m+=a-A[S-3]),h=l.C,w=o+f[d++],M=a+f[d++],o+=f[d++],a+=f[d++],s.addData(h,g,m,w,M,o,a);break;case"Q":w=f[d++],M=f[d++],o=f[d++],a=f[d++],h=l.Q,s.addData(h,w,M,o,a);break;case"q":w=f[d++]+o,M=f[d++]+a,o+=f[d++],a+=f[d++],h=l.Q,s.addData(h,w,M,o,a);break;case"T":g=o,m=a;var S=s.len(),A=s.data;n===l.Q&&(g+=o-A[S-4],m+=a-A[S-3]),o=f[d++],a=f[d++],h=l.Q,s.addData(h,g,m,o,a);break;case"t":g=o,m=a;var S=s.len(),A=s.data;n===l.Q&&(g+=o-A[S-4],m+=a-A[S-3]),o+=f[d++],a+=f[d++],h=l.Q,s.addData(h,g,m,o,a);break;case"A":v=f[d++],y=f[d++],x=f[d++],_=f[d++],b=f[d++],w=o,M=a,o=f[d++],a=f[d++],h=l.A,T(w,M,o,a,_,b,v,y,x,h,s);break;case"a":v=f[d++],y=f[d++],x=f[d++],_=f[d++],b=f[d++],w=o,M=a,o+=f[d++],a+=f[d++],h=l.A,T(w,M,o,a,_,b,v,y,x,h,s)}}"z"!==u&&"Z"!==u||(h=l.Z,s.addData(h)),n=h}return s.toStatic(),s}function n(t,e){var i,n=r(t);return e=e||{},e.buildPath=function(t){t.setData(n.data),i&&o(t,i);var e=t.getContext();e&&t.rebuildPath(e)},e.applyTransform=function(t){i||(i=a.create()),a.mul(i,t,i)},e}var s=i(6),C=i(27),o=i(157),a=i(19),I=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],S=Math.sqrt,A=Math.sin,k=Math.cos,L=Math.PI,l=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},D=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(l(t)*l(e))},P=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(D(t,e))};t.exports={createFromString:function(t,e){return new s(n(t,e))},extendFromString:function(t,e){return s.extend(n(t,e))},mergePath:function(t,e){var i,n,r=[],o=t.length;for(n=0;o>n;n++)i=t[n],i.__dirty&&i.buildPath(i.path,i.shape),r.push(i.path);var a=new s(e);return a.buildPath=function(t){t.appendPath(r);var e=t.getContext();e&&t.rebuildPath(e)},a}}},function(t,e,i){function n(t,e){var i,n,r,o,a,s,l=t.data,h=_.M,c=_.C,u=_.L,d=_.R,f=_.A,p=_.Q;for(r=0,o=0;r<l.length;){switch(i=l[r++],o=r,n=0,i){case h:n=1;break;case u:n=1;break;case c:n=3;break;case p:n=2;break;case f:var g=e[4],m=e[5],v=M(e[0]*e[0]+e[1]*e[1]),y=M(e[2]*e[2]+e[3]*e[3]),x=S(-e[1]/y,e[0]/v);l[r++]+=g,l[r++]+=m,l[r++]*=v,l[r++]*=y,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],b(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],b(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;n>a;a++){var s=w[a];s[0]=l[r++],s[1]=l[r++],b(s,s,e),l[o++]=s[0],l[o++]=s[1]}}}var _=i(27).CMD,r=i(5),b=r.applyTransform,w=[[],[],[]],M=Math.sqrt,S=Math.atan2;t.exports=n},function(t,e,i){if(!i(15).canvasSupported){var n,r="urn:schemas-microsoft-com:vml",o=window,a=o.document,s=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",r),n=function(t){return a.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){n=function(t){return a.createElement("<"+t+' xmlns="'+r+'" class="zrvml">')}}var l=function(){if(!s){s=!0;var t=a.styleSheets;t.length<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};t.exports={doc:a,initVML:l,createNode:n}}},,function(t,e,i){function n(t,e,i){v.call(this),this.type=t,this.zr=e,this.opt=y.clone(i),this.group=new x.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:_(s,this),mousemove:_(l,this),mouseup:_(h,this)},b(C,function(t){this.zr.on(t,this._handlers[t])},this)}function r(t){t.traverse(function(t){t.z=A})}function o(t,e){var i=this.group.transformCoordToLocal(t,e);return!this._containerRect||this._containerRect.contain(i[0],i[1])}function a(t){var e=t.event;e.preventDefault&&e.preventDefault()}function s(t){if(!(this._disabled||t.target&&t.target.draggable)){a(t);var e=t.offsetX,i=t.offsetY;o.call(this,e,i)&&(this._dragging=!0,this._track=[[e,i]])}}function l(t){this._dragging&&!this._disabled&&(a(t),c.call(this,t))}function h(t){this._dragging&&!this._disabled&&(a(t),c.call(this,t,!0),this._dragging=!1,this._track=[])}function c(t,e){var i=t.offsetX,n=t.offsetY;if(o.call(this,i,n)){this._track.push([i,n]);var r=u.call(this)?I[this.type].getRanges.call(this):[];d.call(this,r),this.trigger("selected",y.clone(r)),e&&this.trigger("selectEnd",y.clone(r))}}function u(){var t=this._track;if(!t.length)return!1;var e=t[t.length-1],i=t[0],n=e[0]-i[0],r=e[1]-i[1],o=S(n*n+r*r,.5);return o>T}function d(t){var e=I[this.type];t&&t.length?(this._cover||(this._cover=e.create.call(this),this.group.add(this._cover)),e.update.call(this,t)):(this.group.remove(this._cover),this._cover=null),r(this.group)}function f(){var t=this.group,e=t.parent;e&&e.remove(t)}function p(){var t=this.opt;return new x.Rect({style:{stroke:t.stroke,fill:t.fill,lineWidth:t.lineWidth,opacity:t.opacity}})}function g(){return y.map(this._track,function(t){return this.group.transformCoordToLocal(t[0],t[1])},this)}function m(){var t=g.call(this),e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}var v=i(21),y=i(1),x=i(3),_=y.bind,b=y.each,w=Math.min,M=Math.max,S=Math.pow,A=1e4,T=2,C=["mousedown","mousemove","mouseup"];n.prototype={constructor:n,enable:function(t,e){this._disabled=!1,f.call(this),this._containerRect=e!==!1?e||t.getBoundingRect():null,t.add(this.group)},update:function(t){d.call(this,t&&y.clone(t))},disable:function(){this._disabled=!0,f.call(this)},dispose:function(){this.disable(),b(C,function(t){this.zr.off(t,this._handlers[t])},this)}},y.mixin(n,v);var I={line:{create:p,getRanges:function(){var t=m.call(this),e=w(t[0][0],t[1][0]),i=M(t[0][0],t[1][0]);return[[e,i]]},update:function(t){var e=t[0],i=this.opt.width;this._cover.setShape({x:e[0],y:-i/2,width:e[1]-e[0],height:i})}},rect:{create:p,getRanges:function(){var t=m.call(this),e=[w(t[1][0],t[0][0]),w(t[1][1],t[0][1])],i=[M(t[1][0],t[0][0]),M(t[1][1],t[0][1])];return[[[e[0],i[0]],[e[1],i[1]]]]},update:function(t){var e=t[0];this._cover.setShape({x:e[0][0],y:e[1][0],width:e[0][1]-e[0][0],height:e[1][1]-e[1][0]})}}};t.exports=n},function(t,e,i){function n(){this.group=new r.Group,this._symbolEl=new s({silent:!0})}var r=i(3),o=i(24),a=i(1),s=r.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var i=e.points,n=e.sizes,r=this.symbolProxy,o=r.shape,a=0;a<i.length;a++){var s=i[a],l=n[a];l[0]<4?t.rect(s[0]-l[0]/2,s[1]-l[1]/2,l[0],l[1]):(o.x=s[0]-l[0]/2,o.y=s[1]-l[1]/2,o.width=l[0],o.height=l[1],r.buildPath(t,o))}}}),l=n.prototype;l.updateData=function(i){this.group.removeAll();var t=this._symbolEl,e=i.hostModel;t.setShape({points:i.mapArray(i.getItemLayout),sizes:i.mapArray(function(t){var e=i.getItemVisual(t,"symbolSize");return a.isArray(e)||(e=[e,e]),e})}),t.symbolProxy=o.createSymbol(i.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor,t.setStyle(e.getModel("itemStyle.normal").getItemStyle(["color"]));var n=i.getVisual("color");n&&t.setColor(n),this.group.add(this._symbolEl)},l.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},l.remove=function(){this.group.removeAll()},t.exports=n},function(t,e,i){var n=i(3),r=n.Line.prototype,o=n.BezierCurve.prototype;t.exports=n.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(null==e.cpx1||null==e.cpy1?r:o).buildPath(t,e)},pointAt:function(t){var e=this.shape;return null==e.cpx1||null==e.cpy1?r.pointAt.call(this,t):o.pointAt.call(this,t)}})},function(t,e,i){var n=i(1),r=i(2);i(164),i(165),r.registerVisualCoding("chart",n.curry(i(44),"scatter","circle",null)),r.registerLayout(n.curry(i(53),"scatter")),i(34)},function(t,e,i){"use strict";var n=i(36),r=i(13);t.exports=r.extend({type:"series.scatter",dependencies:["grid","polar"],getInitialData:function(t,e){var i=n(t.data,this,e);return i},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,geoIndex:0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(t,e,i){var n=i(38),r=i(161);i(2).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new n,this._largeSymbolDraw=new r},render:function(t,e,i){var n=t.getData(),r=this._largeSymbolDraw,o=this._normalSymbolDraw,a=this.group,s=t.get("large")&&n.count()>t.get("largeThreshold")?r:o;this._symbolDraw=s,s.updateData(n),a.add(s.group),a.remove(s===r?o.group:r.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)}})},function(t,e,i){i(101),i(39),i(40),i(172),i(173),i(168),i(169),i(99),i(98)},function(t,e,i){function n(e,t){var n=[1/0,-(1/0)];return c(t,function(t){var i=t.getData();i&&c(t.coordDimToDataDim(e),function(t){var e=i.getDataExtent(t);e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])})},this),n}function r(e,n,t){var i=t.getAxisModel(),r=i.axis.scale,o=[0,100],a=[e.start,e.end],s=[];return n=n.slice(),l(n,i,r),c(["startValue","endValue"],function(t){s.push(null!=e[t]?r.parse(e[t]):null)}),c([0,1],function(t){var e=s[t],i=a[t];null!=i||null==e?(null==i&&(i=o[t]),e=r.parse(h.linearMap(i,o,n,!0))):i=h.linearMap(e,n,o,!0),s[t]=h.round(e),a[t]=h.round(i)}),{valueWindow:u(s),percentWindow:u(a)}}function l(n,r,o){return c(["min","max"],function(t,e){var i=r.get(t,!0);null!=i&&(i+"").toLowerCase()!=="data"+t&&(n[e]=o.parse(i))}),r.get("scale",!0)||(n[0]>0&&(n[0]=0),n[1]<0&&(n[1]=0)),n}function o(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var o=e||0===n[0]&&100===n[1],a=!e&&h.getPixelPrecision(r,[0,500]),s=!(e||20>a&&a>=0),l=e||o||s;i.setRange&&i.setRange(l?null:+r[0].toFixed(a),l?null:+r[1].toFixed(a))}}var a=i(1),h=i(4),c=a.each,u=h.asc,s=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this.ecModel=n,this._dataZoomModel=i};s.prototype={constructor:s,hostedBy:function(t){return this._dataZoomModel===t},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[];return this.ecModel.eachSeries(function(t){this._axisIndex===t.get(this._dimName+"AxisIndex")&&e.push(t)},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,r=this.getAxisModel(),o="x"===i||"y"===i;o?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var a;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(a=t)}),a},reset:function(t){if(t===this._dataZoomModel){var e=this._dataExtent=n(this._dimName,this.getTargetSeriesModels()),i=r(t.option,e,this);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,o(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,o(this,!0))},filterData:function(t){function n(t){return t>=i[0]&&t<=i[1]}if(t===this._dataZoomModel){var r=this._dimName,e=this.getTargetSeriesModels(),o=t.get("filterMode"),i=this._valueWindow,a=this.getOtherAxisModel();t.get("$fromToolbox")&&a&&"category"===a.get("type")&&(o="empty"),c(e,function(e){var i=e.getData();i&&c(e.coordDimToDataDim(r),function(t){"empty"===o?e.setData(i.map(t,function(t){return n(t)?t:NaN})):i.filterSelf(t,n)})})}}},t.exports=s},function(t,e,i){t.exports=i(39).extend({type:"dataZoom.inside",defaultOption:{zoomLock:!1}})},function(t,e,i){function r(t,e,i,n){e=e.slice();var r=n.axisModels[0];if(r){var o=c(t,r,i),a=o.signal*(e[1]-e[0])*o.pixel/o.pixelLength;return l(a,e,[0,100],"rigid"),e}}function a(t,e,i,n,r,o){i=i.slice();var a=r.axisModels[0];if(a){var s=c(e,a,n),l=s.pixel-s.pixelStart,h=l/s.pixelLength*(i[1]-i[0])+i[0];return t=Math.max(t,0),i[0]=(i[0]-h)*t+h,i[1]=(i[1]-h)*t+h,u(i)}}function c(t,e,i){var n=e.axis,r=i.rect,o={};return"x"===n.dim?(o.pixel=t[0],o.pixelLength=r.width,o.pixelStart=r.x,o.signal=n.inverse?1:-1):(o.pixel=t[1],o.pixelLength=r.height,o.pixelStart=r.y,o.signal=n.inverse?-1:1),o}function u(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var n=i(40),s=i(1),l=i(71),h=i(174),d=s.bind,f=n.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(i,t,n,e){f.superApply(this,"render",arguments),h.shouldRecordRange(e,i.id)&&(this._range=i.getPercentRange());var r=this.getTargetInfo().cartesians,o=s.map(r,function(t){return h.generateCoordId(t.model)});s.each(r,function(t){var e=t.model;h.register(n,{coordId:h.generateCoordId(e),allCoordIds:o,coordinateSystem:e.coordinateSystem,dataZoomId:i.id,throttleRage:i.get("throttle",!0),panGetRange:d(this._onPan,this,t),zoomGetRange:d(this._onZoom,this,t)})},this)},remove:function(){h.unregister(this.api,this.dataZoomModel.id),f.superApply(this,"remove",arguments),this._range=null},dispose:function(){h.unregister(this.api,this.dataZoomModel.id),f.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,i,n){return this._range=r([i,n],this._range,e,t)},_onZoom:function(t,e,i,n,r){var o=this.dataZoomModel;return o.option.zoomLock?this._range:this._range=a(1/i,[n,r],this._range,e,t,o)}});t.exports=f},function(t,e,i){var n=i(39);t.exports=n.extend({type:"dataZoom.select"})},function(t,e,i){t.exports=i(40).extend({type:"dataZoom.select"})},function(t,e,i){var n=i(39),r=(i(11),i(1),n.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#ddd",fillerColor:"rgba(47,69,84,0.15)",handleColor:"rgba(148,164,165,0.95)",handleSize:10,labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}},mergeOption:function(t){r.superApply(this,"mergeOption",arguments)}}));t.exports=r},function(t,e,i){function l(t){return"x"===t?"y":"x"}var h=i(1),f=i(3),r=i(126),n=i(40),o=f.Rect,a=i(4),p=a.linearMap,s=i(11),c=i(71),u=a.asc,d=h.bind,g=Math.round,m=Math.max,v=h.each,y=7,x=1,_=30,b="horizontal",w="vertical",M=5,S=["line","bar","candlestick","scatter"],A=n.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._halfHandleSize,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return A.superApply(this,"render",arguments),r.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),this._halfHandleSize=g(t.get("handleSize")/2),this.dataZoomModel.get("show")===!1?void this.group.removeAll():(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){A.superApply(this,"remove",arguments),r.clear(this,"_dispatchZoomAction")},dispose:function(){A.superApply(this,"dispose",arguments),r.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new f.Group;this._renderBackground(),this._renderDataShadow(),this._renderHandle(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),n={width:e.getWidth(),height:e.getHeight()},r=this._orient===b?{right:n.width-i.x-i.width,top:n.height-_-y,width:i.width,height:_}:{right:y,top:i.y,width:_,height:i.height},o=s.getLayoutParams(t.option);h.each(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=r[t])});var a=s.getLayoutRect(o,n,t.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],this._orient===w&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==b||r?i===b&&r?{scale:a?[-1,1]:[-1,-1]}:i!==w||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.position[0]=e.x-s.x,t.position[1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=m(this._size[0],4*t),i=[t,e-t];return i},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new o({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,n=i.getRawData(),r=i.getShadowDim?i.getShadowDim():t.otherDim,o=n.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s=[0,e[1]],l=[0,e[0]],h=[[e[0],0],[0,0]],c=l[1]/(n.count()-1),u=0,d=Math.round(n.count()/e[0]);n.each([r],function(t,e){if(d>0&&e%d)return void(u+=c);var i=null==t||isNaN(t)||""===t?null:p(t,o,s,!0);null!=i&&h.push([u,i]),u+=c}),this._displayables.barGroup.add(new f.Polyline({shape:{points:h},style:{fill:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:0},silent:!0,z2:-20}))}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,o=e.get("showDataShadow");if(o!==!1){var a,s=this.ecModel;return e.eachTargetAxis(function(n,r){var t=e.getAxisProxy(n.name,r).getTargetSeriesModels();h.each(t,function(t){if(!(a||o!==!0&&h.indexOf(S,t.get("type"))<0)){var e=l(n.name),i=s.getComponent(n.axis,r).axis;a={thisAxis:i,series:t,thisDim:n.name,otherDim:e,otherAxisInverse:t.coordinateSystem.getOtherAxis(i).inverse}}},this)},this),a}},_renderHandle:function(){var t=this._displayables,i=t.handles=[],n=t.handleLabels=[],r=this._displayables.barGroup,e=this._size;r.add(t.filler=new o({draggable:!0,cursor:"move",drift:d(this._onDragMove,this,"all"),ondragend:d(this._onDragEnd,this),onmouseover:d(this._showDataInfo,this,!0),onmouseout:d(this._showDataInfo,this,!1),style:{fill:this.dataZoomModel.get("fillerColor"),textPosition:"inside"}})),r.add(new o(f.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{stroke:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:x,fill:"rgba(0,0,0,0)"}}))),v([0,1],function(t){r.add(i[t]=new o({style:{fill:this.dataZoomModel.get("handleColor")},cursor:"move",draggable:!0,drift:d(this._onDragMove,this,t),ondragend:d(this._onDragEnd,this),onmouseover:d(this._showDataInfo,this,!0),onmouseout:d(this._showDataInfo,this,!1)}));var e=this.dataZoomModel.textStyleModel;this.group.add(n[t]=new f.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:e.getTextColor(),textFont:e.getFont()}}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[p(t[0],[0,100],e,!0),p(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this._handleEnds,n=this._getViewExtent();c(e,i,n,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=u([p(i[0],n,[0,100],!0),p(i[1],n,[0,100],!0)])},_updateView:function(){var i=this._displayables,n=this._handleEnds,t=u(n.slice()),r=this._size,o=this._halfHandleSize;v([0,1],function(t){var e=i.handles[t];e.setShape({x:n[t]-o,y:-1,width:2*o,height:r[1]+2,r:1})},this),i.filler.setShape({x:t[0],y:0,width:t[1]-t[0],height:this._size[1]}),this._updateDataInfo()},_updateDataInfo:function(){function t(t){var e=f.getTransform(o.handles[t],this.group),i=f.transformDirection(0===t?"right":"left",e),n=this._halfHandleSize+M,r=f.applyTransform([h[t]+(0===t?-n:n),this._size[1]/2],e);a[t].setStyle({x:r[0],y:r[1],textVerticalAlign:s===b?"middle":i,textAlign:s===b?i:"center",text:l[t]})}var i=this.dataZoomModel,o=this._displayables,a=o.handleLabels,s=this._orient,l=["",""];if(i.get("showDetail")){var n,r;i.eachTargetAxis(function(t,e){n||(n=i.getAxisProxy(t.name,e).getDataValueWindow(),r=this.ecModel.getComponent(t.axis,e).axis)},this),n&&(l=[this._formatLabel(n[0],r),this._formatLabel(n[1],r)])}var h=u(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter");if(h.isFunction(n))return n(t);var r=i.get("labelPrecision");return null!=r&&"auto"!==r||(r=e.getPixelPrecision()),t=null==t&&isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20)),h.isString(n)&&(t=n.replace("{value}",t)),t},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._applyBarTransform([e,i],!0);this._updateInterval(t,n[0]),this._updateView(),this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var i=this._displayables.barGroup.getLocalTransform();return f.applyTransform(t,i,e)},_findCoordRect:function(){var t,e=this.getTargetInfo();if(e.cartesians.length)t=e.cartesians[0].model.coordinateSystem.getRect();else{var i=this.api.getWidth(),n=this.api.getHeight();t={x:.2*i,y:.2*n,width:.6*i,height:.6*n}}return t}});t.exports=A},function(t,e,i){function a(t){var e=t.getZr();return e[n]||(e[n]={})}function s(t,e,i){var n=new d(t.getZr());return n.enable(),n.on("pan",p(r,i)),n.on("zoom",p(o,i)),n}function l(i){u.each(i,function(t,e){t.count||(t.controller.off("pan").off("zoom"),delete i[e])})}function r(e,i,n){h(e,function(t){return t.panGetRange(e.controller,i,n)})}function o(e,i,n,r){h(e,function(t){return t.zoomGetRange(e.controller,i,n,r)})}function h(t,i){var n=[];u.each(t.dataZoomInfos,function(t){var e=i(t);e&&n.push({dataZoomId:t.dataZoomId,start:e[0],end:e[1]})}),t.dispatchAction(n)}function c(t,e){t.dispatchAction({type:"dataZoom",batch:e})}var u=i(1),d=i(70),f=i(126),p=u.curry,n="\0_ec_dataZoom_roams",g={register:function(t,n){var e=a(t),r=n.dataZoomId,o=n.coordId;u.each(e,function(t,e){var i=t.dataZoomInfos;i[r]&&u.indexOf(n.allCoordIds,o)<0&&(delete i[r],t.count--)}),l(e);var i=e[o];i||(i=e[o]={coordId:o,dataZoomInfos:{},count:0},i.controller=s(t,n,i),i.dispatchAction=u.curry(c,t)),i.controller.rect=n.coordinateSystem.getRect().clone(),f.createOrUpdate(i,"dispatchAction",n.throttleRate,"fixRate"),!i.dataZoomInfos[r]&&i.count++,i.dataZoomInfos[r]=n},unregister:function(t,i){var e=a(t);u.each(e,function(t){var e=t.dataZoomInfos;e[i]&&(delete e[i],t.count--)}),l(e)},shouldRecordRange:function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var i=0,n=t.batch.length;n>i;i++)if(t.batch[i].dataZoomId===e)return!1;return!0},generateCoordId:function(t){return t.type+"\0_"+t.id}};t.exports=g},function(t,e,i){i(101),i(39),i(40),i(170),i(171),i(99),i(98)},function(t,e,i){i(177),i(179),i(178);var n=i(2);n.registerProcessor("filter",i(180))},function(t,e,i){"use strict";var r=i(1),n=i(12),o=i(2).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateData(i);var n=this._data,r=this.option.selected;if(n[0]&&"single"===this.get("selectedMode")){var o=!1;for(var a in r)r[a]&&(this.select(a),o=!0);!o&&this.select(n[0].get("name"))}},mergeOption:function(t){o.superCall(this,"mergeOption",t),this._updateData(this.ecModel)},_updateData:function(t){var e=r.map(this.get("data")||[],function(t){return"string"==typeof t&&(t={name:t}),new n(t,this,this.ecModel)},this);this._data=e;var i=r.map(t.getSeries(),function(t){return t.name});t.eachSeries(function(t){if(t.legendDataProvider){var e=t.legendDataProvider();i=i.concat(e.mapArray(e.getName))}}),this._availableNames=i},getData:function(){return this._data},select:function(t){var e=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;r.each(n,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(t in e&&!e[t])&&r.indexOf(this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0}});t.exports=o},function(t,e,i){function m(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function v(t,e,i){t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function y(t,e,i){t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var n=i(1),x=i(24),_=i(3),r=i(103),b=n.curry,w="#ccc";t.exports=i(2).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(l,h,c){var u=this.group;if(u.removeAll(),l.get("show")){var d=l.get("selectedMode"),f=l.get("align");"auto"===f&&(f="right"===l.get("left")&&"vertical"===l.get("orient")?"right":"left");var p={},g={};n.each(l.getData(),function(t){var e=t.get("name");""!==e&&"\n"!==e||u.add(new _.Group({newline:!0}));var i=h.getSeriesByName(e)[0];if(p[e]=t,i&&!g[e]){var n=i.getData(),r=n.getVisual("color");"function"==typeof r&&(r=r(i.getDataParams(0)));var o=n.getVisual("legendSymbol")||"roundRect",a=n.getVisual("symbol"),s=this._createItem(e,t,l,o,a,f,r,d);s.on("click",b(m,e,c)).on("mouseover",b(v,i,"",c)).on("mouseout",b(y,i,"",c)),g[e]=!0}},this),h.eachRawSeries(function(o){if(o.legendDataProvider){var a=o.legendDataProvider();a.each(function(t){var e=a.getName(t);if(p[e]&&!g[e]){var i=a.getItemVisual(t,"color"),n="roundRect",r=this._createItem(e,p[e],l,n,null,f,i,d);r.on("click",b(m,e,c)).on("mouseover",b(v,o,e,c)).on("mouseout",b(y,o,e,c)),g[e]=!0}},!1,this)}},this),r.layout(u,l,c),r.addBackground(u,l)}},_createItem:function(t,e,i,n,r,o,a,s){var l=i.get("itemWidth"),h=i.get("itemHeight"),c=i.isSelected(t),u=new _.Group,d=e.getModel("textStyle"),f=e.get("icon");if(n=f||n,u.add(x.createSymbol(n,0,0,l,h,c?a:w)),!f&&r&&(r!==n||"none"==r)){var p=.8*h;"none"===r&&(r="circle"),u.add(x.createSymbol(r,(l-p)/2,(h-p)/2,p,p,c?a:w))}var g="left"===o?l+5:-5,m=o,v=i.get("formatter");"string"==typeof v&&v?t=v.replace("{name}",t):"function"==typeof v&&(t=v(t));var y=new _.Text({style:{text:t,x:g,y:h/2,fill:c?d.getTextColor():w,textFont:d.getFont(),textAlign:m,textVerticalAlign:"middle"}});return u.add(y),u.add(new _.Rect({shape:u.getBoundingRect(),invisible:!0})),u.eachChild(function(t){t.silent=!s}),this.group.add(u),_.setHoverStyle(u),u}})},function(t,e,i){function n(e,i,t){var r,o={},a="toggleSelected"===e;return t.eachComponent("legend",function(n){a&&null!=r?n[r?"select":"unSelect"](i.name):(n[e](i.name),r=n.isSelected(i.name));var t=n.getData();s.each(t,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);e in o?o[e]=o[e]&&i:o[e]=i}})}),{name:i.name,selected:o}}var r=i(2),s=i(1);r.registerAction("legendToggleSelect","legendselectchanged",s.curry(n,"toggleSelected")),r.registerAction("legendSelect","legendselected",s.curry(n,"select")),r.registerAction("legendUnSelect","legendunselected",s.curry(n,"unSelect"))},function(t,e){t.exports=function(t){var i=t.findComponents({mainType:"legend"});i&&i.length&&t.filterSeries(function(t){for(var e=0;e<i.length;e++)if(!i[e].isSelected(t.name))return!1;return!0})}},function(t,e,i){i(183),i(184),i(2).registerPreprocessor(function(t){t.markLine=t.markLine||{}})},function(t,e,i){i(185),i(186),i(2).registerPreprocessor(function(t){t.markPoint=t.markPoint||{}})},function(t,e,i){var a=i(7),s=i(2).extendComponentModel({type:"markLine",dependencies:["series","grid","polar"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},mergeOption:function(t,r,e,o){e||r.eachSeries(function(t){var e=t.get("markLine"),i=t.markLineModel;if(!e||!e.data)return void(t.markLineModel=null);if(i)i.mergeOption(e,r,!0);else{o&&a.defaultEmphasis(e.label,["position","show","textStyle","distance","formatter"]);var n={seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0};i=new s(e,this,r,n)}t.markLineModel=i},this)},defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});t.exports=s},function(t,e,i){function h(t,e){return p.dataFilter(t,e[0])&&p.dataFilter(t,e[1])}function m(t,e,i,n,r,o,a){var s,l=o.coordinateSystem,h=t.getItemModel(e),c=h.get("x"),u=h.get("y");if(null!=c&&null!=u)s=[x.parsePercent(c,a.getWidth()),x.parsePercent(u,a.getHeight())];else{if(o.getMarkerPosition)s=o.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=l.dimensions,f=t.get(d[0],e),p=t.get(d[1],e);s=l.dataToPoint([f,p])}if(n&&"cartesian2d"===l.type){var g=null!=r?l.getAxis(1===r?"x":"y"):l.getAxesByScale("ordinal")[0];g&&g.onBand&&(s["x"===g.dim?0:1]=g.toGlobalCoord(g.getExtent()[i?0:1]))}}t.setItemLayout(e,s)}function v(t,i,e){var n;n=t?y.map(t&&t.dimensions,function(t){var e=i.getData().getDimensionInfo(i.coordDimToDataDim(t)[0])||{};return e.name=t,e}):[{name:"value",type:"float"}];var r=new c(n,e),o=new c(n,e),a=new c([],e),s=y.map(e.get("data"),y.curry(u,i,t,e));t&&(s=y.filter(s,y.curry(h,t)));var l=t?p.dimValueGetter:function(t){return t.value};return r.initData(y.map(s,function(t){return t[0]}),null,l),o.initData(y.map(s,function(t){return t[1]}),null,l),a.initData(y.map(s,function(t){return t[2]})),{from:r,to:o,line:a}}var y=i(1),c=i(14),n=i(9),r=i(7),x=i(4),o=n.addCommas,a=n.encodeHTML,p=i(104),_=i(84),u=function(t,e,i,n){var r=t.getData(),o=n.type;if(!y.isArray(n)&&("min"===o||"max"===o||"average"===o)){var a=p.getAxisInfo(n,r,e,t),s=a.baseAxis.dim+"Axis",l=a.valueAxis.dim+"Axis",h=a.baseAxis.scale.getExtent(),c=y.clone(n),u={};c.type=null,c[s]=h[0],u[s]=h[1];var d=p.numCalculate(r,a.valueDataDim,o);d=a.valueAxis.coordToData(a.valueAxis.dataToCoord(d));var f=i.get("precision");f>=0&&(d=+d.toFixed(f)),c[l]=u[l]=d,n=[c,u,{type:o,valueIndex:n.valueIndex,value:d}]}return n=[p.dataTransform(t,n[0]),p.dataTransform(t,n[1]),y.extend({},n[2])],n[2].type=n[2].type||"",y.merge(n[2],n[0]),y.merge(n[2],n[1]),n},b={formatTooltip:function(t){var e=this._data,i=this.getRawValue(t),n=y.isArray(i)?y.map(i,o).join(", "):o(i),r=e.getName(t);return this.name+"<br />"+((r?a(r)+" : ":"")+n)},getRawDataArray:function(){return this.option.data},getData:function(){return this._data},setData:function(t){this._data=t}};y.defaults(b,r.dataFormatMixin),i(2).extendComponentView({type:"markLine",init:function(){this._markLineMap={}},render:function(t,i,n){var e=this._markLineMap;for(var r in e)e[r].__keep=!1;i.eachSeries(function(t){var e=t.markLineModel;e&&this._renderSeriesML(t,e,i,n)},this);for(var r in e)e[r].__keep||this.group.remove(e[r].group)},updateLayout:function(t,e,l){e.eachSeries(function(r){var t=r.markLineModel;if(t){var o=t.getData(),a=t.__from,s=t.__to;a.each(function(t){var e=o.getItemModel(t),i=e.get("type"),n=e.get("valueIndex");m(a,t,!0,i,n,r,l),m(s,t,!1,i,n,r,l)}),o.each(function(t){o.setItemLayout(t,[a.getItemLayout(t),s.getItemLayout(t)])}),this._markLineMap[r.name].updateLayout()}},this)},_renderSeriesML:function(a,i,t,s){function r(t,e,i,n,r){var o=t.getItemModel(e);m(t,e,i,n,r,a,s),t.setItemVisual(e,{symbolSize:o.get("symbolSize")||g[i?0:1],symbol:o.get("symbol",!0)||p[i?0:1],color:o.get("itemStyle.normal.color")||l.getVisual("color")})}var e=a.coordinateSystem,n=a.name,l=a.getData(),o=this._markLineMap,h=o[n];h||(h=o[n]=new _),this.group.add(h.group);var c=v(e,a,i),u=c.from,d=c.to,f=c.line;i.__from=u,i.__to=d,y.extend(i,b),i.setData(f);var p=i.get("symbol"),g=i.get("symbolSize");y.isArray(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),c.from.each(function(t){var e=f.getItemModel(t),i=e.get("type"),n=e.get("valueIndex");r(u,t,!0,i,n),r(d,t,!1,i,n)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.normal.color");f.setItemVisual(t,{color:e||u.getItemVisual(t,"color")}),f.setItemLayout(t,[u.getItemLayout(t),d.getItemLayout(t)])}),h.updateData(f,u,d),c.line.eachItemGraphicEl(function(t,e){t.traverse(function(t){t.dataModel=i})}),h.__keep=!0}})},function(t,e,i){var a=i(7),s=i(2).extendComponentModel({type:"markPoint",dependencies:["series","grid","polar"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},mergeOption:function(t,r,e,o){e||r.eachSeries(function(t){var e=t.get("markPoint"),i=t.markPointModel;if(!e||!e.data)return void(t.markPointModel=null);if(i)i.mergeOption(e,r,!0);else{o&&a.defaultEmphasis(e.label,["position","show","textStyle","distance","formatter"]);var n={seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0};i=new s(e,this,r,n)}t.markPointModel=i},this)},defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2},emphasis:{}}}});t.exports=s},function(t,e,i){function h(s,l,h){var c=l.coordinateSystem;s.each(function(t){var e,i=s.getItemModel(t),n=i.getShallow("x"),r=i.getShallow("y");if(null!=n&&null!=r)e=[f.parsePercent(n,h.getWidth()),f.parsePercent(r,h.getHeight())];else if(l.getMarkerPosition)e=l.getMarkerPosition(s.getValues(s.dimensions,t));else if(c){var o=s.get(c.dimensions[0],t),a=s.get(c.dimensions[1],t);e=c.dataToPoint([o,a])}s.setItemLayout(t,e)})}function c(t,i,e){var n;n=t?d.map(t&&t.dimensions,function(t){var e=i.getData().getDimensionInfo(i.coordDimToDataDim(t)[0])||{};return e.name=t,e}):[{name:"value",type:"float"}];var r=new s(n,e),o=d.map(e.get("data"),d.curry(l.dataTransform,i));return t&&(o=d.filter(o,d.curry(l.dataFilter,t))),r.initData(o,null,t?l.dimValueGetter:function(t){return t.value}),r}var u=i(38),d=i(1),n=i(9),r=i(7),f=i(4),o=n.addCommas,a=n.encodeHTML,s=i(14),l=i(104),p={getRawDataArray:function(){return this.option.data},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=d.isArray(i)?d.map(i,o).join(", "):o(i),r=e.getName(t);return this.name+"<br />"+((r?a(r)+" : ":"")+n)},getData:function(){return this._data},setData:function(t){this._data=t}};d.defaults(p,r.dataFormatMixin),i(2).extendComponentView({type:"markPoint",init:function(){this._symbolDrawMap={}},render:function(t,e,i){var n=this._symbolDrawMap;for(var r in n)n[r].__keep=!1;e.eachSeries(function(t){var e=t.markPointModel;e&&this._renderSeriesMP(t,e,i)},this);for(var r in n)n[r].__keep||(n[r].remove(),this.group.remove(n[r].group))},updateLayout:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(h(e.getData(),t,i),this._symbolDrawMap[t.name].updateLayout(e))},this)},_renderSeriesMP:function(t,n,e){var i=t.coordinateSystem,r=t.name,o=t.getData(),a=this._symbolDrawMap,s=a[r];s||(s=a[r]=new u);var l=c(i,t,n);d.mixin(n,p),n.setData(l),h(n.getData(),t,e),l.each(function(t){var e=l.getItemModel(t),i=e.getShallow("symbolSize");"function"==typeof i&&(i=i(n.getRawValue(t),n.getDataParams(t))),l.setItemVisual(t,{symbolSize:i,color:e.get("itemStyle.normal.color")||o.getVisual("color"),symbol:e.getShallow("symbol")})}),s.updateData(l),this.group.add(s.group),l.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=n})}),s.__keep=!0}})},function(t,e,i){"use strict";var n=i(2),x=i(3),_=i(11);n.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"}}}),n.extendComponentView({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=new x.Text({style:{text:t.get("text"),textFont:r.getFont(),fill:r.getTextColor(),textBaseline:"top"},z2:10}),l=s.getBoundingRect(),h=t.get("subtext"),c=new x.Text({style:{text:h,textFont:o.getFont(),fill:o.getTextColor(),y:l.height+t.get("itemGap"),textBaseline:"top"},z2:10}),u=t.get("link"),d=t.get("sublink");s.silent=!u,c.silent=!d,u&&s.on("click",function(){window.open(u,t.get("target"))}),d&&c.on("click",function(){window.open(d,t.get("subtarget"))}),n.add(s),h&&n.add(c);var f=n.getBoundingRect(),p=t.getBoxLayoutParams();p.width=f.width,p.height=f.height;var g=_.getLayoutRect(p,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?g.x+=g.width:"center"===a&&(g.x+=g.width/2)),n.position=[g.x,g.y],s.setStyle("textAlign",a),c.setStyle("textAlign",a),f=n.getBoundingRect();var m=g.margin,v=t.getItemStyle(["color","opacity"]);v.fill=t.get("backgroundColor");var y=new x.Rect({shape:{x:f.x-m[3],y:f.y-m[0],width:f.width+m[1]+m[3],height:f.height+m[0]+m[2]},style:v,silent:!0});x.subPixelOptimizeRect(y),n.add(y)}}})},function(t,e,i){i(189),i(190),i(195),i(193),i(191),i(192),i(194)},function(t,e,i){var n=i(29),r=i(1),o=i(2).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(t){o.superApply(this,"mergeDefaultAndTheme",arguments),r.each(this.option.feature,function(t,e){var i=n.get(e);i&&r.merge(t,i.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});t.exports=o},function(n,t,r){(function(t){function v(t){return 0===t.indexOf("my")}var y=r(29),x=r(1),_=r(3),b=r(12),e=r(52),i=r(103),w=r(17);n.exports=r(2).extendComponentView({type:"toolbox",render:function(u,d,f){function t(t,e){var i,n=m[t],r=m[e],o=h[n],a=new b(o,u,u.ecModel);if(n&&!r){if(v(n))i={model:a,onclick:a.option.onclick,featureName:n};else{var s=y.get(n);if(!s)return;i=new s(a)}c[n]=i}else{if(i=c[r],!i)return;i.model=a}return!n&&r?void(i.dispose&&i.dispose(d,f)):!a.get("show")||i.unusable?void(i.remove&&i.remove(d,f)):(l(a,i,n),a.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},void(i.render&&i.render(a,d,f)))}function l(a,s,t){var l=a.getModel("iconStyle"),e=s.getIcons?s.getIcons():a.get("icon"),h=a.get("title")||{};if("string"==typeof e){var i=e,n=h;e={},h={},e[t]=i,h[t]=n}var c=a.iconPaths={};x.each(e,function(t,e){var i=l.getModel("normal").getItemStyle(),n=l.getModel("emphasis").getItemStyle(),r={x:-g/2,y:-g/2,width:g,height:g},o=0===t.indexOf("image://")?(r.image=t.slice(8),new _.Image({style:r})):_.makePath(t.replace("path://",""),{style:i,hoverStyle:n,rectHover:!0},r,"center");_.setHoverStyle(o),u.get("showTitle")&&(o.__title=h[e],o.on("mouseover",function(){o.setStyle({text:h[e],textPosition:n.textPosition||"bottom",textFill:n.fill||n.stroke||"#000",textAlign:n.textAlign||"center"})}).on("mouseout",function(){o.setStyle({textFill:null})})),o.trigger(a.get("iconStatus."+e)||"normal"),p.add(o),o.on("click",x.bind(s.onclick,s,d,f,e)),c[e]=o})}var p=this.group;if(p.removeAll(),u.get("show")){var g=+u.get("itemSize"),h=u.get("feature")||{},c=this._features||(this._features={}),m=[];x.each(h,function(t,e){m.push(e)}),new e(this._featureNames||[],m).add(t).update(t).remove(x.curry(t,null)).execute(),this._featureNames=m,i.layout(p,u,f),i.addBackground(p,u),p.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=w.getBoundingRect(e,i.font),r=t.position[0]+p.position[0],o=t.position[1]+p.position[1]+g,a=!1;o+n.height>f.getHeight()&&(i.textPosition="top",a=!0);var s=a?-5-n.height:g+8;r+n.width/2>f.getWidth()?(i.textPosition=["100%",s],i.textAlign="right"):r-n.width/2<0&&(i.textPosition=[0,s],i.textAlign="left")}})}},remove:function(e,i){x.each(this._features,function(t){t.remove&&t.remove(e,i)}),this.group.removeAll()},dispose:function(e,i){x.each(this._features,function(t){t.dispose&&t.dispose(e,i)})}})}).call(t,r(201))},function(t,e,i){function n(t){var r={},o=[],a=[];return t.eachRawSeries(function(t){var e=t.coordinateSystem;if(!e||"cartesian2d"!==e.type&&"polar"!==e.type)o.push(t);else{var i=e.getBaseAxis();if("category"===i.type){var n=i.dim+"_"+i.index;r[n]||(r[n]={categoryAxis:i,valueAxis:e.getOtherAxis(i),series:[]},a.push({axisDim:i.dim,axisIndex:i.index})),r[n].series.push(t)}else o.push(t)}}),{seriesGroupByCategoryAxis:r,other:o,meta:a}}function r(t){var u=[];return w.each(t,function(t,e){var i=t.categoryAxis,n=t.valueAxis,r=n.dim,o=[" "].concat(w.map(t.series,function(t){return t.name})),a=[i.model.getCategories()];w.each(t.series,function(t){a.push(t.getRawData().mapArray(r,function(t){return t}))});for(var s=[o.join(S)],l=0;l<a[0].length;l++){for(var h=[],c=0;c<a.length;c++)h.push(a[c][l]);s.push(h.join(S))}u.push(s.join("\n"))}),u.join("\n\n"+d+"\n\n")}function o(t){return w.map(t,function(t){var r=t.getRawData(),o=[t.name],a=[];return r.each(r.dimensions,function(){for(var t=arguments.length,e=arguments[t-1],i=r.getName(e),n=0;t-1>n;n++)a[n]=arguments[n];o.push((i?i+S:"")+a.join(S))}),o.join("\n")}).join("\n\n"+d+"\n\n")}function _(t){var e=n(t);return{value:w.filter([r(e.seriesGroupByCategoryAxis),o(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+d+"\n\n"),meta:e.meta}}function c(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s(t){var e=t.slice(0,t.indexOf("\n"));return e.indexOf(S)>=0?!0:void 0}function l(t){for(var e=t.split(/\n+/g),i=c(e.shift()).split(f),n=[],r=w.map(i,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=c(e[o]).split(f);n.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:n}}function h(t){for(var e=t.split(/\n+/g),i=c(e.shift()),n=[],r=0;r<e.length;r++){var o,a=c(e[r]).split(f),s="",l=!1;isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),n[r]={name:s,value:[]},o=n[r].value):o=n[r]=[];for(var h=0;h<a.length;h++)o.push(+a[h]);1===o.length&&(l?n[r].value=o[0]:n[r]=o[0])}return{name:i,data:n}}function b(t,o){var e=t.split(new RegExp("\n*"+d+"\n*","g")),a={series:[]};return w.each(e,function(t,e){if(s(t)){var i=l(t),n=o[e],r=n.axisDim+"Axis";n&&(a[r]=a[r]||[],a[r][n.axisIndex]={data:i.categories},a.series=a.series.concat(i.series))}else{var i=h(t);a.series.push(i)}}),a}function a(t){this._dom=null,this.model=t}function u(t,n){return w.map(t,function(t,e){var i=n&&n[e];return w.isObject(i)&&!w.isArray(i)?(w.isObject(t)&&!w.isArray(t)&&(t=t.value),w.defaults({value:t},i)):t})}var w=i(1),M=i(33),d=new Array(60).join("-"),S="\t",f=new RegExp("["+S+"]+","g");a.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},a.prototype.onclick=function(t,e){function i(){n.removeChild(o),x._dom=null}var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),s=r.get("lang")||[];a.innerHTML=s[0]||r.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=r.get("textColor");var l=document.createElement("div"),h=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:hidden;";var c=r.get("optionToContent"),u=r.get("contentToOption"),d=_(t);if("function"==typeof c){var f=c(e.getOption());"string"==typeof f?l.innerHTML=f:w.isDom(f)&&l.appendChild(f)}else l.appendChild(h),h.readOnly=r.get("readOnly"),h.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",h.style.color=r.get("textColor"),h.style.borderColor=r.get("textareaBorderColor"),h.style.backgroundColor=r.get("textareaColor"),h.value=d.value;var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var x=this;M.addEventListener(v,"click",i),M.addEventListener(y,"click",function(){var t;try{t="function"==typeof u?u(l,e.getOption()):b(h.value,p)}catch(t){throw i(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),i()}),v.innerHTML=s[1],y.innerHTML=s[2],y.style.cssText=m,v.style.cssText=m,!r.get("readOnly")&&g.appendChild(y),g.appendChild(v),M.addEventListener(h,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+S+e.substring(n),this.selectionStart=this.selectionEnd=i+1,M.stop(t)}}),o.appendChild(a),o.appendChild(l),o.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},a.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},a.prototype.dispose=function(t,e){this.remove(t,e)},i(29).register("dataView",a),i(2).registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,n){var r=[];w.each(t.newOption.series,function(t){var e=n.getSeriesByName(t.name)[0];if(e){var i=e.get("data");r.push({name:t.name,data:u(t.data,i)})}else r.push(w.extend({type:"scatter"},t))}),n.mergeOption(w.defaults({series:r},t.newOption))}),t.exports=a},function(t,e,i){"use strict";function n(t){this.model=t,this._controllerGroup,this._controller,this._isZoomActive}function c(t,i){var n=[{axisModel:t.getAxis("x").model,axisIndex:0},{axisModel:t.getAxis("y").model,axisIndex:0}];return n.grid=t,i.eachComponent({mainType:"dataZoom",subType:"select"},function(t,e){r("xAxis",n[0].axisModel,t,i)&&(n[0].dataZoomModel=t),r("yAxis",n[1].axisModel,t,i)&&(n[1].dataZoomModel=t)}),n}function r(t,e,i,n){var r=i.get(t+"Index");return null!=r&&n.getComponent(t,r)===e}function u(t,e){var i=e.grid,n=new h(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]);if(n.intersect(i.getRect())){var r=i.getCartesian(e[0].axisIndex,e[1].axisIndex),o=r.pointToData([t[0][0],t[1][0]],!0),a=r.pointToData([t[0][1],t[1][1]],!0);return[v([o[0],a[0]]),v([o[1],a[1]])]}}function d(t,e,i,n){var r=e[i],o=r.dataZoomModel;return o?{dataZoomId:o.id,startValue:t[i][0],endValue:t[i][1]}:void 0}function o(t,e){t.setIconStatus("back",p.count(e)>1?"emphasis":"normal")}var s=i(1),a=i(4),l=i(160),h=i(8),f=i(26),p=i(100),g=i(102),m=s.each,v=a.asc;i(175);var y="\0_ec_\0toolbox-dataZoom_";n.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var x=n.prototype;x.render=function(t,e,i){o(t,e)},x.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new f,e.getZr().add(n)),_[i].call(this,n,this.model,t,e)},x.remove=function(t,e){this._disposeController(),g.release("globalPan",e.getZr())},x.dispose=function(t,e){var i=e.getZr();g.release("globalPan",i),this._disposeController(),this._controllerGroup&&i.remove(this._controllerGroup)};var _={zoom:function(t,e,i,n){var r=this._isZoomActive=!this._isZoomActive,o=n.getZr();g[r?"take":"release"]("globalPan",o),e.setIconStatus("zoom",r?"emphasis":"normal"),r?(o.setDefaultCursorStyle("crosshair"),this._createController(t,e,i,n)):(o.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,i,n){this._dispatchAction(p.pop(i),n)}};x._createController=function(t,e,i,n){var r=this._controller=new l("rect",n.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",s.bind(this._onSelected,this,r,e,i,n)),r.enable(t,!1)},x._disposeController=function(){var t=this._controller;t&&(t.off("selected"),t.dispose())},x._onSelected=function(t,e,s,i,n){if(n.length){var l=n[0];t.update();var h={};s.eachComponent("grid",function(t,e){var i=t.coordinateSystem,n=c(i,s),r=u(l,n);if(r){var o=d(r,n,0,"x"),a=d(r,n,1,"y");o&&(h[o.dataZoomId]=o),a&&(h[a.dataZoomId]=a)}},this),p.push(s,h),this._dispatchAction(h,i)}},x._dispatchAction=function(t,e){var i=[];m(t,function(t){i.push(t)}),i.length&&e.dispatchAction({type:"dataZoom",from:this.uid,batch:s.clone(i,!0)})},i(29).register("dataZoom",n),i(2).registerPreprocessor(function(n){function t(n,t){if(t){var r=n+"Index",o=t[r];null==o||s.isArray(o)||(o=o===!1?[]:[o]),e(n,function(t,e){if(null==o||-1!==s.indexOf(o,e)){var i={type:"select",$fromToolbox:!0,id:y+n+e};i[r]=e,a.push(i)}})}}function e(t,e){var i=n[t];s.isArray(i)||(i=i?[i]:[]),m(i,e)}if(n){var a=n.dataZoom||(n.dataZoom=[]);s.isArray(a)||(a=[a]);var i=n.toolbox;if(i&&(s.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;t("xAxis",r),t("yAxis",r)}}}),t.exports=n},function(t,e,i){"use strict";function n(t){this.model=t}var f=i(1);n.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var r=n.prototype;r.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return f.each(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var p={line:function(t,e,i,n){return"bar"===t?f.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0):void 0},bar:function(t,e,i,n){return"line"===t?f.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0):void 0},stack:function(t,e,i,n){return"line"===t||"bar"===t?f.merge({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0):void 0},tiled:function(t,e,i,n){return"line"===t||"bar"===t?f.merge({id:e,stack:""},n.get("option.tiled")||{},!0):void 0}},o=[["line","bar"],["stack","tiled"]];r.onclick=function(t,e,c){var u=this.model,i=u.get("seriesIndex."+c);if(p[c]){var d={series:[]},n=function(t){var e=t.subType,i=t.id,n=p[c](e,i,t,u);n&&(f.defaults(n,t.option),d.series.push(n));var r=t.coordinateSystem;if("cartesian2d"===r.type){var o=r.getAxesByScale("ordinal")[0];if(o){var a=o.dim,s=t.get(a+"AxisIndex"),l=a+"Axis";d[l]=d[l]||[];for(var h=0;s>=h;h++)d[l][s]=d[l][s]||{};d[l][s].boundaryGap="bar"===c}}};f.each(o,function(t){f.indexOf(t,c)>=0&&f.each(t,function(t){u.setIconStatus(t,"normal")})}),u.setIconStatus(c,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},n),e.dispatchAction({type:"changeMagicType",currentType:c,newOption:d})}};var a=i(2);a.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),i(29).register("magicType",n),t.exports=n},function(t,e,i){"use strict";function n(t){this.model=t}var r=i(100);n.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var o=n.prototype;o.onclick=function(t,e,i){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},i(29).register("restore",n),i(2).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.exports=n},function(t,e,i){function n(t){this.model=t}var r=i(15);n.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},n.prototype.unusable=!r.canvasSupported;var o=n.prototype;o.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",r=document.createElement("a"),o=i.get("type",!0)||"png";r.download=n+"."+o,r.target="_blank";var a=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(r.href=a,"function"==typeof MouseEvent){var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}else{var l=i.get("lang"),h='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>',c=window.open();c.document.write(h)}},i(29).register("saveAsImage",n),t.exports=n},function(t,e,i){i(198),i(199),i(2).registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),i(2).registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})},function(t,e,i){function a(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return l.map(p,function(t){return t+"transition:"+i}).join(";")}function s(i){var n=[],t=i.get("fontSize"),e=i.getTextColor();return e&&n.push("color:"+e),n.push("font:"+i.getFont()),t&&n.push("line-height:"+Math.round(3*t/2)+"px"),d(["decoration","align"],function(t){var e=i.get(t);e&&n.push("text-"+t+":"+e)}),n.join(";")}function n(r){r=r;var o=[],t=r.get("transitionDuration"),e=r.get("backgroundColor"),i=r.getModel("textStyle"),n=r.get("padding");return t&&o.push(a(t)),e&&(o.push("background-Color:"+h.toHex(e)),o.push("filter:alpha(opacity=70)"),o.push("background-Color:"+e)),d(["width","color","radius"],function(t){var e="border-"+t,i=f(e),n=r.get(i);null!=n&&o.push(e+":"+n+("color"===t?"":"px"))}),o.push(s(i)),null!=n&&o.push("padding:"+u.normalizeCssArray(n).join("px ")+"px"),o.join(";")+";"}function r(i,t){var e=document.createElement("div"),n=t.getZr();this.el=e,this._x=t.getWidth()/2,this._y=t.getHeight()/2,i.appendChild(e),this._container=i,this._show=!1,this._hideTimeout;var r=this;e.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},e.onmousemove=function(t){if(!r.enterable){var e=n.handler;c.normalizeEvent(i,t),e.dispatch("mousemove",t)}},e.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},o(e,i)}function o(e,i){function t(t){n(t.target)&&t.preventDefault()}function n(t){for(;t&&t!==i;){if(t===e)return!0;t=t.parentNode}}c.addEventListener(i,"touchstart",t),c.addEventListener(i,"touchmove",t),c.addEventListener(i,"touchend",t)}var l=i(1),h=i(22),c=i(33),u=i(9),d=l.each,f=u.toCamelCase,p=["","-webkit-","-moz-","-o-"],g="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";r.prototype={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=g+n(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(l.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},t.exports=r},function(t,e,i){i(2).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,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}}})},function(t,e,i){function g(t,e){if(!t||!e)return!1;var i=r.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function f(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function d(t,e,i,n){return{x:t,y:e,width:i,height:n}}function p(t,e,i,n,r,o){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:o,clockwise:!0}}function u(t,e,i,n,r){var o=i.clientWidth,a=i.clientHeight,s=20;return t+o+s>n?t-=o+s:t+=s,e+a+s>r?e-=a+s:e+=s,[t,e]}function m(t,e,i){var n=i.clientWidth,r=i.clientHeight,o=5,a=0,s=0,l=e.width,h=e.height;switch(t){case"inside":a=e.x+l/2-n/2,s=e.y+h/2-r/2;break;case"top":a=e.x+l/2-n/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-n/2,s=e.y+h+o;break;case"left":a=e.x-n-o,s=e.y+h/2-r/2;break;case"right":a=e.x+l+o,s=e.y+h/2-r/2}return[a,s]}function _(t,e,i,n,r,o,a){var s=a.getWidth(),l=a.getHeight(),h=o&&o.getBoundingRect().clone();if(o&&h.applyTransform(o.transform),"function"==typeof t&&(t=t([e,i],r,h)),b.isArray(t))e=x(t[0],s),i=x(t[1],l);else if("string"==typeof t&&o){var c=m(t,h,n.el);e=c[0],i=c[1]}else{var c=u(e,i,n.el,s,l);e=c[0],i=c[1]}n.moveTo(e,i)}function v(t){var e=t.coordinateSystem,i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"single"!==e.type||"item"===i)}var n=i(197),y=i(3),b=i(1),w=i(9),r=i(4),x=r.parsePercent,l=i(15);i(2).extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!l.node){var i=new n(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.removeAll(),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n.update(),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 o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){o._manuallyShowTip({x:o._lastX,y:o._lastY})})}var a=this._api.getZr(),s=this._tryShow;a.off("click",s),a.off("mousemove",s),a.off("mouseout",this._hide),"click"===t.get("triggerOn")?a.on("click",s,this):(a.on("mousemove",s,this),a.on("mouseout",this._hide,this))}},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t.seriesIndex,n=t.dataIndex,r=e.getSeriesByIndex(i),o=this._api;if(null==t.x||null==t.y){if(r||e.eachSeries(function(t){v(t)&&!r&&(r=t)}),r){var a=r.getData();null==n&&(n=a.indexOfName(t.name));var s,l,h=a.getItemGraphicEl(n),c=r.coordinateSystem;if(c&&c.dataToPoint){var u=c.dataToPoint(a.getValues(c.dimensions,n,!0));s=u&&u[0],l=u&&u[1]}else if(h){var d=h.getBoundingRect().clone();d.applyTransform(h.transform),s=d.x+d.width/2,l=d.y+d.height/2}null!=s&&null!=l&&this._tryShow({offsetX:s,offsetY:l,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 r={};return e.eachSeries(function(t){if(v(t)){var e,i,n=t.coordinateSystem;"cartesian2d"===n.type?(e=n.getBaseAxis(),i=e.dim+e.index):"single"===n.type?(e=n.getAxis(),i=e.dim+e.type):(e=n.getBaseAxis(),i=e.dim+n.name),r[i]=r[i]||{coordSys:[],series:[]},r[i].coordSys.push(n),r[i].series.push(t)}},this),r},_tryShow:function(t){var e=t.target,i=this._tooltipModel,n=i.get("trigger"),r=this._ecModel,o=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e.dataIndex){var a=e.dataModel||r.getSeriesByIndex(e.seriesIndex),s=e.dataIndex,l=a.getData().getItemModel(s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(a,s,t)),o.dispatchAction({type:"showTip",from:this.uid,dataIndex:e.dataIndex,seriesIndex:e.seriesIndex})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&o.dispatchAction({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,e,u){var d=t.getModel("axisPointer"),f=d.get("type");if("cross"===f){var i=u.target;if(i&&null!=i.dataIndex){var n=e.getSeriesByIndex(i.seriesIndex),r=i.dataIndex;this._showItemTooltipContent(n,r,u)}}this._showAxisPointer();var p=!0;b.each(this._seriesGroupByAxis,function(t){var e=t.coordSys,i=e[0],n=[u.offsetX,u.offsetY];if(!i.containPoint(n))return void this._hideAxisPointer(i.name);p=!1;var r=i.dimensions,o=i.pointToData(n,!0);n=i.dataToPoint(o);var a=i.getBaseAxis(),s=d.get("axis");"auto"===s&&(s=a.dim);var l=!1,h=this._lastHover;if("cross"===f)g(h.data,o)&&(l=!0),h.data=o;else{var c=b.indexOf(r,s);h.data===o[c]&&(l=!0),h.data=o[c]}"cartesian2d"!==i.type||l?"polar"!==i.type||l?"single"!==i.type||l||this._showSinglePointer(d,i,s,n):this._showPolarPointer(d,i,s,n):this._showCartesianPointer(d,i,s,n),"cross"!==f&&this._dispatchAndShowSeriesTooltipContent(i,t.series,n,o,l)},this),p&&this._hide()},_showCartesianPointer:function(l,h,t,e){function i(t,e,i){var n="x"===t?f(e[0],i[0],e[0],i[1]):f(i[0],e[1],i[1],e[1]),r=c._getPointerElement(h,l,t,n);u?y.updateProps(r,{shape:n},l):r.attr({shape:n})}function n(t,e,i){var n=h.getAxis(t),r=n.getBandWidth(),o=i[1]-i[0],a="x"===t?d(e[0]-r/2,i[0],r,o):d(i[0],e[1]-r/2,o,r),s=c._getPointerElement(h,l,t,a);u?y.updateProps(s,{shape:a},l):s.attr({shape:a})}var c=this,r=l.get("type"),u="cross"!==r;if("cross"===r)i("x",e,h.getAxis("y").getGlobalExtent()),i("y",e,h.getAxis("x").getGlobalExtent()),this._updateCrossText(h,e,l);else{var o=h.getAxis("x"===t?"y":"x"),a=o.getGlobalExtent();"cartesian2d"===h.type&&("line"===r?i:n)(t,e,a)}},_showSinglePointer:function(s,l,t,e){function i(t,e,i){var n=l.getAxis(),r=n.orient,o="horizontal"===r?f(e[0],i[0],e[0],i[1]):f(i[0],e[1],i[1],e[1]),a=h._getPointerElement(l,s,t,o);c?y.updateProps(a,{shape:o},s):a.attr({shape:o})}var h=this,n=s.get("type"),c="cross"!==n,r=l.getRect(),o=[r.y,r.y+r.height];i(t,e,o)},_showPolarPointer:function(h,c,t,e){function i(t,e,i){var n,r=c.pointToCoord(e);if("angle"===t){var o=c.coordToPoint([i[0],r[1]]),a=c.coordToPoint([i[1],r[1]]);n=f(o[0],o[1],a[0],a[1])}else n={cx:c.cx,cy:c.cy,r:r[0]};var s=u._getPointerElement(c,h,t,n);d?y.updateProps(s,{shape:n},h):s.attr({shape:n})}function n(t,e,i){var n,r=c.getAxis(t),o=r.getBandWidth(),a=c.pointToCoord(e),s=Math.PI/180;n="angle"===t?p(c.cx,c.cy,i[0],i[1],(-a[1]-o/2)*s,(-a[1]+o/2)*s):p(c.cx,c.cy,a[0]-o/2,a[0]+o/2,0,2*Math.PI);var l=u._getPointerElement(c,h,t,n);d?y.updateProps(l,{shape:n},h):l.attr({shape:n})}var u=this,r=h.get("type"),o=c.getAngleAxis(),a=c.getRadiusAxis(),d="cross"!==r;if("cross"===r)i("angle",e,a.getExtent()),i("radius",e,o.getExtent()),this._updateCrossText(c,e,h);else{var s=c.getAxis("radius"===t?"angle":"radius"),l=s.getExtent();("line"===r?i:n)(t,e,l)}},_updateCrossText:function(n,t,e){var i=e.getModel("crossStyle"),r=i.getModel("textStyle"),o=this._tooltipModel,a=this._crossText;a||(a=this._crossText=new y.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(a));var s=n.pointToData(t),l=n.dimensions;s=b.map(s,function(t,e){var i=n.getAxis(l[e]);return t="category"===i.type||"time"===i.type?i.scale.getLabel(t):w.addCommas(t.toFixed(i.getPixelPrecision()))}),a.setStyle({fill:r.getTextColor()||i.get("color"),textFont:r.getFont(),text:s.join(", "),x:t[0]+5,y:t[1]-5}),a.z=o.get("z"),a.zlevel=o.get("zlevel")},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,o=r.get("z"),a=r.get("zlevel"),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][i])return s[l][i];var h=e.get("type"),c=e.getModel(h+"Style"),u="shadow"===h,d=c[u?"getAreaStyle":"getLineStyle"](),f="polar"===t.type?u?"Sector":"radius"===i?"Circle":"Line":u?"Rect":"Line";u?d.stroke=null:d.fill=null;var p=s[l][i]=new y[f]({style:d,z:o,zlevel:a,silent:!0,shape:n});return this.group.add(p),p},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r){var o=this._tooltipModel,a=this._tooltipContent,s=t.getBaseAxis(),l=b.map(e,function(t){return{seriesIndex:t.seriesIndex,dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(s.dim),n,s):t.getData().indexOfNearest(t.coordDimToDataDim(s.dim)[0],n["x"===s.dim||"radius"===s.dim?0:1])}}),h=this._lastHover,c=this._api;if(h.payloadBatch&&!r&&c.dispatchAction({type:"downplay",batch:h.payloadBatch}),r||(c.dispatchAction({type:"highlight",batch:l}),h.payloadBatch=l),c.dispatchAction({type:"showTip",dataIndex:l[0].dataIndex,seriesIndex:l[0].seriesIndex,from:this.uid}),s&&o.get("showContent")){var u,d=o.get("formatter"),f=o.get("position"),p=b.map(e,function(t,e){return t.getDataParams(l[e].dataIndex)});a.show(o);var g=l[0].dataIndex;if(!r){if(this._ticket="",d){if("string"==typeof d)u=w.formatTpl(d,p);else if("function"==typeof d){var m=this,v="axis_"+t.name+"_"+g,y=function(t,e){t===m._ticket&&(a.setContent(e),_(f,i[0],i[1],a,p,null,c))};m._ticket=v,u=d(p,v,y)}}else{var x=e[0].getData().getName(g);u=(x?x+"<br />":"")+b.map(e,function(t,e){return t.formatTooltip(l[e].dataIndex,!0)}).join("<br />")}a.setContent(u)}_(f,i[0],i[1],a,p,null,c)}},_showItemTooltipContent:function(t,e,i){var n=this._api,r=t.getData(),o=r.getItemModel(e),a=this._tooltipModel,s=this._tooltipContent,l=o.getModel("tooltip");if(l.parentModel?l.parentModel.parentModel=a:l.parentModel=this._tooltipModel,l.get("showContent")){var h,c=l.get("formatter"),u=l.get("position"),d=t.getDataParams(e);if(c){if("string"==typeof c)h=w.formatTpl(c,d);else if("function"==typeof c){var f=this,p="item_"+t.name+"_"+e,g=function(t,e){t===f._ticket&&(s.setContent(e),_(u,i.offsetX,i.offsetY,s,d,i.target,n))};f._ticket=p,h=c(d,p,g)}}else h=t.formatTooltip(e);s.show(l),s.setContent(h),_(u,i.offsetX,i.offsetY,s,d,i.target,n)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&b.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&&b.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid})},dispose:function(t,e){if(!l.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._tryShow),i.off("mouseout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})},,function(t,e){function i(){h=!1,a.length?l=a.concat(l):c=-1,l.length&&n()}function n(){if(!h){var t=setTimeout(i);h=!0;for(var e=l.length;e;){for(a=l,l=[];++c<e;)a&&a[c].run();c=-1,e=l.length}a=null,h=!1,clearTimeout(t)}}function r(t,e){this.fun=t,this.array=e}function o(){}var a,s=t.exports={},l=[],h=!1,c=-1;s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new r(t,e)),1!==l.length||h||setTimeout(n,0)},r.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=o,s.addListener=o,s.once=o,s.off=o,s.removeListener=o,s.removeAllListeners=o,s.emit=o,s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(t,e,i){function n(t){return parseInt(t,10)}function r(t,i){s.initVML(),this.root=t,this.storage=i;var e=document.createElement("div"),n=document.createElement("div");e.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(e),this._vmlRoot=n,this._vmlViewport=e,this.resize();var r=i.delFromMap,o=i.addToMap;i.delFromMap=function(t){var e=i.get(t);r.call(i,t),e&&e.onRemove&&e.onRemove(n)},i.addToMap=function(t){t.onAdd&&t.onAdd(n),o.call(i,t)},this._firstPaint=!0}function o(t){return function(){a('In IE8.0 VML mode painter not support method "'+t+'"')}}var a=i(45),s=i(158);r.prototype={constructor:r,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t.length;i++){var n=t[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||n(e.width))-n(e.paddingLeft)-n(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||n(e.height))-n(e.paddingTop)-n(e.paddingBottom)|0}};for(var l=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],h=0;h<l.length;h++){var c=l[h];r.prototype[c]=o(c)}t.exports=r},function(t,e,i){if(!i(15).canvasSupported){var n=i(5),r=i(8),V=i(27).CMD,o=i(22),A=i(17),a=i(66),s=i(35),l=i(46),h=i(65),c=i(6),P=i(16),F=i(158),G=Math.round,Z=Math.sqrt,u=Math.abs,W=Math.cos,H=Math.sin,q=Math.max,j=n.applyTransform,X=",",U="progid:DXImageTransform.Microsoft",Y=21600,$=Y/2,d=1e5,f=1e3,Q=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=Y+","+Y,t.coordorigin="0,0"},T=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},p=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},K=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},g=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},J=function(t,e,i){return(parseFloat(t)||0)*d+(parseFloat(e)||0)*f+i},C=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},z=function(t,e,i){var n=o.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=p(n[0],n[1],n[2]),t.opacity=i*n[3])},O=function(t){var e=o.parse(t);return[p(e[0],e[1],e[2]),e[3]]},m=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof P){var r,o=0,a=[0,0],s=0,l=1,h=i.getBoundingRect(),c=h.width,u=h.height;if("linear"===n.type){r="gradient";var d=i.transform,f=[n.x*c,n.y*u],p=[n.x2*c,n.y2*u];d&&(j(f,f,d),j(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];o=180*Math.atan2(g,m)/Math.PI,0>o&&(o+=360),1e-6>o&&(o=0)}else{r="gradientradial";var f=[n.x*c,n.y*u],d=i.transform,v=i.scale,y=c,x=u;a=[(f[0]-h.x)/y,(f[1]-h.y)/x],d&&j(f,f,d),y/=v[0]*Y,x/=v[1]*Y;var _=q(y,x);s=0/_,l=2*n.r/_-s}var b=n.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,M=[],S=[],A=0;w>A;A++){var T=b[A],C=O(T.color);S.push(T.offset*l+s+" "+C[0]),0!==A&&A!==w-1||M.push(C)}if(w>=2){var I=M[0][0],k=M[1][0],L=M[0][1]*e.opacity,D=M[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=I,t.color2=k,t.colors=S.join(","),t.opacity=D,t.opacity2=L}"radial"===r&&(t.focusposition=a.join(","))}else z(t,n,e.opacity)},v=function(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*Y),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof P||z(t,e.stroke,e.opacity)},I=function(t,e,i,n){var r="fill"==e,o=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.lineWidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof P&&g(t,o),o||(o=F.createNode(e)),r?m(o,i,n):v(o,i),K(t,o)):(t[r?"filled":"stroked"]="false",g(t,o))},tt=[[],[],[]],y=function(t,e){var i,n,r,o,a,s,l=V.M,h=V.C,c=V.L,u=V.A,d=V.Q,f=[];for(o=0;o<t.length;){switch(r=t[o++],n="",i=0,r){case l:n=" m ",i=1,a=t[o++],s=t[o++],tt[0][0]=a,tt[0][1]=s;break;case c:n=" l ",i=1,a=t[o++],s=t[o++],tt[0][0]=a,tt[0][1]=s;break;case d:case h:n=" c ",i=3;var p,g,m=t[o++],v=t[o++],y=t[o++],x=t[o++];r===d?(p=y,g=x,y=(y+2*m)/3,x=(x+2*v)/3,m=(a+2*m)/3,v=(s+2*v)/3):(p=t[o++],g=t[o++]),tt[0][0]=m,tt[0][1]=v,tt[1][0]=y,tt[1][1]=x,tt[2][0]=p,tt[2][1]=g,a=p,s=g;break;case u:var _=0,b=0,w=1,M=1,S=0;e&&(_=e[4],b=e[5],w=Z(e[0]*e[0]+e[1]*e[1]),M=Z(e[2]*e[2]+e[3]*e[3]),S=Math.atan2(-e[1]/M,e[0]/w));var A=t[o++],T=t[o++],C=t[o++],I=t[o++],k=t[o++]+S,L=t[o++]+k+S;o++;var D=t[o++],P=A+W(k)*C,z=T+H(k)*I,m=A+W(L)*C,v=T+H(L)*I,O=D?" wa ":" at ";f.push(O,G(((A-C)*w+_)*Y-$),X,G(((T-I)*M+b)*Y-$),X,G(((A+C)*w+_)*Y-$),X,G(((T+I)*M+b)*Y-$),X,G((P*w+_)*Y-$),X,G((z*M+b)*Y-$),X,G((m*w+_)*Y-$),X,G((v*M+b)*Y-$)),a=m,s=v;break;case V.R:var E=tt[0],R=tt[1];E[0]=t[o++],E[1]=t[o++],R[0]=E[0]+t[o++],R[1]=E[1]+t[o++],e&&(j(E,E,e),j(R,R,e)),E[0]=G(E[0]*Y-$),R[0]=G(R[0]*Y-$),E[1]=G(E[1]*Y-$),R[1]=G(R[1]*Y-$),f.push(" m ",E[0],X,E[1]," l ",R[0],X,E[1]," l ",R[0],X,R[1]," l ",E[0],X,R[1]);break;case V.Z:f.push(" x ")}if(i>0){f.push(n);for(var B=0;i>B;B++){var N=tt[B];e&&j(N,N,e),f.push(G(N[0]*Y-$),X,G(N[1]*Y-$),i-1>B?X:"")}}}return f.join("")};c.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=F.createNode("shape"),Q(i),this._vmlEl=i),I(i,"fill",e,this),I(i,"stroke",e,this);var n=this.transform,r=null!=n,o=i.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];a*=Z(u(s))}o.weight=a+"px"}var l=this.path;this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),this.__dirtyPath=!1),i.path=y(l.data,this.transform),i.style.zIndex=J(this.zlevel,this.z,this.z2),K(t,i),e.text&&this.drawRectText(t,this.getBoundingRect())},c.prototype.onRemove=function(t){g(t,this._vmlEl),this.removeRectText(t)},c.prototype.onAdd=function(t){K(t,this._vmlEl),this.appendRectText(t)};var et=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};l.prototype.brushVML=function(t){var e,i,n=this.style,r=n.image;if(et(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var a=r.runtimeStyle,s=a.width,l=a.height;a.width="auto",a.height="auto",e=r.width,i=r.height,a.width=s,a.height=l,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}r=o}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var h=n.x||0,c=n.y||0,u=n.width,d=n.height,f=n.sWidth,p=n.sHeight,g=n.sx||0,m=n.sy||0,v=f&&p,y=this._vmlEl;y||(y=F.doc.createElement("div"),Q(y),this._vmlEl=y);var x,_=y.style,b=!1,w=1,M=1;if(this.transform&&(x=this.transform,w=Z(x[0]*x[0]+x[1]*x[1]),M=Z(x[2]*x[2]+x[3]*x[3]),b=x[1]||x[2]),b){var S=[h,c],A=[h+u,c],T=[h,c+d],C=[h+u,c+d];j(S,S,x),j(A,A,x),j(T,T,x),j(C,C,x);var I=q(S[0],A[0],T[0],C[0]),k=q(S[1],A[1],T[1],C[1]),L=[];L.push("M11=",x[0]/w,X,"M12=",x[2]/M,X,"M21=",x[1]/w,X,"M22=",x[3]/M,X,"Dx=",G(h*w+x[4]),X,"Dy=",G(c*M+x[5])),_.padding="0 "+G(I)+"px "+G(k)+"px 0",_.filter=U+".Matrix("+L.join("")+", SizingMethod=clip)"}else x&&(h=h*w+x[4],c=c*M+x[5]),_.filter="",_.left=G(h)+"px",_.top=G(c)+"px";var D=this._imageEl,P=this._cropEl;D||(D=F.doc.createElement("div"),this._imageEl=D);var z=D.style;if(v){if(e&&i)z.width=G(w*e*u/f)+"px",z.height=G(M*i*d/p)+"px";else{var O=new Image,E=this;O.onload=function(){O.onload=null,e=O.width,i=O.height,z.width=G(w*e*u/f)+"px",z.height=G(M*i*d/p)+"px",E._imageWidth=e,E._imageHeight=i,E._imageSrc=r},O.src=r}P||(P=F.doc.createElement("div"),P.style.overflow="hidden",this._cropEl=P);var R=P.style;R.width=G((u+g*u/f)*w),R.height=G((d+m*d/p)*M),R.filter=U+".Matrix(Dx="+-g*u/f*w+",Dy="+-m*d/p*M+")",P.parentNode||y.appendChild(P),D.parentNode!=P&&P.appendChild(D)}else z.width=G(w*u)+"px",z.height=G(M*d)+"px",y.appendChild(D),P&&P.parentNode&&(y.removeChild(P),this._cropEl=null);var B="",N=n.opacity;1>N&&(B+=".Alpha(opacity="+G(100*N)+") "),B+=U+".AlphaImageLoader(src="+r+", SizingMethod=scale)",z.filter=B,y.style.zIndex=J(this.zlevel,this.z,this.z2),K(t,y),n.text&&this.drawRectText(t,this.getBoundingRect())}},l.prototype.onRemove=function(t){g(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},l.prototype.onAdd=function(t){K(t,this._vmlEl),this.appendRectText(t)};var x,_="normal",b={},w=0,M=100,S=document.createElement("div"),k=function(t){var e=b[t];if(!e){w>M&&(w=0,b={});var i,n=S.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(t){}e={style:n.fontStyle||_,variant:n.fontVariant||_,weight:n.fontWeight||_,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},b[t]=e,w++}return e};A.measureText=function(t,e){var i=F.doc;x||(x=i.createElement("div"),x.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",F.doc.body.appendChild(x));try{x.style.font=e}catch(t){}return x.innerHTML="",x.appendChild(i.createTextNode(t)),{width:x.offsetWidth}};for(var L=new r,D=function(t,e,i,n){var r=this.style,o=r.text;if(o){var a,s,l=r.textAlign,h=k(r.textFont),c=h.style+" "+h.variant+" "+h.weight+" "+h.size+'px "'+h.family+'"',u=r.textBaseline,d=r.textVerticalAlign;i=i||A.getBoundingRect(o,c,l,u);var f=this.transform;if(f&&!n&&(L.copy(e),L.applyTransform(f),e=L),n)a=e.x,s=e.y;else{var p=r.textPosition,g=r.textDistance;if(p instanceof Array)a=e.x+C(p[0],e.width),s=e.y+C(p[1],e.height),l=l||"left",u=u||"top";else{var m=A.adjustTextPositionOnRect(p,e,i,g);a=m.x,s=m.y,l=l||m.textAlign,u=u||m.textBaseline}}if(d){switch(d){case"middle":s-=i.height/2;break;case"bottom":s-=i.height}u="top"}var v=h.size;switch(u){case"hanging":case"top":s+=v/1.75;break;case"middle":break;default:s-=v/2.25}switch(l){case"left":break;case"center":a-=i.width/2;break;case"right":a-=i.width}var y,x,_,b=F.createNode,w=this._textVmlEl;w?(_=w.firstChild,y=_.nextSibling,x=y.nextSibling):(w=b("line"),y=b("path"),x=b("textpath"),_=b("skew"),x.style["v-text-align"]="left",Q(w),y.textpathok=!0,x.on=!0,w.from="0 0",w.to="1000 0.05",K(w,_),K(w,y),K(w,x),this._textVmlEl=w);var M=[a,s],S=w.style;f&&n?(j(M,M,f),_.on=!0,_.matrix=f[0].toFixed(3)+X+f[2].toFixed(3)+X+f[1].toFixed(3)+X+f[3].toFixed(3)+",0,0",_.offset=(G(M[0])||0)+","+(G(M[1])||0),_.origin="0 0",S.left="0px",S.top="0px"):(_.on=!1,S.left=G(a)+"px",S.top=G(s)+"px"),x.string=T(o);try{x.style.font=c}catch(t){}I(w,"fill",{fill:n?r.fill:r.textFill,opacity:r.opacity},this),I(w,"stroke",{stroke:n?r.stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),w.style.zIndex=J(this.zlevel,this.z,this.z2),K(t,w)}},E=function(t){g(t,this._textVmlEl),this._textVmlEl=null},R=function(t){K(t,this._textVmlEl)},B=[a,s,l,c,h],N=0;N<B.length;N++){var it=B[N].prototype;it.drawRectText=D,it.removeRectText=E,it.appendRectText=R}h.prototype.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.getBoundingRect(),!0)},h.prototype.onRemove=function(t){this.removeRectText(t)},h.prototype.onAdd=function(t){this.appendRectText(t)}}},function(t,e,i){i(203),i(67).registerPainter("vml",i(202))}])});
|