UNPKG

echarts-vue

Version:

ECharts(3.x) component for Vue.js(2.x)

2 lines 788 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ECharts",[],e):"object"==typeof exports?exports.ECharts=e():t.ECharts=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=192)}([function(t,e){function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=R.call(t);if("[object Array]"===i){e=[];for(var r=0,o=t.length;r<o;r++)e[r]=n(t[r])}else if(V[i])e=t.constructor.from(t);else if(!N[i]&&!P(t)&&!A(t)){e={};for(var a in t)t.hasOwnProperty(a)&&(e[a]=n(t[a]))}return e}function i(t,e,r){if(!S(e)||!S(t))return r?n(e):t;for(var o in e)if(e.hasOwnProperty(o)){var a=t[o],s=e[o];!S(s)||!S(a)||_(s)||_(a)||A(s)||A(a)||M(s)||M(a)||P(s)||P(a)?!r&&o in t||(t[o]=n(e[o],!0)):i(a,s,r)}return t}function r(t,e){for(var n=t[0],r=1,o=t.length;r<o;r++)n=i(n,t[r],e);return n}function o(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function a(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function s(){return document.createElement("canvas")}function l(){return O||(O=j.createCanvas().getContext("2d")),O}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function c(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)t.prototype[r]=i[r];t.prototype.constructor=t,t.superClass=e}function h(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,a(t,e,n)}function d(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===B)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function p(t,e,n){if(t&&e){if(t.map&&t.map===H)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===W)return t.reduce(e,n,i);for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function v(t,e,n){if(t&&e){if(t.filter&&t.filter===G)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function m(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function y(t,e){var n=F.call(arguments,2);return function(){return t.apply(e,n.concat(F.call(arguments)))}}function x(t){var e=F.call(arguments,1);return function(){return t.apply(this,e.concat(F.call(arguments)))}}function _(t){return"[object Array]"===R.call(t)}function b(t){return"function"==typeof t}function w(t){return"[object String]"===R.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function M(t){return!!N[R.call(t)]}function A(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function I(t){return t!==t}function T(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]}function C(){return Function.call.apply(F,arguments)}function D(t,e){if(!t)throw new Error(e)}function L(t){t[$]=!0}function P(t){return t[$]}function E(t){t&&f(t,function(t,e){this.set(e,t)},this)}function k(t){return new E(t)}var O,N={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},V={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},R=Object.prototype.toString,z=Array.prototype,B=z.forEach,G=z.filter,F=z.slice,H=z.map,W=z.reduce,$="__ec_primitive__";E.prototype={constructor:E,get:function(t){return this["_ec_"+t]},set:function(t,e){return this["_ec_"+t]=e,e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var n in this)this.hasOwnProperty(n)&&t(this[n],n.slice(4))},removeKey:function(t){delete this[t]}};var j={inherits:c,mixin:h,clone:n,merge:i,mergeAll:r,extend:o,defaults:a,getContext:l,createCanvas:s,indexOf:u,slice:C,find:m,isArrayLike:d,each:f,map:p,reduce:g,filter:v,bind:y,curry:x,isArray:_,isString:w,isObject:S,isFunction:b,isBuiltInObject:M,isDom:A,eqNaN:I,retrieve:T,assert:D,setAsPrimitive:L,createHashMap:k,noop:function(){}};t.exports=j},function(t,e,n){(function(e){function i(t){return function(e,n,i){e=e&&e.toLowerCase(),z.prototype[t].call(this,e,n,i)}}function r(){z.call(this)}function o(t,e,n){function i(t,e){return t.prio-e.prio}n=n||{},"string"==typeof e&&(e=tt[e]),this.id,this.group,this._dom=t;var o=this._zr=N.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=O.throttle(V.bind(o.flush,o),17),this._theme=V.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new I,this._api=b(this),z.call(this),this._messageCenter=new r,this._initEvents(),this.resize=V.bind(this.resize,this),this._pendingActions=[],B(Q,i),B(Y,i),o.animation.on("frame",this._onframe,this),V.setAsPrimitive(this)}function a(t,e,n){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=k.parseFinder(r,e);for(var a=0;a<o.length;a++){var s=o[a];if(s[t]&&null!=(i=s[t](r,e,n)))return i}__DEV__&&console.warn("No coordinate system that supports "+t+" found by the given finder.")}function s(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}var a=t._model;if(!i)return void G(t._componentsViews.concat(t._chartsViews),o);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r),a&&a.eachComponent(l,function(e,n){o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function l(t,e){var n=t.type,i=t.escapeConnect,r=q[n],o=r.actionInfo,a=(o.update||"update").split(":"),l=a.pop();a=null!=a[0]&&F(a[0]),this[H]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=V.map(t.batch,function(e){return e=V.defaults(V.extend({},e),t),e.batch=null,e}));var h,d=[],f="highlight"===n||"downplay"===n;G(u,function(t){h=r.action(t,this._model,this._api),h=h||V.extend({},t),h.type=o.event||h.type,d.push(h),f?s(this,l,t,"series"):a&&s(this,l,t,a.main,a.sub)},this),"none"===l||f||a||(this[W]?(Z.prepareAndUpdate.call(this,t),this[W]=!1):Z[l].call(this,t)),h=c?{type:o.event||n,escapeConnect:i,batch:d}:d[0],this[H]=!1,!e&&this._messageCenter.trigger(h.type,h)}function u(t){for(var e=this._pendingActions;e.length;){var n=e.shift();l.call(this,n,t)}}function c(t){!t&&this.trigger("updated")}function h(t,e,n){var i=this._api;G(this._componentsViews,function(r){var o=r.__model;r[t](o,e,i,n),_(o,r)},this),e.eachSeries(function(r,o){var a=this._chartsMap[r.__viewId];a[t](r,e,i,n),_(r,a),x(r,a)},this),y(this._zr,e),G(J,function(t){t(e,i)})}function d(t,e){for(var n="component"===t,i=n?this._componentsViews:this._chartsViews,r=n?this._componentsMap:this._chartsMap,o=this._zr,a=0;a<i.length;a++)i[a].__alive=!1;e[n?"eachComponent":"eachSeries"](function(t,a){if(n){if("series"===t)return}else a=t;var s="_ec_"+a.id+"_"+a.type,l=r[s];if(!l){var u=F(a.type),c=n?L.getClass(u.main,u.sub):P.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,i.push(l),o.add(l.group)}a.__viewId=l.__id=s,l.__alive=!0,l.__model=a,l.group.__ecComponentInfo={mainType:a.mainType,index:a.componentIndex}},this);for(var a=0;a<i.length;){var s=i[a];s.__alive?a++:(o.remove(s.group),s.dispose(e,this._api),i.splice(a,1),delete r[s.__id],s.__id=s.group.__ecComponentInfo=null)}}function f(t,e){G(Y,function(n){n.func(t,e)})}function p(t){var e={};t.eachSeries(function(t){var n=t.get("stack"),i=t.getData();if(n&&"list"===i.type){var r=e[n];e.hasOwnProperty(n)&&r&&(i.stackedOn=r),e[n]=i}})}function g(t,e){var n=this._api;G(Q,function(i){i.isLayout&&i.func(t,n,e)})}function v(t,e,n){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),G(Q,function(r){(!n||!r.isLayout)&&r.func(t,i,e)})}function m(t,e){var n=this._api;G(this._componentsViews,function(i){var r=i.__model;i.render(r,t,n,e),_(r,i)},this),G(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(i,r){var o=this._chartsMap[i.__viewId];o.__alive=!0,o.render(i,t,n,e),o.group.silent=!!i.get("silent"),_(i,o),x(i,o)},this),y(this._zr,t),G(this._chartsViews,function(e){e.__alive||e.remove(t,n)},this)}function y(t,e){var n=t.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!S.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function x(t,e){var n=0;e.group.traverse(function(t){"group"===t.type||t.ignore||n++});var i=+t.get("progressive"),r=n>t.get("progressiveThreshold")&&i&&!S.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(n++/i):-1,r&&t.stopAnimation(!0))});var o=t.get("blendMode")||null;__DEV__&&!S.canvasSupported&&o&&"source-over"!==o&&console.warn("Only canvas support blendMode"),e.group.traverse(function(t){t.isGroup||t.setStyle("blend",o)})}function _(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function b(t){var e=t._coordSysMgr;return V.extend(new A(t),{getCoordinateSystems:V.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function w(t){function e(t,e){for(var i=0;i<t.length;i++){t[i][n]=e}}var n="__connectUpdateStatus";V.each(X,function(i,r){t._messageCenter.on(r,function(i){if(it[t.group]&&0!==t[n]){if(i&&i.escapeConnect)return;var r=t.makeActionFromEvent(i),o=[];V.each(nt,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),G(o,function(t){1!==t[n]&&t.dispatchAction(r)}),e(o,2)}})})}"undefined"==typeof __DEV__&&("undefined"!=typeof window?window.__DEV__=!0:void 0!==e&&(e.__DEV__=!0));var S=n(12),M=n(470),A=n(242),I=n(20),T=n(471),C=n(11),D=n(13),L=n(107),P=n(31),E=n(2),k=n(4),O=n(44),N=n(189),V=n(0),R=n(24),z=n(38),B=n(111),G=V.each,F=C.parseClassType,H="__flagInMainProcess",W="__optionUpdated",$=/^[a-zA-Z0-9_]+$/;r.prototype.on=i("on"),r.prototype.off=i("off"),r.prototype.one=i("one"),V.mixin(r,z);var j=o.prototype;j._onframe=function(){if(this[W]){var t=this[W].silent;this[H]=!0,Z.prepareAndUpdate.call(this),this[H]=!1,this[W]=!1,u.call(this,t),c.call(this,t)}},j.getDom=function(){return this._dom},j.getZr=function(){return this._zr},j.setOption=function(t,e,n){__DEV__&&V.assert(!this[H],"`setOption` should not be called during main process.");var i;if(V.isObject(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[H]=!0,!this._model||e){var r=new T(this._api),o=this._theme;(this._model=new M(null,null,o,r)).init(null,null,o,r)}this._model.setOption(t,K),n?(this[W]={silent:i},this[H]=!1):(Z.prepareAndUpdate.call(this),this._zr.flush(),this[W]=!1,this[H]=!1,u.call(this,i),c.call(this,i))},j.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},j.getModel=function(){return this._model},j.getOption=function(){return this._model&&this._model.getOption()},j.getWidth=function(){return this._zr.getWidth()},j.getHeight=function(){return this._zr.getHeight()},j.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},j.getRenderedCanvas=function(t){if(S.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return V.each(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},j.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;G(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return G(i,function(t){t.group.ignore=!1}),o},j.getConnectedDataURL=function(t){if(S.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(it[e]){var r=1/0,o=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;V.each(nt,function(u,c){if(u.group===e){var h=u.getRenderedCanvas(V.clone(t)),d=u.getDom().getBoundingClientRect();r=n(d.left,r),o=n(d.top,o),a=i(d.right,a),s=i(d.bottom,s),l.push({dom:h,left:d.left,top:d.top})}}),r*=u,o*=u,a*=u,s*=u;var c=a-r,h=s-o,d=V.createCanvas();d.width=c,d.height=h;var f=N.init(d);return G(l,function(t){var e=new E.Image({style:{x:t.left*u-r,y:t.top*u-o,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},j.convertToPixel=V.curry(a,"convertToPixel"),j.convertFromPixel=V.curry(a,"convertFromPixel"),j.containPixel=function(t,e){var n,i=this._model;return t=k.parseFinder(i,t),V.each(t,function(t,i){i.indexOf("Models")>=0&&V.each(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n|=o.containPoint(e,t):__DEV__&&console.warn(i+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else __DEV__&&console.warn(i+": containPoint is not supported")},this)},this),!!n},j.getVisual=function(t,e){var n=this._model;t=k.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel;__DEV__&&(i||console.warn("There is no specified seires model"));var r=i.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=o?r.getItemVisual(o,e):r.getVisual(e)},j.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},j.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var Z={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),i.create(this._model,this._api),f.call(this,e,n),p.call(this,e),i.update(e,n),v.call(this,e,t),m.call(this,e,t);var o=e.get("backgroundColor")||"transparent",a=r.painter;if(a.isSingleCanvas&&a.isSingleCanvas())r.configLayer(0,{clearColor:o});else{if(!S.canvasSupported){var s=R.parse(o);o=R.stringify(s,"rgb"),0===s[3]&&(o="transparent")}o.colorStops||o.image?(r.configLayer(0,{clearColor:o}),this.__hasGradientOrPatternBg=!0,this._dom.style.background="transparent"):(this.__hasGradientOrPatternBg&&r.configLayer(0,{clearColor:null}),this.__hasGradientOrPatternBg=!1,this._dom.style.background=o)}G(J,function(t){t(e,n)})}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),v.call(this,e,t),h.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),v.call(this,e,t,!0),h.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(g.call(this,e,t),h.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;d.call(this,"component",e),d.call(this,"chart",e),Z.update.call(this,t)}};j.resize=function(t){__DEV__&&V.assert(!this[H],"`resize` should not be called during main process."),this[H]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media");Z[e?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[H]=!1;var n=t&&t.silent;u.call(this,n),c.call(this,n)},j.showLoading=function(t,e){if(V.isObject(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),!et[t])return void(__DEV__&&console.warn("Loading effects "+t+" not exists."));var n=et[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)},j.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},j.makeActionFromEvent=function(t){var e=V.extend({},t);return e.type=X[t.type],e},j.dispatchAction=function(t,e){if(V.isObject(e)||(e={silent:!!e}),q[t.type]){if(this[H])return void this._pendingActions.push(t);l.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&S.browser.weChat&&this._throttledZrFlush(),u.call(this,e.silent),c.call(this,e.silent)}},j.on=i("on"),j.off=i("off"),j.one=i("one");var U=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];j._initEvents=function(){G(U,function(t){this._zr.on(t,function(e){var n,i=this.getModel(),r=e.target;if("globalout"===t)n={};else if(r&&null!=r.dataIndex){var o=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=o&&o.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(n=V.extend({},r.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),G(X,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},j.isDisposed=function(){return this._disposed},j.clear=function(){this.setOption({series:[]},!0)},j.dispose=function(){if(this._disposed)return void(__DEV__&&console.warn("Instance "+this.id+" has been disposed"));this._disposed=!0;var t=this._api,e=this._model;G(this._componentsViews,function(n){n.dispose(e,t)}),G(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete nt[this.id]},V.mixin(o,z);var q={},X={},Y=[],K=[],J=[],Q=[],tt={},et={},nt={},it={},rt=new Date-0,ot=new Date-0,at={version:"3.6.2",dependencies:{zrender:"3.5.2"}};at.init=function(t,e,n){if(__DEV__){if(N.version.replace(".","")-0<at.dependencies.zrender.replace(".","")-0)throw new Error("ZRender "+N.version+" is too old for ECharts "+at.version+". Current version need ZRender "+at.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.")}var i=at.getInstanceByDom(t);if(i)return __DEV__&&console.warn("There is a chart instance already initialized on the dom."),i;__DEV__&&(!V.isDom(t)||"CANVAS"===t.nodeName.toUpperCase()||(t.clientWidth||n&&null!=n.width)&&(t.clientHeight||n&&null!=n.height)||console.warn("Can't get dom width or height"));var r=new o(t,e,n);return r.id="ec_"+rt++,nt[r.id]=r,t.setAttribute?t.setAttribute("_echarts_instance_",r.id):t._echarts_instance_=r.id,w(r),r},at.connect=function(t){if(V.isArray(t)){var e=t;t=null,V.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+ot++,V.each(e,function(e){e.group=t})}return it[t]=!0,t},at.disConnect=function(t){it[t]=!1},at.disconnect=at.disConnect,at.dispose=function(t){"string"==typeof t?t=nt[t]:t instanceof o||(t=at.getInstanceByDom(t)),t instanceof o&&!t.isDisposed()&&t.dispose()},at.getInstanceByDom=function(t){var e;return e=t.getAttribute?t.getAttribute("_echarts_instance_"):t._echarts_instance_,nt[e]},at.getInstanceById=function(t){return nt[t]},at.registerTheme=function(t,e){tt[t]=e},at.registerPreprocessor=function(t){K.push(t)},at.registerProcessor=function(t,e){if("function"==typeof t&&(e=t,t=1e3),__DEV__&&isNaN(t))throw new Error("Unkown processor priority");Y.push({prio:t,func:e})},at.registerPostUpdate=function(t){J.push(t)},at.registerAction=function(t,e,n){"function"==typeof e&&(n=e,e="");var i=V.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,V.assert($.test(i)&&$.test(e)),q[i]||(q[i]={action:n,actionInfo:t}),X[e]=i},at.registerCoordinateSystem=function(t,e){I.register(t,e)},at.getCoordinateSystemDimensions=function(t){var e=I.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},at.registerLayout=function(t,e){if("function"==typeof t&&(e=t,t=1e3),__DEV__&&isNaN(t))throw new Error("Unkown layout priority");Q.push({prio:t,func:e,isLayout:!0})},at.registerVisual=function(t,e){if("function"==typeof t&&(e=t,t=3e3),__DEV__&&isNaN(t))throw new Error("Unkown visual priority");Q.push({prio:t,func:e})},at.registerLoading=function(t,e){et[t]=e},at.extendComponentModel=function(t){return C.extend(t)},at.extendComponentView=function(t){return L.extend(t)},at.extendSeriesModel=function(t){return D.extend(t)},at.extendChartView=function(t){return P.extend(t)},at.setCanvasCreator=function(t){V.createCanvas=t},at.registerVisual(2e3,n(485)),at.registerPreprocessor(n(478)),at.registerLoading("default",n(469)),at.registerAction({type:"highlight",event:"highlight",update:"highlight"},V.noop),at.registerAction({type:"downplay",event:"downplay",update:"downplay"},V.noop),at.zrender=N,at.List=n(10),at.Model=n(8),at.Axis=n(30),at.graphic=n(2),at.number=n(3),at.format=n(6),at.throttle=O.throttle,at.matrix=n(18),at.vector=n(5),at.color=n(24),at.util={},G(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){at.util[t]=V[t]}),at.helper=n(467),at.PRIORITY={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},t.exports=at}).call(e,n(73))},function(t,e,n){"use strict";function i(t){return null!=t&&"none"!=t}function r(t){return"string"==typeof t?x.lift(t,-.1):t}function o(t){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,o=t.__hoverStl;o.fill=o.fill||(i(n)?r(n):null),o.stroke=o.stroke||(i(e)?r(e):null);var a={};for(var s in o)o.hasOwnProperty(s)&&(a[s]=t.style[s]);t.__normalStl=a,t.__hoverStlDirty=!1}}function a(t){t.__isHover||(o(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function s(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function l(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&a(t)}):a(t)}function u(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t)}):s(t)}function c(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&o(t)}function h(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&l(this)}function d(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&u(this)}function f(){this.__isEmphasis=!0,l(this)}function p(){this.__isEmphasis=!1,u(this)}function g(t,e,n,i,r,o){if("function"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()){var a=t?"Update":"",s=i.getShallow("animationDuration"+a),l=i.getShallow("animationEasing"+a),u=i.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}var v=n(0),m=n(521),y=n(14),x=n(24),_=n(18),b=n(5),w=n(113),S=n(9),M=Math.round,A=Math.max,I=Math.min,T={};T.Group=n(75),T.Image=n(112),T.Text=n(185),T.Circle=n(512),T.Sector=n(518),T.Ring=n(517),T.Polygon=n(514),T.Polyline=n(515),T.Rect=n(516),T.Line=n(513),T.BezierCurve=n(511),T.Arc=n(510),T.CompoundPath=n(505),T.LinearGradient=n(182),T.RadialGradient=n(506),T.BoundingRect=S,T.extendShape=function(t){return y.extend(t)},T.extendPath=function(t,e){return m.extendFromString(t,e)},T.makePath=function(t,e,n,i){var r=m.createFromString(t,e),o=r.getBoundingRect();if(n){var a=o.width/o.height;if("center"===i){var s,l=n.height*a;l<=n.width?s=n.height:(l=n.width,s=l/a);var u=n.x+n.width/2,c=n.y+n.height/2;n.x=u-l/2,n.y=c-s/2,n.width=l,n.height=s}T.resizePath(r,n)}return r},T.mergePath=m.mergePath,T.resizePath=function(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}},T.subPixelOptimizeLine=function(t){var e=T.subPixelOptimize,n=t.shape,i=t.style.lineWidth;return M(2*n.x1)===M(2*n.x2)&&(n.x1=n.x2=e(n.x1,i,!0)),M(2*n.y1)===M(2*n.y2)&&(n.y1=n.y2=e(n.y1,i,!0)),t},T.subPixelOptimizeRect=function(t){var e=T.subPixelOptimize,n=t.shape,i=t.style.lineWidth,r=n.x,o=n.y,a=n.width,s=n.height;return n.x=e(n.x,i,!0),n.y=e(n.y,i,!0),n.width=Math.max(e(r+a,i,!1)-n.x,0===a?0:1),n.height=Math.max(e(o+s,i,!1)-n.y,0===s?0:1),t},T.subPixelOptimize=function(t,e,n){var i=M(2*t);return(i+M(e))%2==0?i/2:(i+(n?1:-1))/2},T.setHoverStyle=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t,e)}):c(t,e),t.on("mouseover",h).on("mouseout",d),t.on("emphasis",f).on("normal",p)},T.setText=function(t,e,n){var i=e.getShallow("position")||"inside",r=e.getShallow("offset"),o=i.indexOf("inside")>=0?"white":n,a=e.getModel("textStyle");v.extend(t,{textDistance:e.getShallow("distance")||5,textFont:a.getFont(),textPosition:i,textOffset:r,textFill:a.getTextColor()||o})},T.getFont=function(t,e){var n=e&&e.getModel("textStyle");return[t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" ")},T.updateProps=function(t,e,n,i,r){g(!0,t,e,n,i,r)},T.initProps=function(t,e,n,i,r){g(!1,t,e,n,i,r)},T.getTransform=function(t,e){for(var n=_.identity([]);t&&t!==e;)_.mul(n,t.getLocalTransform(),n),t=t.parent;return n},T.applyTransform=function(t,e,n){return e&&!v.isArrayLike(e)&&(e=w.getLocalTransform(e)),n&&(e=_.invert([],e)),b.applyTransform([],t,e)},T.transformDirection=function(t,e,n){var i=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?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=T.applyTransform(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},T.groupTransition=function(t,e,n,i){function r(t){var e={position:b.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=v.extend({},t.shape)),e}if(t&&e){var o=function(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),T.updateProps(t,i,n,t.dataIndex)}}})}},T.clipPointsByRect=function(t,e){return v.map(t,function(t){var n=t[0];n=A(n,e.x),n=I(n,e.x+e.width);var i=t[1];return i=A(i,e.y),i=I(i,e.y+e.height),[n,i]})},T.clipRectByRect=function(t,e){var n=A(t.x,e.x),i=I(t.x+t.width,e.x+e.width),r=A(t.y,e.y),o=I(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},t.exports=T},function(t,e,n){function i(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function r(t){return Math.floor(Math.log(t)/Math.LN10)}var o=n(0),a={};a.linearMap=function(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]},a.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},a.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},a.asc=function(t){return t.sort(function(t,e){return t-e}),t},a.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},a.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r},a.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20},a.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var i=o.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),a=o.map(t,function(t){return(isNaN(t)?0:t)/i*r*100}),s=100*r,l=o.map(a,function(t){return Math.floor(t)}),u=o.reduce(l,function(t,e){return t+e},0),c=o.map(a,function(t,e){return t-l[e]});u<s;){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=c.length;f<p;++f)c[f]>h&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/r},a.MAX_SAFE_INTEGER=9007199254740991,a.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},a.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4};var s=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;a.getTimezoneOffset=function(){return(new Date).getTimezoneOffset()},a.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=s.exec(t);if(!e)return new Date(NaN);var n=a.getTimezoneOffset(),i=e[8]?"Z"===e[8].toUpperCase()?n:60*+e[8].slice(0,3)+n:0;return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0)-i,+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},a.quantity=function(t){return Math.pow(10,r(t))},a.nice=function(t,e){var n,i=r(t),o=Math.pow(10,i),a=t/o;return n=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*o,i>=-20?+t.toFixed(i<0?-i:0):t},a.reformIntervals=function(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]==(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;s<2;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t},a.isNumeric=function(t){return t-parseFloat(t)>=0},t.exports=a},function(t,e,n){function i(t,e){return t&&t.hasOwnProperty(e)}var r=n(6),o=n(3),a=n(8),s=n(0),l=s.each,u=s.isObject,c={};c.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},c.defaultEmphasis=function(t,e){if(t){var n=t.emphasis=t.emphasis||{},i=t.normal=t.normal||{};l(e,function(t){var e=s.retrieve(n[t],i[t]);null!=e&&(n[t]=e)})}},c.LABEL_OPTIONS=["position","offset","show","textStyle","distance","formatter"],c.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},c.isDataItemOption=function(t){return u(t)&&!(t instanceof Array)},c.converDataValue=function(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+o.parseDate(t)),null==t||""===t?NaN:+t)},c.createDataFormatModel=function(t,e){var n=new a;return s.mixin(n,c.dataFormatMixin),n.seriesIndex=e.seriesIndex,n.name=e.name||"",n.mainType=e.mainType,n.subType=e.subType,n.getData=function(){return t},n},c.dataFormatMixin={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),a=n.getName(t,!0),s=n.getRawDataItem(t),l=n.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:a,dataIndex:o,data:s,dataType:e,value:i,color:l,marker:r.getTooltipMarker(l),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,o){e=e||"normal";var a=this.getData(n),s=a.getItemModel(t),l=this.getDataParams(t,n);null!=i&&l.value instanceof Array&&(l.value=l.value[i]);var u=s.get([o||"label",e,"formatter"]);return"function"==typeof u?(l.status=e,u(l)):"string"==typeof u?r.formatTpl(u,l):void 0},getRawValue:function(t,e){var n=this.getData(e),i=n.getRawDataItem(t);if(null!=i)return!u(i)||i instanceof Array?i:i.value},formatTooltip:s.noop},c.mappingToExists=function(t,e){e=(e||[]).slice();var n=s.map(t||[],function(t,e){return{exist:t}});return l(e,function(t,i){if(u(t)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=t.id&&n[r].exist.id===t.id+"")return n[r].option=t,void(e[i]=null);for(var r=0;r<n.length;r++){var o=n[r].exist;if(!(n[r].option||null!=o.id&&null!=t.id||null==t.name||c.isIdInner(t)||c.isIdInner(o)||o.name!==t.name+""))return n[r].option=t,void(e[i]=null)}}}),l(e,function(t,e){if(u(t)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!c.isIdInner(r)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}}),n},c.makeIdAndName=function(t){var e=s.createHashMap();l(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),l(t,function(t,n){var i=t.option;s.assert(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),l(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(u(r)){if(o.name=null!=r.name?r.name+"":i?i.name:"\0-",i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})},c.isIdInner=function(t){return u(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")},c.compressBatches=function(t,e){function n(t,e,n){for(var i=0,r=t.length;i<r;i++)for(var o=t[i].seriesId,a=c.normalizeToArray(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}function i(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var o=i(t[r],!0);o.length&&n.push({seriesId:r,dataIndex:o})}return n}var r={},o={};return n(t||[],r),n(e||[],o,r),[i(r),i(o)]},c.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?s.isArray(e.dataIndex)?s.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?s.isArray(e.name)?s.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},c.makeGetter=function(){var t=0;return function(){var e="\0__ec_prop_getter_"+t++;return function(t){return t[e]||(t[e]={})}}}(),c.parseFinder=function(t,e,n){if(s.isString(e)){var r={};r[e+"Index"]=0,e=r}var o=n&&n.defaultMainType;!o||i(e,o+"Index")||i(e,o+"Id")||i(e,o+"Name")||(e[o+"Index"]=0);var a={};return l(e,function(i,r){var i=e[r];if("dataIndex"===r||"dataIndexInside"===r)return void(a[r]=i);var o=r.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],u=(o[2]||"").toLowerCase();if(!(!l||!u||null==i||"index"===u&&"none"===i||n&&n.includeMainTypes&&s.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===i||(c[u]=i);var h=t.queryComponents(c);a[l+"Models"]=h,a[l+"Model"]=h[0]}}),a},c.dataDimToCoordDim=function(t,e){var n=t.dimensions;e=t.getDimension(e);for(var i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r.name===e)return r.coordDim}},c.coordDimToDataDim=function(t,e){var n=[];return l(t.dimensions,function(i){var r=t.getDimensionInfo(i);r.coordDim===e&&(n[r.coordDimIndex]=r.name)}),n},c.otherDimToDataDim=function(t,e){var n=[];return l(t.dimensions,function(i){var r=t.getDimensionInfo(i),o=r.otherDims,a=o[e];null!=a&&!1!==a&&(n[a]=r.name)}),n},t.exports=c},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,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,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[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,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,e){var n=i.len(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},applyTransform:function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}};i.length=i.len,i.lengthSquare=i.lenSquare,i.dist=i.distance,i.distSquare=i.distanceSquare,t.exports=i},function(t,e,n){var i=n(0),r=n(3),o=n(22),a={};a.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))},a.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},a.normalizeCssArray=function(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};var s=a.encodeHTML=function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"};a.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var o=e[0].$vars||[],a=0;a<o.length;a++){var c=l[a],h=u(c,0);t=t.replace(u(c),n?s(h):h)}for(var d=0;d<r;d++)for(var f=0;f<o.length;f++){var h=e[d][o[f]];t=t.replace(u(l[f],d),n?s(h):h)}return t},a.formatTplSimple=function(t,e,n){return i.each(e,function(e,i){t=t.replace("{"+i+"}",n?s(e):e)}),t},a.getTooltipMarker=function(t,e){return t?'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+a.encodeHTML(t)+";"+(e||"")+'"></span>':""};var c=function(t){return t<10?"0"+t:t};a.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=r.parseDate(e),o=n?"UTC":"",a=i["get"+o+"FullYear"](),s=i["get"+o+"Month"]()+1,l=i["get"+o+"Date"](),u=i["get"+o+"Hours"](),h=i["get"+o+"Minutes"](),d=i["get"+o+"Seconds"]();return t=t.replace("MM",c(s)).toLowerCase().replace("yyyy",a).replace("yy",a%100).replace("dd",c(l)).replace("d",l).replace("hh",c(u)).replace("h",u).replace("mm",c(h)).replace("m",h).replace("ss",c(d)).replace("s",d)},a.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},a.truncateText=o.truncateText,t.exports=a},function(t,e,n){"use strict";function i(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);c=o+v,c>i||l.newline?(o=0,c=v,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);h=a+m,h>r||l.newline?(o+=s+n,a=0,h=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=c+n:a=h+n)})}var r=n(0),o=n(9),a=n(3),s=n(6),l=a.parsePercent,u=r.each,c={},h=c.LOCATION_PARAMS=["left","right","top","bottom","width","height"],d=c.HV_NAMES=[["width","left","right"],["height","top","bottom"]];c.box=i,c.vbox=r.curry(i,"vertical"),c.hbox=r.curry(i,"horizontal"),c.getAvailableSize=function(t,e,n){var i=e.width,r=e.height,o=l(t.x,i),a=l(t.y,r),u=l(t.x2,i),c=l(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),n=s.normalizeCssArray(n||0),{width:Math.max(u-o-n[1]-n[3],0),height:Math.max(c-a-n[0]-n[2],0)}},c.getLayoutRect=function(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,r=e.height,a=l(t.left,i),u=l(t.top,r),c=l(t.right,i),h=l(t.bottom,r),d=l(t.width,i),f=l(t.height,r),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(d)&&(d=i-c-g-a),isNaN(f)&&(f=r-h-p-u),isNaN(d)&&isNaN(f)&&(v>i/r?d=.8*i:f=.8*r),null!=v&&(isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(a)&&(a=i-c-d-g),isNaN(u)&&(u=r-h-f-p),t.left||t.right){case"center":a=i/2-d/2-n[3];break;case"right":a=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=r/2-f/2-n[0];break;case"bottom":u=r-f-p}a=a||0,u=u||0,isNaN(d)&&(d=i-a-(c||0)),isNaN(f)&&(f=r-u-(h||0));var m=new o(a+n[3],u+n[0],d,f);return m.margin=n,m},c.positionElement=function(t,e,n,i,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new o(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();h=h.clone(),h.applyTransform(d)}e=c.getLayoutRect(r.defaults({width:h.width,height:h.height},e),n,i);var f=t.position,p=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[p,g]:[f[0]+p,f[1]+g])}},c.sizeCalculable=function(t,e){return null!=t[d[e][0]]||null!=t[d[e][1]]&&null!=t[d[e][2]]},c.mergeLayoutParam=function(t,e,n){function i(n,i){var r={},s=0,c={},h=0;if(u(n,function(e){c[e]=t[e]}),u(n,function(t){o(e,t)&&(r[t]=c[t]=e[t]),a(r,t)&&s++,a(c,t)&&h++}),l[i])return a(e,n[1])?c[n[2]]=null:a(e,n[2])&&(c[n[1]]=null),c;if(2!==h&&s){if(s>=2)return r;for(var d=0;d<n.length;d++){var f=n[d];if(!o(r,f)&&o(t,f)){r[f]=t[f];break}}return r}return c}function o(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function s(t,e,n){u(t,function(t){e[t]=n[t]})}!r.isObject(n)&&(n={});var l=n.ignoreSize;!r.isArray(l)&&(l=[l,l]);var c=i(d[0],0),h=i(d[1],1);s(d[0],t,c),s(d[1],t,h)},c.getLayoutParams=function(t){return c.copyLayoutParams({},t)},c.copyLayoutParams=function(t,e){return e&&t&&u(h,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t},t.exports=c},function(t,e,n){function i(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function r(t,e,n){for(var i=0;i<e.length&&(!e[i]||null!=(t=t&&"object"==typeof t?t[e[i]]:null));i++);return null==t&&n&&(t=n.get(e)),t}function o(t,e){var n=s.get(t,"getParent");return n?n.call(t,e):t.parentModel}var a=n(0),s=n(21),l=n(12);i.prototype={constructor:i,init:null,mergeOption:function(t){a.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:r(this.option,this.parsePath(t),!e&&o(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&o(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n,a=null==t?this.option:r(this.option,t=this.parsePath(t));return e=e||(n=o(this,t))&&n.getModel(t),new i(a,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(a.clone(this.option))},setReadOnly:function(t){s.setReadOnly(this,t)},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){s.set(this,"getParent",t)},isAnimationEnabled:function(){if(!l.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s.enableClassExtend(i);var u=a.mixin;u(i,n(476)),u(i,n(473)),u(i,n(477)),u(i,n(475)),t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}var r=n(5),o=n(18),a=r.applyTransform,s=Math.min,l=Math.max;i.prototype={constructor:i,union:function(t){var e=s(t.x,this.x),n=s(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this.height=l(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(r){if(r){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,a(t,t,r),a(e,e,r),a(n,n,r),a(i,i,r),this.x=s(t[0],e[0],n[0],i[0]),this.y=s(t[1],e[1],n[1],i[1]);var o=l(t[0],e[0],n[0],i[0]),u=l(t[1],e[1],n[1],i[1]);this.width=o-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=o.create();return o.translate(r,r,[-e.x,-e.y]),o.scale(r,r,[n,i]),o.translate(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof i||(t=i.create(t));var e=this,n=e.x,r=e.x+e.width,o=e.y,a=e.y+e.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height;return!(r<s||l<n||a<u||c<o)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new i(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},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)},t.exports=i},function(t,e,n){(function(e){function i(t,e){f.each(v.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods}function r(t){this._array=t||[]}function o(t){return f.isArray(t)||(t=[t]),t}function a(t,e){var n=t.dimensions,r=new m(f.map(n,t.getDimensionInfo,t),t.hostModel);i(r,t);for(var o=r._storage={},a=t._storage,s=0;s<n.length;s++){var l=n[s],u=a[l];f.indexOf(e,l)>=0?o[l]=new u.constructor(a[l].length):o[l]=a[l]}return r}var s="undefined"==typeof window?e:window,l=void 0===s.Float64Array?Array:s.Float64Array,u=void 0===s.Int32Array?Array:s.Int32Array,c={float:l,int:u,ordinal:Array,number:Array,time:Array},h=n(8),d=n(58),f=n(0),p=n(4),g=f.isObject,v=["stackedOn","hasItemOption","_nameList","_idList","_rawData"];r.prototype.pure=!1,r.prototype.count=function(){return this._array.length},r.prototype.getItem=function(t){return this._array[t]};var m=function(t,e){t=t||["x","y"];for(var n={},i=[],r=0;r<t.length;r++){var o,a={};"string"==typeof t[r]?(o=t[r],a={name:o,coordDim:o,coordDimIndex:0,stackable:!1,type:"number"}):(a=t[r],o=a.name,a.type=a.type||"number",a.coordDim||(a.coordDim=o,a.coordDimIndex=0)),a.otherDims=a.otherDims||{},i.push(o),n[o]=a}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},y=m.prototype;y.type="list",y.hasItemOption=!0,y.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},y.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},y.initData=function(t,e,n){t=t||[];var i=f.isArray(t);if(i&&(t=new r(t)),__DEV__&&!i&&("function"!=typeof t.getItem||"function"!=typeof t.count))throw new Error("Inavlid data provider.");this._rawData=t;var o,a=this._storage={},s=this.indices=[],l=this.dimensions,u=this._dimensionInfos,h=t.count(),d=[],g={};e=e||[];for(var v=0;v<l.length;v++){var m=u[l[v]];0===m.otherDims.itemName&&(o=v);var y=c[m.type];a[l[v]]=new y(h)}var x=this;n||(x.hasItemOption=!1),n=n||function(t,e,n,i){var r=p.getDataItemValue(t);return p.isDataItemOption(t)&&(x.hasItemOption=!0),p.converDataValue(r instanceof Array?r[i]:r,u[e])};for(var v=0;v<h;v++){for(var _=t.getItem(v),b=0;b<l.length;b++){var w=l[b];a[w][v]=n(_,w,v,b)}s.push(v)}for(var v=0;v<h;v++){var _=t.getItem(v);!e[v]&&_&&(null!=_.name?e[v]=_.name:null!=o&&(e[v]=a[l[o]][v]));var S=e[v]||"",M=_&&_.id;!M&&S&&(g[S]=g[S]||0,M=S,g[S]>0&&(M+="__ec__"+g[S]),g[S]++),M&&(d[v]=M)}this._nameList=e,this._idList=d},y.count=function(){return this.indices.length},y.get=function(t,e,n){var i=this._storage,r=this.indices[e];if(null==r||!i[t])return NaN;var o=i[t][r];if(n){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||o<=0&&l<0)&&(o+=l),s=s.stackedOn}}return o},y.getValues=function(t,e,n){var i=[];f.isArray(t)||(n=e,e=t,t=this.dimensions);for(var r=0,o=t.length;r<o;r++)i.push(this.get(t[r],e,n));return i},y.hasValue=function(t){for(var e=this.dimensions,n=this._dimensionInfos,i=0,r=e.length;i<r;i++)if("ordinal"!==n[e[i]].type&&isNaN(this.get(e[i],t)))return!1;return!0},y.getDataExtent=function(t,e,n){t=this.getDimension(t);var i=this._storage[t],r=this.getDimensionInfo(t);e=r&&r.stackable&&e;var o,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var s=1/0,l=-1/0,u=0,c=this.count();u<c;u++)o=this.get(t,u,e),n&&!n(o,t,u)||(o<s&&(s=o),o>l&&(l=o));return this._extent[t+!!e]=[s,l]}return[1/0,-1/0]},y.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var r=0,o=this.count();r<o;r++){var a=this.get(t,r,e);isNaN(a)||(i+=a)}return i},y.indexOf=function(t,e){var n=this._storage,i=n[t],r=this.indices;if(i)for(var o=0,a=r.length;o<a;o++){var s=r[o];if(i[s]===e)return o}return-1},y.indexOfName=function(t){for(var e=this.indices,n=this._nameList,i=0,r=e.length;i<r;i++){if(n[e[i]]===t)return i}return-1},y.indexOfRawIndex=function(t){var e=this.indices,n=e[t];if(null!=n&&n===t)return t;for(var i=0,r=e.length-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},y.indicesOfNearest=function(t,e,n,i){var r=this._storage,o=r[t],a=[];if(!o)return a;null==i&&(i=1/0);for(var s=Number.MAX_VALUE,l=-1,u=0,c=this.count();u<c;u++){var h=e-this.get(t,u,n),d=Math.abs(h);h<=i&&d<=s&&((d<s||h>=0&&l<0)&&(s=d,l=h,a.length=0),a.push(u))}return a},y.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},y.getRawDataItem=function(t){return this._rawData.getItem(this.getRawIndex(t))},y.getName=function(t){return this._nameList[this.indices[t]]||""},y.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},y.each=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),t=f.map(o(t),this.getDimension,this);var r=[],a=t.length,s=this.indices;i=i||this;for(var l=0;l<s.length;l++)switch(a){case 0:e.call(i,l);break;case 1:e.call(i,this.get(t[0],l,n),l);break;case 2:e.call(i,this.get(t[0],l,n),this.get(t[1],l,n),l);break;default:for(var u=0;u<a;u++)r[u]=this.get(t[u],l,n);r[u]=l,e.apply(i,r)}},y.filterSelf=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),t=f.map(o(t),this.getDimension,this);var r=[],a=[],s=t.length,l=this.indices;i=i||this;for(var u=0;u<l.length;u++){var c;if(s)if(1===s)c=e.call(i,this.get(t[0],u,n),u);else{for(var h=0;h<s;h++)a[h]=this.get(t[h],u,n);a[h]=u,c=e.apply(i,a)}else c=e.call(i,u);c&&r.push(l[u])}return this.indices=r,this._extent={},this},y.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n,i),r},y.map=function(t,e,n,i){t=f.map(o(t),this.getDimension,this);var r=a(this,t),s=r.indices=this.indices,l=r._storage,u=[];return this.each(t,function(){var n=arguments[arguments.length-1],i=e&&e.apply(this,arguments);if(null!=i){"number"==typeof i&&(u[0]=i,i=u);for(var r=0;r<i.length;r++){var o=t[r],a=l[o],c=s[n];a&&(a[c]=i[r])}}},n,i),r},y.downSample=function(t,e,n,i){for(var r=a(this,[t]),o=this._storage,s=r._storage,l=this.indices,u=r.indices=[],c=[],h=[],d=Math.floor(1/e),f=s[t],p=this.count(),g=0;g<o[t].length;g++)s[t][g]=o[t][g];for(var g=0;g<p;g+=d){d>p-g&&(d=p-g,c.length=d);for(var v=0;v<d;v++){var m=l[g+v];c[v]=f[m],h[v]=m}var y=n(c),m=h[i(c,y)||0];f[m]=y,u.push(m)}return r},y.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new h(this._rawData.getItem(t),e,e&&e.ecModel)},y.diff=function(t){var e,n=this._idList,i=t&&t._idList;return new d(t?t.indices:[],this.indices,function(t){return null!=(e=i[t])?e:"e\0\0"+t},function(t){return null!=(e=n[t])?e:"e\0\0"+t})},y.getVisual=function(t){var e=this._visual;return e&&e[t]},y.setVisual=function(t,e){if(g(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},y.setLayout=function(t,e){if(g(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},y.getLayout=function(t){return this._layout[t]},y.getItemLayout=function(t){return this._itemLayouts[t]},y.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?f.extend(this._itemLayouts[t]||{},e):e},y.clearItemLayouts=function(){this._itemLayouts.length=0},y.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},y.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};if(this._itemVisuals[t]=i,g(e))for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);else i[e]=n},y.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var x=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};y.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(x,e)),this._graphicEls[t]=e},y.getItemGraphicEl=function(t){return this._graphicEls[t]},y.eachItemGraphicEl=function(t,e){f.each(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},y.cloneShallow=function(){var t=f.map(this.dimensions,this.getDimensionInfo,this),e=new m(t,this.hostModel);return e._storage=this._storage,i(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=f.extend({},this._extent)),e},y.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(f.slice(arguments)))})},y.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],y.CHANGABLE_METHODS=["filterSelf"],t.exports=m}).call(e,n(73))},function(t,e,n){function i(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=n(8),o=n(0),a=Array.prototype.push,s=n(106),l=n(21),u=n(7),c=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){r.call(this,t,e,n,i),this.uid=s.getUID("componentModel")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?u.getLayoutParams(t):{},r=e.getTheme();o.merge(t,r.get(this.mainType)),o.merge(t,this.getDefaultOption()),n&&u.mergeLayoutParam(t,i,n)},mergeOption:function(t,e){o.merge(this.option,t,!0);var n=this.layoutMode;n&&u.mergeLayoutParam(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){if(!l.hasOwn(this,"__defaultOption")){for(var t=[],e=this.constructor;e;){var n=e.prototype.defaultOption;n&&t.push(n),e=e.superClass}for(var i={},r=t.length-1;r>=0;r--)i=o.merge(i,t[r],!0);l.set(this,"__defaultOption",i)}return l.get(this,"__defaultOption")},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});l.enableClassManagement(c,{registerWhenExtend:!0}),s.enableSubTypeDefaulter(c),s.enableTopologicalTravel(c,i),o.mixin(c,n(474)),t.exports=c},function(t,e){var n={};n="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:function(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1]),a&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11)}}(navigator.userAgent),t.exports=n},function(t,e,n){"use strict";var i=n(0),r=n(6),o=n(21),a=n(4),s=n(11),l=n(168),u=n(12),c=n(7),h=o.set,d=o.get,f=r.encodeHTML,p=r.addCommas,g=s.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,n,r){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,n);var o=this.getInitialData(t,n);__DEV__&&i.assert(o,"getInitialData returned invalid data."),h(this,"dataBeforeProcessed",o),this.restoreData()},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?c.getLayoutParams(t):{};i.merge(t,e.getTheme().get(this.subType)),i.merge(t,this.getDefaultOption()),a.defaultEmphasis(t.label,a.LABEL_OPTIONS),this.fillDataTextStyle(t.data),n&&c.mergeLayoutParam(t,r,n)},mergeOption:function(t,e){t=i.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&c.mergeLayoutParam(this.option,t,n);var r=this.getInitialData(t,e);r&&(h(this,"data",r),h(this,"dataBeforeProcessed",r.cloneShallow()))},fillDataTextStyle:function(t){if(t)for(var e=0;e<t.length;e++)t[e]&&t[e].label&&a.defaultEmphasis(t[e].label,a.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){var e=d(this,"data");return null==t?e:e.getLinkedData(t)},setData:function(t){h(this,"data",t)},getRawData:function(){return d(this,"dataBeforeProcessed")},coordDimToDataDim:function(t){return a.coordDimToDataDim(this.getData(),t)},dataDimToCoordDim:function(t){return a.dataDimToCoordDim(this.getData(),t)},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n){var o=d(this,"data"),s=this.getRawValue(t),l=i.isArray(s)?function(n){function s(t,n){var i=o.getDimensionInfo(n);if(i&&!1!==i.otherDims.tooltip){var a=i.type,s=(l?"- "+(i.tooltipName||i.name)+": ":"")+("ordinal"===a?t+"":"time"===a?e?"":r.formatTime("yyyy/MM/dd hh:mm:ss",t):p(t));s&&u.push(f(s))}}var l=i.reduce(n,function(t,e,n){var i=o.getDimensionInfo(n);return t|=i&&!1!==i.tooltip&&null!=i.tooltipName},0),u=[],c=a.otherDimToDataDim(o,"tooltip");return c.length?i.each(c,function(e){s(o.get(e,t),e)}):i.each(n,s),(l?"<br/>":"")+u.join(l?"<br/>":", ")}(s):f(p(s)),u=o.getName(t),c=o.getItemVisual(t,"color");i.isObject(c)&&c.colorStops&&(c=(c.colorStops[0]||{}).color),c=c||"transparent";var h=r.getTooltipMarker(c),g=this.name;return"\0-"===g&&(g=""),g=g?f(g)+(e?": ":"<br/>"):"",e?h+g+l:g+h+(u?f(u)+": "+l:l)},isAnimationEnabled:function(){if(u.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){h(this,"data",d(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(t,e){var n=this.ecModel,i=l.getColorFromPalette.call(this,t,e);return i||(i=n.getColorFromPalette(t,e)),i},getAxisTooltipData:null,getTooltipPosition:null});i.mixin(g,a.dataFormatMixin),i.mixin(g,l),t.exports=g},function(t,e,n){function i(t){r.call(this,t),this.path=null}var r=n(76),o=n(0),a=n(46),s=n(502),l=n(183),u=l.prototype.getCanvasPattern,c=Math.abs,h=new a(!0);i.prototype={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,i=this.path||h,r=n.hasStroke(),o=n.hasFill(),a=n.fill,s=n.stroke,l=o&&!!a.colorStops,c=r&&!!s.colorStops,d=o&&!!a.image,f=r&&!!s.image;if(n.bind(t,this,e),this.setTransform(t),this.__dirty){var p;l&&(p=p||this.getBoundingRect(),this._fillGradient=n.getGradient(t,a,p)),c&&(p=p||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,s,p))}l?t.fillStyle=this._fillGradient:d&&(t.fillStyle=u.call(a,t)),c?t.strokeStyle=this._strokeGradient:f&&(t.strokeStyle=u.call(s,t));var g=n.lineDash,v=n.lineDashOffset,m=!!t.setLineDash,y=this.getGlobalScale();i.setScale(y[0],y[1]),this.__dirtyPath||g&&!m&&r?(i.beginPath(t),g&&!m&&(i.setLineDash(g),i.setLineDashOffset(v)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o&&i.fill(t),g&&m&&(t.setLineDash(g),t.lineDashOffset=v),r&&i.stroke(t),g&&m&&t.setLineDash([]),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new a),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),s.containStroke(o,a/l,t,e)))return!0}if(r.hasFill())return s.contain(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(o.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},i.extend=function(t){var e=function(e){i.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var o in n)!r.hasOwnProperty(o)&&n.hasOwnProperty(o)&&(r[o]=n[o])}t.init&&t.init.call(this,e)};o.inherits(e,i);for(var n in t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},o.inherits(i,r),t.exports=i},function(t,e,n){var i=n(482),r=n(70);n(483),n(481);var o=n(71),a=n(3),s=n(0),l=n(22),u={};u.getScaleExtent=function(t,e){var n,i,r,o=t.type,l=e.getMin(),u=e.getMax(),c=null!=l,h=null!=u,d=t.getExtent();return"ordinal"===o?n=(e.get("data")||[]).length:(i=e.get("boundaryGap"),s.isArray(i)||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(__DEV__&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),i=[0,0]),i[0]=a.parsePercent(i[0],1),i[1]=a.parsePercent(i[1],1),r=d[1]-d[0]||Math.abs(d[0])),null==l&&(l="ordinal"===o?n?0:NaN:d[0]-i[0]*r),null==u&&(u="ordinal"===o?n?n-1:NaN:d[1]+i[1]*r),"dataMin"===l&&(l=d[0]),"dataMax"===u&&(u=d[1]),(null==l||!isFinite(l))&&(l=NaN),(null==u||!isFinite(u))&&(u=NaN),t.setBlank(s.eqNaN(l)||s.eqNaN(u)),e.getNeedCrossZero()&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!h&&(u=0)),[l,u]},u.niceScaleExtent=function(t,e){var n=u.getScaleExtent(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase")),t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:"interval"===t.type?e.get("minInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)},u.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new i(t.getCategories(),[1/0,-1/0]);case"value":return new r;default:return(o.getClass(e)||r).create(t)}},u.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)},u.getAxisLabelInterval=function(t,e,n,i){var r,o=0,a=0,s=1;e.length>40&&(s=Math.floor(e.length/40));for(var u=0;u<t.length;u+=s){var c=t[u],h=l.getBoundingRect(e[u],n,"center","top");h[i?"x":"y"]+=c,h[i?"width":"height"]*=1.3,r?r.intersect(h)?(a++,o=Math.max(o,a)):(r.union(h),a=0):r=h.clone()}return 0===o&&s>1?s:(o+1)*s-1},u.getFormattedLabels=function(t,e){var n=t.scale,i=n.getTicksLabels(),r=n.getTicks();return"string"==typeof e?(e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e),s.map(i,e)):"function"==typeof e?s.map(r,function(n,i){return e(u.getAxisRawValue(t,n),i)},this):i},u.getAxisRawValue=function(t,e){return"category"===t.type?t.scale.getLabel(e):e},t.exports=u},function(t,e,n){function i(t,e,n){function i(t,e,n){h[e]?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,v.set(e,!0))}function a(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}e=e||[],n=n||{},t=(t||[]).slice();var f=(n.dimsDef||[]).slice(),p=o.createHashMap(n.encodeDef),g=o.createHashMap(),v=o.createHashMap(),m=[],y=n.dimCount;if(null==y){var x=r(e[0]);y=Math.max(o.isArray(x)&&x.length||1,t.length,f.length),s(t,function(t){var e=t.dimsDef;e&&(y=Math.max(y,e.length))})}for(var _=0;_<y;_++){var b=l(f[_])?{name:f[_]}:f[_]||{},w=b.name,S=m[_]={otherDims:{}};null!=w&&null==g.get(w)&&(S.name=S.tooltipName=w,g.set(w,_)),null!=b.type&&(S.type=b.type)}p.each(function(t,e){t=p.set(e,c(t).slice()),s(t,function(n,r){l(n)&&(n=g.get(n)),null!=n&&n<y&&(t[r]=n,i(m[n],e,r))})});var M=0;s(t,function(t,e){var n,t,r,a;l(t)?(n=t,t={}):(n=t.name,t=o.clone(t),r=t.dimsDef,a=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null);var h=c(p.get(n));if(!h.length)for(var d=0;d<(r&&r.length||1);d++){for(;M<m.length&&null!=m[M].coordDim;)M++;M<m.length&&h.push(M++)}s(h,function(e,o){var s=m[e];i(u(s,t),n,o),null==s.name&&r&&(s.name=s.tooltipName=r[o]),a&&u(s.otherDims,a)})});for(var A=n.extraPrefix||"value",I=0;I<y;I++){var S=m[I]=m[I]||{};null==S.coordDim&&(S.coordDim=a(A,v,n.extraFromZero),S.coordDimIndex=0,S.isExtraCoord=!0),null==S.name&&(S.name=a(S.coordDim,g)),null==S.type&&d(e,I)&&(S.type="ordinal")}return m}function r(t){return o.isArray(t)?t:o.isObject(t)?t.value:t}var o=n(0),a=n(4),s=o.each,l=o.isString,u=o.defaults,c=a.normalizeToArray,h={tooltip:1,label:1,itemName:1},d=i.guessOrdinal=function(t,e){for(var n=0,i=t.length;n<i;n++){var a=r(t[n]);if(!o.isArray(a))return!1;var a=a[e];if(null!=a&&isFinite(a))return!1;if(l(a)&&"-"!==a)return!0}return!1};t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(9),o=i.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),a=i.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),s=i.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u);t.arc(n,l,a,Math.PI-u,2*Math.PI+u);var f=.6*a,p=.7*a;t.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),l=i.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),u={line:i.Line,rect:i.Rect,roundRect:i.Rect,square:i.Rect,circle:i.Circle,diamond:a,pin:s,arrow:l,triangle:o},c={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},h={};for(var d in u)u.hasOwnProperty(d)&&(h[d]=new u[d]);var f=i.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,r=h[i];"none"!==e.symbolType&&(r||(i="rect",r=h[i]),c[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}}),p=function(t){if("image"!==this.type){var e=this.style,n=this.shape;n&&"line"===n.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},g={createSymbol:function(t,e,n,o,a,s){var l=0===t.indexOf("empty");l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return u=0===t.indexOf("image://")?new i.Image({style:{image:t.slice(8),x:e,y:n,width:o,height:a}}):0===t.indexOf("path://")?i.makePath(t.slice(7),{},new r(e,n,o,a)):new f({shape:{symbolType:t,x:e,y:n,width:o,height:a}}),u.__isEmptyBrush=l,u.setColor=p,u.setColor(s),u}};t.exports=g},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(){var t=new n(6);return i.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,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t},translate:function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},rotate:function(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t},scale:function(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t},invert:function(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}};t.exports=i},function(t,e,n){var i=n(84)("wks"),r=n(62),o=n(26).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},function(t,e,n){"use strict";function i(){this._coordinateSystems=[]}var r=n(0),o={};i.prototype={constructor:i,create:function(t,e){var n=[];r.each(o,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},update:function(t,e){r.each(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},i.register=function(t,e){o[t]=e},i.get=function(t){return o[t]},t.exports=i},function(t,e,n){function i(t){a.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function r(t,e){var n=a.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function o(t,e,n){return this.superClass.prototype[e].apply(t,n)}var a=n(0),s={},l="___EC__COMPONENT__CONTAINER___";s.set=function(t,e,n){return t["\0ec_\0"+e]=n},s.get=function(t,e){return t["\0ec_\0"+e]},s.hasOwn=function(t,e){return t.hasOwnProperty("\0ec_\0"+e)};var u=s.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e};s.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){__DEV__&&a.each(e,function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return a.extend(i.prototype,t),i.extend=this.extend,i.superCall=r,i.superApply=o,a.inherits(i,this),i.superClass=n,i}},s.enableClassManagement=function(t,e){function n(t){var e=r[t.main];return e&&e[l]||(e=r[t.main]={},e[l]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(i(e),e=u(e),e.sub){if(e.sub!==l){var o=n(e);o[e.sub]=t}}else __DEV__&&r[e.main]&&console.warn(e.main+" exists."),r[e.main]=t;return t},t.getClass=function(t,e,n){var i=r[t];if(i&&i[l]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){t=u(t);var e=[],n=r[t.main];return n&&n[l]?a.each(n,function(t,n){n!==l&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=u(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return a.each(r,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=u(t);var e=r[t.main];return e&&e[l]},t.parseClassType=u,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var n=o.call(this,e);return t.registerClass(n,e.type)})}return t},s.setReadOnly=function(t,e){},t.exports=s},function(t,e,n){function i(t,e){var n=t+":"+e;if(l[n])return l[n];for(var i=(t+"").split("\n"),r=0,o=0,a=i.length;o<a;o++)r=Math.max(p.measureText(i[o],e).width,r);return u>c&&(u=0,l={}),u++,l[n]=r,r}function r(t,e,n,r){var o=((t||"")+"").split("\n").length,a=i(t,e),s=i("国",e),l=o*s,u=new d(0,0,a,l);switch(u.lineHeight=s,r){case"bottom":case"alphabetic":u.y-=s;break;case"middle":u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case"center":u.x-=u.width/2}return u}function o(t,e,n,i){var r=e.x,o=e.y,a=e.height,s=e.width,l=n.height,u=n.lineHeight,c=a/2-l/2+u,h="left";switch(t){case"left":r-=i,o+=c,h="right";break;case"right":r+=i+s,o+=c,h="left";break;case"top":r+=s/2,o-=i+l-u,h="center";break;case"bottom":r+=s/2,o+=a+i+u,h="center";break;case"inside":r+=s/2,o+=c,h="center";break;case"insideLeft":r+=i,o+=c,h="left";break;case"insideRight":r+=s-i,o+=c,h="right";break;case"insideTop":r+=s/2,o+=i+u,h="center";break;case"insideBottom":r+=s/2,o+=a-l-i+u,h="center";break;case"insideTopLeft":r+=i,o+=i+u,h="left";break;case"insideTopRight":r+=s-i,o+=i+u,h="right";break;case"insideBottomLeft":r+=i,o+=a-l-i+u;break;case"insideBottomRight":r+=s-i,o+=a-l-i+u,h="right"}return{x:r,y:o,textAlign:h,textBaseline:"alphabetic"}}function a(t,e,n,r,o){if(!e)return"";o=o||{},r=f(r,"...");for(var a=f(o.maxIterations,2),l=f(o.minChar,0),u=i("国",n),c=i("a",n),h=f(o.placeholder,""),d=e=Math.max(0,e-1),p=0;p<l&&d>=c;p++)d-=c;var g=i(r);g>d&&(r="",g=0),d=e-g;for(var v=(t+"").split("\n"),p=0,m=v.length;p<m;p++){var y=v[p],x=i(y,n);if(!(x<=e)){for(var _=0;;_++){if(x<=d||_>=a){y+=r;break}var b=0===_?s(y,d,c,u):x>0?Math.floor(y.length*d/x):0;y=y.substr(0,b),x=i(y,n)}""===y&&(y=h),v[p]=y}}return v.join("\n")}function s(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var l={},u=0,c=5e3,h=n(0),d=n(9),f=h.retrieve,p={getWidth:i,getBoundingRect:r,adjustTextPositionOnRect:o,truncateText:a,measureText:function(t,e){var n=h.getContext();return n.font=e||"12px sans-serif",n.measureText(t)}};t.exports=p},function(t,e,n){"use strict";function i(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function r(t,e,n,i){return n=n||{},i||!c.canvasSupported?o(t,e,n):c.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):o(t,e,n),n}function o(t,e,n){var r=i(t);n.zrX=e.clientX-r.left,n.zrY=e.clientY-r.top}function a(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var o="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];o&&r(t,o,e,n)}else r(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function s(t,e,n){h?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function l(t,e,n){h?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var u=n(38),c=n(12),h="undefined"!=typeof window&&!!window.addEventListener,d=h?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};t.exports={clientToLocal:r,normalizeEvent:a,addEventListener:s,removeEventListener:l,stop:d,Dispatcher:u}},function(t,e,n){function i(t){return t=Math.round(t),t<0?0:t>255?255:t}function r(t){return t=Math.round(t),t<0?0:t>360?360:t}function o(t){return t<0?0:t>1?1:t}function a(t){return i(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function s(t){return o(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function l(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function c(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function d(t,e){I&&h(I,e),I=A.put(t,I||e.slice())}function f(t,e){if(t){e=e||[];var n=A.get(t);if(n)return h(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in M)return h(e,M[i]),d(t,e),e;if("#"!==i.charAt(0)){var r=i.indexOf("("),o=i.indexOf(")");if(-1!==r&&o+1===i.length){var l=i.substr(0,r),u=i.substr(r+1,o-(r+1)).split(","),f=1;switch(l){case"rgba":if(4!==u.length)return void c(e,0,0,0,1);f=s(u.pop());case"rgb":return 3!==u.length?void c(e,0,0,0,1):(c(e,a(u[0]),a(u[1]),a(u[2]),f),d(t,e),e);case"hsla":return 4!==u.length?void c(e,0,0,0,1):(u[3]=s(u[3]),p(u,e),d(t,e),e);case"hsl":return 3!==u.length?void c(e,0,0,0,1):(p(u,e),d(t,e),e);default:return}}c(e,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(c(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(t,e),e):void c(e,0,0,0,1)}if(7===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(c(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(t,e),e):void c(e,0,0,0,1)}}}}function p(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=s(t[1]),o=s(t[2]),a=o<=.5?o*(r+1):o+r-o*r,u=2*o-a;return e=e||[],c(e,i(255*l(u,a,n+1/3)),i(255*l(u,a,n)),i(255*l(u,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function g(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function v(t,e){var n=f(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return w(n,4===n.length?"rgba":"rgb")}}function m(t,e){var n=f(t);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function y(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),a=Math.floor(r),s=Math.ceil(r),l=e[a],c=e[s],h=r-a;return n[0]=i(u(l[0],c[0],h)),n[1]=i(u(l[1],c[1],h)),n[2]=i(u(l[2],c[2],h)),n[3]=o(u(l[3],c[3],h)),n}}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),a=Math.floor(r),s=Math.ceil(r),l=f(e[a]),c=f(e[s]),h=r-a,d=w([i(u(l[0],c[0],h)),i(u(l[1],c[1],h)),i(u(l[2],c[2],h)),o(u(l[3],c[3],h))],"rgba");return n?{color:d,leftIndex:a,rightIndex:s,value:r}:d}}function _(t,e,n,i){if(t=f(t))return t=g(t),null!=e&&(t[0]=r(e)),null!=n&&(t[1]=s(n)),null!=i&&(t[2]=s(i)),w(p(t),"rgba")}function b(t,e){if((t=f(t))&&null!=e)return t[3]=o(e),w(t,"rgba")}function w(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}var S=n(180),M={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},A=new S(20),I=null;t.exports={parse:f,lift:v,toHex:m,fastMapToColor:y,mapToColor:x,modifyHSL:_,modifyAlpha:b,stringify:w}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(213),r=n(79);t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";function i(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function r(t){var e=i(t);return null!=e&&!h.isArray(p(e))}function o(t,e,n){if(t=t||[],__DEV__&&!h.isArray(t))throw new Error("Invalid data.");var i=e.get("coordinateSystem"),o=v[i],a=f.get(i),s={encodeDef:e.get("encode"),dimsDef:e.get("dimensions")},m=o&&o(t,e,n,s),y=m&&m.dimensions;y||(y=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"],y=c(y,t,s));var x=m?m.categoryIndex:-1,_=new u(y,e),b=l(m,t),w={},S=x>=0&&r(t)?function(t,e,n,i){return d.isDataItemOption(t)&&(_.hasItemOption=!0),i===x?n:g(p(t),y[i])}:function(t,e,n,i){var r=p(t),o=g(r&&r[i],y[i]);d.isDataItemOption(t)&&(_.hasItemOption=!0);var a=m&&m.categoryAxesModels;return a&&a[e]&&"string"==typeof o&&(w[e]=w[e]||a[e].getCategories(),(o=h.indexOf(w[e],o))<0&&!isNaN(o)&&(o=+o)),o};return _.hasItemOption=!1,_.initData(t,b,S),_}function a(t){return"category"!==t&&"time"!==t}function s(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function l(t,e){var n,i=[],r=t&&t.dimensions[t.categoryIndex];if(r&&(n=t.categoryAxesModels[r.name]),n){var o=n.getCategories();if(o){var a=e.length;if(h.isArray(e[0])&&e[0].length>1){i=[];for(var s=0;s<a;s++)i[s]=o[e[s][t.categoryIndex||0]]}else i=o.slice(0)}}return i}var u=n(10),c=n(16),h=n(0),d=n(4),f=n(20),p=d.getDataItemValue,g=d.converDataValue,v={cartesian2d:function(t,e,n,i){var r=h.map(["xAxis","yAxis"],function(t){return n.queryComponents({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),o=r[0],l=r[1];if(__DEV__){if(!o)throw new Error('xAxis "'+h.retrieve(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!l)throw new Error('yAxis "'+h.retrieve(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}var u=o.get("type"),d=l.get("type"),f=[{name:"x",type:s(u),stackable:a(u)},{name:"y",type:s(d),stackable:a(d)}],p="category"===u,g="category"===d;f=c(f,t,i);var v={};return p&&(v.x=o),g&&(v.y=l),{dimensions:f,categoryIndex:p?0:g?1:-1,categoryAxesModels:v}},singleAxis:function(t,e,n,i){var r=n.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];if(__DEV__&&!r)throw new Error("singleAxis should be specified.");var o=r.get("type"),l="category"===o,u=[{name:"single",type:s(o),stackable:a(o)}];u=c(u,t,i);var h={};return l&&(h.single=r),{dimensions:u,categoryIndex:l?0:-1,categoryAxesModels:h}},polar:function(t,e,n,i){var r=n.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],o=r.findAxisModel("angleAxis"),l=r.findAxisModel("radiusAxis");if(__DEV__){if(!o)throw new Error("angleAxis option not found");if(!l)throw new Error("radiusAxis option not found")}var u=l.get("type"),h=o.get("type"),d=[{name:"radius",type:s(u),stackable:a(u)},{name:"angle",type:s(h),stackable:a(h)}],f="category"===h,p="category"===u;d=c(d,t,i);var g={};return p&&(g.radius=l),f&&(g.angle=o),{dimensions:d,categoryIndex:f?1:p?0:-1,categoryAxesModels:g}},geo:function(t,e,n,i){return{dimensions:c([{name:"lng"},{name:"lat"}],t,i)}}};t.exports=o},function(t,e,n){"use strict";var i={};t.exports={register:function(t,e){i[t]=e},get:function(t){return i[t]}}},function(t,e,n){function i(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}var r=n(3),o=r.linearMap,a=n(0),s=n(15),l=[0,1],u=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1,this._labelInterval};u.prototype={constructor:u,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return r.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),i(n,r.count())),o(t,l,n,e)},coordToData:function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),i(n,r.count()));var a=o(t,n,l,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),n=[],i=0;i<e.length;i++)n.push(e[i][0]);return e[i-1]&&n.push(e[i-1][1]),n}return a.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return a.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this.getExtent(),e=[],n=this.scale.count(),i=t[0],r=t[1],o=r-i,a=0;a<n;a++)e.push([o*a/n+i,o*(a+1)/n+i]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},getLabelInterval:function(){var t=this._labelInterval;if(!t){var e=this.model,n=e.getModel("axisLabel"),i=n.get("interval");"category"!==this.type||"auto"!==i?t="auto"===i?0:i:this.isHorizontal&&(t=s.getAxisLabelInterval(a.map(this.scale.getTicks(),this.dataToCoord,this),e.getFormattedLabels(),n.getModel("textStyle").getFont(),this.isHorizontal())),this._labelInterval=t}return t}},t.exports=u},function(t,e,n){function i(){this.group=new a,this.uid=s.getUID("viewChart")}function r(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)r(t.childAt(n),e)}function o(t,e,n){var i=u.queryDataIndex(t,e);null!=i?c.each(u.normalizeToArray(i),function(e){r(t.getItemGraphicEl(e),n)}):t.eachItemGraphicEl(function(t){r(t,n)})}var a=n(75),s=n(106),l=n(21),u=n(4),c=n(0);i.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){o(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){o(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){}};var h=i.prototype;h.updateView=h.updateLayout=h.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},l.enableClassExtend(i,["dispose"]),l.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},function(t,e,n){"use strict";function i(t){return t>-w&&t<w}function r(t){return t>w||t<-w}function o(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function a(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function s(t,e,n,r,o,a){var s=r+3*(e-n)-t,l=3*(n-2*e+t),u=3*(e-t),c=t-o,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(i(h)&&i(d))if(i(l))a[0]=0;else{var g=-u/l;g>=0&&g<=1&&(a[p++]=g)}else{var v=d*d-4*h*f;if(i(v)){var m=d/h,g=-l/s+m,y=-m/2;g>=0&&g<=1&&(a[p++]=g),y>=0&&y<=1&&(a[p++]=y)}else if(v>0){var x=b(v),w=h*l+1.5*s*(-d+x),S=h*l+1.5*s*(-d-x);w=w<0?-_(-w,A):_(w,A),S=S<0?-_(-S,A):_(S,A);var g=(-l-(w+S))/(3*s);g>=0&&g<=1&&(a[p++]=g)}else{var I=(2*h*l-3*s*d)/(2*b(h*h*h)),T=Math.acos(I)/3,C=b(h),D=Math.cos(T),g=(-l-2*C*D)/(3*s),y=(-l+C*(D+M*Math.sin(T)))/(3*s),L=(-l+C*(D-M*Math.sin(T)))/(3*s);g>=0&&g<=1&&(a[p++]=g),y>=0&&y<=1&&(a[p++]=y),L>=0&&L<=1&&(a[p++]=L)}}return p}function l(t,e,n,o,a){var s=6*n-12*e+6*t,l=9*e+3*o-3*t-9*n,u=3*e-3*t,c=0;if(i(l)){if(r(s)){var h=-u/s;h>=0&&h<=1&&(a[c++]=h)}}else{var d=s*s-4*l*u;if(i(d))a[0]=-s/(2*l);else if(d>0){var f=b(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&h<=1&&(a[c++]=h),p>=0&&p<=1&&(a[c++]=p)}}return c}function u(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function c(t,e,n,i,r,a,s,l,u,c,h){var d,f,p,g,v,m=.005,y=1/0;I[0]=u,I[1]=c;for(var _=0;_<1;_+=.05)T[0]=o(t,n,r,s,_),T[1]=o(e,i,a,l,_),(g=x(I,T))<y&&(d=_,y=g);y=1/0;for(var w=0;w<32&&!(m<S);w++)f=d-m,p=d+m,T[0]=o(t,n,r,s,f),T[1]=o(e,i,a,l,f),g=x(T,I),f>=0&&g<y?(d=f,y=g):(C[0]=o(t,n,r,s,p),C[1]=o(e,i,a,l,p),v=x(C,I),p<=1&&v<y?(d=p,y=v):m*=.5);return h&&(h[0]=o(t,n,r,s,d),h[1]=o(e,i,a,l,d)),b(y)}function h(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function d(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function f(t,e,n,o,a){var s=t-2*e+n,l=2*(e-t),u=t-o,c=0;if(i(s)){if(r(l)){var h=-u/l;h>=0&&h<=1&&(a[c++]=h)}}else{var d=l*l-4*s*u;if(i(d)){var h=-l/(2*s);h>=0&&h<=1&&(a[c++]=h)}else if(d>0){var f=b(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&h<=1&&(a[c++]=h),p>=0&&p<=1&&(a[c++]=p)}}return c}function p(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function g(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function v(t,e,n,i,r,o,a,s,l){var u,c=.005,d=1/0;I[0]=a,I[1]=s;for(var f=0;f<1;f+=.05){T[0]=h(t,n,r,f),T[1]=h(e,i,o,f);var p=x(I,T);p<d&&(u=f,d=p)}d=1/0;for(var g=0;g<32&&!(c<S);g++){var v=u-c,m=u+c;T[0]=h(t,n,r,v),T[1]=h(e,i,o,v);var p=x(T,I);if(v>=0&&p<d)u=v,d=p;else{C[0]=h(t,n,r,m),C[1]=h(e,i,o,m);var y=x(C,I);m<=1&&y<d?(u=m,d=y):c*=.5}}return l&&(l[0]=h(t,n,r,u),l[1]=h(e,i,o,u)),b(d)}var m=n(5),y=m.create,x=m.distSquare,_=Math.pow,b=Math.sqrt,w=1e-8,S=1e-4,M=b(3),A=1/3,I=y(),T=y(),C=y();t.exports={cubicAt:o,cubicDerivativeAt:a,cubicRootAt:s,cubicExtrema:l,cubicSubdivide:u,cubicProjectPoint:c,quadraticAt:h,quadraticDerivativeAt:d,quadraticRootAt:f,quadraticExtremum:p,quadraticSubdivide:g,quadraticProjectPoint:v}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(47),r=n(116),o=n(87),a=Object.defineProperty;e.f=n(39)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){function i(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function r(t,e,n,i){var r,o,a=f(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return p(a-x/2)?(o=l?"bottom":"top",r="center"):p(a-1.5*x)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*x&&a>x/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function o(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function a(t,e){var n=t.get("axisLabel.showMinLabel"),i=t.get("axisLabel.showMaxLabel"),r=e[0],o=e[1],a=e[e.length-1],l=e[e.length-2];!1===n?r.ignore=!0:null!=t.getMin()&&s(r,o)&&(n?o.ignore=!0:r.ignore=!0),!1===i?a.ignore=!0:null!=t.getMax()&&s(l,a)&&(i?l.ignore=!0:a.ignore=!0)}function s(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=v.identity([]);return v.rotate(o,o,-t.rotation),i.applyTransform(v.mul([],o,t.getLocalTransform())),r.applyTransform(v.mul([],o,e.getLocalTransform())),i.intersect(r)}}var l=n(0),u=n(6),c=n(2),h=n(8),d=n(3),f=d.remRadian,p=d.isRadianAroundZero,g=n(5),v=n(18),m=g.applyTransform,y=l.retrieve,x=Math.PI,_=function(t,e){this.opt=e,this.axisModel=t,l.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var n=new c.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};_.prototype={constructor:_,hasBuilder:function(t){return!!b[t]},add:function(t){b[t].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],o=[n[1],0];i&&(m(r,r,i),m(o,o,i)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:l.extend({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel,e=t.axis;if(t.get("axisTick.show")&&!e.scale.isBlank())for(var n=t.getModel("axisTick"),i=this.opt,r=n.getModel("lineStyle"),o=n.get("length"),a=M(n,i.labelInterval),s=e.getTicksCoords(n.get("alignWithLabel")),u=e.scale.getTicks(),h=[],d=[],f=this._transform,p=0;p<s.length;p++)if(!S(e,p,a)){var g=s[p];h[0]=g,h[1]=0,d[0]=g,d[1]=i.tickDirection*o,f&&(m(h,h,f),m(d,d,f)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"tick_"+u[p],shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:l.defaults(r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){var t=this.opt,e=this.axisModel,n=e.axis;if(y(t.axisLabelShow,e.get("axisLabel.show"))&&!n.scale.isBlank()){var r=e.getModel("axisLabel"),s=r.getModel("textStyle"),u=r.get("margin"),d=n.scale.getTicks(),f=e.getFormattedLabels(),p=(y(t.labelRotate,r.get("rotate"))||0)*x/180,g=w(t.rotation,p,t.labelDirection),v=e.get("data"),m=[],_=o(e),b=e.get("triggerEvent");l.each(d,function(r,o){if(!S(n,o,t.labelInterval)){var a=s;v&&v[r]&&v[r].textStyle&&(a=new h(v[r].textStyle,s,e.ecModel));var l=a.getTextColor()||e.get("axisLine.lineStyle.color"),d=n.dataToCoord(r),p=[d,t.labelOffset+t.labelDirection*u],y=n.scale.getLabel(r),x=new c.Text({anid:"label_"+r,style:{text:f[o],textAlign:a.get("align",!0)||g.textAlign,textVerticalAlign:a.get("baseline",!0)||g.textVerticalAlign,textFont:a.getFont(),fill:"function"==typeof l?l("category"===n.type?y:"value"===n.type?r+"":r,o):l},position:p,rotation:g.rotation,silent:_,z2:10});b&&(x.eventData=i(e),x.eventData.targetType="axisLabel",x.eventData.value=y),this._dumbGroup.add(x),x.updateTransform(),m.push(x),this.group.add(x),x.decomposeTransform()}},this),a(e,m)}},axisName:function(){var t=this.opt,e=this.axisModel,n=y(t.axisName,e.get("name"));if(n){var a,s=e.get("nameLocation"),h=t.nameDirection,d=e.getModel("nameTextStyle"),f=e.get("nameGap")||0,p=this.axisModel.axis.getExtent(),g=p[0]>p[1]?-1:1,v=["start"===s?p[0]-g*f:"end"===s?p[1]+g*f:(p[0]+p[1])/2,"middle"===s?t.labelOffset+h*f:0],m=e.get("nameRotate");null!=m&&(m=m*x/180);var _;"middle"===s?a=w(t.rotation,null!=m?m:t.rotation,h):(a=r(t,s,m||0,p),null!=(_=t.axisNameAvailableWidth)&&(_=Math.abs(_/Math.sin(a.rotation)),!isFinite(_)&&(_=null)));var b=d.getFont(),S=e.get("nameTruncate",!0)||{},M=S.ellipsis,A=y(t.nameTruncateMaxWidth,S.maxWidth,_),I=null!=M&&null!=A?u.truncateText(n,A,b,M,{minChar:2,placeholder:S.placeholder}):n,T=e.get("tooltip",!0),C=e.mainType,D={componentType:C,name:n,$vars:["name"]};D[C+"Index"]=e.componentIndex;var L=new c.Text({anid:"name",__fullText:n,__truncatedText:I,style:{text:I,textFont:b,fill:d.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:a.textAlign,textVerticalAlign:a.textVerticalAlign},position:v,rotation:a.rotation,silent:o(e),z2:1,tooltip:T&&T.show?l.extend({content:n,formatter:function(){return n},formatterParams:D},T):null});e.get("triggerEvent")&&(L.eventData=i(e),L.eventData.targetType="axisName",L.eventData.name=n),this._dumbGroup.add(L),L.updateTransform(),this.group.add(L),L.decomposeTransform()}}},w=_.innerTextLayout=function(t,e,n){var i,r,o=f(e-t);return p(o)?(r=n>0?"top":"bottom",i="center"):p(o-x)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<x?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},S=_.ifIgnoreOnTick=function(t,e,n){var i,r=t.scale;return"ordinal"===r.type&&("function"==typeof n?(i=r.getTicks()[e],!n(i,r.getLabel(i))):e%(n+1))},M=_.getInterval=function(t,e){var n=t.get("interval");return null!=n&&"auto"!=n||(n=e),n};t.exports=_},function(t,e,n){function i(t,e,n,i,s,l){var u=a.getAxisPointerClass(t.axisPointerClass);if(u){var c=o.getAxisPointerModel(e);c?(t._axisPointer||(t._axisPointer=new u)).render(e,c,i,l):r(t,i)}}function r(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var o=n(64),a=n(1).extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,r){this.axisPointerClass&&o.fixValue(t),a.superApply(this,"render",arguments),i(this,t,e,n,r,!0)},updateAxisPointer:function(t,e,n,r,o){i(this,t,e,n,r,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),a.superApply(this,"remove",arguments)},dispose:function(t,e){r(this,e),a.superApply(this,"dispose",arguments)}}),s=[];a.registerAxisPointerClass=function(t,e){if(__DEV__&&s[t])throw new Error("axisPointer "+t+" exists");s[t]=e},a.getAxisPointerClass=function(t){return t&&s[t]},t.exports=a},function(t,e,n){function i(t){var e=t.pieceList;t.hasSpecialVisual=!1,g.each(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}function r(t){var e=t.categories,n=t.visual,i=t.categoryMap={};if(y(e,function(t,e){i[t]=e}),!g.isArray(n)){var r=[];g.isObject(n)?y(n,function(t,e){var n=i[e];r[null!=n?n:_]=t}):r[_]=n,n=f(t,r)}for(var o=e.length-1;o>=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}function o(t,e){var n=t.visual,i=[];g.isObject(n)?y(n,function(t){i.push(t)}):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),f(t,i)}function a(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:h([0,1])}}function s(t){var e=this.option.visual;return e[Math.round(m(t,[0,1],[0,e.length-1],!0))]||{}}function l(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function u(t){var e=this.option.visual;return e[this.option.loop&&t!==_?t%e.length:t]}function c(){return this.option.visual[0]}function h(t){return{linear:function(e){return m(e,t,this.option.visual,!0)},category:u,piecewise:function(e,n){var i=d.call(this,n);return null==i&&(i=m(e,t,this.option.visual,!0)),i},fixed:c}}function d(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=b.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function f(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=g.map(e,function(t){return v.parse(t)})),e}function p(t,e,n){return t?e<=n:e<n}var g=n(0),v=n(24),m=n(3).linearMap,y=g.each,x=g.isObject,_=-1,b=function(t){var e=t.mappingMethod,n=t.type,a=this.option=g.clone(t);this.type=n,this.mappingMethod=e,this._normalizeData=S[e];var s=w[n];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._doMap=s._doMap[e],"piecewise"===e?(o(a),i(a)):"category"===e?a.categories?r(a):o(a,!0):(g.assert("linear"!==e||a.dataExtent),o(a))};b.prototype={constructor:b,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return g.bind(this._normalizeData,this)}};var w=b.visualHandlers={color:{applyVisual:l("color"),getColorMapper:function(){var t=this.option;return g.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),u.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=v.fastMapToColor(e,t.parsedVisual,i),r?i:v.stringify(i,"rgba")},this)},_doMap:{linear:function(t){return v.stringify(v.fastMapToColor(t,this.option.parsedVisual),"rgba")},category:u,piecewise:function(t,e){var n=d.call(this,e);return null==n&&(n=v.stringify(v.fastMapToColor(t,this.option.parsedVisual),"rgba")),n},fixed:c}},colorHue:a(function(t,e){return v.modifyHSL(t,e)}),colorSaturation:a(function(t,e){return v.modifyHSL(t,null,e)}),colorLightness:a(function(t,e){return v.modifyHSL(t,null,null,e)}),colorAlpha:a(function(t,e){return v.modifyAlpha(t,e)}),opacity:{applyVisual:l("opacity"),_doMap:h([0,1])},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(g.isString(i))n("symbol",i);else if(x(i))for(var r in i)i.hasOwnProperty(r)&&n(r,i[r])},_doMap:{linear:s,category:u,piecewise:function(t,e){var n=d.call(this,e);return null==n&&(n=s.call(this,t)),n},fixed:c}},symbolSize:{applyVisual:l("symbolSize"),_doMap:h([0,1])}},S={linear:function(t){return m(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=b.findPieceIndex(t,e,!0);if(null!=n)return m(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?_:e},fixed:g.noop};b.listVisualTypes=function(){var t=[];return g.each(w,function(e,n){t.push(n)}),t},b.addVisualHandler=function(t,e){w[t]=e},b.isValidType=function(t){return w.hasOwnProperty(t)},b.eachVisual=function(t,e,n){g.isObject(t)?g.each(t,e,n):e.call(n,t)},b.mapVisual=function(t,e,n){var i,r=g.isArray(t)?[]:g.isObject(t)?{}:(i=!0,null);return b.eachVisual(t,function(t,o){var a=e.call(n,t,o);i?r=a:r[o]=a}),r},b.retrieveVisuals=function(t){var e,n={};return t&&y(w,function(i,r){t.hasOwnProperty(r)&&(n[r]=t[r],e=!0)}),e?n:null},b.prepareVisualTypes=function(t){if(x(t)){var e=[];y(t,function(t,n){e.push(n)}),t=e}else{if(!g.isArray(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},b.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},b.findPieceIndex=function(t,e,n){function i(e,n){var i=Math.abs(e-t);i<o&&(o=i,r=n)}for(var r,o=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(null!=l){if(l===t||"string"==typeof l&&l===t+"")return a;n&&i(l,a)}}for(var a=0,s=e.length;a<s;a++){var u=e[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(p(h[1],t,c[1]))return a}else if(c[1]===1/0){if(p(h[0],c[0],t))return a}else if(p(h[0],c[0],t)&&p(h[1],t,c[1]))return a;n&&i(c[0],a),n&&i(c[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r},t.exports=b},function(t,e){var n=Array.prototype.slice,i=function(){this._$handlers={}};i.prototype={constructor:i,one:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var r=0;r<i[t].length;r++)if(i[t][r].h===e)return this;return i[t].push({h:e,one:!0,ctx:n||this}),this},on:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var r=0;r<i[t].length;r++)if(i[t][r].h===e)return this;return i[t].push({h:e,one:!1,ctx:n||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!=e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>3&&(e=n.call(e,1));for(var r=this._$handlers[t],o=r.length,a=0;a<o;){switch(i){case 1:r[a].h.call(r[a].ctx);break;case 2:r[a].h.call(r[a].ctx,e[1]);break;case 3:r[a].h.call(r[a].ctx,e[1],e[2]);break;default:r[a].h.apply(r[a].ctx,e)}r[a].one?(r.splice(a,1),o--):a++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>4&&(e=n.call(e,1,e.length-1));for(var r=e[e.length-1],o=this._$handlers[t],a=o.length,s=0;s<a;){switch(i){case 1:o[s].h.call(r);break;case 2:o[s].h.call(r,e[1]);break;case 3:o[s].h.call(r,e[1],e[2]);break;default:o[s].h.apply(r,e)}o[s].one?(o.splice(s,1),a--):s++}}return this}},t.exports=i},function(t,e,n){t.exports=!n(49)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(34),r=n(51);t.exports=n(39)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(121),r=n(80);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(0),r={retrieveTargetInfo:function(t,e){if(t&&("treemapZoomToNode"===t.type||"treemapRootToNode"===t.type)){var n=e.getData().tree.root,i=t.targetNode;if(i&&n.contains(i))return{node:i};var r=t.targetNodeId;if(null!=r&&(i=n.getNodeById(r)))return{node:i}}},getPathToRoot:function(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()},aboveViewRoot:function(t,e){var n=r.getPathToRoot(t);return i.indexOf(n,e)>=0},wrapTreePathInfo:function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}};t.exports=r},function(t,e,n){function i(t){return r.isObject(t)&&null!=t.value?t.value:t+""}var r=n(0),o=n(15);t.exports={getFormattedLabels:function(){return o.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&r.map(this.get("data"),i)},getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&!r.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&!r.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:r.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}}},function(t,e){var n={},i="\0__throttleOriginMethod",r="\0__throttleRate";n.throttle=function(t,e,n){function i(){c=(new Date).getTime(),h=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,c=0,h=null;e=e||0;var d=function(){r=(new Date).getTime(),a=this,s=arguments;var t=l||e,d=l||n;l=null,o=r-(d?u:c)-t,clearTimeout(h),d?h=setTimeout(i,t):o>=0?i():h=setTimeout(i,-o),u=r};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){l=t},d},n.createOrUpdate=function(t,e,o,a){var s=t[e];if(s){var l=s[i]||s,u=s["\0__throttleType"];if(s[r]!==o||u!==a){if(null==o||!a)return t[e]=l;s=t[e]=n.throttle(l,o,"debounce"===a),s[i]=l,s["\0__throttleType"]=a,s[r]=o}return s}},n.clear=function(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])},t.exports=n},function(t,e){t.exports=function(t,e,n,i,r){i.eachRawSeriesByType(t,function(t){var r=t.getData(),o=t.get("symbol")||e,a=t.get("symbolSize");r.setVisual({legendSymbol:n||o,symbol:o,symbolSize:a}),i.isSeriesFiltered(t)||("function"==typeof a&&r.each(function(e){var n=t.getRawValue(e),i=t.getDataParams(e);r.setItemVisual(e,"symbolSize",a(n,i))}),r.each(function(t){var e=r.getItemModel(t),n=e.getShallow("symbol",!0),i=e.getShallow("symbolSize",!0);null!=n&&r.setItemVisual(t,"symbol",n),null!=i&&r.setItemVisual(t,"symbolSize",i)}))})}},function(t,e,n){"use strict";var i=n(32),r=n(5),o=n(109),a=n(9),s=n(74).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],f=Math.min,p=Math.max,g=Math.cos,v=Math.sin,m=Math.sqrt,y=Math.abs,x="undefined"!=typeof Float32Array,_=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/s/t)||0,this._uy=y(1/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.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){var n=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(l.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(l.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(l.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=g(r)*n+t,this._yi=v(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,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,n=0;n<t.length;n++)e+=t[n];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||!x||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,d=m(c*c+h*h),g=l,v=u,y=a.length;for(c/=d,h/=d,o<0&&(o=r+o),o%=r,g-=o*c,v-=o*h;c>0&&g<=t||c<0&&g>=t||0==c&&(h>0&&v<=e||h<0&&v>=e);)i=this._dashIdx,n=a[i],g+=c*n,v+=h*n,this._dashIdx=(i+1)%y,c>0&&g<l||c<0&&g>l||h>0&&v<u||h<0&&v>u||s[i%2?"moveTo":"lineTo"](c>=0?f(g,t):p(g,t),h>=0?f(v,e):p(v,e));c=g-t,h=v-e,this._dashOffset=-m(c*c+h*h)},_dashedBezierTo:function(t,e,n,r,o,a){var s,l,u,c,h,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,y=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=p.length,S=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=x(v,t,n,o,s+.1)-x(v,t,n,o,s),u=x(y,e,r,a,s+.1)-x(y,e,r,a,s),_+=m(l*l+u*u);for(;b<w&&!((S+=p[b])>f);b++);for(s=(S-f)/_;s<=1;)c=x(v,t,n,o,s),h=x(y,e,r,a,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=p[b]/_,b=(b+1)%w;b%2!=0&&g.lineTo(o,a),l=o-c,u=a-h,this._dashOffset=-m(l*l+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,f=0;f<t.length;){var p=t[f++];switch(1==f&&(e=t[f],n=t[f+1],i=e,s=n),p){case l.M:i=t[f++],s=t[f++],e=i,n=s,h[0]=i,h[1]=s,d[0]=i,d[1]=s;break;case l.L:o.fromLine(e,n,t[f],t[f+1],h,d),e=t[f++],n=t[f++];break;case l.C:o.fromCubic(e,n,t[f++],t[f++],t[f++],t[f++],t[f],t[f+1],h,d),e=t[f++],n=t[f++];break;case l.Q:o.fromQuadratic(e,n,t[f++],t[f++],t[f],t[f+1],h,d),e=t[f++],n=t[f++];break;case l.A:var m=t[f++],y=t[f++],x=t[f++],_=t[f++],b=t[f++],w=t[f++]+b,S=(t[f++],1-t[f++]);1==f&&(i=g(b)*x+m,s=v(b)*_+y),o.fromArc(m,y,x,_,b,w,S,h,d),e=g(w)*x+m,n=v(w)*_+y;break;case l.R:i=e=t[f++],s=n=t[f++];var M=t[f++],A=t[f++];o.fromLine(i,s,i+M,s+A,h,d);break;case l.Z:e=i,n=s}r.min(u,u,h),r.max(c,c,d)}return 0===f&&(u[0]=u[1]=c[0]=c[1]=0),new a(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(t){for(var e,n,i,r,o,a,s=this.data,u=this._ux,c=this._uy,h=this._len,d=0;d<h;){var f=s[d++];switch(1==d&&(i=s[d],r=s[d+1],e=i,n=r),f){case l.M:e=i=s[d++],n=r=s[d++],t.moveTo(i,r);break;case l.L:o=s[d++],a=s[d++],(y(o-i)>u||y(a-r)>c||d===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case l.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case l.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case l.A:var p=s[d++],m=s[d++],x=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],A=x>_?x:_,I=x>_?1:x/_,T=x>_?_/x:1,C=Math.abs(x-_)>.001,D=b+w;C?(t.translate(p,m),t.rotate(S),t.scale(I,T),t.arc(0,0,A,b,D,1-M),t.scale(1/I,1/T),t.rotate(-S),t.translate(-p,-m)):t.arc(p,m,A,b,D,1-M),1==d&&(e=g(b)*x+p,n=v(b)*_+m),i=g(D)*x+p,r=v(D)*_+m;break;case l.R:e=i=s[d],n=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:t.closePath(),i=e,r=n}}}},_.CMD=l,t.exports=_},function(t,e,n){var i=n(60);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(26),r=n(25),o=n(114),a=n(40),s=function(t,e,n){var l,u,c,h=t&s.F,d=t&s.G,f=t&s.S,p=t&s.P,g=t&s.B,v=t&s.W,m=d?r:r[e]||(r[e]={}),y=m.prototype,x=d?i:f?i[e]:(i[e]||{}).prototype;d&&(n=e);for(l in n)(u=!h&&x&&void 0!==x[l])&&l in m||(c=u?x[l]:n[l],m[l]=d&&"function"!=typeof x[l]?n[l]:g&&u?o(c,i):v&&x[l]==c?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):p&&"function"==typeof c?o(Function.call,c):c,p&&((m.virtual||(m.virtual={}))[l]=c,t&s.R&&y&&!y[l]&&a(y,l,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){function i(t){this.group=new o.Group,this._symbolCtor=t||a}function r(t,e,n){var i=t.getItemLayout(e);return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(n&&n(e))&&"none"!==t.getItemVisual(e,"symbol")}var o=n(2),a=n(92),s=i.prototype;s.updateData=function(t,e){var n=this.group,i=t.hostModel,a=this._data,s=this._symbolCtor,l={itemStyle:i.getModel("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:i.getModel("itemStyle.emphasis").getItemStyle(),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),labelModel:i.getModel("label.normal"),hoverLabelModel:i.getModel("label.emphasis"),cursorStyle:i.get("cursor")};t.diff(a).add(function(i){var o=t.getItemLayout(i);if(r(t,i,e)){var a=new s(t,i,l);a.attr("position",o),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(u,c){var h=a.getItemGraphicEl(c),d=t.getItemLayout(u);if(!r(t,u,e))return void n.remove(h);h?(h.updateData(t,u,l),o.updateProps(h,{position:d},i)):(h=new s(t,u),h.attr("position",d)),n.add(h),t.setItemGraphicEl(u,h)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},s.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},s.remove=function(t){var e=this.group,n=this._data;n&&(t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},t.exports=i},function(t,e,n){var i=n(1),r=n(64),o=n(352),a=n(0);n(348),n(349),n(138),i.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!a.isArray(e)&&(t.axisPointer.link=[e])}}),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=r.collect(t,e)}),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},function(t,e,n){function i(t){var e={};return h(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function r(t,e){h([["start","startValue"],["end","endValue"]],function(n,i){var r=t._rangePropMode;null!=e[n[0]]?r[i]="percent":null!=e[n[1]]&&(r[i]="value")})}var o=n(0),a=n(12),s=n(1),l=n(4),u=n(94),c=n(370),h=o.each,d=u.eachAxisDim,f=s.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var r=i(t);this.mergeDefaultAndTheme(t,n),this.doInit(r)},mergeOption:function(t){var e=i(t);o.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;a.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),r(this,t),h([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new c(e.name,n,this,r));t[e.name+"_"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();d(function(e){var n=e.axisIndex;t[n]=l.normalizeToArray(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;d(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):h(i.singleAxis,function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&d(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o<a;o++)"category"===r[o].get("type")&&i.push(o);n[e.axisIndex]=i,i.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&d(function(e){var i=n[e.axisIndex],r=t.get(e.axisIndex),a=t.get(e.axisId),s=t.ecModel.queryComponents({mainType:e.axis,index:r,id:a})[0];if(__DEV__&&!s)throw new Error(e.axis+' "'+o.retrieve(r,a,0)+'" not found');r=s.componentIndex,o.indexOf(i,r)<0&&i.push(r)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return d(function(i){var r=t.get(i.axisIndex),o=this.dependentModels[i.axis][r];o&&o.get("type")===e||(n=!1)},this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return d(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;d(function(i){h(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t,e){h(["start","end","startValue","endValue"],function(e){this.option[e]=t[e]},this),!e&&r(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});t.exports=f},function(t,e,n){var i=n(107);t.exports=i.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){function t(t,e,n,i){for(var r,o=0;o<n.length;o++)if(n[o].model===t){r=n[o];break}r||n.push(r={model:t,axisModels:[],coordIndex:i}),r.axisModels.push(e)}var e=this.dataZoomModel,n=this.ecModel,i={};return e.eachTargetAxis(function(e,r){var o=n.getComponent(e.axis,r);if(o){var a=o.getCoordSysModel();a&&t(a,o,i[a.mainType]||(i[a.mainType]=[]),a.componentIndex)}},this),i}})},function(t,e,n){"use strict";var i=n(2),r=n(0),o=n(1);n(101),n(347),o.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new i.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),o.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})},function(t,e){function n(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function i(t,e){return Math.min(e[1],Math.max(e[0],t))}t.exports=function(t,e,r,o,a,s){e[0]=i(e[0],r),e[1]=i(e[1],r),t=t||0;var l=r[1]-r[0];null!=a&&(a=i(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===o&&(a=s=Math.abs(e[1]-e[0]),o=0);var u=n(e,o);e[o]+=t;var c=a||0,h=r.slice();u.sign<0?h[0]+=c:h[1]-=c,e[o]=i(e[o],h);var d=n(e,o);null!=a&&(d.sign!==u.sign||d.span<a)&&(e[1-o]=e[o]+u.sign*a);var d=n(e,o);return null!=s&&d.span>s&&(e[1-o]=e[o]+d.sign*s),e}},function(t,e,n){"use strict";function i(t){return t}function r(t,e,n,r){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i}function o(t,e,n,i){for(var r=0;r<t.length;r++){var o="_ec_"+i(t[r],r),a=e[o];null==a?(n.push(o),e[o]=r):(a.length||(e[o]=a=[a]),a.push(r))}}r.prototype={constructor:r,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,i=this._oldKeyGetter,r=this._newKeyGetter,a={},s={},l=[],u=[];for(o(e,a,l,i),o(n,s,u,r),t=0;t<e.length;t++){var c=l[t],h=s[c];if(null!=h){var d=h.length;d?(1===d&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<u.length;t++){var c=u[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h.length)for(var f=0,d=h.length;f<d;f++)this._add&&this._add(h[f]);else this._add&&this._add(h)}}}},t.exports=r},function(t,e,n){var i=n(0);t.exports=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n){for(var r={},o=0;o<t.length;o++){var a=t[o][1];if(!(e&&i.indexOf(e,a)>=0||n&&i.indexOf(n,a)<0)){var s=this.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){"use strict";var i=n(10),r=n(16),o=n(294),a=n(0),s={_baseAxisDim:null,getInitialData:function(t,e){var n,o,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),c=l.get("type");"category"===u?(t.layout="horizontal",n=s.getCategories(),o=!0):"category"===c?(t.layout="vertical",n=l.getCategories(),o=!0):t.layout=t.layout||"horizontal";var h=["x","y"],d="horizontal"===t.layout?0:1,f=this._baseAxisDim=h[d],p=h[1-d],g=t.data;o&&a.each(g,function(t,e){a.isArray(t)&&t.unshift(e)});var v=[{name:f,otherDims:{tooltip:!1},dimsDef:["base"]},{name:p,dimsDef:this.defaultValueDimensions.slice()}];v=r(v,g,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")});var m=new i(v,this);return m.initData(g,n?n.slice():null),m},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}},l={init:function(){var t=this._whiskerBoxDraw=new o(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,n){this._whiskerBoxDraw.updateData(t.getData())},remove:function(t){this._whiskerBoxDraw.remove()}};t.exports={seriesModelMixin:s,viewMixin:l}},function(t,e,n){function i(t,e,n){var i=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),s=o.get("link",!0)||[],u=[];h(n.getCoordinateSystems(),function(n){function c(i,c,h){var d=h.model.getModel("axisPointer",o),f=d.get("show");if(f&&("auto"!==f||i||l(d))){null==c&&(c=d.get("triggerTooltip")),d=i?r(h,m,o,e,i,c):d;var v=d.get("snap"),y=p(h.model),x=c||v||"category"===h.type,_=t.axesInfo[y]={key:y,axis:h,coordSys:n,axisPointerModel:d,triggerTooltip:c,involveSeries:x,snap:v,useHandle:l(d),seriesModels:[]};g[y]=_,t.seriesInvolved|=x;var b=a(s,h);if(null!=b){var w=u[b]||(u[b]={axesInfo:{}});w.axesInfo[y]=_,w.mapper=s[b].mapper,_.linkGroup=w}}}if(n.axisPointerEnabled){var f=p(n.model),g=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=n;var v=n.model,m=v.getModel("tooltip",i);if(h(n.getAxes(),d(c,!1,null)),n.getTooltipAxes&&i&&m.get("show")){var y="axis"===m.get("trigger"),x="cross"===m.get("axisPointer.type"),_=n.getTooltipAxes(m.get("axisPointer.axis"));(y||x)&&h(_.baseAxes,d(c,!x||"cross",y)),x&&h(_.otherAxes,d(c,"cross",!1))}}})}function r(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};h(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=u.clone(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r&&(l.show=!0,!o)){var d=s.lineStyle=a.get("crossStyle");d&&u.defaults(l.textStyle||(l.textStyle={}),d.textStyle)}return t.model.getModel("axisPointer",new c(s,n,i))}function o(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&h(t.coordSysAxesInfo[p(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function a(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(s(o[i+"AxisId"],n.id)||s(o[i+"AxisIndex"],n.componentIndex)||s(o[i+"AxisName"],n.name))return r}}function s(t,e){return"all"===t||u.isArray(t)&&u.indexOf(t,e)>=0||t===e}function l(t){return!!t.get("handle.show")}var u=n(0),c=n(8),h=u.each,d=u.curry,f={};f.collect=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i(n,t,e),n.seriesInvolved&&o(n,t),n},f.fixValue=function(t){var e=f.getAxisInfo(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=l(n);null==o&&(r.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}},f.getAxisInfo=function(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[p(t)]},f.getAxisPointerModel=function(t){var e=f.getAxisInfo(t);return e&&e.axisPointerModel};var p=f.makeKey=function(t){return t.type+"||"+t.id};t.exports=f},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}var r=n(0),o=n(2),a=n(22),s=n(6),l=n(18),u=n(15),c=n(35),h={};h.buildElStyle=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e},h.buildLabelElOption=function(t,e,n,r,o){var l=n.get("value"),u=h.getValueLabel(l,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),c=n.getModel("label"),d=c.getModel("textStyle"),f=s.normalizeCssArray(c.get("padding")||0),p=d.getFont(),g=a.getBoundingRect(u,p,o.textAlign,o.textBaseline),v=o.position,m=g.width+f[1]+f[3],y=g.height+f[0]+f[2],x=o.align;"right"===x&&(v[0]-=m),"center"===x&&(v[0]-=m/2);var _=o.verticalAlign;"bottom"===_&&(v[1]-=y),"middle"===_&&(v[1]-=y/2),i(v,m,y,r);var b=c.get("backgroundColor");b&&"auto"!==b||(b=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:m,height:y,r:c.get("borderRadius")},position:v.slice(),style:{text:u,textFont:p,textFill:d.getTextColor(),textPosition:"inside",fill:b,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}},h.getValueLabel=function(t,e,n,i,o){var a=e.scale.getLabel(t,{precision:o.precision}),s=o.formatter;if(s){var l={value:u.getAxisRawValue(e,t),seriesData:[]};r.each(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&l.seriesData.push(r)}),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(l))}return a},h.getTransformedPosition=function(t,e,n){var i=l.create();return l.rotate(i,i,n.rotation),l.translate(i,i,n.position),o.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)},h.buildCartesianSingleLabelElOption=function(t,e,n,i,r,o){var a=c.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),h.buildLabelElOption(e,i,r,o,{position:h.getTransformedPosition(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})},h.makeLineShape=function(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}},h.makeRectShape=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},h.makeSectorShape=function(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}},t.exports=h},function(t,e,n){function i(t){this.pointerChecker,this._zr=t,this._opt={};var e=d.bind,n=e(r,this),i=e(o,this),u=e(a,this),c=e(s,this),f=e(l,this);h.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,r){this.disable(),this._opt=d.defaults(d.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",u)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",c),t.on("pinch",f))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",u),t.off("mousewheel",c),t.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function r(t){if(!t.target||!t.target.draggable){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function o(t){if(c(this,"moveOnMouseMove",t)&&this._dragging&&"pinch"!==t.gestureEvent&&!p.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&f.stop(t.event),this.trigger("pan",o,a,i,r,e,n)}}function a(t){this._dragging=!1}function s(t){if(c(this,"zoomOnMouseWheel",t)&&0!==t.wheelDelta){var e=t.wheelDelta>0?1.1:1/1.1;u.call(this,t,e,t.offsetX,t.offsetY)}}function l(t){if(!p.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;u.call(this,t,e,t.pinchX,t.pinchY)}}function u(t,e,n,i){this.pointerChecker&&this.pointerChecker(t,n,i)&&(f.stop(t.event),this.trigger("zoom",e,n,i))}function c(t,e,n){var i=t._opt[e];return i&&(!d.isString(i)||n.event[i+"Key"])}var h=n(38),d=n(0),f=n(23),p=n(150);d.mixin(i,h),t.exports=i},function(t,e,n){var i=n(163),r=n(0),o=n(11),a=n(7),s=["value","category","time","log"];t.exports=function(t,e,n,l){r.each(s,function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,i){var s=this.layoutMode,l=s?a.getLayoutParams(e):{},u=i.getTheme();r.merge(e,u.get(o+"Axis")),r.merge(e,this.getDefaultOption()),e.type=n(t,e),s&&a.mergeLayoutParam(e,l,s)},defaultOption:r.mergeAll([{},i[o+"Axis"],l],!0)})}),o.registerSubTypeDefaulter(t+"Axis",r.curry(n,t))}},function(t,e,n){function i(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])?__DEV__&&console.error("Invalid boundingCoords"):this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,s=this.getBoundingRect(),u=t.get("layoutCenter"),c=t.get("layoutSize"),h=e.getWidth(),d=e.getHeight(),f=t.get("aspectScale")||.75,p=s.width/s.height*f,g=!1;u&&c&&(u=[l.parsePercent(u[0],h),l.parsePercent(u[1],d)],c=l.parsePercent(c,Math.min(h,d)),isNaN(u[0])||isNaN(u[1])||isNaN(c)?__DEV__&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):g=!0);var v;if(g){var v={};p>1?(v.width=c,v.height=c/p):(v.height=c,v.width=c*p),v.y=u[1]-v.height/2,v.x=u[0]-v.width/2}else o=t.getBoxLayoutParams(),o.aspect=p,v=a.getLayoutRect(o,{width:h,height:d});this.setViewRect(v.x,v.y,v.width,v.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function r(t,e){s.each(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}var o=n(439),a=n(7),s=n(0),l=n(3),u={};if(__DEV__)var c=function(t){console.error("Map "+t+" not exists. You can download map file on http://echarts.baidu.com/download-map.html")};var h={dimensions:o.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",function(t,a){var s=t.get("map"),l=u[s];__DEV__&&(l||c(s));var h=new o(s+a,s,l&&l.geoJson,l&&l.specialAreas,t.get("nameMap"));h.zoomLimit=t.get("scaleLimit"),n.push(h),r(h,t),t.coordinateSystem=h,h.model=t,h.resize=i,h.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var a={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();a[e]=a[e]||[],a[e].push(t)}}),s.each(a,function(t,a){var l=u[a];__DEV__&&(l||c(t[0].get("map")));var h=s.map(t,function(t){return t.get("nameMap")}),d=new o(a,a,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));d.zoomLimit=s.retrieve.apply(null,s.map(t,function(t){return t.get("scaleLimit")})),n.push(d),d.resize=i,d.resize(t[0],e),s.each(t,function(t){t.coordinateSystem=d,r(d,t)})}),n},registerMap:function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),"string"==typeof e&&(e="undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),u[t]={geoJson:e,specialAreas:n}},getMap:function(t){return u[t]},getFilledRegions:function(t,e){var n=(t||[]).slice(),i=h.getMap(e),r=i&&i.geoJson;if(!r)return __DEV__&&c(e),t;for(var o=s.createHashMap(),a=r.features,l=0;l<n.length;l++)o.set(n[l].name,n[l]);for(var l=0;l<a.length;l++){var u=a[l].properties.name;o.get(u)||n.push({name:u})}return n}},d=n(1);d.registerMap=h.registerMap,d.getMap=h.getMap,d.parseGeoJSON=n(165),d.loadMap=function(){},d.registerCoordinateSystem("geo",h),t.exports=h},function(t,e){t.exports=function(t,e){var n=e.findComponents({mainType:"legend"});n&&n.length&&e.eachSeriesByType(t,function(t){var e=t.getData();e.filterSelf(function(t){for(var i=e.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(i))return!1;return!0},this)},this)}},function(t,e,n){var i=n(3),r=n(6),o=n(71),a=n(169),s=i.round,l=o.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(t)},getTicks:function(){return a.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=s(t,n,!0),r.addCommas(t)},niceTicks:function(t,e){t=t||5;var n=this._extent,i=n[1]-n[0];if(isFinite(i)){i<0&&(i=-i,n.reverse());var r=a.intervalScaleNiceTicks(n,t,e);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l},t.exports=l},function(t,e,n){function i(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var r=n(21),o=i.prototype;o.parse=function(t){return t},o.getSetting=function(t){return this._setting[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.unionExtentFromData=function(t,e){this.unionExtent(t.getDataExtent(e,!0))},o.getExtent=function(){return this._extent.slice()},o.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},o.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},o.isBlank=function(){return this._isBlank},o.setBlank=function(t){this._isBlank=t},r.enableClassExtend(i),r.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},function(t,e,n){function i(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}var r=n(0),o=n(37),a=r.each,s={createVisualMappings:function(t,e,n){function i(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}var s={};return a(e,function(e){var l=s[e]=i();a(t[e],function(t,i){if(o.isValidType(i)){var a={type:i,visual:t};n&&n(a,e),l[i]=new o(a),"opacity"===i&&(a=r.clone(a),a.type="colorAlpha",l.__hidden.__alphaForOpacity=new o(a))}})}),s},replaceVisualOption:function(t,e,n){var o;r.each(n,function(t){e.hasOwnProperty(t)&&i(e[t])&&(o=!0)}),o&&r.each(n,function(n){e.hasOwnProperty(n)&&i(e[n])?t[n]=r.clone(e[n]):delete t[n]})},applyVisual:function(t,e,n,i,a,s){function l(t){return n.getItemVisual(d,t)}function u(t,e){n.setItemVisual(d,t,e)}function c(t,r){d=null==s?t:r;var o=n.getRawDataItem(d);if(!o||!1!==o.visualMap)for(var c=i.call(a,t),f=e[c],p=h[c],g=0,v=p.length;g<v;g++){var m=p[g];f[m]&&f[m].applyVisual(t,l,u)}}var h={};r.each(t,function(t){var n=o.prepareVisualTypes(e[t]);h[t]=n});var d;null==s?n.each(c,!0):n.each([s],c,!0)}};t.exports=s},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=1;"undefined"!=typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i={debugMode:0,devicePixelRatio:n};t.exports=i},function(t,e,n){var i=n(0),r=n(172),o=n(9),a=function(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},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 n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,o=i.indexOf(r,t);return o<0?this:(r.splice(o,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof a&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof a&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof a&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new o(0,0,0,0),i=t||this._children,r=[],a=0;a<i.length;a++){var s=i[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(n.copy(l),n.applyTransform(u),e=e||n.clone(),e.union(n)):(e=e||l.clone(),e.union(l))}}return e||n}},i.inherits(a,r),t.exports=a},function(t,e,n){function i(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=n(0),o=n(184),a=n(172),s=n(187);i.prototype={constructor:i,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[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},useStyle:function(t){return this.style=new o(t),this.dirty(!1),this}},r.inherits(i,a),r.mixin(i,s),t.exports=i},function(t,e){var n=function(t){this.colorStops=t||[]};n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t.exports=n},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=!0},function(t,e,n){var i=n(34).f,r=n(33),o=n(19)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(84)("keys"),r=n(62);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(26),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(79);t.exports=function(t){return Object(i(t))}},function(t,e,n){var i=n(60);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(26),r=n(25),o=n(81),a=n(89),s=n(34).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(19)},function(t,e,n){function i(t){return"_"+t+"Type"}function r(t,e,n){var i=e.getItemVisual(n,"color"),r=e.getItemVisual(n,t),o=e.getItemVisual(n,t+"Size");if(r&&"none"!==r){f.isArray(o)||(o=[o,o]);var a=u.createSymbol(r,-o[0]/2,-o[1]/2,o[0],o[1],i);return a.name=t,a}}function o(t){var e=new h({name:"line"});return a(e.shape,t),e}function a(t,e){var n=e[0],i=e[1],r=e[2];t.x1=n[0],t.y1=n[1],t.x2=i[0],t.y2=i[1],t.percent=1,r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}function s(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.childOfName("label");if(e||n||!i.ignore){for(var r=1,o=this.parent;o;)o.scale&&(r/=o.scale[0]),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),h=c.sub([],u,l);if(c.normalize(h,h),e){e.attr("position",l);var d=a.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),e.attr("scale",[r*s,r*s])}if(n){n.attr("position",u);var d=a.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),n.attr("scale",[r*s,r*s])}if(!i.ignore){i.attr("position",u);var f,p,g,v=5*r;if("end"===i.__position)f=[h[0]*v+u[0],h[1]*v+u[1]],p=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var m=s/2,d=a.tangentAt(m),y=[d[1],-d[0]],x=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),f=[x[0]+y[0]*v,x[1]+y[1]*v],p="center",g="bottom";var _=-Math.atan2(d[1],d[0]);u[0]<l[0]&&(_=Math.PI+_),i.attr("rotation",_)}else f=[-h[0]*v+l[0],-h[1]*v+l[1]],p=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||p},position:f,scale:[r,r]})}}}}function l(t,e,n){d.Group.call(this),this._createLine(t,e,n)}var u=n(17),c=n(5),h=n(293),d=n(2),f=n(0),p=n(3),g=["fromSymbol","toSymbol"],v=l.prototype;v.beforeUpdate=s,v._createLine=function(t,e,n){var a=t.hostModel,s=t.getItemLayout(e),l=o(s);l.shape.percent=0,d.initProps(l,{shape:{percent:1}},a,e),this.add(l);var u=new d.Text({name:"label"});this.add(u),f.each(g,function(n){var o=r(n,t,e);this.add(o),this[i(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},v.updateData=function(t,e,n){var o=t.hostModel,s=this.childOfName("line"),l=t.getItemLayout(e),u={shape:{}};a(u.shape,l),d.updateProps(s,u,o,e),f.each(g,function(n){var o=t.getItemVisual(e,n),a=i(n);if(this[a]!==o){this.remove(this.childOfName(n));var s=r(n,t,e);this.add(s)}this[a]=o},this),this._updateCommonStl(t,e,n)},v._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel("lineStyle.normal").getLineStyle(),a=u.getModel("lineStyle.emphasis").getLineStyle(),s=u.getModel("label.normal"),l=u.getModel("label.emphasis")}var c=t.getItemVisual(e,"color"),h=f.retrieve(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:c,opacity:h},o)),r.hoverStyle=a,f.each(g,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:h}))},this);var v,m,y=s.getShallow("show"),x=l.getShallow("show"),_=this.childOfName("label");if(y||x){var b=i.getRawValue(e);m=null==b?m=t.getName(e):isFinite(b)?p.round(b):b,v=c||"#000"}if(y){var w=s.getModel("textStyle");_.setStyle({text:f.retrieve(i.getFormattedLabel(e,"normal",t.dataType),m),textFont:w.getFont(),fill:w.getTextColor()||v}),_.__textAlign=w.get("align"),_.__verticalAlign=w.get("baseline"),_.__position=s.get("position")}else _.setStyle("text","");if(x){var S=l.getModel("textStyle");_.hoverStyle={text:f.retrieve(i.getFormattedLabel(e,"emphasis",t.dataType),m),textFont:S.getFont(),fill:S.getTextColor()||v}}else _.hoverStyle={text:""};_.ignore=!y&&!x,d.setHoverStyle(this)},v.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},v.setLinePoints=function(t){var e=this.childOfName("line");a(e.shape,t),e.dirty()},f.inherits(l,d.Group),t.exports=l},function(t,e,n){function i(t){return isNaN(t[0])||isNaN(t[1])}function r(t){return!i(t[0])&&!i(t[1])}function o(t){this._ctor=t||s,this.group=new a.Group}var a=n(2),s=n(90),l=o.prototype;l.updateData=function(t){var e=this._lineData,n=this.group,i=this._ctor,o=t.hostModel,a={lineStyle:o.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:o.getModel("lineStyle.emphasis").getLineStyle(),labelModel:o.getModel("label.normal"),hoverLabelModel:o.getModel("label.emphasis")};t.diff(e).add(function(e){if(r(t.getItemLayout(e))){var o=new i(t,e,a);t.setItemGraphicEl(e,o),n.add(o)}}).update(function(o,s){var l=e.getItemGraphicEl(s);if(!r(t.getItemLayout(o)))return void n.remove(l);l?l.updateData(t,o,a):l=new i(t,o,a),t.setItemGraphicEl(o,l),n.add(l)}).remove(function(t){n.remove(e.getItemGraphicEl(t))}).execute(),this._lineData=t},l.updateLayout=function(){var t=this._lineData;t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},l.remove=function(){this.group.removeAll()},t.exports=o},function(t,e,n){function i(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]}function r(t){return[t[0]/2,t[1]/2]}function o(t,e,n){u.Group.call(this),this.updateData(t,e,n)}function a(t,e){this.parent.drift(t,e)}var s=n(0),l=n(17),u=n(2),c=n(3),h=n(136),d=o.prototype;d._createSymbol=function(t,e,n,i){this.removeAll();var o=e.hostModel,s=e.getItemVisual(n,"color"),c=l.createSymbol(t,-1,-1,2,2,s);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=a,u.initProps(c,{scale:r(i)},o,n),this._symbolType=t,this.add(c)},d.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},d.getSymbolPath=function(){return this.childAt(0)},d.getScale=function(){return this.childAt(0).scale},d.highlight=function(){this.childAt(0).trigger("emphasis")},d.downplay=function(){this.childAt(0).trigger("normal")},d.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},d.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},d.updateData=function(t,e,n){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=i(t,e);if(o!==this._symbolType)this._createSymbol(o,t,e,s);else{var l=this.childAt(0);l.silent=!1,u.updateProps(l,{scale:r(s)},a,e)}this._updateCommon(t,e,s,n),this._seriesModel=a};var f=["itemStyle","normal"],p=["itemStyle","emphasis"],g=["label","normal"],v=["label","emphasis"];d._updateCommon=function(t,e,n,i){var o=this.childAt(0),a=t.hostModel,l=t.getItemVisual(e,"color");"image"!==o.type&&o.useStyle({strokeNoScale:!0}),i=i||null;var d=i&&i.itemStyle,m=i&&i.hoverItemStyle,y=i&&i.symbolRotate,x=i&&i.symbolOffset,_=i&&i.labelModel,b=i&&i.hoverLabelModel,w=i&&i.hoverAnimation,S=i&&i.cursorStyle;if(!i||t.hasItemOption){var M=t.getItemModel(e);d=M.getModel(f).getItemStyle(["color"]),m=M.getModel(p).getItemStyle(),y=M.getShallow("symbolRotate"),x=M.getShallow("symbolOffset"),_=M.getModel(g),b=M.getModel(v),w=M.getShallow("hoverAnimation"),S=M.getShallow("cursor")}else m=s.extend({},m);var A=o.style;o.attr("rotation",(y||0)*Math.PI/180||0),x&&o.attr("position",[c.parsePercent(x[0],n[0]),c.parsePercent(x[1],n[1])]),S&&o.attr("cursor",S),o.setColor(l),o.setStyle(d);var I=t.getItemVisual(e,"opacity");null!=I&&(A.opacity=I);var T=h.findLabelValueDim(t);h.setTextToStyle(t,e,T,A,a,_,l),h.setTextToStyle(t,e,T,m,a,b,l),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.hoverStyle=m,u.setHoverStyle(o);var C=r(n);if(w&&a.isAnimationEnabled()){var D=function(){var t=C[1]/C[0];this.animateTo({scale:[Math.max(1.1*C[0],C[0]+3),Math.max(1.1*C[1],C[1]+3*t)]},400,"elasticOut")},L=function(){this.animateTo({scale:C},400,"elasticOut")};o.on("mouseover",D).on("mouseout",L).on("emphasis",D).on("normal",L)}},d.fadeOut=function(t){var e=this.childAt(0);this.silent=e.silent=!0,e.style.text="",u.updateProps(e,{scale:[0,0]},this._seriesModel,this.dataIndex,t)},s.inherits(o,u.Group),t.exports=o},function(t,e,n){"use strict";function i(){}function r(t,e,n,i){o(f(n).lastProp,i)||(f(n).lastProp=i,e?d.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function o(t,e){if(c.isObject(t)&&c.isObject(e)){var n=!0;return c.each(e,function(e,i){n&=o(t[i],e)}),!!n}return t===e}function a(t,e){t[e.get("label.show")?"show":"hide"]()}function s(t){return{position:t.position.slice(),rotation:t.rotation||0}}function l(t,e){var n=t.get("icon"),i={x:-1,y:-1,width:2,height:2},r=c.extend({style:{strokeNoScale:!0},rectHover:!0,cursor:"move",draggable:!0},e);return 0===n.indexOf("image://")?(i.image=n.slice(8),r.style=i,new d.Image(r)):d.makePath(n.replace("path://",""),r,i,"center")}function u(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}var c=n(0),h=n(21),d=n(2),f=n(4).makeGetter(),p=n(64),g=n(23),v=n(44),m=c.clone,y=c.bind;i.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||"hide"===a)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var h={};this.makeElOption(h,o,t,e,n);var f=h.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(t,e);if(s){var g=c.curry(r,e,p);this.updatePointerEl(s,h,g,e),this.updateLabelEl(s,h,g,e)}else s=this._group=new d.Group,this.createPointerEl(s,h,t,e),this.createLabelEl(s,h,t,e),n.getZr().add(s);u(s,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=p.getAxisInfo(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=f(t).pointerEl=new d[r.type](m(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=f(t).labelEl=new d.Rect(m(e.label));t.add(r),a(r,i)}},updatePointerEl:function(t,e,n){var i=f(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=f(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),a(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=l(r,{onmousemove:function(t){g.stop(t.event)},onmousedown:y(this._onHandleDragMove,this,0,0),drift:y(this._onHandleDragMove,this),ondragend:y(this._onHandleDragEnd,this)}),n.add(i)),u(i,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.setStyle(r.getItemStyle(null,s));var h=r.get("size");c.isArray(h)||(h=[h,h]),i.attr("scale",[h[0]/2,h[1]/2]),v.createOrUpdate(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},_moveHandleToValue:function(t,e){r(this._axisPointerModel,!e&&this._moveAnimation,this._handle,s(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(s(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(s(i)),f(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},i.prototype.constructor=i,h.enableClassExtend(i),t.exports=i},function(t,e,n){var i=n(6),r=n(0),o={},a=["x","y","z","radius","angle","single"],s=["cartesian2d","polar","singleAxis"];o.isCoordSupported=function(t){return r.indexOf(s,t)>=0},o.createNameEach=function(t,e){t=t.slice();var n=r.map(t,i.capitalFirst);e=(e||[]).slice();var o=r.map(e,i.capitalFirst);return function(i,a){r.each(t,function(t,r){for(var s={name:t,capital:n[r]},l=0;l<e.length;l++)s[e[l]]=t+o[l];i.call(a,s)})}},o.eachAxisDim=o.createNameEach(a,["axisIndex","axis","index","id"]),o.createLinkedNodesFinder=function(t,e,n){function i(t,e){return r.indexOf(e.nodes,t)>=0}function o(t,i){var o=!1;return e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]&&(o=!0)})}),o}function a(t,i){i.nodes.push(t),e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(n){function r(t){!i(t,s)&&o(t,s)&&(a(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;a(n,s);var l;do{l=!1,t(r)}while(l);return s}},t.exports=o},function(t,e,n){function i(t){__DEV__&&B.assert(t),z.call(this),this._zr=t,this.group=new G.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,__DEV__&&this._mounted,this._uid="brushController_"+nt++,this._handlers={},$(it,function(t,e){this._handlers[e]=B.bind(t,this)},this)}function r(t,e){var n=t._zr;t._enableGlobalPan||F.take(n,J,t._uid),$(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=B.merge(B.clone(et),e,!0)}function o(t){var e=t._zr;F.release(e,J,t._uid),$(t._handlers,function(t,n){e.off(n,t)}),t._brushType=t._brushOption=null}function a(t,e){var n=rt[e.brushType].createCover(t,e);return n.__brushOption=e,u(n,e),t.group.add(n),n}function s(t,e){var n=h(e);return n.endCreating&&(n.endCreating(t,e),u(e,e.__brushOption)),e}function l(t,e){var n=e.__brushOption;h(e).updateCoverShape(t,e,n.range,n)}function u(t,e){var n=e.z;null==n&&(n=X),t.traverse(function(t){t.z=n,t.z2=n})}function c(t,e){h(e).updateCommon(t,e),l(t,e)}function h(t){return rt[t.__brushOption.brushType]}function d(t,e,n){var i=t._panels;if(!i)return!0;var r,o=t._transform;return $(i,function(t){t.isTargetByCursor(e,n,o)&&(r=t)}),r}function f(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function p(t){var e=t._covers,n=e.length;return $(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function g(t,e){var n=j(t._covers,function(t){var e=t.__brushOption,n=B.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function v(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return q(r*r+o*o,.5)>Y}function m(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function y(t,e,n,i){var r=new G.Group;return r.add(new G.Rect({name:"main",style:w(n),silent:!0,draggable:!0,cursor:"move",drift:W(t,e,r,"nswe"),ondragend:W(g,e,{isEnd:!0})})),$(i,function(n){r.add(new G.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:W(t,e,r,n),ondragend:W(g,e,{isEnd:!0})}))}),r}function x(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=U(r,K),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,f=h-o+r/2,p=c-a,g=h-s,v=p+r,m=g+r;b(t,e,"main",a,s,p,g),i.transformable&&(b(t,e,"w",l,u,o,m),b(t,e,"e",d,u,o,m),b(t,e,"n",l,u,v,o),b(t,e,"s",l,f,v,o),b(t,e,"nw",l,u,o,o),b(t,e,"ne",d,u,o,o),b(t,e,"sw",l,f,o,o),b(t,e,"se",d,f,o,o))}function _(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(w(n)),r.attr({silent:!i,cursor:i?"move":"default"}),$(["w","e","n","s","se","sw","ne","nw"],function(n){var r=e.childOfName(n),o=A(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?tt[o]+"-resize":null})})}function b(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(L(D(t,e,[[i,r],[i+o,r+a]])))}function w(t){return B.defaults({strokeNoScale:!0},t.brushStyle)}function S(t,e,n,i){var r=[Z(t,n),Z(e,i)],o=[U(t,n),U(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function M(t){return G.getTransform(t.group)}function A(t,e){if(e.length>1){e=e.split("");var n=[A(t,e[0]),A(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=G.transformDirection(i[e],M(t));return r[n]}function I(t,e,n,i,r,o,a,s){var l=i.__brushOption,u=t(l.range),h=C(n,o,a);$(r.split(""),function(t){var e=Q[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(S(u[0][0],u[1][0],u[0][1],u[1][1])),c(n,i),g(n,{isEnd:!1})}function T(t,e,n,i,r){var o=e.__brushOption.range,a=C(t,n,i);$(o,function(t){t[0]+=a[0],t[1]+=a[1]}),c(t,e),g(t,{isEnd:!1})}function C(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function D(t,e,n){var i=f(t,e);return i&&!0!==i?i.clipPath(n,t._transform):B.clone(n)}function L(t){var e=Z(t[0][0],t[1][0]),n=Z(t[0][1],t[1][1]);return{x:e,y:n,width:U(t[0][0],t[1][0])-e,height:U(t[0][1],t[1][1])-n}}function P(t,e,n){if(t._brushType){var i=t._zr,r=t._covers,o=d(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&rt[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function E(t){var e=t.event;e.preventDefault&&e.preventDefault()}function k(t,e,n){return t.childOfName("main").contain(e,n)}function O(t,e,n,i){var r,o=t._creatingCover,u=t._creatingPanel,c=t._brushOption;if(t._track.push(n.slice()),v(t)||o){if(u&&!o){"single"===c.brushMode&&p(t);var h=B.clone(c);h.brushType=N(h.brushType,u),h.panelId=!0===u?null:u.panelId,o=t._creatingCover=a(t,h),t._covers.push(o)}if(o){var f=rt[N(t._brushType,u)];o.__brushOption.range=f.getCreatingRange(D(t,o,t._track)),i&&(s(t,o),f.updateCommon(t,o)),l(t,o),r={isEnd:i}}}else i&&"single"===c.brushMode&&c.removeOnClick&&d(t,e,n)&&p(t)&&(r={isEnd:i,removeOnClick:!0});return r}function N(t,e){return"auto"===t?(__DEV__&&B.assert(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}function V(t){if(this._dragging){E(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),n=O(this,t,e,!0);this._dragging=!1,this._track=[],this._creatingCover=null,n&&g(this,n)}}function R(t){return{createCover:function(e,n){return y(W(I,function(e){var n=[e,[0,100]];return t&&n.reverse(),n},function(e){return e[t]}),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=m(e);return[Z(n[0][t],n[1][t]),U(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=f(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),x(e,n,l,r)},updateCommon:_,contain:k}}var z=n(38),B=n(0),G=n(2),F=n(150),H=n(58),W=B.curry,$=B.each,j=B.map,Z=Math.min,U=Math.max,q=Math.pow,X=1e4,Y=6,K=6,J="globalPan",Q={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},tt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},et={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},nt=0;i.prototype={constructor:i,enableBrush:function(t){return __DEV__&&B.assert(this._mounted),this._brushType&&o(this),t.brushType&&r(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};B.each(t,function(t){e[t.panelId]=B.clone(t)})}else this._panels=null;return this},mount:function(t){t=t||{},__DEV__&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){$(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:o+e)+"-"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function i(e,n){var i=t[e];if(null!=n&&l[n]===d)u[e]=l[n];else{var r=u[e]=null!=n?(l[n].__brushOption=i,l[n]):s(h,a(h,i));c(h,r)}}function r(t){l[t]!==d&&h.group.remove(l[t])}__DEV__&&B.assert(this._mounted),t=B.map(t,function(t){return B.merge(B.clone(et),t,!0)});var o="\0-brush-index-",l=this._covers,u=this._covers=[],h=this,d=this._creatingCover;return new H(l,t,n,e).add(i).update(i).remove(r).execute(),this},unmount:function(){if(!__DEV__||this._mounted)return this.enableBrush(!1),p(this),this._zr.remove(this.group),__DEV__&&(this._mounted=!1),this},dispose:function(){this.unmount(),this.off()}},B.mixin(i,z);var it={mousedown:function(t){if(this._dragging)V.call(this,t);else if(!t.target||!t.target.draggable){E(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=d(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(P(this,t,e),this._dragging){E(t);var n=O(this,t,e,!1);n&&g(this,n)}},mouseup:V},rt={lineX:R(0),lineY:R(1),rect:{createCover:function(t,e){return y(W(I,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=m(t);return S(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){x(t,e,n,i)},updateCommon:_,contain:k},polygon:{createCover:function(t,e){var n=new G.Group;return n.add(new G.Polyline({name:"main",style:w(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new G.Polygon({name:"main",draggable:!0,drift:W(T,t,e),ondragend:W(g,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:D(t,e,n)})},updateCommon:_,contain:k}};t.exports=i},function(t,e){var n={},i={axisPointer:1,tooltip:1,brush:1};n.onIrrelevantElement=function(t,e,n){var r=e.getComponentByElement(t.topTarget),o=r&&r.coordinateSystem;return r&&r!==n&&!i[r.mainType]&&o&&o.model!==n},t.exports=n},function(t,e,n){var i=n(0);t.exports={updateSelectedMap:function(t){this._selectTargetMap=i.reduce(t||[],function(t,e){return t.set(e.name,e),t},i.createHashMap())},select:function(t){var e=this._selectTargetMap,n=e.get(t);"single"===this.get("selectedMode")&&e.each(function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._selectTargetMap.get(t);e&&(e.selected=!1)},toggleSelected:function(t){var e=this._selectTargetMap.get(t);if(null!=e)return this[e.selected?"unSelect":"select"](t),e.selected},isSelected:function(t){var e=this._selectTargetMap.get(t);return e&&e.selected}}},function(t,e,n){function i(t){r.defaultEmphasis(t.label,r.LABEL_OPTIONS)}var r=n(4),o=n(0),a=n(12),s=n(6),l=s.addCommas,u=s.encodeHTML,c=n(1).extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n,i){if(__DEV__&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,n),this.mergeOption(t,n,i.createdBySelf,!0)},isAnimationEnabled:function(){if(a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,n,r){var a=this.constructor,s=this.mainType+"Model";n||e.eachSeries(function(t){var n=t.get(this.mainType),l=t[s];if(!n||!n.data)return void(t[s]=null);l?l.mergeOption(n,e,!0):(r&&i(n),o.each(n.data,function(t){t instanceof Array?(i(t[0]),i(t[1])):i(t)}),l=new a(n,this,e),o.extend(l,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),l.__hostSeries=t),t[s]=l},this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=o.isArray(n)?o.map(n,l).join(", "):l(n),r=e.getName(t),a=u(this.name);return(null!=n||r)&&(a+="<br />"),r&&(a+=u(r),null!=n&&(a+=" : ")),null!=n&&(a+=u(i)),a},getData:function(){return this._data},setData:function(t){this._data=t}});o.mixin(c,r.dataFormatMixin),t.exports=c},function(t,e,n){var i=n(0);t.exports=n(1).extendComponentView({type:"marker",init:function(){this.markerGroupMap=i.createHashMap()},render:function(t,e,n){var i=this.markerGroupMap;i.each(function(t){t.__keep=!1});var r=this.type+"Model";e.eachSeries(function(t){var i=t[r];i&&this.renderSeries(t,i,e,n)},this),i.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}})},function(t,e,n){function i(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function r(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function o(t,e,n){var i=-1;do{i=Math.max(l.getPrecision(t.get(e,n)),i),t=t.stackedOn}while(t);return i}function a(t,e,n,i,r,a){var s=[],l=v(e,i,t),u=e.indicesOfNearest(i,l,!0)[0];s[r]=e.get(n,u,!0),s[a]=e.get(i,u,!0);var c=o(e,i,u);return c>=0&&(s[a]=+s[a].toFixed(c)),s}var s=n(0),l=n(3),u=s.indexOf,c=s.curry,h={min:c(a,"min"),max:c(a,"max"),average:c(a,"average")},d=function(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!r(e)&&!s.isArray(e.coord)&&i){var o=i.dimensions,a=f(e,n,i,t);if(e=s.clone(e),e.type&&h[e.type]&&a.baseAxis&&a.valueAxis){var l=u(o,a.baseAxis.dim),c=u(o,a.valueAxis.dim);e.coord=h[e.type](n,a.baseDataDim,a.valueDataDim,l,c),e.value=e.coord[c]}else{for(var d=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],p=0;p<2;p++)if(h[d[p]]){var g=t.coordDimToDataDim(o[p])[0];d[p]=v(n,g,d[p])}e.coord=d}}return e},f=function(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(i.dataDimToCoordDim(r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=i.coordDimToDataDim(r.baseAxis.dim)[0]):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=i.coordDimToDataDim(r.baseAxis.dim)[0],r.valueDataDim=i.coordDimToDataDim(r.valueAxis.dim)[0]),r},p=function(t,e){return!(t&&t.containData&&e.coord&&!i(e))||t.containData(e.coord)},g=function(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value},v=function(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){isNaN(t)||(i+=t,r++)},!0),i/r}return t.getDataExtent(e,!0)["max"===n?1:0]};t.exports={dataTransform:d,dataFilter:p,dimValueGetter:g,getAxisInfo:f,numCalculate:v}},function(t,e,n){function i(t,e,n){return t.getCoordSysModel()===e}function r(t){var e,n=t.model,i=n.getFormattedLabels(),r=n.getModel("axisLabel.textStyle"),o=1,a=i.length;a>40&&(o=Math.ceil(a/40));for(var s=0;s<a;s+=o)if(!t.isLabelIgnored(s)){var l=r.getTextRect(i[s]);e?e.union(l):e=l}return e}function o(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}function a(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function s(t,e){return h.map(y,function(e){var n=t.getReferringComponents(e)[0];if(__DEV__&&!n)throw new Error(e+' "'+h.retrieve(t.get(e+"Index"),t.get(e+"Id"),0)+'" not found');return n})}function l(t){return"cartesian2d"===t.get("coordinateSystem")}var u=n(7),c=n(15),h=n(0),d=n(436),f=n(434),p=h.each,g=c.ifAxisCrossZero,v=c.niceScaleExtent;n(437);var m=o.prototype;m.type="grid",m.axisPointerEnabled=!0,m.getRect=function(){return this._rect},m.update=function(t,e){function n(t){var e=i[t];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r&&("category"===r.type||"time"===r.type||!g(r)))return!0}return!1}var i=this._axesMap;this._updateScale(t,this.model),p(i.x,function(t){v(t.scale,t.model)}),p(i.y,function(t){v(t.scale,t.model)}),p(i.x,function(t){n("y")&&(t.onZero=!1)}),p(i.y,function(t){n("x")&&(t.onZero=!1)}),this.resize(this.model,e)},m.resize=function(t,e,n){function i(){p(s,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),a(t,e?o.x:o.y)})}var o=u.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;i(),!n&&t.get("containLabel")&&(p(s,function(t){if(!t.model.get("axisLabel.inside")){var e=r(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}}),i())},m.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},m.getAxes=function(){return this._axesList.slice()},m.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}h.isObject(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},m.getCartesians=function(){return this._coordsList.slice()},m.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},m.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},m._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)n=r.coordinateSystem,h.indexOf(l,n)<0&&(n=null);else if(o&&a)n=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)i=this.getAxis("x",o.componentIndex);else if(a)i=this.getAxis("y",a.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},m.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},m._initCartesian=function(t,e,n){function r(n){return function(r,l){if(i(r,t,e)){var u=r.get("position");"x"===n?"top"!==u&&"bottom"!==u&&(u="bottom",o[u]&&(u="top"===u?"bottom":"top")):"left"!==u&&"right"!==u&&(u="left",o[u]&&(u="left"===u?"right":"left")),o[u]=!0;var h=new f(n,c.createScaleByModel(r),[0,0],r.get("type"),u),d="category"===h.type;h.onBand=d&&r.get("boundaryGap"),h.inverse=r.get("inverse"),h.onZero=r.get("axisLine.onZero"),r.axis=h,h.model=r,h.grid=this,h.index=l,this._axesList.push(h),a[n][l]=h,s[n]++}}}var o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",r("x"),this),e.eachComponent("yAxis",r("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);this._axesMap=a,p(a.x,function(e,n){p(a.y,function(i,r){var o="x"+n+"y"+r,a=new d(o);a.grid=this,a.model=t,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(i)},this)},this)},m._updateScale=function(t,e){function n(t,e,n){p(n.coordDimToDataDim(e.dim),function(n){e.scale.unionExtentFromData(t,n)})}h.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if(l(r)){var o=s(r,t),a=o[0],u=o[1];if(!i(a,e,t)||!i(u,e,t))return;var c=this.getCartesian(a.componentIndex,u.componentIndex),h=r.getData(),d=c.getAxis("x"),f=c.getAxis("y");"list"===h.type&&(n(h,d,r),n(h,f,r))}},this)},m.getTooltipAxes=function(t){var e=[],n=[];return p(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);h.indexOf(e,r)<0&&e.push(r),h.indexOf(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}};var y=["xAxis","yAxis"];o.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var a=new o(i,t,e);a.name="grid_"+r,a.resize(i,e,!0),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(e){if(l(e)){var n=s(e,t),i=n[0],r=n[1],o=i.getCoordSysModel();if(__DEV__){if(!o)throw new Error('Grid "'+h.retrieve(i.get("gridIndex"),i.get("gridId"),0)+'" not found');if(i.getCoordSysModel()!==r.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var a=o.coordinateSystem;e.coordinateSystem=a.getCartesian(i.componentIndex,r.componentIndex)}}),n},o.dimensions=o.prototype.dimensions=d.prototype.dimensions,n(20).register("cartesian2d",o),t.exports=o},function(t,e,n){function i(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}var r=n(176),o=n(9),a=n(109),s=n(5);i.prototype={constructor:i,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var h=u[c].exterior;a.fromPoints(h,r,l),s.min(n,n,r),s.max(i,i,l)}return 0===c&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new o(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++)if("polygon"===n[i].type){var a=n[i].exterior,s=n[i].interiors;if(r.contain(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(r.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),a=r.width/r.height;n?i||(i=n/a):n=a*i;for(var l=new o(t,e,n,i),u=r.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++)if("polygon"===c[h].type){for(var d=c[h].exterior,f=c[h].interiors,p=0;p<d.length;p++)s.applyTransform(d[p],d[p],u);for(var g=0;g<(f?f.length:0);g++)for(var p=0;p<f[g].length;p++)s.applyTransform(f[g][p],f[g][p],u)}r=this._rect,r.copy(l),this.center=[r.x+r.width/2,r.y+r.height/2]}},t.exports=i},function(t,e,n){function i(t,e){var n=t.get("center"),i=t.get("radius"),r=e.getWidth(),o=e.getHeight(),a=s.parsePercent;this.cx=a(n[0],r),this.cy=a(n[1],o);var l=this.getRadiusAxis(),u=Math.min(r,o)/2;l.setExtent(0,a(i,u))}function r(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();r.scale.unionExtentFromData(e,"radius"),i.scale.unionExtentFromData(e,"angle")}}),c(i.scale,i.model),c(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function o(t,e){if(t.type=e.get("type"),t.scale=u.createScaleByModel(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,"angleAxis"===e.mainType){var n=e.get("startAngle");t.inverse=e.get("inverse")^e.get("clockwise"),t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var a=n(453),s=n(3),l=n(0),u=n(15),c=u.niceScaleExtent;n(454);var h={dimensions:a.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,s){var l=new a(s);l.resize=i,l.update=r;var u=l.getRadiusAxis(),c=l.getAngleAxis(),h=t.findAxisModel("radiusAxis"),d=t.findAxisModel("angleAxis");o(u,h),o(c,d),l.resize(t,e),n.push(l),t.coordinateSystem=l,l.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];if(__DEV__&&!n)throw new Error('Polar "'+l.retrieve(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}}),n}};n(20).register("polar",h)},function(t,e,n){"use strict";function i(t){return t.get("stack")||d+t.seriesIndex}function r(t){return t.dim+t.index}function o(t,e){var n=[],i=t.axis;if("category"===i.type){for(var r=i.getBandWidth(),o=0;o<t.count;o++)n.push(u.defaults({bandWidth:r,axisKey:"axis0",stackId:d+o},t));for(var a=s(n,e),l=[],o=0;o<t.count;o++){var c=a.axis0[d+o];c.offsetCenter=c.offset+c.width/2,l.push(c)}return l}}function a(t,e){return s(u.map(t,function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=o.getExtent(),s="category"===o.type?o.getBandWidth():Math.abs(a[1]-a[0])/e.count();return{bandWidth:s,barWidth:h(t.get("barWidth"),s),barMaxWidth:h(t.get("barMaxWidth"),s),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),axisKey:r(o),stackId:i(t)}}),e)}function s(t,e){var n={};u.each(t,function(t,e){var i=t.axisKey,r=t.bandWidth,o=n[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;n[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(l=Math.min(o.remainedWidth,l),a[s].width=l,o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barGap;null!=c&&(o.gap=c);var h=t.barCategoryGap;null!=h&&(o.categoryGap=h)});var i={};return u.each(n,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=h(t.categoryGap,r),a=h(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,c=(s-o)/(l+(l-1)*a);c=Math.max(c,0),u.each(n,function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)}),c=(s-o)/(l+(l-1)*a),c=Math.max(c,0);var d,f=0;u.each(n,function(t,e){t.width||(t.width=c),d=t,f+=t.width*(1+a)}),d&&(f-=d.width*a);var p=-f/2;u.each(n,function(t,n){i[e][n]=i[e][n]||{offset:p,width:t.width},p+=t.width*(1+a)})}),i}function l(t,e,n){var o=a(u.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})),s={},l={};e.eachSeriesByType(t,function(t){if("cartesian2d"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),u=i(t),c=o[r(a)][u],h=c.offset,d=c.width,f=n.getOtherAxis(a),p=t.get("barMinHeight")||0,g=a.onZero?f.toGlobalCoord(f.dataToCoord(0)):f.getGlobalExtent()[0],v=n.dataToPoints(e,!0);s[u]=s[u]||[],l[u]=l[u]||[],e.setLayout({offset:h,size:d}),e.each(f.dim,function(t,n){if(!isNaN(t)){s[u][n]||(s[u][n]={p:g,n:g},l[u][n]={p:g,n:g});var i,r,o,a,c=t>=0?"p":"n",m=v[n],y=s[u][n][c],x=l[u][n][c];f.isHorizontal()?(i=y,r=m[1]+h,o=m[0]-x,a=d,l[u][n][c]+=o,Math.abs(o)<p&&(o=(o<0?-1:1)*p),s[u][n][c]+=o):(i=m[0]+h,r=y,o=d,a=m[1]-x,l[u][n][c]+=a,Math.abs(a)<p&&(a=(a<=0?-1:1)*p),s[u][n][c]+=a),e.setItemLayout(n,{x:i,y:r,width:o,height:a})}},!0)}},this)}var u=n(0),c=n(3),h=c.parsePercent,d="__ec_stack_";l.getLayoutOnAxis=o,t.exports=l},function(t,e){t.exports=function(t,e){e.eachSeriesByType(t,function(t){var e=t.getData(),n=t.coordinateSystem;if(n){for(var i=[],r=n.dimensions,o=0;o<r.length;o++)i.push(t.coordDimToDataDim(n.dimensions[o])[0]);1===i.length?e.each(i[0],function(t,i){e.setItemLayout(i,isNaN(t)?[NaN,NaN]:n.dataToPoint(t))}):2===i.length&&e.each(i,function(t,i,r){e.setItemLayout(r,isNaN(t)||isNaN(i)?[NaN,NaN]:n.dataToPoint([t,i]))},!0)}})}},function(t,e,n){var i=n(0),r=n(21),o=r.parseClassType,a=0,s={};s.getUID=function(t){return[t||"",a++,Math.random()].join("_")},s.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=o(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var a=o(n).main;t.hasSubTypes(n)&&e[a]&&(r=e[a](i))}return r},t},s.enableTopologicalTravel=function(t,e){function n(t){var n={},a=[];return i.each(t,function(s){var l=r(n,s),u=l.originalDeps=e(s),c=o(u,t);l.entryCount=c.length,0===l.entryCount&&a.push(s),i.each(c,function(t){i.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=r(n,t);i.indexOf(e.successor,t)<0&&e.successor.push(s)})}),{graph:n,noEntryList:a}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function o(t,e){var n=[];return i.each(t,function(t){i.indexOf(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,r,o){function a(t){0===--u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,a(t)}if(t.length){var l=n(e),u=l.graph,c=l.noEntryList,h={};for(i.each(t,function(t){h[t]=!0});c.length;){var d=c.pop(),f=u[d],p=!!h[d];p&&(r.call(o,d,f.originalDeps.slice()),delete h[d]),i.each(f.successor,p?s:a)}i.each(h,function(){throw new Error("Circle dependency may exists")})}}},t.exports=s},function(t,e,n){var i=n(75),r=n(106),o=n(21),a=function(){this.group=new i,this.uid=r.getUID("viewComponent")};a.prototype={constructor:a,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){}};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},o.enableClassExtend(a),o.enableClassManagement(a,{registerWhenExtend:!0}),t.exports=a},function(t,e){t.exports=function(t,e){var n={};e.eachRawSeriesByType(t,function(t){var i=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var o=t.getData();o.each(function(t){var e=o.getRawIndex(t);r[e]=t}),i.each(function(e){var a=r[e],s=null!=a&&o.getItemVisual(a,"color",!0);if(s)i.setItemVisual(e,"color",s);else{var l=i.getItemModel(e),u=l.get("itemStyle.normal.color")||t.getColorFromPalette(i.getName(e),n);i.setItemVisual(e,"color",u),null!=a&&o.setItemVisual(a,"color",u)}})}})}},function(t,e,n){var i=n(5),r=n(32),o={},a=Math.min,s=Math.max,l=Math.sin,u=Math.cos,c=i.create(),h=i.create(),d=i.create(),f=2*Math.PI;o.fromPoints=function(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],l=r[0],u=r[1],c=r[1];for(i=1;i<t.length;i++)r=t[i],o=a(o,r[0]),l=s(l,r[0]),u=a(u,r[1]),c=s(c,r[1]);e[0]=o,e[1]=u,n[0]=l,n[1]=c}},o.fromLine=function(t,e,n,i,r,o){r[0]=a(t,n),r[1]=a(e,i),o[0]=s(t,n),o[1]=s(e,i)};var p=[],g=[];o.fromCubic=function(t,e,n,i,o,l,u,c,h,d){var f,v=r.cubicExtrema,m=r.cubicAt,y=v(t,n,o,u,p);for(h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0,f=0;f<y;f++){var x=m(t,n,o,u,p[f]);h[0]=a(x,h[0]),d[0]=s(x,d[0])}for(y=v(e,i,l,c,g),f=0;f<y;f++){var _=m(e,i,l,c,g[f]);h[1]=a(_,h[1]),d[1]=s(_,d[1])}h[0]=a(t,h[0]),d[0]=s(t,d[0]),h[0]=a(u,h[0]),d[0]=s(u,d[0]),h[1]=a(e,h[1]),d[1]=s(e,d[1]),h[1]=a(c,h[1]),d[1]=s(c,d[1])},o.fromQuadratic=function(t,e,n,i,o,l,u,c){var h=r.quadraticExtremum,d=r.quadraticAt,f=s(a(h(t,n,o),1),0),p=s(a(h(e,i,l),1),0),g=d(t,n,o,f),v=d(e,i,l,p);u[0]=a(t,o,g),u[1]=a(e,l,v),c[0]=s(t,o,g),c[1]=s(e,l,v)},o.fromArc=function(t,e,n,r,o,a,s,p,g){var v=i.min,m=i.max,y=Math.abs(o-a);if(y%f<1e-4&&y>1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(c[0]=u(o)*n+t,c[1]=l(o)*r+e,h[0]=u(a)*n+t,h[1]=l(a)*r+e,v(p,c,h),m(g,c,h),o%=f,o<0&&(o+=f),a%=f,a<0&&(a+=f),o>a&&!s?a+=f:o<a&&s&&(o+=f),s){var x=a;a=o,o=x}for(var _=0;_<a;_+=Math.PI/2)_>o&&(d[0]=u(_)*n+t,d[1]=l(_)*r+e,v(p,d,p),m(g,d,g))},t.exports=o},function(t,e,n){var i=n(74);t.exports=function(){if(0!==i.debugMode)if(1==i.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(i.debugMode>1)for(var t in arguments)console.log(arguments[t])}},function(t,e){function n(t){for(var e=0;t>=c;)e|=1&t,t>>=1;return t+e}function i(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;r(t,e,o)}else for(;o<n&&i(t[o],t[o-1])>=0;)o++;return o-e}function r(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}function o(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function a(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function s(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function l(t,e){function n(t,e){c[g]=t,d[g]=e,g+=1}function i(){for(;g>1;){var t=g-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;o(t)}}function r(){for(;g>1;){var t=g-2;t>0&&d[t-1]<d[t+1]&&t--,o(t)}}function o(n){var i=c[n],r=d[n],o=c[n+1],h=d[n+1];d[n]=r+h,n===g-3&&(c[n+1]=c[n+2],d[n+1]=d[n+2]),g--;var f=s(t[o],t,i,r,0,e);i+=f,0!==(r-=f)&&0!==(h=a(t[i+r-1],t,o,h,h-1,e))&&(r<=h?l(i,r,o,h):u(i,r,o,h))}function l(n,i,r,o){var l=0;for(l=0;l<i;l++)v[l]=t[n+l];var u=0,c=r,d=n;if(t[d++]=t[c++],0!=--o){if(1===i){for(l=0;l<o;l++)t[d+l]=t[c+l];return void(t[d+o]=v[u])}for(var p,g,m,y=f;;){p=0,g=0,m=!1;do{if(e(t[c],v[u])<0){if(t[d++]=t[c++],g++,p=0,0==--o){m=!0;break}}else if(t[d++]=v[u++],p++,g=0,1==--i){m=!0;break}}while((p|g)<y);if(m)break;do{if(0!==(p=s(t[c],v,u,i,0,e))){for(l=0;l<p;l++)t[d+l]=v[u+l];if(d+=p,u+=p,(i-=p)<=1){m=!0;break}}if(t[d++]=t[c++],0==--o){m=!0;break}if(0!==(g=a(v[u],t,c,o,0,e))){for(l=0;l<g;l++)t[d+l]=t[c+l];if(d+=g,c+=g,0===(o-=g)){m=!0;break}}if(t[d++]=v[u++],1==--i){m=!0;break}y--}while(p>=h||g>=h);if(m)break;y<0&&(y=0),y+=2}if(f=y,f<1&&(f=1),1===i){for(l=0;l<o;l++)t[d+l]=t[c+l];t[d+o]=v[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[d+l]=v[u+l]}}else for(l=0;l<i;l++)t[d+l]=v[u+l]}function u(n,i,r,o){var l=0;for(l=0;l<o;l++)v[l]=t[r+l];var u=n+i-1,c=o-1,d=r+o-1,p=0,g=0;if(t[d--]=t[u--],0!=--i){if(1===o){for(d-=i,u-=i,g=d+1,p=u+1,l=i-1;l>=0;l--)t[g+l]=t[p+l];return void(t[d]=v[c])}for(var m=f;;){var y=0,x=0,_=!1;do{if(e(v[c],t[u])<0){if(t[d--]=t[u--],y++,x=0,0==--i){_=!0;break}}else if(t[d--]=v[c--],x++,y=0,1==--o){_=!0;break}}while((y|x)<m);if(_)break;do{if(0!==(y=i-s(v[c],t,n,i,i-1,e))){for(d-=y,u-=y,i-=y,g=d+1,p=u+1,l=y-1;l>=0;l--)t[g+l]=t[p+l];if(0===i){_=!0;break}}if(t[d--]=v[c--],1==--o){_=!0;break}if(0!==(x=o-a(t[u],v,0,o,o-1,e))){for(d-=x,c-=x,o-=x,g=d+1,p=c+1,l=0;l<x;l++)t[g+l]=v[p+l];if(o<=1){_=!0;break}}if(t[d--]=t[u--],0==--i){_=!0;break}m--}while(y>=h||x>=h);if(_)break;m<0&&(m=0),m+=2}if(f=m,f<1&&(f=1),1===o){for(d-=i,u-=i,g=d+1,p=u+1,l=i-1;l>=0;l--)t[g+l]=t[p+l];t[d]=v[c]}else{if(0===o)throw new Error;for(p=d-(o-1),l=0;l<o;l++)t[p+l]=v[l]}}else for(p=d-(o-1),l=0;l<o;l++)t[p+l]=v[l]}var c,d,f=h,p=0,g=0;p=t.length;var v=[];c=[],d=[],this.mergeRuns=i,this.forceMergeRuns=r,this.pushRun=n}function u(t,e,r,a){r||(r=0),a||(a=t.length);var s=a-r;if(!(s<2)){var u=0;if(s<c)return u=i(t,r,a,e),void o(t,r,a,r+u,e);var h=new l(t,e),d=n(s);do{if((u=i(t,r,a,e))<d){var f=s;f>d&&(f=d),o(t,r,r+f,r+u,e),u=f}h.pushRun(r,u),h.mergeRuns(),s-=u,r+=u}while(0!==s);h.forceMergeRuns()}}var c=32,h=7;t.exports=u},function(t,e,n){function i(t){r.call(this,t)}var r=n(76),o=n(9),a=n(0),s=n(180),l=new s(50);i.prototype={constructor:i,type:"image",brush:function(t,e){var n,i=this.style,r=i.image;if(i.bind(t,this,e),!(n="string"==typeof r?this._image:r)&&r){var o=l.get(r);if(!o)return n=new Image,n.onload=function(){n.onload=null;for(var t=0;t<o.pending.length;t++)o.pending[t].dirty()},o={image:n,pending:[this]},n.src=r,l.put(r,o),void(this._image=n);if(n=o.image,this._image=n,!n.width||!n.height)return void o.pending.push(this)}if(n){var a=i.x||0,s=i.y||0;if(!n.width||!n.height)return;var u=i.width,c=i.height,h=n.width/n.height;if(null==u&&null!=c?u=c*h:null==c&&null!=u?c=u/h:null==u&&null==c&&(u=n.width,c=n.height),this.setTransform(t),i.sWidth&&i.sHeight){var d=i.sx||0,f=i.sy||0;t.drawImage(n,d,f,i.sWidth,i.sHeight,a,s,u,c)}else if(i.sx&&i.sy){var d=i.sx,f=i.sy,p=u-d,g=c-f;t.drawImage(n,d,f,p,g,a,s,u,c)}else t.drawImage(n,a,s,u,c);this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},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(i,r),t.exports=i},function(t,e,n){"use strict";function i(t){return t>s||t<-s}var r=n(18),o=n(5),a=r.identity,s=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},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;if(!n&&!e)return void(i&&a(i));i=i||r.create(),n?this.getLocalTransform(i):a(i),e&&(n?r.mul(i,t.transform,i):r.copy(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,i)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var c=[];u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(c,t.invTransform,e),e=c);var n=e[0]*e[0]+e[1]*e[1],o=e[2]*e[2]+e[3]*e[3],a=this.position,s=this.scale;i(n-1)&&(n=Math.sqrt(n)),i(o-1)&&(o=Math.sqrt(o)),e[0]<0&&(n=-n),e[3]<0&&(o=-o),a[0]=e[4],a[1]=e[5],s[0]=n,s[1]=o,this.rotation=Math.atan2(-e[1]/o,e[0]/n)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(n=-n),[e,n]},u.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&o.applyTransform(n,n,i),n},u.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&o.applyTransform(n,n,i),n},l.getLocalTransform=function(t,e){e=e||[],a(e);var n=t.origin,i=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),r.scale(e,e,i),o&&r.rotate(e,e,o),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e},t.exports=l},function(t,e,n){var i=n(206);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(60),r=n(26).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){t.exports=!n(39)&&!n(49)(function(){return 7!=Object.defineProperty(n(115)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var i=n(81),r=n(48),o=n(122),a=n(40),s=n(33),l=n(50),u=n(217),c=n(82),h=n(225),d=n(19)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,v,m,y){u(n,e,g);var x,_,b,w=function(t){if(!f&&t in I)return I[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",M="values"==v,A=!1,I=t.prototype,T=I[d]||I["@@iterator"]||v&&I[v],C=T||w(v),D=v?M?w("entries"):C:void 0,L="Array"==e?I.entries||T:T;if(L&&(b=h(L.call(new t)))!==Object.prototype&&(c(b,S,!0),i||s(b,d)||a(b,d,p)),M&&T&&"values"!==T.name&&(A=!0,C=function(){return T.call(this)}),i&&!y||!f&&!A&&I[d]||a(I,d,C),l[e]=C,l[S]=p,v)if(x={values:M?C:w("values"),keys:m?C:w("keys"),entries:D},y)for(_ in x)_ in I||o(I,_,x[_]);else r(r.P+r.F*(f||A),e,x);return x}},function(t,e,n){var i=n(47),r=n(222),o=n(80),a=n(83)("IE_PROTO"),s=function(){},l=function(){var t,e=n(115)("iframe"),i=o.length;for(e.style.display="none",n(212).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(121),r=n(80).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(33),r=n(27),o=n(208)(!1),a=n(83)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){t.exports=n(40)},function(t,e,n){var i=n(85),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){"use strict";var i=n(228)(!0);n(117)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(1),r=n(0);t.exports=function(t,e){r.each(e,function(e){e.update="updateView",i.registerAction(e,function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r}})})}},function(t,e,n){var i=n(0),r=n(127);n(1).registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){var o=e.coordinateSystem;if("geo"===o.type){var a=r.updateCenterAndZoom(o,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===n&&i.each(e.seriesGroup,function(t){t.setCenter(a.center),t.setZoom(a.zoom)})}})})},function(t,e){var n={};n.updateCenterAndZoom=function(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){a[0]-=e.dx,a[1]-=e.dy;var r=t.pointToData(a);t.setCenter(r)}if(null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,c=(e.originX-u[0])*(o-1),h=(e.originY-u[1])*(o-1);u[0]-=c,u[1]-=h,t.updateTransform();var r=t.pointToData(a);t.setCenter(r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}},t.exports=n},function(t,e,n){"use strict";var i=n(13),r=n(28);t.exports=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(t.data,this,e)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(t,!0),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,itemStyle:{normal:{},emphasis:{}}}})},function(t,e,n){function i(t,e,n,i,r){o.setText(t,e,n),t.text=i,"outside"===t.textPosition&&(t.textPosition=r)}var r=n(0),o=n(2),a={};a.setLabel=function(t,e,n,o,a,s,l){var u=n.getModel("label.normal"),c=n.getModel("label.emphasis");u.get("show")?i(t,u,o,r.retrieve(a.getFormattedLabel(s,"normal"),a.getRawValue(s)),l):t.text="",c.get("show")?i(e,c,o,r.retrieve(a.getFormattedLabel(s,"emphasis"),a.getRawValue(s)),l):e.text=""},t.exports=a},function(t,e,n){var i=n(5);t.exports=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=e.getBoundingRect(),r=t.getData(),o=r.graph,a=0,s=r.getSum("value"),l=2*Math.PI/(s||r.count()),u=n.width/2+n.x,c=n.height/2+n.y,h=Math.min(n.width,n.height)/2;o.eachNode(function(t){var e=t.getValue("value");a+=l*(s?e:1)/2,t.setLayout([h*Math.cos(a)+u,h*Math.sin(a)+c]),a+=l*(s?e:1)/2}),r.setLayout({cx:u,cy:c}),o.eachEdge(function(t){var e,n=t.getModel().get("lineStyle.normal.curveness")||0,r=i.clone(t.node1.getLayout()),o=i.clone(t.node2.getLayout()),a=(r[0]+o[0])/2,s=(r[1]+o[1])/2;+n&&(n*=3,e=[u*n+a*(1-n),c*n+s*(1-n)]),t.setLayout([r,o,e])})}}},function(t,e,n){var i=n(5);t.exports=function(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.normal.curveness")||0,n=i.clone(t.node1.getLayout()),r=i.clone(t.node2.getLayout()),o=[n,r];+e&&o.push([(n[0]+r[0])/2-(n[1]-r[1])*e,(n[1]+r[1])/2-(r[0]-n[0])*e]),t.setLayout(o)})}},function(t,e,n){var i=n(131);t.exports=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),i(n)}}},function(t,e,n){function i(t,e,n){r.Group.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var r=n(2),o=n(90),a=n(0),s=n(17),l=n(5),u=n(32),c=i.prototype;c.createLine=function(t,e,n){return new o(t,e,n)},c._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");a.isArray(r)||(r=[r,r]);var l=i.get("color")||t.getItemVisual(e,"color"),u=this.childAt(1);this._symbolType!==o&&(this.remove(u),u=s.createSymbol(o,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(i.getItemStyle(["color"])),u.attr("scale",r),u.setColor(l),u.attr("scale",r),this._symbolType=o,this._updateEffectAnimation(t,i,e))},c._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,o=t.getItemLayout(n),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),c=a.retrieve(e.get("delay"),function(e){return e/t.count()*s/3}),h="function"==typeof c;if(i.ignore=!0,this.updateAnimationPoints(i,o),u>0&&(s=this.getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=c;h&&(d=c(n)),i.__t>0&&(d=-s*i.__t),i.__t=0;var f=i.animate("",l).when(s,{__t:1}).delay(d).during(function(){r.updateSymbolPosition(i)});l||f.done(function(){r.remove(i)}),f.start()}this._period=s,this._loop=l}},c.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},c.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},c.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=u.quadraticAt,s=u.quadraticDerivativeAt;o[0]=a(e[0],i[0],n[0],r),o[1]=a(e[1],i[1],n[1],r);var l=s(e[0],i[0],n[0],r),c=s(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,l)-Math.PI/2,t.ignore=!1},c.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},a.inherits(i,r.Group),t.exports=i},function(t,e,n){function i(t,e,n){r.Group.call(this),this._createPolyline(t,e,n)}var r=n(2),o=n(0),a=i.prototype;a._createPolyline=function(t,e,n){var i=t.getItemLayout(e),o=new r.Polyline({shape:{points:i}});this.add(o),this._updateCommonStl(t,e,n)},a.updateData=function(t,e,n){var i=t.hostModel,o=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};r.updateProps(o,a,i,e),this._updateCommonStl(t,e,n)},a._updateCommonStl=function(t,e,n){var i=this.childAt(0),a=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!t.hasItemOption||(l=a.getModel("lineStyle.normal").getLineStyle(),u=a.getModel("lineStyle.emphasis").getLineStyle()),i.useStyle(o.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),i.hoverStyle=u,r.setHoverStyle(this)},a.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},o.inherits(i,r.Group),t.exports=i},function(t,e,n){var i=n(10),r=n(465),o=n(167),a=n(16),s=n(20),l=n(0),u=n(28);t.exports=function(t,e,n,c,h){for(var d=new r(c),f=0;f<t.length;f++)d.addNode(l.retrieve(t[f].id,t[f].name,f),f);for(var p=[],g=[],v=0,f=0;f<e.length;f++){var m=e[f],y=m.source,x=m.target;d.addEdge(y,x,v)&&(g.push(m),p.push(l.retrieve(m.id,y+" > "+x)),v++)}var _,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,n,n.ecModel);else{var w=s.get(b),S=a((w&&"view"!==w.type?w.dimensions||[]:[]).concat(["value"]),t);_=new i(S,n),_.initData(t)}var M=new i(["value"],n);return M.initData(g,p),h&&h(_,M),o({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(t,e,n){var i=n(2),r=n(0),o=n(4),a={};a.findLabelValueDim=function(t){var e,n=o.otherDimToDataDim(t,"label");if(n.length)e=n[0];else for(var i,r=t.dimensions.slice();r.length&&(e=r.pop(),"ordinal"===(i=t.getDimensionInfo(e).type)||"time"===i););return e},a.setTextToStyle=function(t,e,n,o,a,s,l){null!=n&&s.getShallow("show")?(i.setText(o,s,l),o.text=r.retrieve(a.getFormattedLabel(e,"normal"),t.get(n,e))):o.text=""},t.exports=a},function(t,e,n){function i(t){return isNaN(t[0])||isNaN(t[1])}function r(t,e,n,r,o,a,g,v,m,y,x){for(var _=0,b=n,w=0;w<r;w++){var S=e[b];if(b>=o||b<0)break;if(i(S)){if(x){b+=a;continue}break}if(b===n)t[a>0?"moveTo":"lineTo"](S[0],S[1]),h(f,S);else if(m>0){var M=b+a,A=e[M];if(x)for(;A&&i(e[M]);)M+=a,A=e[M];var I=.5,T=e[_],A=e[M];if(!A||i(A))h(p,S);else{i(A)&&!x&&(A=S),s.sub(d,A,T);var C,D;if("x"===y||"y"===y){var L="x"===y?0:1;C=Math.abs(S[L]-T[L]),D=Math.abs(S[L]-A[L])}else C=s.dist(S,T),D=s.dist(S,A);I=D/(D+C),c(p,S,d,-m*(1-I))}l(f,f,v),u(f,f,g),l(p,p,v),u(p,p,g),t.bezierCurveTo(f[0],f[1],p[0],p[1],S[0],S[1]),c(f,S,d,m*I)}else t.lineTo(S[0],S[1]);_=b,b+=a}return w}function o(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>i[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var a=n(14),s=n(5),l=s.min,u=s.max,c=s.scaleAndAdd,h=s.copy,d=[],f=[],p=[];t.exports={Polyline:a.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,e){var n=e.points,a=0,s=n.length,l=o(n,e.smoothConstraint);if(e.connectNulls){for(;s>0&&i(n[s-1]);s--);for(;a<s&&i(n[a]);a++);}for(;a<s;)a+=r(t,n,a,s,s,1,l.min,l.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),Polygon:a.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,e){var n=e.points,a=e.stackedOnPoints,s=0,l=n.length,u=e.smoothMonotone,c=o(n,e.smoothConstraint),h=o(a,e.smoothConstraint);if(e.connectNulls){for(;l>0&&i(n[l-1]);l--);for(;s<l&&i(n[s]);s++);}for(;s<l;){var d=r(t,n,s,l,l,1,c.min,c.max,e.smooth,u,e.connectNulls);r(t,a,s+d-1,d,l,-1,h.min,h.max,e.stackedOnSmooth,u,e.connectNulls),s+=d+1,t.closePath()}}})}},function(t,e,n){"use strict";function i(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function r(t){return"x"===t.dim?0:1}var o=n(2),a=n(93),s=n(65),l=n(141),u=n(36),c=a.extend({makeElOption:function(t,e,n,r,o){var a=n.axis,u=a.grid,c=r.get("type"),d=i(u,a).getOtherAxis(a).getGlobalExtent(),f=a.toGlobalCoord(a.dataToCoord(e,!0));if(c&&"none"!==c){var p=s.buildElStyle(r),g=h[c](a,f,d,p);g.style=p,t.graphicKey=g.type,t.pointer=g}var v=l.layout(u.model,n);s.buildCartesianSingleLabelElOption(e,t,v,n,r,o)},getHandleTransform:function(t,e,n){var i=l.layout(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,r){var o=n.axis,a=o.grid,s=o.getGlobalExtent(!0),l=i(a,o).getOtherAxis(o).getGlobalExtent(),u="x"===o.dim?0:1,c=t.position;c[u]+=e[u],c[u]=Math.min(s[1],c[u]),c[u]=Math.max(s[0],c[u]);var h=(l[1]+l[0])/2,d=[h,h];d[u]=c[u];var f=[{verticalAlign:"middle"},{align:"center"}];return{position:c,rotation:t.rotation,cursorPoint:d,tooltipOption:f[u]}}}),h={line:function(t,e,n,i){var a=s.makeLineShape([e,n[0]],[e,n[1]],r(t));return o.subPixelOptimizeLine({shape:a,style:i}),{type:"Line",shape:a}},shadow:function(t,e,n,i){var o=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:s.makeRectShape([e-o/2,n[0]],[o,a],r(t))}}};u.registerAxisPointerClass("CartesianAxisPointer",c),t.exports=c},function(t,e,n){var i=n(0),r=n(4);t.exports=function(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=r.queryDataIndex(s,t);if(null==l||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)o=c.dataToPoint(s.getValues(i.map(c.dimensions,function(t){return n.coordDimToDataDim(t)[0]}),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),o=[h.x+h.width/2,h.y+h.height/2]}return{point:o,el:u}}},function(t,e,n){function i(t,e){function n(n,i){t.on(n,function(n){var o=s(e);h(c(t).records,function(t){t&&i(t,n,o.dispatchAction)}),r(o.pendings,e)})}c(t).initialized||(c(t).initialized=!0,n("click",u.curry(a,"click")),n("mousemove",u.curry(a,"mousemove")),n("globalout",o))}function r(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function o(t,e,n){t.handler("leave",null,n)}function a(t,e,n,i){e.handler(t,n,i)}function s(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}var l=n(12),u=n(0),c=n(4).makeGetter(),h=u.each,d={};d.register=function(t,e,n){if(!l.node){var r=e.getZr();c(r).records||(c(r).records={}),i(r,e);(c(r).records[t]||(c(r).records[t]={})).handler=n}},d.unregister=function(t,e){if(!l.node){var n=e.getZr();(c(n).records||{})[t]&&(c(n).records[t]=null)}},t.exports=d},function(t,e,n){var i=n(0),r={};r.layout=function(t,e,n){function r(t,e){var n=o.getAxis(t);return n.toGlobalCoord(n.dataToCoord(0))}n=n||{};var o=t.coordinateSystem,a=e.axis,s={},l=a.position,u=a.onZero?"onZero":l,c=a.dim,h=o.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f=e.get("offset")||0,p={x:{top:d[2]-f,bottom:d[3]+f},y:{left:d[0]-f,right:d[1]+f}};p.x.onZero=Math.max(Math.min(r("y"),p.x.bottom),p.x.top),p.y.onZero=Math.max(Math.min(r("x"),p.y.right),p.y.left),s.position=["y"===c?p.y[u]:d[0],"x"===c?p.x[u]:d[3]],s.rotation=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=g[l],s.labelOffset=a.onZero?p[c][l]-p[c].onZero:0,e.get("axisTick.inside")&&(s.tickDirection=-s.tickDirection),i.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(s.labelDirection=-s.labelDirection);var v=e.get("axisLabel.rotate");return s.labelRotate="top"===u?-v:v,s.labelInterval=a.getLabelInterval(),s.z2=1,s},t.exports=r},function(t,e,n){var i=n(0),r={};r.layout=function(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,o={},a=r.position,s=r.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===s?c.vertical[a]:u[0],"horizontal"===s?c.horizontal[a]:u[3]];var h={horizontal:0,vertical:1};o.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=d[a],t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),i.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var f=e.rotate;return null==f&&(f=t.get("axisLabel.rotate")),o.labelRotation="top"===a?-f:f,o.labelInterval=r.getLabelInterval(),o.z2=1,o},t.exports=r},function(t,e,n){var i=n(0),r=n(94);n(1).registerAction("dataZoom",function(t,e){var n=r.createLinkedNodesFinder(i.bind(e.eachComponent,e,"dataZoom"),r.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),o=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){o.push.apply(o,n(t).nodes)}),i.each(o,function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})},function(t,e,n){function i(t,e,n){n.getAxisProxy(t.name,e).reset(n)}function r(t,e,n){n.getAxisProxy(t.name,e).filterData(n)}n(1).registerProcessor(function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(i),t.eachTargetAxis(r)}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setRawRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]},!0)})})},function(t,e,n){function i(t){var e=t[a];return e||(e=t[a]=[{}]),e}var r=n(0),o=r.each,a="\0_ec_hist_store",s={push:function(t,e){var n=i(t);o(e,function(e,i){for(var r=n.length-1;r>=0;r--){if(n[r][i])break}if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)},pop:function(t){var e=i(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return o(n,function(t,n){for(var i=e.length-1;i>=0;i--){var t=e[i][n];if(t){r[n]=t;break}}}),r},clear:function(t){t[a]=null},count:function(t){return i(t).length}};t.exports=s},function(t,e,n){n(11).registerSubTypeDefaulter("dataZoom",function(t){return"slider"})},function(t,e,n){function i(t,e,n){var i=this._targetInfoList=[],r={},a=o(e,t);p(_,function(t,e){(!n||!n.include||g(n.include,e)>=0)&&t(a,i,r)})}function r(t){return t[0]>t[1]&&t.reverse(),t}function o(t,e){return d.parseFinder(t,e,{includeMainTypes:y})}function a(t,e,n,i){__DEV__&&c.assert("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var o=n.getAxis(["x","y"][t]),a=r(c.map([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t])):o.toGlobalCoord(o.dataToCoord(i[t]))})),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}function s(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function l(t,e){var n=u(t),i=u(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function u(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var c=n(0),h=n(2),d=n(4),f=n(149),p=c.each,g=c.indexOf,v=c.curry,m=["dataToPoint","pointToData"],y=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],x=i.prototype;x.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=S[t.brushType](0,n,e);t.__rangeOffset={offset:M[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},x.matchOutputRanges=function(t,e,n){p(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&c.each(i.coordSyses,function(i){var r=S[t.brushType](1,i,t.range);n(t,r.values,i,e)})},this)},x.setInputRanges=function(t,e){p(t,function(t){var n=this.findTargetInfo(t,e);if(__DEV__&&(c.assert(!n||!0===n||t.coordRange,"coordRange must be specified when coord index specified."),c.assert(!n||!0!==n||t.range,"range must be specified in global brush.")),t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=S[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?M[t.brushType](i.values,r.offset,l(i.xyMinMax,r.xyMinMax)):i.values}},this)},x.makePanelOpts=function(t,e){return c.map(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:f.makeRectPanelClipPath(i),isTargetByCursor:f.makeRectIsTargetByCursor(i,t,n.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(i)}})},x.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&g(i.coordSyses,e.coordinateSystem)>=0},x.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=o(e,t),r=0;r<n.length;r++){var a=n[r],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var r=0;r<b.length;r++)if(b[r](i,a))return a}return!0};var _={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=c.createHashMap(),a={},s={};(n||i||r)&&(p(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),p(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),p(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];p(r.getCartesians(),function(t,e){(g(n,t.getAxis("x").model)>=0||g(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:w.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){p(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:w.geo})})}},b=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],w={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(h.getTransform(t)),e}},S={lineX:v(a,0),lineY:v(a,1),rect:function(t,e,n){var i=e[m[t]]([n[0][0],n[1][0]]),o=e[m[t]]([n[0][1],n[1][1]]),a=[r([i[0],o[0]]),r([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:c.map(n,function(n){var r=e[m[t]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}),xyMinMax:i}}},M={lineX:v(s,0),lineY:v(s,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return c.map(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};t.exports=i},function(t,e,n){function i(t,e){var n=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(n.fill=i),n}function r(t,e,n,i,r){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",function(){t._mouseDownFlag=!0}),n.on("click",function(a){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var s=a.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:h.map(s.__regions,function(t){return{name:t.name,from:r.uid}})};l[e.mainType+"Id"]=e.id,i.dispatchAction(l),o(e,n)}}}))}function o(t,e){e.eachChild(function(e){h.each(e.__regions,function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")})})}function a(t,e){var n=new c.Group;this._controller=new s(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag}var s=n(66),l=n(152),u=n(96),c=n(2),h=n(0);a.prototype={constructor:a,draw:function(t,e,n,a,s){var l="geo"===t.mainType,u=t.getData&&t.getData();l&&e.eachComponent({mainType:"series",subType:"map"},function(e){u||e.getHostGeoModel()!==t||(u=e.getData())});var d=t.coordinateSystem,f=this.group,p=d.scale,g={position:d.position,scale:p};!f.childAt(0)||s?f.attr(g):c.updateProps(f,g,t),f.removeAll();var v=["itemStyle","normal"],m=["itemStyle","emphasis"],y=["label","normal"],x=["label","emphasis"],_=h.createHashMap();h.each(d.regions,function(e){var n=_.get(e.name)||_.set(e.name,new c.Group),r=new c.CompoundPath({shape:{paths:[]}});n.add(r);var o,a=t.getRegionModel(e.name)||t,s=a.getModel(v),d=a.getModel(m),g=i(s,p),b=i(d,p),w=a.getModel(y),S=a.getModel(x);if(u){o=u.indexOfName(e.name);var M=u.getItemVisual(o,"color",!0);M&&(g.fill=M)}var A=w.getModel("textStyle"),I=S.getModel("textStyle");h.each(e.geometries,function(t){if("polygon"===t.type){r.shape.paths.push(new c.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)r.shape.paths.push(new c.Polygon({shape:{points:t.interiors[e]}}))}}),r.setStyle(g),r.style.strokeNoScale=!0,r.culling=!0;var T=w.get("show"),C=S.get("show"),D=u&&isNaN(u.get("value",o)),L=u&&u.getItemLayout(o);if(l||D&&(T||C)||L&&L.showLabel){var P=u?o:e.name,E=t.getFormattedLabel(P,"normal"),k=t.getFormattedLabel(P,"emphasis"),O=new c.Text({style:{text:T?E||e.name:"",fill:A.getTextColor(),textFont:A.getFont(),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:C?k||e.name:"",fill:I.getTextColor(),textFont:I.getFont()},position:e.center.slice(),scale:[1/p[0],1/p[1]],z2:10,silent:!0});n.add(O)}if(u)u.setItemGraphicEl(o,n);else{var a=t.getRegionModel(e.name);r.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:a&&a.option||{}}}(n.__regions||(n.__regions=[])).push(e),c.setHoverStyle(n,b,{hoverSilentOnTouch:!!t.get("selectedMode")}),f.add(n)}),this._updateController(t,e,n),r(this,t,f,n,a),o(t,f)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,n){function i(){var e={type:"geoRoam",componentType:s};return e[s+"Id"]=t.id,e}var r=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=r.getZoom(),o.enable(t.get("roam")||!1);var s=t.mainType;o.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,l.updateViewOnPan(a,t,e),n.dispatchAction(h.extend(i(),{dx:t,dy:e}))},this),o.off("zoom").on("zoom",function(t,e,r){if(this._mouseDownFlag=!1,l.updateViewOnZoom(a,t,e,r),n.dispatchAction(h.extend(i(),{zoom:t,originX:e,originY:r})),this._updateGroup){var o=this.group,s=o.scale;o.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),o.setPointerChecker(function(e,i,o){return r.getViewRectAfterRoam().contain(i,o)&&!u.onIrrelevantElement(e,n,t)})}},t.exports=a},function(t,e,n){function i(t){return o.create(t)}var r=n(96),o=n(9),a=n(2),s={};s.makeRectPanelClipPath=function(t){return t=i(t),function(e,n){return a.clipPointsByRect(e,t)}},s.makeLinearBrushOtherExtent=function(t,e){return t=i(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}},s.makeRectIsTargetByCursor=function(t,e,n){return t=i(t),function(i,o,a){return t.contain(o[0],o[1])&&!r.onIrrelevantElement(i,e,n)}},t.exports=s},function(t,e,n){function i(t){return t[r]||(t[r]={})}var r="\0_ec_interaction_mutex",o={take:function(t,e,n){i(t)[e]=n},release:function(t,e,n){var r=i(t);r[e]===n&&(r[e]=null)},isTaken:function(t,e){return!!i(t)[e]}};n(1).registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),t.exports=o},function(t,e,n){function i(t,e,n){r.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"))}var r=n(7),o=n(6),a=n(2);t.exports={layout:function(t,e,n){var o=r.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"));r.box(e.get("orient"),t,e.get("itemGap"),o.width,o.height),i(t,e,n)},addBackground:function(t,e){var n=o.normalizeCssArray(e.get("padding")),i=t.getBoundingRect(),r=e.getItemStyle(["color","opacity"]);r.fill=e.get("backgroundColor");var s=new a.Rect({shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},style:r,silent:!0,z2:-1});a.subPixelOptimizeRect(s),t.add(s)}}},function(t,e){var n={};n.updateViewOnPan=function(t,e,n){var i=t.target,r=i.position;r[0]+=e,r[1]+=n,i.dirty()},n.updateViewOnZoom=function(t,e,n,i){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,c=o.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(h-1),a[1]-=(i-a[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()},t.exports=n},function(t,e,n){function i(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}n(166),n(449),n(396);var r=n(1),o=n(0),a=n(44);r.extendComponentView({type:"parallel",render:function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},o.each(s,function(t,e){n.getZr().on(e,this._handlers[e]=o.bind(t,this))},this)),a.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){o.each(this._handlers,function(t,n){e.getZr().off(n,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(o.extend({type:"parallelAxisExpand"},t))}});var s={mousedown:function(t){i(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(i(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&i(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r&&null})}}};r.registerPreprocessor(n(450))},function(t,e,n){n(464),n(357),n(460),n(53),n(351),n(1).extendComponentView({type:"single"})},function(t,e,n){var i=n(1),r=n(0),o=n(12),a=n(171),s=n(37),l=n(72),u=s.mapVisual,c=n(4),h=s.eachVisual,d=n(3),f=r.isArray,p=r.each,g=d.asc,v=d.linearMap,m=r.noop,y=["#f6efa6","#d88273","#bf444c"],x=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:null,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var n=this.option;o.canvasSupported||(n.realtime=!1),!e&&l.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},resetTargetSeries:function(){var t=this.option,e=null==t.seriesIndex;t.seriesIndex=e?[]:c.normalizeToArray(t.seriesIndex),e&&this.ecModel.eachSeries(function(e,n){t.seriesIndex.push(n)})},eachTargetSeries:function(t,e){r.each(this.option.seriesIndex,function(n){t.call(e,this.ecModel.getSeriesByIndex(n))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},formatValueText:function(t,e,n){function i(t){return t===u[0]?"min":t===u[1]?"max":(+t).toFixed(l)}var o,a,s=this.option,l=s.precision,u=this.dataBound,c=s.formatter;return n=n||["<",">"],r.isArray(t)&&(t=t.slice(),o=!0),a=e?t:o?[i(t[0]),i(t[1])]:i(t),r.isString(c)?c.replace("{value}",o?a[0]:a).replace("{value2}",o?a[1]:a):r.isFunction(c)?o?c(t[0],t[1]):c(t):o?t[0]===u[0]?n[0]+" "+a[1]:t[1]===u[1]?n[1]+" "+a[0]:a[0]+" - "+a[1]:a},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){f(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:y},p(this.stateList,function(e){var n=t[e];if(r.isString(n)){var i=a.get(n,"active",d);i?(t[e]={},t[e][n]=i):delete t[e]}},this)}function e(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},p(i,function(t,e){if(s.isValidType(e)){var n=a.get(e,"inactive",d);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}function n(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");p(this.stateList,function(o){var a=this.itemSize,s=t[o];s||(s=t[o]={color:d?i:[i]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(d?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&r.clone(n)||(d?a[0]:[a[0],a[0]])),s.symbol=u(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var c=-1/0;h(l,function(t){t>c&&(c=t)}),s.symbolSize=u(l,function(t){return v(t,[0,c],[0,a[0]],!0)})}},this)}var i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},l=i.target||(i.target={}),c=i.controller||(i.controller={});r.merge(l,o),r.merge(c,o);var d=this.isCategory();t.call(this,l),t.call(this,c),e.call(this,l,"inRange","outOfRange"),n.call(this,c)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m});t.exports=x},function(t,e,n){var i=n(0),r=n(2),o=n(6),a=n(7),s=n(1),l=n(37);t.exports=s.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){if(this.visualMapModel=t,!1===t.get("show"))return void this.group.removeAll();this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,n=o.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new r.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){function r(t){return u[t]}function o(t,e){u[t]=e}n=n||{};var a=n.forceState,s=this.visualMapModel,u={};if("symbol"===e&&(u.symbol=s.get("itemSymbol")),"color"===e){var c=s.get("contentColor");u.color=c}var h=s.controllerVisuals[a||s.getValueState(t)],d=l.prepareVisualTypes(h);return i.each(d,function(i){var a=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",a=h.__alphaForOpacity),l.dependsOn(i,e)&&a&&a.applyVisual(t,r,o)}),u[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;a.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:i.noop})},function(t,e,n){var i=n(0),r=n(7),o={getItemAlign:function(t,e,n){var i=t.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var a={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?n[0]:i[u[d]];var f=[["x","width",3],["y","height",0]][s],p=r.getLayoutRect(h,a,i.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*a[f[1]]?0:1]},convertDataIndex:function(t){return i.each(t||[],function(e){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)}),t}};t.exports=o},function(t,e,n){function i(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var r=n(0),o=r.each;t.exports=function(t){var e=t&&t.visualMap;r.isArray(e)||(e=e?[e]:[]),o(e,function(t){if(t){i(t,"splitList")&&!i(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&r.isArray(e)&&o(e,function(t){r.isObject(t)&&(i(t,"start")&&!i(t,"min")&&(t.min=t.start),i(t,"end")&&!i(t,"max")&&(t.max=t.end))})}})}},function(t,e,n){n(11).registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})},function(t,e,n){function i(t,e){t.eachTargetSeries(function(e){var n=e.getData();s.applyVisual(t.stateList,t.targetVisuals,n,t.getValueState,t,t.getDataDimension(n))})}function r(t){t.eachSeries(function(e){var n=e.getData(),i=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(u.bind(o,null,e,t))||{stops:[],outerColors:[]};r.dimension=t.getDataDimension(n),i.push(r)}}),e.getData().setVisual("visualMeta",i)})}function o(t,e,n,i){function r(t){return u[t]}function o(t,e){u[t]=e}for(var a=e.targetVisuals[i],s=l.prepareVisualTypes(a),u={color:t.getData().getVisual("color")},c=0,h=s.length;c<h;c++){var d=s[c],f=a["opacity"===d?"__alphaForOpacity":d];f&&f.applyVisual(n,r,o)}return u.color}var a=n(1),s=n(72),l=n(37),u=n(0);a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,function(t){t.eachComponent("visualMap",function(e){i(e,t)}),r(t)})},function(t,e,n){var i=n(1),r={type:"selectDataRange",event:"dataRangeSelected",update:"update"};i.registerAction(r,function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})})},function(t,e,n){function i(){l.call(this)}function r(t){this.name=t,this.zoomLimit,l.call(this),this._roamTransform=new i,this._viewTransform=new i,this._center,this._zoom}function o(t,e,n,i){var r=n.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](i):null}var a=n(5),s=n(18),l=n(113),u=n(0),c=n(9),h=a.applyTransform;u.mixin(i,l),r.prototype={constructor:r,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new c(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new c(t,e,n,i)},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),o=this._viewTransform;o.transform=r.calculateTransform(new c(t,e,n,i)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransform},_updateCenterAndZoom:function(){var t=this._viewTransform.getLocalTransform(),e=this._roamTransform,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=a.applyTransform([],i,t),n=a.applyTransform([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransform,e=this._viewTransform;e.parent=t,t.updateTransform(),e.updateTransform(),e.transform&&s.copy(this.transform||(this.transform=[]),e.transform),this.transform?(this.invTransform=this.invTransform||[],s.invert(this.invTransform,this.transform)):this.invTransform=null,this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t){var e=this.transform;return e?h([],t,e):[t[0],t[1]]},pointToData:function(t){var e=this.invTransform;return e?h([],t,e):[t[0],t[1]]},convertToPixel:u.curry(o,"dataToPoint"),convertFromPixel:u.curry(o,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},u.mixin(r,l),t.exports=r},function(t,e,n){var i=n(0),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o=i.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a=i.merge({boundaryGap:[0,0],splitNumber:5},r),s=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a),l=i.defaults({scale:!0,logBase:10},a);t.exports={categoryAxis:o,valueAxis:a,timeAxis:s,logAxis:l}},function(t,e,n){"use strict";function i(t,e){return e.type||(e.data?"category":"value")}var r=n(11),o=n(0),a=n(67),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()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});o.merge(s.prototype,n(43));var l={offset:0};a("x",s,i,l),a("y",s,i,l),t.exports=s},function(t,e,n){function i(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var o=n[i],a=o.geometry,s=a.coordinates,l=a.encodeOffsets,u=0;u<s.length;u++){var c=s[u];if("Polygon"===a.type)s[u]=r(c,l[u],e);else if("MultiPolygon"===a.type)for(var h=0;h<c.length;h++){var d=c[h];c[h]=r(d,l[u][h],e)}}return t.UTF8Encoding=!1,t}function r(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}var o=n(0),a=n(102);t.exports=function(t){return i(t),o.map(o.filter(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];"Polygon"===n.type&&r.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),"MultiPolygon"===n.type&&o.each(i,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var s=new a(e.name,r,e.cp);return s.properties=e,s})}},function(t,e,n){function i(t,e){var n=[];return t.eachComponent("parallel",function(i,o){var a=new r(i,t,e);a.name="parallel_"+o,a.resize(i,e),i.coordinateSystem=a,a.model=i,n.push(a)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}}),n}var r=n(447);n(20).register("parallel",{create:i})},function(t,e,n){function i(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,u(e,n,t),d(n,function(n){d(e.TRANSFERABLE_METHODS,function(e){n.wrapMethod(e,h.curry(r,t))})}),e.wrapMethod("cloneShallow",h.curry(a,t)),d(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,h.curry(o,t))}),h.assert(n[e.dataType]===e)}function r(t,e){if(l(this)){var n=h.extend({},this[f]);n[this.dataType]=e,u(e,n,t)}else c(e,this.dataType,this[p],t);return e}function o(t,e){return t.struct&&t.struct.update(this),e}function a(t,e){return d(e[f],function(n,i){n!==e&&c(n.cloneShallow(),i,e,t)}),e}function s(t){var e=this[p];return null==t||null==e?e:e[f][t]}function l(t){return t[p]===t}function u(t,e,n){t[f]={},d(e,function(e,i){c(e,i,t,n)})}function c(t,e,n,i){n[f][e]=t,t[p]=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=s}var h=n(0),d=h.each,f="\0__link_datas",p="\0__link_mainData";t.exports=i},function(t,e,n){var i=n(21),r=i.set,o=i.get;t.exports={clearColorPalette:function(){r(this,"colorIdx",0),r(this,"colorNameMap",{})},getColorFromPalette:function(t,e){e=e||this;var n=o(e,"colorIdx")||0,i=o(e,"colorNameMap")||r(e,"colorNameMap",{});if(i.hasOwnProperty(t))return i[t];var a=this.get("color",!0)||[];if(a.length){var s=a[n];return t&&(i[t]=s),r(e,"colorIdx",(n+1)%a.length),s}}}},function(t,e,n){function i(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}var r=n(3),o=r.round,a={};a.intervalScaleNiceTicks=function(t,e,n){var i={},s=t[1]-t[0],l=i.interval=r.nice(s/e,!0);null!=n&&l<n&&(l=i.interval=n);var u=i.intervalPrecision=a.getIntervalPrecision(l),c=i.niceTickExtent=[o(Math.ceil(t[0]/l)*l,u),o(Math.floor(t[1]/l)*l,u)];return a.fixExtent(c,t),i},a.getIntervalPrecision=function(t){return r.getPrecisionSafe(t)+2},a.fixExtent=function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),i(t,0,e),i(t,1,e),t[0]>t[1]&&(t[0]=t[1])},a.intervalScaleGetTicks=function(t,e,n,i){var r=[];if(!t)return r;e[0]<n[0]&&r.push(e[0]);for(var a=n[0];a<=n[1]&&(r.push(a),(a=o(a+t,i))!==r[r.length-1]);)if(r.length>1e4)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r},t.exports=a},function(t,e,n){function i(){function t(e,i){if(i>=n.length)return e;for(var o=-1,a=e.length,s=n[i++],l={},u={};++o<a;){var c=s(e[o]),h=u[c];h?h.push(e[o]):u[c]=[e[o]]}return r.each(u,function(e,n){l[n]=t(e,i)}),l}function e(t,o){if(o>=n.length)return t;var a=[],s=i[o++];return r.each(t,function(t,n){a.push({key:n,values:e(t,o)})}),s?a.sort(function(t,e){return s(t.key,e.key)}):a}var n=[],i=[];return{key:function(t){return n.push(t),this},sortKeys:function(t){return i[n.length-1]=t,this},entries:function(n){return e(t(n,0),0)}}}var r=n(0);t.exports=i},function(t,e,n){var i=n(0),r={get:function(t,e,n){var r=i.clone((o[t]||{})[e]);return n&&i.isArray(r)?r[r.length-1]:r}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};t.exports=r},function(t,e,n){"use strict";var i=n(181),r=n(38),o=n(113),a=n(519),s=n(0),l=function(t){o.call(this,t),r.call(this,t),a.call(this,t),this.id=t.id||i()};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 n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},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 n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[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 n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,a),s.mixin(l,o),s.mixin(l,r),t.exports=l},function(t,e,n){function i(t,e){return t[e]}function r(t,e,n){t[e]=n}function o(t,e,n){return(e-t)*n+t}function a(t,e,n){return n>.5?e:t}function s(t,e,n,i,r){var a=t.length;if(1==r)for(var s=0;s<a;s++)i[s]=o(t[s],e[s],n);else for(var l=a&&t[0].length,s=0;s<a;s++)for(var u=0;u<l;u++)i[s][u]=o(t[s][u],e[s][u],n)}function l(t,e,n){var i=t.length,r=e.length;if(i!==r){if(i>r)t.length=r;else for(var o=i;o<r;o++)t.push(1===n?e[o]:_.call(e[o]))}for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}function u(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;r<i;r++)if(t[r]!==e[r])return!1}else for(var o=t[0].length,r=0;r<i;r++)for(var a=0;a<o;a++)if(t[r][a]!==e[r][a])return!1;return!0}function c(t,e,n,i,r,o,a,s,l){var u=t.length;if(1==l)for(var c=0;c<u;c++)s[c]=h(t[c],e[c],n[c],i[c],r,o,a);else for(var d=t[0].length,c=0;c<u;c++)for(var f=0;f<d;f++)s[c][f]=h(t[c][f],e[c][f],n[c][f],i[c][f],r,o,a)}function h(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function d(t){if(x(t)){var e=t.length;if(x(t[0])){for(var n=[],i=0;i<e;i++)n.push(_.call(t[i]));return n}return _.call(t)}return t}function f(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function p(t){var e=t[t.length-1].value;return x(e&&e[0])?2:1}function g(t,e,n,i,r){var d=t._getter,g=t._setter,y="spline"===e,_=i.length;if(_){var b,w=i[0].value,S=x(w),M=!1,A=!1,I=S?p(i):0;i.sort(function(t,e){return t.time-e.time}),b=i[_-1].time;for(var T=[],C=[],D=i[0].value,L=!0,P=0;P<_;P++){T.push(i[P].time/b);var E=i[P].value;if(S&&u(E,D,I)||!S&&E===D||(L=!1),D=E,"string"==typeof E){var k=m.parse(E);k?(E=k,M=!0):A=!0}C.push(E)}if(!L){for(var O=C[_-1],P=0;P<_-1;P++)S?l(C[P],O,I):!isNaN(C[P])||isNaN(O)||A||M||(C[P]=O);S&&l(d(t._target,r),O,I);var N,V,R,z,B,G,F=0,H=0;if(M)var W=[0,0,0,0];var $=function(t,e){var n;if(e<0)n=0;else if(e<H){for(N=Math.min(F+1,_-1),n=N;n>=0&&!(T[n]<=e);n--);n=Math.min(n,_-2)}else{for(n=F;n<_&&!(T[n]>e);n++);n=Math.min(n-1,_-2)}F=n,H=e;var i=T[n+1]-T[n];if(0!==i)if(V=(e-T[n])/i,y)if(z=C[n],R=C[0===n?n:n-1],B=C[n>_-2?_-1:n+1],G=C[n>_-3?_-1:n+2],S)c(R,z,B,G,V,V*V,V*V*V,d(t,r),I);else{var l;if(M)l=c(R,z,B,G,V,V*V,V*V*V,W,1),l=f(W);else{if(A)return a(z,B,V);l=h(R,z,B,G,V,V*V,V*V*V)}g(t,r,l)}else if(S)s(C[n],C[n+1],V,d(t,r),I);else{var l;if(M)s(C[n],C[n+1],V,W,1),l=f(W);else{if(A)return a(C[n],C[n+1],V);l=o(C[n],C[n+1],V)}g(t,r,l)}},j=new v({target:t._target,life:b,loop:t._loop,delay:t._delay,onframe:$,ondestroy:n});return e&&"spline"!==e&&(j.easing=e),j}}}var v=n(498),m=n(24),y=n(0),x=y.isArrayLike,_=Array.prototype.slice,b=function(t,e,n,o){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||i,this._setter=o||r,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:d(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t){var e,n=this,i=0,r=function(){--i||n._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var a=g(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,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.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=b},function(t,e){t.exports="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}},function(t,e){t.exports={containStroke:function(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*o-a+u;return c*c/(l*l+1)<=s/2*s/2}}},function(t,e,n){function i(t,e){return Math.abs(t-e)<a}function r(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=o(a[0],a[1],l[0],l[1],e,n),a=l}var u=t[0];return i(a[0],u[0])&&i(a[1],u[1])||(r+=o(a[0],a[1],u[0],u[1],e,n)),0!==r}var o=n(179),a=1e-8;t.exports={contain:r}},function(t,e,n){var i=n(32);t.exports={containStroke:function(t,e,n,r,o,a,s,l,u){if(0===s)return!1;var c=s;return!(u>e+c&&u>r+c&&u>a+c||u<e-c&&u<r-c&&u<a-c||l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c)&&i.quadraticProjectPoint(t,e,n,r,o,a,l,u,null)<=c/2}}},function(t,e){var n=2*Math.PI;t.exports={normalizeRadian:function(t){return t%=n,t<0&&(t+=n),t}}},function(t,e){t.exports=function(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=i<e?1:-1,s=(o-e)/(i-e);return 1!==s&&0!==s||(a=i<e?.5:-.5),s*(n-t)+t>r?a:0}},function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},i=n.prototype;i.insert=function(t){var e=new r(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var r=function(t){this.value=t,this.next,this.prev},o=function(t){this._list=new n,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},a=o.prototype;a.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},a.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},a.clear=function(){this._list.clear(),this._map={}},t.exports=o},function(t,e){var n=2311;t.exports=function(){return n++}},function(t,e,n){"use strict";var i=n(0),r=n(77),o=function(t,e,n,i,o,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,r.call(this,o)};o.prototype={constructor:o},i.inherits(o,r),t.exports=o},function(t,e){var n=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};n.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")},t.exports=n},function(t,e){function n(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),t.createLinearGradient(i,o,r,a)}function i(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}var r=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],o=function(t){this.extendFrom(t)};o.prototype={constructor:o,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",textPositionRect:null,textOffset:null,textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,n){for(var i=this,o=n&&n.style,a=!o,s=0;s<r.length;s++){var l=r[s],u=l[0];(a||i[u]!==o[u])&&(t[u]=i[u]||l[1])}if((a||i.fill!==o.fill)&&(t.fillStyle=i.fill),(a||i.stroke!==o.stroke)&&(t.strokeStyle=i.stroke),(a||i.opacity!==o.opacity)&&(t.globalAlpha=null==i.opacity?1:i.opacity),(a||i.blend!==o.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var c=i.lineWidth;t.lineWidth=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var n=this;for(var i in t)!t.hasOwnProperty(i)||!e&&n.hasOwnProperty(i)||(n[i]=t[i])}},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},getGradient:function(t,e,r){for(var o="radial"===e.type?i:n,a=o(t,e,r),s=e.colorStops,l=0;l<s.length;l++)a.addColorStop(s[l].offset,s[l].color);return a}};for(var a=o.prototype,s=0;s<r.length;s++){var l=r[s];l[0]in a||(a[l[0]]=l[1])}o.getGradient=a.getGradient,t.exports=o},function(t,e,n){var i=n(76),r=n(0),o=n(22),a=function(t){i.call(this,t)};a.prototype={constructor:a,type:"text",brush:function(t,e){var n=this.style,i=n.x||0,r=n.y||0,a=n.text;if(null!=a&&(a+=""),n.bind(t,this,e),a){this.setTransform(t);var s,l=n.textAlign,u=n.textFont||n.font;if(n.textVerticalAlign){var c=o.getBoundingRect(a,u,n.textAlign,"top");switch(s="middle",n.textVerticalAlign){case"middle":r-=c.height/2-c.lineHeight/2;break;case"bottom":r-=c.height-c.lineHeight/2;break;default:r+=c.lineHeight/2}}else s=n.textBaseline;t.font=u||"12px sans-serif",t.textAlign=l||"left",t.textAlign!==l&&(t.textAlign="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var h=o.measureText("国",t.font).width,d=a.split("\n"),f=0;f<d.length;f++)n.hasStroke()&&t.strokeText(d[f],i,r),n.hasFill()&&t.fillText(d[f],i,r),r+=h;this.restoreTransform(t)}},getBoundingRect:function(){var t=this.style;if(!this._rect){var e=t.textVerticalAlign,n=o.getBoundingRect(t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":n.y-=n.height/2;break;case"bottom":n.y-=n.height}if(n.x+=t.x||0,n.y+=t.y||0,t.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},r.inherits(a,i),t.exports=a},function(t,e,n){var i=n(509),r=n(508);t.exports={buildPath:function(t,e,n){var o=e.points,a=e.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=r(o,a,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var l=o.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=o[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===a&&(o=i(o,n)),t.moveTo(o[0][0],o[0][1]);for(var u=1,f=o.length;u<f;u++)t.lineTo(o[u][0],o[u][1])}n&&t.closePath()}}}},function(t,e,n){function i(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var r=n(22),o=n(9),a=new o,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e,n){var o=this.style,s=o.text;if(null!=s&&(s+=""),s){t.save();var l,u,c=o.textPosition,h=o.textOffset,d=o.textDistance,f=o.textAlign,p=o.textFont||o.font,g=o.textBaseline,v=o.textVerticalAlign;e=o.textPositionRect||e,n=n||r.getBoundingRect(s,p,f,g);var m=this.transform;if(o.textTransform?this.setTransform(t):m&&(a.copy(e),a.applyTransform(m),e=a),c instanceof Array){if(l=e.x+i(c[0],e.width),u=e.y+i(c[1],e.height),f=f||"left",g=g||"top",v){switch(v){case"middle":u-=n.height/2-n.lineHeight/2;break;case"bottom":u-=n.height-n.lineHeight/2;break;default:u+=n.lineHeight/2}g="middle"}}else{var y=r.adjustTextPositionOnRect(c,e,n,d);l=y.x,u=y.y,f=f||y.textAlign,g=g||y.textBaseline}h&&(l+=h[0],u+=h[1]),t.textAlign=f||"left",t.textBaseline=g||"alphabetic";var x=o.textFill,_=o.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=p||"12px sans-serif",t.shadowBlur=o.textShadowBlur,t.shadowColor=o.textShadowColor||"transparent",t.shadowOffsetX=o.textShadowOffsetX,t.shadowOffsetY=o.textShadowOffsetY;var b=s.split("\n");o.textRotation&&(m&&t.translate(m[4],m[5]),t.rotate(o.textRotation),m&&t.translate(-m[4],-m[5]));for(var w=0;w<b.length;w++)_&&t.strokeText(b[w],l,u),x&&t.fillText(b[w],l,u),u+=n.lineHeight;t.restore()}}},t.exports=s},function(t,e,n){if(!n(12).canvasSupported){var i,r="urn:schemas-microsoft-com:vml",o=window,a=o.document,s=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",r),i=function(t){return a.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){i=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:i}}},function(t,e,n){function i(t){delete f[t]}var r=n(181),o=n(12),a=n(0),s=n(493),l=n(496),u=n(497),c=n(504),h=!o.canvasSupported,d={canvas:n(495)},f={},p={};p.version="3.5.2",p.init=function(t,e){var n=new g(r(),t,e);return f[n.id]=n,n},p.dispose=function(t){if(t)t.dispose();else{for(var e in f)f.hasOwnProperty(e)&&f[e].dispose();f={}}return p},p.getInstance=function(t){return f[t]},p.registerPainter=function(t,e){d[t]=e};var g=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new l,f=n.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&d[f]||(f="canvas");var p=new d[f](e,r,n);this.storage=r,this.painter=p;var g=o.node?null:new c(p.getViewportRoot());this.handler=new s(r,p,g,p.root),this.animation=new u({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var v=r.delFromStorage,m=r.addToStorage;r.delFromStorage=function(t){v.call(r,t),t&&t.removeSelfFromZr(i)},r.addToStorage=function(t){m.call(r,t),t.addSelfToZr(i)}};g.prototype={constructor:g,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},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){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.dispose(),this.animation=this.storage=this.painter=this.handler=null,i(this.id)}},t.exports=p},function(t,e,n){t.exports=n(1),n(295),n(243),n(316),n(331),n(321),n(304),n(339),n(272),n(268),n(264),n(311),n(326),n(249),n(254),n(261),n(299),n(285),n(315),n(334),n(260),n(380),n(381),n(382),n(420),n(53),n(397),n(378),n(153),n(154),n(359),n(366),n(410),n(368),n(424),n(389),n(388),n(387),n(401),n(411),n(525)},function(t,e,n){"use strict";function i(t){a||n(489)}var r=n(193),o=n(488),a=!1,s=n(487),l=i,u=s(r.a,o.a,l,null,null);u.options.__file="src\\components\\echarts\\Echarts.vue",u.esModule&&Object.keys(u.esModule).some(function(t){return"default"!==t&&"__"!==t.substr(0,2)})&&console.error("named exports are not supported in *.vue files."),u.options.functional&&console.error("[vue-loader] Echarts.vue: functional components are not supported with templates, they should use render functions."),e.a=u.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(190),r=(n.n(i),n(191));r.a.install=function(t){t.component(r.a.name,r.a)},e.default=r.a},function(t,e,n){"use strict";var i=n(195),r=n.n(i),o=n(199),a=n.n(o),s=n(200),l=n.n(s),u=n(196),c=n.n(u),h=n(1),d=n.n(h),f=n(486),p=n.n(f),g=n(492),v=/^[a-zA-Z0-9_]+$/,m={},y=p()(function(){c()(m).forEach(function(t){t._doResize()})},120,{leading:!0});window.addEventListener("resize",y,!1),document.addEventListener("DOMContentLoaded",y,!1);var x=function t(){window.removeEventListener("resize",y),window.removeEventListener("DOMContentLoaded",y),window.removeEventListener("unload",t)};window.addEventListener("unload",x,!1);var _=function(t){return null!==t&&"object"===(void 0===t?"undefined":l()(t))};e.a={name:"Echarts",props:{option:Object,events:Object,theme:String,opts:Object,group:String,notMerge:{type:Boolean,default:!0},lazyUpdate:{type:Boolean,default:!1},autoResize:{type:Boolean,default:!0}},data:function(){return{chart:null,echartsClassName:"echart-container",boxHeight:null,boxWidth:null}},watch:{option:{handler:function(t){_(this.chartInstance)&&_(t)?this._init():this.setOption(t,this.notMerge,this.lazyUpdate)},deep:!0},group:{handler:function(t){this.chartInstance.group=t}}},methods:{connect:function(t){return d.a.connect(t)},disconnect:function(t){d.a.disConnect(t)},dispose:function(t){t?d.a.dispose(t):this.invoke("dispose")},registerMap:function(){d.a.registerMap.apply(d.a,arguments)},getMap:function(){return d.a.getMap()},registerTheme:function(){d.a.registerTheme.apply(d.a,arguments)},clipPointsByRect:function(){var t;return(t=d.a.graphic).clipPointsByRect.apply(t,arguments)},clipRectByRect:function(){var t;return(t=d.a.graphic).clipRectByRect.apply(t,arguments)},getGroup:function(){return this.chartInstance.group},setOption:function(t,e,n){this.invoke("setOption",t,e,n)},getWidth:function(){return this.invoke("getWidth")},getHeight:function(){return this.invoke("getHeight")},getDom:function(){return this.invoke("getDom")},getOption:function(){return this.invoke("getOption")},resize:function(t){this.invoke("resize",t)},dispatchAction:function(t){this.invoke("dispatchAction",t)},on:function(t,e,n){this.invoke("on",t,e,n)},off:function(t,e,n){this.invoke("off",t,e,n)},convertToPixel:function(t,e){return this.invoke("convertToPixel",t,e)},convertFromPixel:function(t,e){return this.invoke("convertFromPixel",t,e)},containPixel:function(t,e){return this.invoke("containPixel",t,e)},showLoading:function(t,e){this.invoke("showLoading",t,e)},hideLoading:function(){this.invoke("hideLoading")},getDataURL:function(t){return this.invoke("getDataURL",t)},getConnectedDataURL:function(t){return this.invoke("getConnectedDataURL",t)},clear:function(){this.invoke("clear")},isDisposed:function(){return this.invoke("isDisposed")},invoke:function(t){var e;if(_(this.chartInstance)){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(e=this.chartInstance)[t].apply(e,a()(i))}},_init:function(){var t=this;if(!_(this.chartInstance)){var e=this.$el.querySelector("."+this.echartsClassName);if(!e)return void g.a.util.warn("[Echarts]-[ERROR] - Cannot get the echarts dom container");var n=d.a.init(e,this.theme,this.opts);if(this.chartInstance=n,this.group&&(n.group=this.group),this.setOption(this.option,this.notMerge,this.lazyUpdate),_(this.events)&&r()(this.events).forEach(function(e){var i=t.events[e];v.test(e)?i&&"function"==typeof i?n.on(e,i):g.a.util.warn("[Echarts] - The handler should be a function for event ["+e+"]"):g.a.util.warn("[Echarts] - Event name ["+e+"] is invalid")}),this.autoResize){var i=this._getBoxWidthHeight();this.boxWidth=i.width,this.boxHeight=i.height,m[n.id]=this}}},_doResize:function(){if(this.autoResize&&this.chartInstance){var t=this._getBoxWidthHeight();this.boxWidth===t.width&&this.boxHeight===t.height||(this.boxWidth=t.width,this.boxHeight=t.height,this.resize())}},_getBoxWidthHeight:function(){var t=window.getComputedStyle(this.$el),e={height:t.height,width:t.width};return t=null,e}},mounted:function(){this.option&&this._init()},beforeDestroy:function(){this.chartInstance&&(delete m[this.chartInstance.id],this.dispose())}}},function(t,e,n){t.exports={default:n(201),__esModule:!0}},function(t,e,n){t.exports={default:n(202),__esModule:!0}},function(t,e,n){t.exports={default:n(203),__esModule:!0}},function(t,e,n){t.exports={default:n(204),__esModule:!0}},function(t,e,n){t.exports={default:n(205),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(194),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,r.default)(t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(198),o=i(r),a=n(197),s=i(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},function(t,e,n){n(124),n(231),t.exports=n(25).Array.from},function(t,e,n){n(233),t.exports=n(25).Object.keys},function(t,e,n){n(236),t.exports=n(25).Object.values},function(t,e,n){n(235),n(234),n(237),n(238),t.exports=n(25).Symbol},function(t,e,n){n(124),n(239),t.exports=n(89).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(27),r=n(123),o=n(229);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(78),r=n(19)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){"use strict";var i=n(34),r=n(51);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(41),r=n(120),o=n(61);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){t.exports=n(26).document&&document.documentElement},function(t,e,n){var i=n(78);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(50),r=n(19)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){var i=n(78);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(47);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(t,e,n){"use strict";var i=n(118),r=n(51),o=n(82),a={};n(40)(a,n(19)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(19)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var i=n(41),r=n(27);t.exports=function(t,e){for(var n,o=r(t),a=i(o),s=a.length,l=0;s>l;)if(o[n=a[l++]]===e)return n}},function(t,e,n){var i=n(62)("meta"),r=n(60),o=n(33),a=n(34).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(49)(function(){return l(Object.preventExtensions({}))}),c=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[i].i},d=function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[i].w},f=function(t){return u&&p.NEED&&l(t)&&!o(t,i)&&c(t),t},p=t.exports={KEY:i,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},function(t,e,n){var i=n(34),r=n(47),o=n(41);t.exports=n(39)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},function(t,e,n){var i=n(61),r=n(51),o=n(27),a=n(87),s=n(33),l=n(116),u=Object.getOwnPropertyDescriptor;e.f=n(39)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(27),r=n(119).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},function(t,e,n){var i=n(33),r=n(86),o=n(83)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var i=n(48),r=n(25),o=n(49);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){var i=n(41),r=n(27),o=n(61).f;t.exports=function(t){return function(e){for(var n,a=r(e),s=i(a),l=s.length,u=0,c=[];l>u;)o.call(a,n=s[u++])&&c.push(t?[n,a[n]]:a[n]);return c}}},function(t,e,n){var i=n(85),r=n(79);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){var i=n(85),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(209),r=n(19)("iterator"),o=n(50);t.exports=n(25).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){"use strict";var i=n(114),r=n(48),o=n(86),a=n(216),s=n(214),l=n(123),u=n(210),c=n(230);r(r.S+r.F*!n(218)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=0,y=c(d);if(v&&(g=i(g,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(e=l(d.length),n=new f(e);e>m;m++)u(n,m,v?g(d[m],m):d[m]);else for(h=y.call(d),n=new f;!(r=h.next()).done;m++)u(n,m,v?a(h,g,[r.value,m],!0):r.value);return n.length=m,n}})},function(t,e,n){"use strict";var i=n(207),r=n(219),o=n(50),a=n(27);t.exports=n(117)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(86),r=n(41);n(226)("keys",function(){return function(t){return r(i(t))}})},function(t,e){},function(t,e,n){"use strict";var i=n(26),r=n(33),o=n(39),a=n(48),s=n(122),l=n(221).KEY,u=n(49),c=n(84),h=n(82),d=n(62),f=n(19),p=n(89),g=n(88),v=n(220),m=n(211),y=n(215),x=n(47),_=n(27),b=n(87),w=n(51),S=n(118),M=n(224),A=n(223),I=n(34),T=n(41),C=A.f,D=I.f,L=M.f,P=i.Symbol,E=i.JSON,k=E&&E.stringify,O=f("_hidden"),N=f("toPrimitive"),V={}.propertyIsEnumerable,R=c("symbol-registry"),z=c("symbols"),B=c("op-symbols"),G=Object.prototype,F="function"==typeof P,H=i.QObject,W=!H||!H.prototype||!H.prototype.findChild,$=o&&u(function(){return 7!=S(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=C(G,e);i&&delete G[e],D(t,e,n),i&&t!==G&&D(G,e,i)}:D,j=function(t){var e=z[t]=S(P.prototype);return e._k=t,e},Z=F&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},U=function(t,e,n){return t===G&&U(B,e,n),x(t),e=b(e,!0),x(n),r(z,e)?(n.enumerable?(r(t,O)&&t[O][e]&&(t[O][e]=!1),n=S(n,{enumerable:w(0,!1)})):(r(t,O)||D(t,O,w(1,{})),t[O][e]=!0),$(t,e,n)):D(t,e,n)},q=function(t,e){x(t);for(var n,i=m(e=_(e)),r=0,o=i.length;o>r;)U(t,n=i[r++],e[n]);return t},X=function(t,e){return void 0===e?S(t):q(S(t),e)},Y=function(t){var e=V.call(this,t=b(t,!0));return!(this===G&&r(z,t)&&!r(B,t))&&(!(e||!r(this,t)||!r(z,t)||r(this,O)&&this[O][t])||e)},K=function(t,e){if(t=_(t),e=b(e,!0),t!==G||!r(z,e)||r(B,e)){var n=C(t,e);return!n||!r(z,e)||r(t,O)&&t[O][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=L(_(t)),i=[],o=0;n.length>o;)r(z,e=n[o++])||e==O||e==l||i.push(e);return i},Q=function(t){for(var e,n=t===G,i=L(n?B:_(t)),o=[],a=0;i.length>a;)!r(z,e=i[a++])||n&&!r(G,e)||o.push(z[e]);return o};F||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(B,n),r(this,O)&&r(this[O],t)&&(this[O][t]=!1),$(this,t,w(1,n))};return o&&W&&$(G,t,{configurable:!0,set:e}),j(t)},s(P.prototype,"toString",function(){return this._k}),A.f=K,I.f=U,n(119).f=M.f=J,n(61).f=Y,n(120).f=Q,o&&!n(81)&&s(G,"propertyIsEnumerable",Y,!0),p.f=function(t){return j(f(t))}),a(a.G+a.W+a.F*!F,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)f(tt[et++]);for(var tt=T(f.store),et=0;tt.length>et;)g(tt[et++]);a(a.S+a.F*!F,"Symbol",{for:function(t){return r(R,t+="")?R[t]:R[t]=P(t)},keyFor:function(t){if(Z(t))return v(R,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!F,"Object",{create:X,defineProperty:U,defineProperties:q,getOwnPropertyDescriptor:K,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),E&&a(a.S+a.F*(!F||u(function(){var t=P();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Z(t)){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);return e=i[1],"function"==typeof e&&(n=e),!n&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!Z(e))return e}),i[1]=e,k.apply(E,i)}}}),P.prototype[N]||n(40)(P.prototype,N,P.prototype.valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,e,n){var i=n(48),r=n(227)(!1);i(i.S,"Object",{values:function(t){return r(t)}})},function(t,e,n){n(88)("asyncIterator")},function(t,e,n){n(88)("observable")},function(t,e,n){n(232);for(var i=n(26),r=n(40),o=n(50),a=n(19)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=s[l],c=i[u],h=c&&c.prototype;h&&!h[a]&&r(h,a,u),o[u]=o.Array}},function(t,e,n){e=t.exports=n(241)(!0),e.push([t.i,"\n.echart-container {\n  min-height: 160px;\n  min-width: 200px;\n  width: 100%;\n  height: 100%;\n}\n","",{version:3,sources:["D:/ws_workspace/my-echarts/v-echarts/src/components/echarts/Echarts.vue?59272719"],names:[],mappings:";AAiQA;EACA,kBAAA;EACA,iBAAA;EACA,YAAA;EACA,aAAA;CACA",file:"Echarts.vue",sourcesContent:["/**\n* Created by liuyongxing on 2017/6/27.\n*/\n\n<template>\n  <div style=\"position: relative;\">\n    <div :class=\"echartsClassName\"></div>\n    <slot></slot>\n  </div>\n</template>\n\n<script>\n  import echarts from 'echarts/lib/echarts'\n  import debounce from 'lodash.debounce'\n  import Vue from 'vue'\n\n  let EVENT_AND_ACTION_REG = /^[a-zA-Z0-9_]+$/\n\n  // listening events\n  const listenerContainer = {}\n  const resizeListener = debounce(() => {\n    Object.values(listenerContainer).forEach((echartsComponent) => {\n      echartsComponent._doResize()\n    })\n  }, 120, {leading: true})\n  window.addEventListener('resize', resizeListener, false)\n  document.addEventListener('DOMContentLoaded', resizeListener, false)\n  const unloadListener = () => {\n    window.removeEventListener('resize', resizeListener)\n    window.removeEventListener('DOMContentLoaded', resizeListener)\n    window.removeEventListener('unload', unloadListener)\n  }\n  window.addEventListener('unload', unloadListener, false)\n\n  let isObject = (obj) => {\n    return obj !== null && typeof obj === 'object'\n  }\n\n  export default {\n    name: 'Echarts',\n    props: {\n      option: Object,\n      events: Object,\n      theme: String,\n      opts: Object,\n      group: String,\n      notMerge: {   //\n        type: Boolean,\n        default: true\n      },\n      lazyUpdate: {\n        type: Boolean,\n        default: false\n      },\n      autoResize: {\n        type: Boolean,\n        default: true\n      }\n    },\n    data () {\n      return {\n        chart: null,\n        echartsClassName: 'echart-container',\n        boxHeight: null,\n        boxWidth: null\n      }\n    },\n    watch: {\n      option: {\n        handler (option) {\n          if (isObject(this.chartInstance) && isObject(option)) {\n            this._init()\n          } else {\n            this.setOption(option, this.notMerge, this.lazyUpdate)\n          }\n        },\n        deep: true\n      },\n      group: {\n        handler (group) {\n          this.chartInstance.group = group\n        }\n      }\n    },\n    methods: {\n      // echarts global methods\n      // @return {string|Array.<module:echarts~ECharts>} groupId\n      connect (group) {\n        return echarts.connect(group)\n      },\n      // @return {string} groupId\n      disconnect (group) {\n        echarts.disConnect(group)\n      },\n      // merge echarts global method and instance method into one\n      dispose (target) {\n        if (target) {\n          echarts.dispose(target)\n        } else {\n          this.invoke('dispose')\n        }\n      },\n      registerMap (...args) {\n        echarts.registerMap(...args)\n      },\n      getMap () {\n        return echarts.getMap()\n      },\n      registerTheme (...args) {\n        echarts.registerTheme(...args)\n      },\n      clipPointsByRect (...args) {\n        return echarts.graphic.clipPointsByRect(...args)\n      },\n      clipRectByRect (...args) {\n        return echarts.graphic.clipRectByRect(...args)\n      },\n\n      // echarts instance methods\n      getGroup: function () {\n        return this.chartInstance.group\n      },\n      setOption (option, notMerge, lazyUpdate) {\n        this.invoke('setOption', option, notMerge, lazyUpdate)\n      },\n      getWidth () {\n        return this.invoke('getWidth')\n      },\n      getHeight () {\n        return this.invoke('getHeight')\n      },\n      getDom () {\n        return this.invoke('getDom')\n      },\n      getOption () {\n        return this.invoke('getOption')\n      },\n      resize (option) {\n        this.invoke('resize', option)\n      },\n      dispatchAction (payload) {\n        this.invoke('dispatchAction', payload)\n      },\n      on (eventName, handler, context) {\n        // (eventName: string, handler: Function, context?: Object)\n        this.invoke('on', eventName, handler, context)\n      },\n      off (eventName, handler, context) {\n        this.invoke('off', eventName, handler, context)\n      },\n      convertToPixel (finder, value) {\n        return this.invoke('convertToPixel', finder, value)\n      },\n      convertFromPixel (finder, value) {\n        return this.invoke('convertFromPixel', finder, value)\n      },\n      containPixel (finder, value) {\n        return this.invoke('containPixel', finder, value)\n      },\n      showLoading (type, opts) {\n        this.invoke('showLoading', type, opts)\n      },\n      hideLoading () {\n        this.invoke('hideLoading')\n      },\n      getDataURL (opts) {\n        return this.invoke('getDataURL', opts)\n      },\n      getConnectedDataURL (opts) {\n        return this.invoke('getConnectedDataURL', opts)\n      },\n      clear () {\n        this.invoke('clear')\n      },\n      isDisposed () {\n        return this.invoke('isDisposed')\n      },\n      // provide a proxy method to enchance the ability of Echarts component\n      invoke (name, ...args) {\n        if (!isObject(this.chartInstance)) {\n          return\n        }\n        return this.chartInstance[name](...args)\n      },\n      _init () {\n        if (isObject(this.chartInstance)) {\n          return\n        }\n\n        let chartDom = this.$el.querySelector('.' + this.echartsClassName)\n        if (!chartDom) {\n          Vue.util.warn('[Echarts]-[ERROR] - Cannot get the echarts dom container')\n          return\n        }\n\n        let chartInstance = echarts.init(chartDom, this.theme, this.opts)\n        this.chartInstance = chartInstance\n        if (this.group) {\n          chartInstance.group = this.group\n        }\n\n        this.setOption(this.option, this.notMerge, this.lazyUpdate)\n        // register echarts events\n        if (isObject(this.events)) {\n          Object.keys(this.events).forEach((eventName) => {\n            let handler = this.events[eventName]\n            if (EVENT_AND_ACTION_REG.test(eventName)) {\n              if (handler && typeof handler === 'function') {\n                chartInstance.on(eventName, handler)\n              } else {\n                Vue.util.warn('[Echarts] - The handler should be a function for event [' + eventName + ']')\n              }\n            } else {\n              Vue.util.warn('[Echarts] - Event name [' + eventName + '] is invalid')\n            }\n          })\n        }\n\n        if (this.autoResize) {\n          let box = this._getBoxWidthHeight()\n          this.boxWidth = box.width\n          this.boxHeight = box.height\n          listenerContainer[chartInstance.id] = this\n        }\n      },\n      _doResize () {\n        if (this.autoResize && this.chartInstance) {\n          let box = this._getBoxWidthHeight()\n          if (this.boxWidth !== box.width || this.boxHeight !== box.height) {\n            this.boxWidth = box.width\n            this.boxHeight = box.height\n            this.resize()\n          }\n        }\n      },\n      _getBoxWidthHeight () {\n        let computedStyle = window.getComputedStyle(this.$el)\n        let ret = {height: computedStyle.height, width: computedStyle.width}\n        computedStyle = null\n        return ret\n      }\n    },\n    mounted () {\n      if (this.option) {\n        this._init()\n      }\n    },\n    beforeDestroy () {\n      if (!this.chartInstance) {\n        return\n      }\n      delete listenerContainer[this.chartInstance.id]\n      this.dispose()\n    }\n  }\n<\/script>\n<style>\n  .echart-container {\n    min-height: 160px;\n    min-width: 200px;\n    width: 100%;\n    height: 100%;\n  }\n</style>\n"],sourceRoot:""}])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){"use strict";function i(t){r.each(o,function(e){this[e]=r.bind(t[e],t)},this)}var r=n(0),o=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];t.exports=i},function(t,e,n){var i=n(0);n(101),n(244),n(245);var r=n(104),o=n(1);o.registerLayout(i.curry(r,"bar")),o.registerVisual(function(t){t.eachSeriesByType("bar",function(t){t.getData().setVisual("legendSymbol","roundRect")})}),n(56)},function(t,e,n){t.exports=n(128).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect"})},function(t,e,n){"use strict";function i(t,e,n){n.style.text="",l.updateProps(n,{shape:{width:0}},e,t,function(){n.parent&&n.parent.remove(n)})}function r(t,e,n){n.style.text="",l.updateProps(n,{shape:{r:n.shape.r0}},e,t,function(){n.parent&&n.parent.remove(n)})}function o(t,e,n,i,r,o,a,c){var h=e.getItemVisual(n,"color"),d=e.getItemVisual(n,"opacity"),f=i.getModel("itemStyle.normal"),p=i.getModel("itemStyle.emphasis").getBarItemStyle();c||t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(s.defaults({fill:h,opacity:d},f.getBarItemStyle()));var g=i.getShallow("cursor");g&&t.attr("cursor",g);var v=a?r.height>0?"bottom":"top":r.width>0?"left":"right";c||u.setLabel(t.style,p,i,h,o,n,v),l.setHoverStyle(t,p)}function a(t,e){var n=t.get(c)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}var s=n(0),l=n(2),u=n(129),c=["itemStyle","normal","barBorderWidth"];s.extend(n(8).prototype,n(248));var h=n(1).extendChartView({type:"bar",render:function(t,e,n){var i=t.get("coordinateSystem");return"cartesian2d"===i||"polar"===i?this._render(t,e,n):__DEV__&&console.warn("Only cartesian2d and polar supported for bar."),this.group},dispose:s.noop,_render:function(t,e,n){var a,s=this.group,u=t.getData(),c=this._data,h=t.coordinateSystem,p=h.getBaseAxis();"cartesian2d"===h.type?a=p.isHorizontal():"polar"===h.type&&(a="angle"===p.dim);var g=t.isAnimationEnabled()?t:null;u.diff(c).add(function(e){if(u.hasValue(e)){var n=u.getItemModel(e),i=f[h.type](u,e,n),r=d[h.type](u,e,n,i,a,g);u.setItemGraphicEl(e,r),s.add(r),o(r,u,e,n,i,t,a,"polar"===h.type)}}).update(function(e,n){var i=c.getItemGraphicEl(n);if(!u.hasValue(e))return void s.remove(i);var r=u.getItemModel(e),p=f[h.type](u,e,r);i?l.updateProps(i,{shape:p},g,e):i=d[h.type](u,e,r,p,a,g,!0),u.setItemGraphicEl(e,i),s.add(i),o(i,u,e,r,p,t,a,"polar"===h.type)}).remove(function(t){var e=c.getItemGraphicEl(t);"cartesian2d"===h.type?e&&i(t,g,e):e&&r(t,g,e)}).execute(),this._data=u},remove:function(t,e){var n=this.group,o=this._data;t.get("animation")?o&&o.eachItemGraphicEl(function(e){"sector"===e.type?r(e.dataIndex,t,e):i(e.dataIndex,t,e)}):n.removeAll()}}),d={cartesian2d:function(t,e,n,i,r,o,a){var u=new l.Rect({shape:s.extend({},i)});if(o){var c=u.shape,h=r?"height":"width",d={};c[h]=0,d[h]=i[h],l[a?"updateProps":"initProps"](u,{shape:d},o,e)}return u},polar:function(t,e,n,i,r,o,a){var u=new l.Sector({shape:s.extend({},i)});if(o){var c=u.shape,h=r?"r":"endAngle",d={};c[h]=r?0:i.startAngle,d[h]=i[h],l[a?"updateProps":"initProps"](u,{shape:d},o,e)}return u}},f={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=a(n,i),o=i.width>0?1:-1,s=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+s*r/2,width:i.width-o*r,height:i.height-s*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};t.exports=h},function(t,e,n){var i=n(128).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,i.superApply(this,"getInitialData",arguments)}});t.exports=i},function(t,e,n){function i(t,e,n,i){var o=t.getItemLayout(e),u=n.get("symbolRepeat"),c=n.get("symbolClip"),h=n.get("symbolPosition")||"start",d=n.get("symbolRotate"),f=(d||0)*Math.PI/180||0,p=n.get("symbolPatternSize")||2,g=n.isAnimationEnabled(),v={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:c,symbolRepeat:u,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:p,rotation:f,animationModel:g?n:null,hoverAnimation:g&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};r(n,u,o,i,v),a(t,e,o,u,c,v.boundingLength,v.pxSign,p,i,v),s(n,v.symbolScale,f,i,v);var m=v.symbolSize,y=n.get("symbolOffset");return I.isArray(y)&&(y=[P(y[0],m[0]),P(y[1],m[1])]),l(n,m,o,u,c,y,h,v.valueLineWidth,v.boundingLength,v.repeatCutLength,i,v),v}function r(t,e,n,i,r){var a,s=i.valueDim,l=t.get("symbolBoundingData"),u=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(I.isArray(l)){var d=[o(u,l[0])-c,o(u,l[1])-c];d[1]<d[0]&&d.reverse(),a=d[h]}else a=null!=l?o(u,l)-c:e?i.coordSysExtent[s.index][h]-c:n[s.wh];r.boundingLength=a,e&&(r.repeatCutLength=n[s.wh]),r.pxSign=a>0?1:a<0?-1:0}function o(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function a(t,e,n,i,r,o,a,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(n[h.wh]),f=t.getItemVisual(e,"symbolSize");I.isArray(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[h.index]=P(f[h.index],d),f[c.index]=P(f[c.index],i?d:Math.abs(o)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}function s(t,e,n,i,r){var o=t.get(E)||0;o&&(O.attr({scale:e.slice(),rotation:n}),O.updateTransform(),o/=O.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function l(t,e,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,g=Math.max(e[f.index]+s,0),v=g;if(i){var m=Math.abs(l),y=I.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=P(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=D.isNumeric(i),S=w?i:A((m+b)/_);y=(m-S*g)/2/(x?S:S-1),_=g+2*y,b=x?0:2*y,w||"fixed"===i||(S=u?A((Math.abs(u)+b)/_):0),v=S*_-b,h.repeatTimes=S,h.symbolMargin=y}var M=p*(v/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[f.index]="start"===a?M:"end"===a?l-M:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var C=h.bundlePosition=[];C[d.index]=n[d.xy],C[f.index]=n[f.xy];var L=h.barRectShape=I.extend({},n);L[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(T[f.index]+M)),L[d.wh]=n[d.wh];var E=h.clipShape={};E[d.xy]=-n[d.xy],E[d.wh]=c.ecSize[d.wh],E[f.xy]=0,E[f.wh]=n[f.wh]}function u(t){var e=t.symbolPatternSize,n=C.createSymbol(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function c(t,e,n,i){function r(t){var e=h.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=f-1-t),e[d.index]=g*(r-f/2+.5)+h[d.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function o(){w(t,function(t){t.trigger("emphasis")})}function a(){w(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,l=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,d=e.valueDim,f=n.repeatTimes||0,p=0,g=l[e.valueDim.index]+c+2*n.symbolMargin;for(w(t,function(t){t.__pictorialAnimationIndex=p,t.__pictorialRepeatTimes=f,p<f?S(t,null,r(p),n,i):S(t,null,{scale:[0,0]},n,i,function(){s.remove(t)}),m(t,n),p++});p<f;p++){var v=u(n);v.__pictorialAnimationIndex=p,v.__pictorialRepeatTimes=f,s.add(v);var y=r(p);S(v,{position:y.position,scale:[0,0]},{scale:y.scale,rotation:y.rotation},n,i),v.on("mouseover",o).on("mouseout",a),m(v,n)}}function h(t,e,n,i){function r(){this.trigger("emphasis")}function o(){this.trigger("normal")}var a=t.__pictorialBundle,s=t.__pictorialMainPath;s?S(s,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(s=t.__pictorialMainPath=u(n),a.add(s),S(s,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),s.on("mouseover",r).on("mouseout",o)),m(s,n)}function d(t,e,n){var i=I.extend({},e.barRectShape),r=t.__pictorialBarRect;r?S(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new T.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function f(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=I.extend({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)T.updateProps(r,{shape:o},s,l);else{o[a.wh]=0,r=new T.Rect({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],T[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function p(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=g,n.isAnimationEnabled=v,n}function g(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function v(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function m(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function y(t,e,n,i){var r=new T.Group,o=new T.Group;return r.add(o),r.__pictorialBundle=o,o.attr("position",n.bundlePosition.slice()),n.symbolRepeat?c(r,e,n):h(r,e,n),d(r,n,i),f(r,e,n,i),r.__pictorialShapeStr=b(t,n),r.__pictorialSymbolMeta=n,r}function x(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;T.updateProps(o,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?c(t,e,n,!0):h(t,e,n,!0),d(t,n,!0),f(t,e,n,!0)}function _(t,e,n,i){var r=i.__pictorialBarRect;r&&(r.style.text="");var o=[];w(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),I.each(o,function(t){T.updateProps(t,{scale:[0,0]},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function b(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function w(t,e,n){I.each(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function S(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&T[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function M(t,e,n){var i=n.color,r=n.dataIndex,o=n.itemModel,a=o.getModel("itemStyle.normal").getItemStyle(["color"]),s=o.getModel("itemStyle.emphasis").getItemStyle(),l=o.getShallow("cursor");w(t,function(t){t.setColor(i),t.setStyle(I.defaults({fill:i,opacity:n.opacity},a)),T.setHoverStyle(t,s),l&&(t.cursor=l),t.z2=n.z2});var u={},c=e.valueDim.posDesc[+(n.boundingLength>0)],h=t.__pictorialBarRect;L.setLabel(h.style,u,o,i,e.seriesModel,r,c),T.setHoverStyle(h,u)}function A(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var I=n(0),T=n(2),C=n(17),D=n(3),L=n(129),P=D.parsePercent,E=["itemStyle","normal","borderWidth"],k=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],O=new T.Circle,N=n(1).extendChartView({type:"pictorialBar",render:function(t,e,n){var r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),c=s.grid.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:k[+u],categoryDim:k[1-u]};return o.diff(a).add(function(t){if(o.hasValue(t)){var e=p(o,t),n=i(o,t,e,h),a=y(o,h,n);o.setItemGraphicEl(t,a),r.add(a),M(a,h,n)}}).update(function(t,e){var n=a.getItemGraphicEl(e);if(!o.hasValue(t))return void r.remove(n);var s=p(o,t),l=i(o,t,s,h),u=b(o,l);n&&u!==n.__pictorialShapeStr&&(r.remove(n),o.setItemGraphicEl(t,null),n=null),n?x(n,h,l):n=y(o,h,l,!0),o.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=l,r.add(n),M(n,h,l)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&_(a,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=o,this.group},dispose:I.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){_(i,e.dataIndex,t,e)}):n.removeAll()}});t.exports=N},function(t,e,n){var i=n(59)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getBarItemStyle:function(t){var e=i.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}}},function(t,e,n){var i=n(1);n(250),n(251),i.registerVisual(n(253)),i.registerLayout(n(252))},function(t,e,n){"use strict";var i=n(0),r=n(13),o=n(63),a=r.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(a,o.seriesModelMixin,!0),t.exports=a},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),r=i.getModel(u),o=e.getItemVisual(n,"color"),s=r.getItemStyle(["borderColor"]),l=t.childAt(t.whiskerIndex);l.style.set(s),l.style.stroke=o,l.dirty();var h=t.childAt(t.bodyIndex);h.style.set(s),h.style.stroke=o,h.dirty();var d=i.getModel(c).getItemStyle();a.setHoverStyle(t,d)}var r=n(0),o=n(31),a=n(2),s=n(63),l=o.extend({type:"boxplot",getStyleUpdater:function(){return i},dispose:r.noop});r.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(t){var i=t.getBaseAxis(),r=a.indexOf(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)}),e}function r(t){var e,n,i=t.axis,r=t.seriesModels,o=r.length,s=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if("category"===i.type)n=i.getBandWidth();else{var d=0;u(r,function(t){d=Math.max(d,t.getData().count())}),e=i.getExtent(),Math.abs(e[1]-e[0])}u(r,function(t){var e=t.get("boxWidth");a.isArray(e)||(e=[e,e]),h.push([l(e[0],n)||0,l(e[1],n)||0])});var f=.8*n-2,p=f/o*.3,g=(f-p*(o-1))/o,v=g/2-f/2;u(r,function(t,e){c.push(v),v+=p+g,s.push(Math.min(Math.max(g,h[e][0]),h[e][1]))})}function o(t,e,n){var i,r=t.coordinateSystem,o=t.getData(),s=n/2,l=t.get("layout"),u="horizontal"===l?0:1,c=1-u,h=["x","y"],d=[];a.each(o.dimensions,function(t){var e=o.getDimensionInfo(t),n=e.coordDim;n===h[c]?d.push(t):n===h[u]&&(i=t)}),null==i||d.length<5||o.each([i].concat(d),function(){function t(t){var n=[];n[u]=h,n[c]=t;var i;return isNaN(h)||isNaN(t)?i=[NaN,NaN]:(i=r.dataToPoint(n),i[u]+=e),i}function n(t,e){var n=t.slice(),i=t.slice();n[u]+=s,i[u]-=s,e?y.push(n,i):y.push(i,n)}function i(t){var e=[t.slice(),t.slice()];e[0][u]-=s,e[1][u]+=s,m.push(e)}var a=arguments,h=a[0],f=a[d.length+1],p=t(a[3]),g=t(a[1]),v=t(a[5]),m=[[g,t(a[2])],[v,t(a[4])]];i(g),i(v),i(p);var y=[];n(m[0][1],0),n(m[1][1],1),o.setItemLayout(f,{chartLayout:l,initBaseline:p[c],median:p,bodyEnds:y,whiskerEnds:m})})}var a=n(0),s=n(3),l=s.parsePercent,u=a.each;t.exports=function(t){var e=i(t);u(e,function(t){var e=t.seriesModels;e.length&&(r(t),u(e,function(e,n){o(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}},function(t,e){var n=["itemStyle","normal","borderColor"];t.exports=function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var r=i[e.seriesIndex%i.length],o=e.getData();o.setVisual({legendSymbol:"roundRect",color:e.get(n)||r}),t.isSeriesFiltered(e)||o.each(function(t){var e=o.getItemModel(t);o.setItemVisual(t,{color:e.get(n,!0)})})})}},function(t,e,n){var i=n(1);n(255),n(256),i.registerPreprocessor(n(259)),i.registerVisual(n(258)),i.registerLayout(n(257))},function(t,e,n){"use strict";var i=n(0),r=n(13),o=n(63),a=r.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,n){var i=e.getItemLayout(t);return n.rect(i.brushRect)}});i.mixin(a,o.seriesModelMixin,!0),t.exports=a},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),r=i.getModel(u),o=e.getItemVisual(n,"color"),s=e.getItemVisual(n,"borderColor")||o,l=r.getItemStyle(["color","color0","borderColor","borderColor0"]),h=t.childAt(t.whiskerIndex);h.useStyle(l),h.style.stroke=s;var d=t.childAt(t.bodyIndex);d.useStyle(l),d.style.fill=o,d.style.stroke=s;var f=i.getModel(c).getItemStyle();a.setHoverStyle(t,f)}var r=n(0),o=n(31),a=n(2),s=n(63),l=o.extend({type:"candlestick",getStyleUpdater:function(){return i},dispose:r.noop});r.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),s=a(o(t.get("barMaxWidth"),r),r),l=a(o(t.get("barMinWidth"),1),r),u=t.get("barWidth");return null!=u?a(u,r):Math.max(Math.min(r/2,s),l)}var r=n(0),o=n(0).retrieve,a=n(3).parsePercent;t.exports=function(t){t.eachSeriesByType("candlestick",function(t){var e,n=t.coordinateSystem,o=t.getData(),a=i(t,o),s=t.get("layout"),l="horizontal"===s?0:1,u=1-l,c=["x","y"],h=[];r.each(o.dimensions,function(t){var n=o.getDimensionInfo(t),i=n.coordDim;i===c[u]?h.push(t):i===c[l]&&(e=t)}),null==e||h.length<4||o.each([e].concat(h),function(){function t(t){var e=[];return e[l]=r,e[u]=t,isNaN(r)||isNaN(t)?[NaN,NaN]:n.dataToPoint(e)}function e(t,e){var n=t.slice(),i=t.slice();n[l]+=a/2,i[l]-=a/2,e?S.push(n,i):S.push(i,n)}var i=arguments,r=i[0],c=i[h.length+1],d=i[1],f=i[2],p=i[3],g=i[4],v=Math.min(d,f),m=Math.max(d,f),y=t(v),x=t(m),_=t(p),b=t(g),w=[[b,x],[_,y]],S=[];e(x,0),e(y,1),o.setItemLayout(c,{chartLayout:s,sign:d>f?-1:d<f?1:0,initBaseline:d>f?x[u]:y[u],bodyEnds:S,whiskerEnds:w,brushRect:function(){var e=t(Math.min(d,f,p,g)),n=t(Math.max(d,f,p,g));return e[l]-=a/2,n[l]-=a/2,{x:e[0],y:e[1],width:u?a:n[0]-e[0],height:u?n[1]-e[1]:a}}()})},!0)})}},function(t,e){var n=["itemStyle","normal","borderColor"],i=["itemStyle","normal","borderColor0"],r=["itemStyle","normal","color"],o=["itemStyle","normal","color0"];t.exports=function(t,e){t.eachRawSeriesByType("candlestick",function(e){var a=e.getData();a.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||a.each(function(t){var e=a.getItemModel(t),s=a.getItemLayout(t).sign;a.setItemVisual(t,{color:e.get(s>0?r:o),borderColor:e.get(s>0?n:i)})})})}},function(t,e,n){var i=n(0);t.exports=function(t){t&&i.isArray(t.series)&&i.each(t.series,function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}},function(t,e,n){function i(t){var e,n=t.type;if("path"===n){var i=t.shape;e=d.makePath(i.pathData,null,{x:i.x||0,y:i.y||0,width:i.width||0,height:i.height||0},"center"),e.__customPathData=t.pathData}else if("image"===n)e=new d.Image({}),e.__customImagePath=t.style.image;else if("text"===n)e=new d.Text({}),e.__customText=t.style.text;else{var r=d[n.charAt(0).toUpperCase()+n.slice(1)];__DEV__&&h.assert(r,'graphic type "'+n+'" can not be found.'),e=new r}return e.__customGraphicType=n,e}function r(t,e,n,i,r,a){var s={},l=n.style||{};if(n.shape&&(s.shape=h.clone(n.shape)),n.position&&(s.position=n.position.slice()),n.scale&&(s.scale=n.scale.slice()),n.origin&&(s.origin=n.origin.slice()),n.rotation&&(s.rotation=n.rotation),"image"===t.type&&n.style){var u=s.style={};h.each(["x","y","width","height"],function(e){o(e,u,l,t.style,a)})}if("text"===t.type&&n.style){var u=s.style={};h.each(["x","y"],function(e){o(e,u,l,t.style,a)})}if("group"!==t.type&&(t.useStyle(l),a)){t.style.opacity=0;var c=l.opacity;null==c&&(c=1),d.initProps(t,{style:{opacity:c}},i,e)}a?t.attr(s):d.updateProps(t,s,i,e),t.attr({z2:n.z2||0,silent:n.silent}),!1!==n.styleEmphasis&&d.setHoverStyle(t,n.styleEmphasis)}function o(t,e,n,i,r){null==n[t]||r||(e[t]=n[t],n[t]=i[t])}function a(t,e,n,i){function r(t){null==t&&(t=M),k&&(A=e.getItemModel(t),I=A.getModel(y),T=A.getModel(x),C=f.findLabelValueDim(e),D=e.getItemVisual(t,"color"),k=!1)}function o(t,n){return null==n&&(n=M),e.get(e.getDimension(t||0),n)}function a(n,i){null==i&&(i=M),r(i);var o=A.getModel(v).getItemStyle();null!=D&&(o.fill=D);var a=e.getItemVisual(i,"opacity");return null!=a&&(o.opacity=a),f.setTextToStyle(e,i,C,o,t,I,D),n&&h.extend(o,n),o}function l(n,i){null==i&&(i=M),r(i);var o=A.getModel(m).getItemStyle();return f.setTextToStyle(e,i,C,o,t,T,D),n&&h.extend(o,n),o}function u(t,n){return null==n&&(n=M),e.getItemVisual(n,t)}function c(t){if(S.getBaseAxis){var e=S.getBaseAxis();return g.getLayoutOnAxis(h.defaults({axis:e},t),i)}}function p(){return n.getCurrentSeriesIndices()}function b(t){return d.getFont(t,n)}var w=t.get("renderItem"),S=t.coordinateSystem;__DEV__&&(h.assert(w,"series.render is required."),h.assert(S.prepareCustoms||_[S.type],"This coordSys does not support custom series."));var M,A,I,T,C,D,L=S.prepareCustoms?S.prepareCustoms():_[S.type](S),P=h.defaults({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:o,style:a,styleEmphasis:l,visual:u,barLayout:c,currentSeriesIndices:p,font:b},L.api),E={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:L.coordSys,dataInsideLength:e.count(),encode:s(t.getData())},k=!0;return function(t){return M=t,k=!0,w&&w(h.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t)},E),P)||{}}}function s(t){var e={};return h.each(t.dimensions,function(n,i){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var o=r.coordDim;(e[o]=e[o]||[])[r.coordDimIndex]=i}}),e}function l(t,e,n,i,r,o){(t=u(t,e,n,i,r,o))&&o.setItemGraphicEl(e,t)}function u(t,e,n,o,a,s){var l=n.type;if(!t||l===t.__customGraphicType||"path"===l&&n.pathData===t.__customPathData||"image"===l&&n.style.image===t.__customImagePath||"text"===l&&n.style.text===t.__customText||(a.remove(t),t=null),null!=l){var c=!t;return!t&&(t=i(n)),r(t,e,n,o,s,c),"group"===l&&h.each(n.children,function(n,i){u(t.childAt(i),e,n,o,t,s)}),a.add(t),t}}var c=n(1),h=n(0),d=n(2),f=n(136),p=n(28),g=n(104),v=["itemStyle","normal"],m=["itemStyle","emphasis"],y=["label","normal"],x=["label","emphasis"],_={cartesian2d:n(438),geo:n(445),singleAxis:n(463),polar:n(456),calendar:n(433)};c.extendSeriesModel({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0},getInitialData:function(t,e){return p(t.data,this,e)}}),c.extendChartView({type:"custom",_data:null,render:function(t,e,n){var i=this._data,r=t.getData(),o=this.group,s=a(t,r,e,n);r.diff(i).add(function(e){r.hasValue(e)&&l(null,e,s(e),t,o,r)}).update(function(e,n){var a=i.getItemGraphicEl(n);r.hasValue(e)?l(a,e,s(e),t,o,r):a&&o.remove(a)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&o.remove(e)}).execute(),this._data=r},dispose:h.noop})},function(t,e,n){var i=n(0),r=n(1);n(262),n(263),r.registerVisual(i.curry(n(45),"effectScatter","circle",null)),r.registerLayout(i.curry(n(105),"effectScatter"))},function(t,e,n){"use strict";var i=n(28),r=n(13);t.exports=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},function(t,e,n){var i=n(52),r=n(290);n(1).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new i(r)},render:function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}})},function(t,e,n){var i=n(0),r=n(1);n(265),n(266),r.registerVisual(i.curry(n(108),"funnel")),r.registerLayout(n(267)),r.registerProcessor(i.curry(n(69),"funnel"))},function(t,e,n){"use strict";var i=n(10),r=n(4),o=n(16),a=n(1).extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){var n=o(["value"],t.data),r=new i(n,this);return r.initData(t.data),r},_defaultLabelLine:function(t){r.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.show&&t.label.emphasis.show},getDataParams:function(t){var e=this.getData(),n=a.superCall(this,"getDataParams",t),i=e.getSum("value");return n.percent=i?+(e.get("value",t)/i*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});t.exports=a},function(t,e,n){function i(t,e){function n(){a.ignore=a.hoverIgnore,s.ignore=s.hoverIgnore}function i(){a.ignore=a.normalIgnore,s.ignore=s.normalIgnore}o.Group.call(this);var r=new o.Polygon,a=new o.Polyline,s=new o.Text;this.add(r),this.add(a),this.add(s),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function r(t,e,n,i){var r=i.getModel("textStyle"),o=i.get("position"),s="inside"===o||"inner"===o||"center"===o;return{fill:r.getTextColor()||(s?"#fff":t.getItemVisual(e,"color")),textFont:r.getFont(),text:a.retrieve(t.hostModel.getFormattedLabel(e,n),t.getName(e))}}var o=n(2),a=n(0),s=i.prototype,l=["itemStyle","normal","opacity"];s.updateData=function(t,e,n){var i=this.childAt(0),r=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,i.useStyle({}),n?(i.setShape({points:u.points}),i.setStyle({opacity:0}),o.initProps(i,{style:{opacity:c}},r,e)):o.updateProps(i,{style:{opacity:c},shape:{points:u.points}},r,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");i.setStyle(a.defaults({lineJoin:"round",fill:d},h.getModel("normal").getItemStyle(["opacity"]))),i.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),o.setHoverStyle(this)},s._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),a=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");o.updateProps(n,{shape:{points:u.linePoints||u.linePoints}},a,e),o.updateProps(i,{style:{x:u.x,y:u.y}},a,e),i.attr({style:{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=s.getModel("label.normal"),d=s.getModel("label.emphasis"),f=s.getModel("labelLine.normal"),p=s.getModel("labelLine.emphasis");i.setStyle(r(t,e,"normal",h)),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!f.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:c}),n.setStyle(f.getModel("lineStyle").getLineStyle()),i.hoverStyle=r(t,e,"emphasis",d),n.hoverStyle=p.getModel("lineStyle").getLineStyle()},a.inherits(i,o.Group);var u=n(31).extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,a=this.group;r.diff(o).add(function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=u},function(t,e,n){function i(t,e){return a.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function r(t,e){for(var n=t.mapArray("value",function(t){return t}),i=[],r="ascending"===e,o=0,a=t.count();o<a;o++)i[o]=o;return"function"==typeof e?i.sort(e):"none"!==e&&i.sort(function(t,e){return r?n[t]-n[e]:n[e]-n[t]}),i}function o(t){t.each(function(e){var n,i,r,o,a=t.getItemModel(e),s=a.getModel("label.normal"),l=s.get("position"),u=a.getModel("labelLine.normal"),c=t.getItemLayout(e),h=c.points,d="inner"===l||"inside"===l||"center"===l;if(d)i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,r=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center",o=[[i,r],[i,r]];else{var f,p,g,v=u.get("length");"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,g=f-v,i=g-5,n="right"):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,g=f+v,i=g+5,n="left");var m=p;o=[[f,p],[g,m]],r=m}c.label={linePoints:o,x:i,y:r,verticalAlign:"middle",textAlign:n,inside:d}})}var a=n(7),s=n(3),l=s.parsePercent;t.exports=function(t,e,n){t.eachSeriesByType("funnel",function(t){var n=t.getData(),a=t.get("sort"),u=i(t,e),c=r(n,a),h=[l(t.get("minSize"),u.width),l(t.get("maxSize"),u.width)],d=n.getDataExtent("value"),f=t.get("min"),p=t.get("max");null==f&&(f=Math.min(d[0],0)),null==p&&(p=d[1]);var g=t.get("funnelAlign"),v=t.get("gap"),m=(u.height-v*(n.count()-1))/n.count(),y=u.y,x=function(t,e){var i,r=n.get("value",t)||0,o=s.linearMap(r,[f,p],h,!0);switch(g){case"left":i=u.x;break;case"center":i=u.x+(u.width-o)/2;break;case"right":i=u.x+u.width-o}return[[i,e],[i+o,e]]};"ascending"===a&&(m=-m,v=-v,y+=u.height,c=c.reverse());for(var _=0;_<c.length;_++){var b=c[_],w=c[_+1],S=x(b,y),M=x(w,y+m);y+=m+v,n.setItemLayout(b,{points:S.concat(M.slice().reverse())})}o(n)})}},function(t,e,n){n(269),n(270)},function(t,e,n){var i=n(10),r=n(13),o=n(0),a=r.extend({type:"series.gauge",getInitialData:function(t,e){var n=new i(["value"],this),r=t.data||[];return o.isArray(r)||(r=[r]),n.initData(r),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,textStyle:{color:"auto"}},pointer:{show:!0,length:"80%",width:8},itemStyle:{normal:{color:"auto"}},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}}});t.exports=a},function(t,e,n){function i(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:l(n[0],e.getWidth()),cy:l(n[1],e.getHeight()),r:l(t.get("radius"),o/2)}}function r(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var o=n(271),a=n(2),s=n(3),l=s.parsePercent,u=2*Math.PI,c=n(31).extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var r=t.get("axisLine.lineStyle.color"),o=i(t,n);this._renderMain(t,e,n,r,o)},dispose:function(){},_renderMain:function(t,e,n,i,r){for(var o=this.group,s=t.getModel("axisLine"),l=s.getModel("lineStyle"),c=t.get("clockwise"),h=-t.get("startAngle")/180*Math.PI,d=-t.get("endAngle")/180*Math.PI,f=(d-h)%u,p=h,g=l.get("width"),v=0;v<i.length;v++){var m=Math.min(Math.max(i[v][0],0),1),d=h+f*m,y=new a.Sector({shape:{startAngle:p,endAngle:d,cx:r.cx,cy:r.cy,clockwise:c,r0:r.r-g,r:r.r},silent:!0});y.setStyle({fill:i[v][1]}),y.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),o.add(y),p=d}var x=function(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};if(!c){var _=h;h=d,d=_}this._renderTicks(t,e,n,x,r,h,d,c),this._renderPointer(t,e,n,x,r,h,d,c),this._renderTitle(t,e,n,x,r),this._renderDetail(t,e,n,x,r)},_renderTicks:function(t,e,n,i,o,u,c,h){for(var d=this.group,f=o.cx,p=o.cy,g=o.r,v=+t.get("min"),m=+t.get("max"),y=t.getModel("splitLine"),x=t.getModel("axisTick"),_=t.getModel("axisLabel"),b=t.get("splitNumber"),w=x.get("splitNumber"),S=l(y.get("length"),g),M=l(x.get("length"),g),A=u,I=(c-u)/b,T=I/w,C=y.getModel("lineStyle").getLineStyle(),D=x.getModel("lineStyle").getLineStyle(),L=_.getModel("textStyle"),P=0;P<=b;P++){var E=Math.cos(A),k=Math.sin(A);if(y.get("show")){var O=new a.Line({shape:{x1:E*g+f,y1:k*g+p,x2:E*(g-S)+f,y2:k*(g-S)+p},style:C,silent:!0});"auto"===C.stroke&&O.setStyle({stroke:i(P/b)}),d.add(O)}if(_.get("show")){var N=r(s.round(P/b*(m-v)+v),_.get("formatter")),V=_.get("distance"),R=new a.Text({style:{text:N,x:E*(g-S-V)+f,y:k*(g-S-V)+p,fill:L.getTextColor(),textFont:L.getFont(),textVerticalAlign:k<-.4?"top":k>.4?"bottom":"middle",textAlign:E<-.4?"left":E>.4?"right":"center"},silent:!0});"auto"===R.style.fill&&R.setStyle({fill:i(P/b)}),d.add(R)}if(x.get("show")&&P!==b){for(var z=0;z<=w;z++){var E=Math.cos(A),k=Math.sin(A),B=new a.Line({shape:{x1:E*g+f,y1:k*g+p,x2:E*(g-M)+f,y2:k*(g-M)+p},silent:!0,style:D});"auto"===D.stroke&&B.setStyle({stroke:i((P+z/w)/b)}),d.add(B),A+=T}A-=T}else A+=I}},_renderPointer:function(t,e,n,i,r,u,c,h){var d=this.group,f=this._data;if(!t.get("pointer.show"))return void(f&&f.eachItemGraphicEl(function(t){d.remove(t)}));var p=[+t.get("min"),+t.get("max")],g=[u,c],v=t.getData();v.diff(f).add(function(e){var n=new o({shape:{angle:u}});a.initProps(n,{shape:{angle:s.linearMap(v.get("value",e),p,g,!0)}},t),d.add(n),v.setItemGraphicEl(e,n)}).update(function(e,n){var i=f.getItemGraphicEl(n);a.updateProps(i,{shape:{angle:s.linearMap(v.get("value",e),p,g,!0)}},t),d.add(i),v.setItemGraphicEl(e,i)}).remove(function(t){var e=f.getItemGraphicEl(t);d.remove(e)}).execute(),v.eachItemGraphicEl(function(t,e){var n=v.getItemModel(e),o=n.getModel("pointer");t.setShape({x:r.cx,y:r.cy,width:l(o.get("width"),r.r),r:l(o.get("length"),r.r)}),t.useStyle(n.getModel("itemStyle.normal").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",i(s.linearMap(v.get("value",e),p,[0,1],!0))),a.setHoverStyle(t,n.getModel("itemStyle.emphasis").getItemStyle())}),this._data=v},_renderTitle:function(t,e,n,i,r){var o=t.getModel("title");if(o.get("show")){var u=o.getModel("textStyle"),c=o.get("offsetCenter"),h=r.cx+l(c[0],r.r),d=r.cy+l(c[1],r.r),f=new a.Text({style:{x:h,y:d,text:t.getData().getName(0),fill:u.getTextColor(),textFont:u.getFont(),textAlign:"center",textVerticalAlign:"middle"}});if("auto"===f.style.fill){var p=+t.get("min"),g=+t.get("max"),v=t.getData().get("value",0);f.setStyle("fill",i(s.linearMap(v,[p,g],[0,1],!0)))}this.group.add(f)}},_renderDetail:function(t,e,n,i,o){var u=t.getModel("detail"),c=+t.get("min"),h=+t.get("max");if(u.get("show")){var d=u.getModel("textStyle"),f=u.get("offsetCenter"),p=o.cx+l(f[0],o.r),g=o.cy+l(f[1],o.r),v=l(u.get("width"),o.r),m=l(u.get("height"),o.r),y=t.getData().get("value",0),x=new a.Rect({shape:{x:p-v/2,y:g-m/2,width:v,height:m},style:{text:r(y,u.get("formatter")),fill:u.get("backgroundColor"),textFill:d.getTextColor(),textFont:d.getFont()}});"auto"===x.style.textFill&&x.setStyle("textFill",i(s.linearMap(y,[c,h],[0,1],!0))),x.setStyle(u.getItemStyle(["color"])),this.group.add(x)}}});t.exports=c},function(t,e,n){t.exports=n(14).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}})},function(t,e,n){var i=n(1),r=n(0);n(273),n(274),n(283),i.registerProcessor(n(276)),i.registerVisual(r.curry(n(45),"graph","circle",null)),i.registerVisual(n(277)),i.registerVisual(n(280)),i.registerLayout(n(284)),i.registerLayout(n(278)),i.registerLayout(n(282)),i.registerCoordinateSystem("graphView",{create:n(279)})},function(t,e,n){"use strict";var i=n(10),r=n(0),o=n(4),a=n(8),s=n(6),l=n(135),u=n(1).extendSeriesModel({type:"series.graph",init:function(t){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){u.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){u.superApply(this,"mergeDefaultAndTheme",arguments),o.defaultEmphasis(t.edgeLabel,o.LABEL_OPTIONS)},getInitialData:function(t,e){function n(t,n){function i(t){return t=this.parsePath(t),t&&"label"===t[0]?s:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t});var r=o.getModel("edgeLabel"),s=new a({label:r.option},r.parentModel,e);n.wrapMethod("getItemModel",function(t){return t.customizeGetParent(i),t})}var i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i)return l(r,i,this,!0,n).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),c=[];return null!=a&&c.push(a),null!=l&&c.push(l),c=s.encodeHTML(c.join(" > ")),r.value&&(c+=" : "+s.encodeHTML(r.value)),c}return u.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=r.map(this.option.categories||[],function(t){return null!=t.value?t:r.extend({value:0},t)}),e=new i(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return u.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}});t.exports=u},function(t,e,n){function i(t,e){return t.getVisual("opacity")||t.getModel().get(e)}var r=n(52),o=n(91),a=n(66),s=n(152),l=n(96),u=n(2),c=n(275),h=n(0),d=["itemStyle","normal","opacity"],f=["lineStyle","normal","opacity"];n(1).extendChartView({type:"graph",init:function(t,e){var n=new r,i=new o,s=this.group;this._controller=new a(e.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var r=this._symbolDraw,o=this._lineDraw,a=this.group;if("view"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?a.attr(s):u.updateProps(a,s,t)}c(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();r.updateData(l);var h=t.getEdgeData();o.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,f=t.get("force.layoutAnimation");d&&this._startForceLayoutIteration(d,f),l.eachItemGraphicEl(function(e,i){var r=l.getItemModel(i);e.off("drag").off("dragend");var o=l.getItemModel(i).get("draggable");o&&e.on("drag",function(){d&&(d.warmUp(),!this._layouting&&this._startForceLayoutIteration(d,f),d.setFixed(i),l.setItemLayout(i,e.position))},this).on("dragend",function(){d&&d.setUnfixed(i)},this),e.setDraggable(o&&d),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this);var p="circular"===t.get("layout")&&t.get("circular.rotateLabel"),g=l.getLayout("cx"),v=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var n=t.getSymbolPath();if(p){var i=l.getItemLayout(e),r=Math.atan2(i[1]-v,i[0]-g);r<0&&(r=2*Math.PI+r);var o=i[0]<g;o&&(r-=Math.PI);var a=o?"left":"right";n.setStyle({textRotation:r,textPosition:a}),n.hoverStyle&&(n.hoverStyle.textPosition=a)}else n.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(t,e,n,r){function o(t,e){var n=i(t,e),r=t.getGraphicEl();null==n&&(n=1),r.traverse(function(t){t.trigger("normal"),"group"!==t.type&&t.setStyle("opacity",.1*n)})}function a(t,e){var n=i(t,e);t.getGraphicEl().traverse(function(t){t.trigger("emphasis"),"group"!==t.type&&t.setStyle("opacity",n)})}var s=this._model.getData(),l=r.dataIndex,u=s.getItemGraphicEl(l);if(u){var c=s.graph,p=u.dataType;if(null!==l&&"edge"!==p){c.eachNode(function(t){o(t,d)}),c.eachEdge(function(t){o(t,f)});var g=c.getNodeByIndex(l);a(g,d),h.each(g.edges,function(t){t.dataIndex<0||(a(t,f),a(t.node1,d),a(t.node2,d))})}}},unfocusNodeAdjacency:function(t,e,n,r){var o=this._model.getData().graph;o.eachNode(function(t){var e=i(t,d);t.getGraphicEl().traverse(function(t){t.trigger("normal"),"group"!==t.type&&t.setStyle("opacity",e)})}),o.eachEdge(function(t){var e=i(t,f);t.getGraphicEl().traverse(function(t){t.trigger("normal"),"group"!==t.type&&t.setStyle("opacity",e)})})},_startForceLayoutIteration:function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},_updateController:function(t,e,n){var i=this._controller,r=this._controllerHost,o=this.group;if(i.setPointerChecker(function(e,i,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(i,r)&&!l.onIrrelevantElement(e,n,t)}),"view"!==t.coordinateSystem.type)return void i.disable();i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(e,i){s.updateViewOnPan(r,e,i),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e,dy:i})}).on("zoom",function(e,i,o){s.updateViewOnZoom(r,e,i,o),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e,originX:i,originY:o}),this._updateNodeAndLinkScale(),c(t.getGraph(),this._getNodeGlobalScale(t)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr("scale",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,r=i&&i[0]||1;return((e.getZoom()-1)*n+1)/r},updateLayout:function(t){c(t.getGraph(),this._getNodeGlobalScale(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}})},function(t,e,n){function i(t,e,n){for(var i,r=t[0],o=t[1],d=t[2],f=1/0,p=n*n,g=.1,v=.1;v<=.9;v+=.1){a[0]=u(r[0],o[0],d[0],v),a[1]=u(r[1],o[1],d[1],v);var m=h(c(a,e)-p);m<f&&(f=m,i=v)}for(var y=0;y<32;y++){var x=i+g;s[0]=u(r[0],o[0],d[0],i),s[1]=u(r[1],o[1],d[1],i),l[0]=u(r[0],o[0],d[0],x),l[1]=u(r[1],o[1],d[1],x);var m=c(s,e)-p;if(h(m)<.01)break;var _=c(l,e)-p;g/=2,m<0?_>=0?i+=g:i-=g:_>=0?i-=g:i+=g}return i}var r=n(32),o=n(5),a=[],s=[],l=[],u=r.quadraticAt,c=o.distSquare,h=Math.abs;t.exports=function(t,e){function n(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var a=[],s=r.quadraticSubdivide,l=[[],[],[]],u=[[],[]],c=[];e/=2,t.eachEdge(function(t,r){var h=t.getLayout(),d=t.getVisual("fromSymbol"),f=t.getVisual("toSymbol");h.__original||(h.__original=[o.clone(h[0]),o.clone(h[1])],h[2]&&h.__original.push(o.clone(h[2])));var p=h.__original;if(null!=h[2]){if(o.copy(l[0],p[0]),o.copy(l[1],p[2]),o.copy(l[2],p[1]),d&&"none"!=d){var g=n(t.node1),v=i(l,p[0],g*e);s(l[0][0],l[1][0],l[2][0],v,a),l[0][0]=a[3],l[1][0]=a[4],s(l[0][1],l[1][1],l[2][1],v,a),l[0][1]=a[3],l[1][1]=a[4]}if(f&&"none"!=f){var g=n(t.node2),v=i(l,p[1],g*e);s(l[0][0],l[1][0],l[2][0],v,a),l[1][0]=a[1],l[2][0]=a[2],s(l[0][1],l[1][1],l[2][1],v,a),l[1][1]=a[1],l[2][1]=a[2]}o.copy(h[0],l[0]),o.copy(h[1],l[2]),o.copy(h[2],l[1])}else{if(o.copy(u[0],p[0]),o.copy(u[1],p[1]),o.sub(c,u[1],u[0]),o.normalize(c,c),d&&"none"!=d){var g=n(t.node1);o.scaleAndAdd(u[0],u[0],c,g*e)}if(f&&"none"!=f){var g=n(t.node2);o.scaleAndAdd(u[1],u[1],c,-g*e)}o.copy(h[0],u[0]),o.copy(h[1],u[1])}})}},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf(function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"==typeof i&&(i=o[i]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(i))return!1}return!0})},this)}},function(t,e){t.exports=function(t){var e={};t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each(function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.get("itemStyle.normal.color")||t.getColorFromPalette(o,e);n.setItemVisual(i,"color",s)}),n.count()&&i.each(function(t){var e=i.getItemModel(t),o=e.getShallow("category");null!=o&&("string"==typeof o&&(o=r["ec-"+o]),i.getItemVisual(t,"color",!0)||i.setItemVisual(t,"color",n.getItemVisual(o,"color")))})})}},function(t,e,n){var i=n(130);t.exports=function(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&i(t)})}},function(t,e,n){function i(t,e,n){var i=t.getBoxLayoutParams();return i.aspect=n,o.getLayoutRect(i,{width:e.getWidth(),height:e.getHeight()})}var r=n(162),o=n(7),a=n(109);t.exports=function(t,e){var n=[];return t.eachSeriesByType("graph",function(t){var o=t.get("coordinateSystem");if(!o||"view"===o){var s=t.getData(),l=s.mapArray(function(t){var e=s.getItemModel(t);return[+e.get("x"),+e.get("y")]}),u=[],c=[];a.fromPoints(l,u,c),c[0]-u[0]==0&&(c[0]+=1,u[0]-=1),c[1]-u[1]==0&&(c[1]+=1,u[1]-=1);var h=(c[0]-u[0])/(c[1]-u[1]),d=i(t,e,h);isNaN(h)&&(u=[d.x,d.y],c=[d.x+d.width,d.y+d.height]);var f=c[0]-u[0],p=c[1]-u[1],g=d.width,v=d.height,m=t.coordinateSystem=new r;m.zoomLimit=t.get("scaleLimit"),m.setBoundingRect(u[0],u[1],f,p),m.setViewRect(d.x,d.y,g,v),m.setCenter(t.get("center")),m.setZoom(t.get("zoom")),n.push(m)}}),n}},function(t,e){function n(t){return t instanceof Array||(t=[t,t]),t}t.exports=function(t){t.eachSeriesByType("graph",function(t){var e=t.getGraph(),i=t.getEdgeData(),r=n(t.get("edgeSymbol")),o=n(t.get("edgeSymbolSize")),a="lineStyle.normal.color".split("."),s="lineStyle.normal.opacity".split(".");i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",o&&o[0]),i.setVisual("toSymbolSize",o&&o[1]),i.setVisual("color",t.get(a)),i.setVisual("opacity",t.get(s)),i.each(function(t){var r=i.getItemModel(t),o=e.getEdgeByIndex(t),l=n(r.getShallow("symbol",!0)),u=n(r.getShallow("symbolSize",!0)),c=r.get(a),h=r.get(s);switch(c){case"source":c=o.node1.getVisual("color");break;case"target":c=o.node2.getVisual("color")}l[0]&&o.setVisual("fromSymbol",l[0]),l[1]&&o.setVisual("toSymbol",l[1]),u[0]&&o.setVisual("fromSymbolSize",u[0]),u[1]&&o.setVisual("toSymbolSize",u[1]),o.setVisual("color",c),o.setVisual("opacity",h)})})}},function(t,e,n){var i=n(5),r=i.scaleAndAdd;t.exports=function(t,e,n){for(var o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<t.length;c++){var h=t[c];h.p||(h.p=i.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=i.clone(h.p),h.edges=null}var d=.6;return{warmUp:function(){d=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(n){for(var o=[],a=t.length,s=0;s<e.length;s++){var c=e[s],h=c.n1,f=c.n2;i.sub(o,f.p,h.p);var p=i.len(o)-c.d,g=f.w/(h.w+f.w);i.normalize(o,o),!h.fixed&&r(h.p,h.p,o,g*p*d),!f.fixed&&r(f.p,f.p,o,-(1-g)*p*d)}for(var s=0;s<a;s++){var v=t[s];v.fixed||(i.sub(o,l,v.p),i.scaleAndAdd(v.p,v.p,o,u*d))}for(var s=0;s<a;s++)for(var h=t[s],m=s+1;m<a;m++){var f=t[m];i.sub(o,f.p,h.p);var p=i.len(o);0===p&&(i.set(o,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+f.rep)/p/p;!h.fixed&&r(h.pp,h.pp,o,y),!f.fixed&&r(f.pp,f.pp,o,-y)}for(var x=[],s=0;s<a;s++){var v=t[s];v.fixed||(i.sub(x,v.p,v.pp),i.scaleAndAdd(v.p,v.p,x,d),i.copy(v.pp,v.p))}d*=.992,n&&n(t,e,d<.01)}}}},function(t,e,n){var i=n(281),r=n(3),o=n(132),a=n(130),s=n(5),l=n(0);t.exports=function(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},u=t.getGraph(),c=u.data,h=u.edgeData,d=t.getModel("force"),f=d.get("initLayout");t.preservedPoints?c.each(function(t){var e=c.getId(t);c.setItemLayout(t,n[e]||[NaN,NaN])}):f&&"none"!==f?"circular"===f&&a(t):o(t);var p=c.getDataExtent("value"),g=h.getDataExtent("value"),v=d.get("repulsion"),m=d.get("edgeLength");l.isArray(v)||(v=[v,v]),l.isArray(m)||(m=[m,m]),m=[m[1],m[0]];var y=c.mapArray("value",function(t,e){var n=c.getItemLayout(e),i=r.linearMap(t,p,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{w:i,rep:i,fixed:c.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),x=h.mapArray("value",function(t,e){var n=u.getEdgeByIndex(e),i=r.linearMap(t,g,m);return isNaN(i)&&(i=(m[0]+m[1])/2),{n1:y[n.node1.dataIndex],n2:y[n.node2.dataIndex],d:i,curveness:n.getModel().get("lineStyle.normal.curveness")||0}}),e=t.coordinateSystem,_=e.getBoundingRect(),b=i(y,x,{rect:_,gravity:d.get("gravity")}),w=b.step;b.step=function(t){for(var e=0,i=y.length;e<i;e++)y[e].fixed&&s.copy(y[e].p,u.getNodeByIndex(e).getLayout());w(function(e,i,r){for(var o=0,a=e.length;o<a;o++)e[o].fixed||u.getNodeByIndex(o).setLayout(e[o].p),n[c.getId(o)]=e[o].p;for(var o=0,a=i.length;o<a;o++){var l=i[o],h=u.getEdgeByIndex(o),d=l.n1.p,f=l.n2.p,p=h.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],s.copy(p[0],d),s.copy(p[1],f),+l.curveness&&(p[2]=[(d[0]+f[0])/2-(d[1]-f[1])*l.curveness,(d[1]+f[1])/2-(f[0]-d[0])*l.curveness]),h.setLayout(p)}t&&t(r)})},t.forceLayout=b,t.preservedPoints=n,b.step()}else t.forceLayout=null})}},function(t,e,n){var i=n(1),r=n(127),o={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(o,function(t,e){e.eachComponent({mainType:"series",query:t},function(e){var n=e.coordinateSystem,i=r.updateCenterAndZoom(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})}),i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series.graph:focusNodeAdjacency"},function(){}),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series.graph:unfocusNodeAdjacency"},function(){})},function(t,e,n){var i=n(132),r=n(131);t.exports=function(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var o=t.getData(),a=n.dimensions;o.each(a,function(){for(var t,e=arguments,i=[],r=0;r<a.length;r++)isNaN(e[r])||(t=!0),i.push(e[r]);var s=e[e.length-1];t?o.setItemLayout(s,n.dataToPoint(i)):o.setItemLayout(s,[NaN,NaN])}),r(o.graph)}else e&&"none"!==e||i(t)})}},function(t,e,n){n(287),n(288)},function(t,e,n){function i(){var t=r.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}var r=n(0);i.prototype={update:function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(t,r,"inRange"),l=this._getGradient(t,r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var f=0;f<d;++f){var p=t[f],g=p[0],v=p[1],m=p[2],y=i(m);h.globalAlpha=y,h.drawImage(a,g-u,v-u)}for(var x=h.getImageData(0,0,c.width,c.height),_=x.data,b=0,w=_.length,S=this.minOpacity,M=this.maxOpacity,A=M-S;b<w;){var y=_[b+3]/256,I=4*Math.floor(255*y);if(y>0){var T=o(y)?s:l;y>0&&(y=y*A+S),_[b++]=T[I],_[b++]=T[I+1],_[b++]=T[I+2],_[b++]=T[I+3]*y*256}else b+=4}return h.putImageData(x,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=r.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},t.exports=i},function(t,e,n){var i=n(13),r=n(28);t.exports=i.extend({type:"series.heatmap",getInitialData:function(t,e){return r(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},function(t,e,n){function i(t,e,n){var i=t[1]-t[0];e=l.map(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}});var r=e.length,o=0;return function(t){for(var i=o;i<r;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(var i=o-1;i>=0;i--){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function r(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function o(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var a=n(2),s=n(286),l=n(0);t.exports=n(1).extendChartView({type:"heatmap",render:function(t,e,n){var i;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),__DEV__&&!i)throw new Error("Heatmap must use with visualMap");this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(r,t,n):o(r)&&this._renderOnGeo(r,t,i,n)},dispose:function(){},_renderOnCartesianAndCalendar:function(t,e,n){if("cartesian2d"===t.type){var i=t.getAxis("x"),r=t.getAxis("y");if(__DEV__){if("category"!==i.type||"category"!==r.type)throw new Error("Heatmap on cartesian must have two category axes");if(!i.onBand||!r.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}var o=i.getBandWidth(),s=r.getBandWidth()}var u=this.group,c=e.getData(),h=e.getModel("itemStyle.normal").getItemStyle(["color"]),d=e.getModel("itemStyle.emphasis").getItemStyle(),f=e.getModel("label.normal"),p=e.getModel("label.emphasis"),g=t.type,v="cartesian2d"===g?[e.coordDimToDataDim("x")[0],e.coordDimToDataDim("y")[0],e.coordDimToDataDim("value")[0]]:[e.coordDimToDataDim("time")[0],e.coordDimToDataDim("value")[0]];c.each(function(n){var i;if("cartesian2d"===g){if(isNaN(c.get(v[2],n)))return;var r=t.dataToPoint([c.get(v[0],n),c.get(v[1],n)]);i=new a.Rect({shape:{x:r[0]-o/2,y:r[1]-s/2,width:o,height:s},style:{fill:c.getItemVisual(n,"color"),opacity:c.getItemVisual(n,"opacity")}})}else{if(isNaN(c.get(v[1],n)))return;i=new a.Rect({z2:1,shape:t.dataToRect([c.get(v[0],n)]).contentShape,style:{fill:c.getItemVisual(n,"color"),opacity:c.getItemVisual(n,"opacity")}})}var m=c.getItemModel(n);c.hasItemOption&&(h=m.getModel("itemStyle.normal").getItemStyle(["color"]),d=m.getModel("itemStyle.emphasis").getItemStyle(),f=m.getModel("label.normal"),p=m.getModel("label.emphasis"));var y=e.getRawValue(n),x="-";y&&null!=y[2]&&(x=y[2]),f.getShallow("show")&&(a.setText(h,f),h.text=e.getFormattedLabel(n,"normal")||x),p.getShallow("show")&&(a.setText(d,p),d.text=e.getFormattedLabel(n,"emphasis")||x),i.setStyle(h),a.setHoverStyle(i,c.hasItemOption?d:l.extend({},d)),u.add(i),c.setItemGraphicEl(n,i)})},_renderOnGeo:function(t,e,n,o){var l=n.targetVisuals.inRange,u=n.targetVisuals.outOfRange,c=e.getData(),h=this._hmLayer||this._hmLayer||new s;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),f=t.getRoamTransform().transform;d.applyTransform(f);var p=Math.max(d.x,0),g=Math.max(d.y,0),v=Math.min(d.width+d.x,o.getWidth()),m=Math.min(d.height+d.y,o.getHeight()),y=v-p,x=m-g,_=c.mapArray(["lng","lat","value"],function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=p,r[1]-=g,r.push(i),r}),b=n.getExtent(),w="visualMap.continuous"===n.type?r(b,n.option.range):i(b,n.getPieceList(),n.option.selected);h.update(_,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},w);var S=new a.Image({style:{width:y,height:x,x:p,y:g,image:h.canvas},silent:!0});this.group.add(S)}})},function(t,e,n){function i(t,e,n){a.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var r=n(134),o=n(0),a=n(133),s=n(5),l=i.prototype;l.createLine=function(t,e,n){return new r(t,e,n)},l.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=s.dist(o,a),n.push(i)}if(0!==i){for(var r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}},l.getLineLength=function(t){return this._length},l.updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){var l=Math.min(a+1,r-1);for(o=l;o>=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(var o=a;o<r&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}s.lerp(t.position,n[o],n[o+1],(e-i[o])/(i[o+1]-i[o]));var u=n[o+1][0]-n[o][0],c=n[o+1][1]-n[o][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},o.inherits(i,a),t.exports=i},function(t,e,n){function i(t){return a.isArray(t)||(t=[+t,+t]),t}function r(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function o(t,e){h.call(this);var n=new c(t,e),i=new h;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var a=n(0),s=n(17),l=n(2),u=n(3),c=n(92),h=l.Group,d=o.prototype;d.stopEffectAnimation=function(){this.childAt(1).removeAll()},d.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),o=0;o<3;o++){var a=s.createSymbol(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var l=-o/3*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(l).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),i.add(a)}r(i,t)},d.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],o=0;o<i;o++){var a=i[o];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}r(n,t)},d.highlight=function(){this.trigger("emphasis")},d.downplay=function(){this.trigger("normal")},d.updateData=function(t,e){var n=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=i(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"color");r.attr("scale",s),r.traverse(function(t){t.attr({fill:l})});var c=o.getShallow("symbolOffset");if(c){var h=r.position;h[0]=u.parsePercent(c[0],s[0]),h[1]=u.parsePercent(c[1],s[1])}r.rotation=(o.getShallow("symbolRotate")||0)*Math.PI/180||0;var d={};if(d.showEffectOn=n.get("showEffectOn"),d.rippleScale=o.get("rippleEffect.scale"),d.brushType=o.get("rippleEffect.brushType"),d.period=1e3*o.get("rippleEffect.period"),d.effectOffset=e/t.count(),d.z=o.getShallow("z")||0,d.zlevel=o.getShallow("zlevel")||0,d.symbolType=a,d.color=l,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn)this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d;else{this._effectCfg=null,this.stopEffectAnimation();var f=this.childAt(0),p=function(){f.trigger("emphasis"),"render"!==d.showEffectOn&&this.startEffectAnimation(d)},g=function(){f.trigger("normal"),"render"!==d.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",p,this).on("mouseout",g,this).on("emphasis",p,this).on("normal",g,this)}this._effectCfg=d},d.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},a.inherits(o,h),t.exports=o},function(t,e,n){function i(){this.group=new r.Group,this._lineEl=new s}var r=n(2),o=n(177),a=n(175),s=r.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(t,e){for(var n=e.segs,i=e.polyline,r=0;r<n.length;r++){var o=n[r];if(i){t.moveTo(o[0][0],o[0][1]);for(var a=1;a<o.length;a++)t.lineTo(o[a][0],o[a][1])}else t.moveTo(o[0][0],o[0][1]),o.length>2?t.quadraticCurveTo(o[2][0],o[2][1],o[1][0],o[1][1]):t.lineTo(o[1][0],o[1][1])}},findDataIndex:function(t,e){for(var n=this.shape,i=n.segs,r=n.polyline,s=Math.max(this.style.lineWidth,1),l=0;l<i.length;l++){var u=i[l];if(r){for(var c=1;c<u.length;c++)if(a.containStroke(u[c-1][0],u[c-1][1],u[c][0],u[c][1],s,t,e))return l}else if(u.length>2){if(o.containStroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,t,e))return l}else if(a.containStroke(u[0][0],u[0][1],u[1][0],u[1][1],s,t,e))return l}return-1}}),l=i.prototype;l.updateData=function(t){this.group.removeAll();var e=this._lineEl,n=t.hostModel;e.setShape({segs:t.mapArray(t.getItemLayout),polyline:n.get("polyline")}),e.useStyle(n.getModel("lineStyle.normal").getLineStyle());var i=t.getVisual("color");i&&e.setStyle("stroke",i),e.setStyle("fill"),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n)}),this.group.add(e)},l.updateLayout=function(t){var e=t.getData();this._lineEl.setShape({segs:e.mapArray(e.getItemLayout)})},l.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(){this.group=new r.Group,this._symbolEl=new a({})}var r=n(2),o=n(17),a=r.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var n=e.points,i=e.sizes,r=this.symbolProxy,o=r.shape,a=0;a<n.length;a++){var s=n[a];if(!isNaN(s[0])&&!isNaN(s[1])){var l=i[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,!0))}}},findDataIndex:function(t,e){for(var n=this.shape,i=n.points,r=n.sizes,o=i.length-1;o>=0;o--){var a=i[o],s=r[o],l=a[0]-s[0]/2,u=a[1]-s[1]/2;if(t>=l&&e>=u&&t<=l+s[0]&&e<=u+s[1])return o}return-1}}),s=i.prototype;s.updateData=function(t){this.group.removeAll();var e=this._symbolEl,n=t.hostModel;e.setShape({points:t.mapArray(t.getItemLayout),sizes:t.mapArray(function(e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array||(n=[n,n]),n})}),e.symbolProxy=o.createSymbol(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.useStyle(n.getModel("itemStyle.normal").getItemStyle(["color"]));var i=t.getVisual("color");i&&e.setColor(i),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(e.dataIndex=n)}),this.group.add(e)},s.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},s.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var r=n(2),o=n(5),a=r.Line.prototype,s=r.BezierCurve.prototype;t.exports=r.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){(i(e)?a:s).buildPath(t,e)},pointAt:function(t){return i(this.shape)?a.pointAt.call(this,t):s.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,n=i(e)?[e.x2-e.x1,e.y2-e.y1]:s.tangentAt.call(this,t);return o.normalize(n,n)}})},function(t,e,n){function i(t,e,n,i){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=n,this._createContent(t,e,i),this.updateData(t,e,i),this._seriesModel}function r(t,e,n){return s.map(t,function(t){return t=t.slice(),t[e]=n.initBaseline,t})}function o(t){var e={};return s.each(t,function(t,n){e["ends"+n]=t}),e}function a(t){this.group=new l.Group,this.styleUpdater=t}var s=n(0),l=n(2),u=n(14),c=u.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var n in e)if(e.hasOwnProperty(n)&&0===n.indexOf("ends")){var i=e[n];t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1])}}}),h=i.prototype;h._createContent=function(t,e,n){var i=t.getItemLayout(e),a="horizontal"===i.chartLayout?1:0,u=0;this.add(new l.Polygon({shape:{points:n?r(i.bodyEnds,a,i):i.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=s.map(i.whiskerEnds,function(t){return n?r(t,a,i):t});this.add(new c({shape:o(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},h.updateData=function(t,e,n){var i=this._seriesModel=t.hostModel,r=t.getItemLayout(e),a=l[n?"initProps":"updateProps"];a(this.childAt(this.bodyIndex),{shape:{points:r.bodyEnds}},i,e),a(this.childAt(this.whiskerIndex),{shape:o(r.whiskerEnds)},i,e),this.styleUpdater.call(null,this,t,e)},s.inherits(i,l.Group);var d=a.prototype;d.updateData=function(t){var e=this.group,n=this._data,r=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var o=new i(t,n,r,!0);t.setItemGraphicEl(n,o),e.add(o)}}).update(function(o,a){var s=n.getItemGraphicEl(a);if(!t.hasValue(o))return void e.remove(s);s?s.updateData(t,o):s=new i(t,o,r),e.add(s),t.setItemGraphicEl(o,s)}).remove(function(t){var i=n.getItemGraphicEl(t);i&&e.remove(i)}).execute(),this._data=t},d.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.exports=a},function(t,e,n){var i=n(0),r=n(1),o=r.PRIORITY;n(296),n(297),r.registerVisual(i.curry(n(45),"line","circle","line")),r.registerLayout(i.curry(n(105),"line")),r.registerProcessor(o.PROCESSOR.STATISTIC,i.curry(n(480),"line")),n(56)},function(t,e,n){"use strict";var i=n(28),r=n(13);t.exports=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){if(__DEV__){var n=t.coordinateSystem;if("polar"!==n&&"cartesian2d"!==n)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return i(t.data,this,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},function(t,e,n){"use strict";function i(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function r(t){return"number"==typeof t?t:t?.3:0}function o(t){var e=t.getGlobalExtent();if(t.onBand){var n=t.getBandWidth()/2-1,i=e[1]>e[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function a(t){return t>=0?1:-1}function s(t,e){var n=t.getBaseAxis(),i=t.getOtherAxis(n),r=n.onZero?0:i.scale.getExtent()[0],o=i.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(i,l){for(var u,c=e.stackedOn;c&&a(c.get(o,l))===a(i);){u=c;break}var h=[];return h[s]=e.get(n.dim,l),h[1-s]=u?u.get(o,l,!0):r,t.dataToPoint(h)},!0)}function l(t,e,n){var i=o(t.getAxis("x")),r=o(t.getAxis("y")),a=t.getBaseAxis().isHorizontal(),s=Math.min(i[0],i[1]),l=Math.min(r[0],r[1]),u=Math.max(i[0],i[1])-s,c=Math.max(r[0],r[1])-l,h=n.get("lineStyle.normal.width")||2,d=n.get("clipOverflow")?h/2:Math.max(u,c);a?(l-=d,c+=2*d):(s-=d,u+=2*d);var f=new m.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(f.shape[a?"width":"height"]=0,m.initProps(f,{shape:{width:u,height:c}},n)),f}function u(t,e,n){var i=t.getAngleAxis(),r=t.getRadiusAxis(),o=r.getExtent(),a=i.getExtent(),s=Math.PI/180,l=new m.Sector({shape:{cx:t.cx,cy:t.cy,r0:o[0],r:o[1],startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:i.inverse}});return e&&(l.shape.endAngle=-a[0]*s,m.initProps(l,{shape:{endAngle:-a[1]*s}},n)),l}function c(t,e,n){return"polar"===t.type?u(t,e,n):l(t,e,n)}function h(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;a<t.length-1;a++){var s=t[a+1],l=t[a];o.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],o.push(u);break;case"middle":var c=(l[r]+s[r])/2,h=[];u[r]=h[r]=c,u[1-r]=l[1-r],h[1-r]=s[1-r],o.push(u),o.push(h);break;default:u[r]=l[r],u[1-r]=s[1-r],o.push(u)}}return t[a]&&o.push(t[a]),o}function d(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()){for(var i,r=n.length-1;r>=0;r--)if(n[r].dimension<2){i=n[r];break}if(!i||"cartesian2d"!==e.type)return void(__DEV__&&console.warn("Visual map on line style only support x or y dimension."));var o=i.dimension,a=t.dimensions[o],s=e.getAxis(a),l=f.map(i.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),u=l.length,c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=l[0].coord-10,d=l[u-1].coord+10,p=d-h;if(p<.001)return"transparent";f.each(l,function(t){t.offset=(t.coord-h)/p}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var g=new m.LinearGradient(0,0,0,0,l,!0);return g[a]=h,g[a+"2"]=d,g}}var f=n(0),p=n(52),g=n(92),v=n(298),m=n(2),y=n(4),x=n(137),_=n(31);t.exports=_.extend({type:"line",init:function(){var t=new m.Group,e=new p;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var o=t.coordinateSystem,a=this.group,l=t.getData(),u=t.getModel("lineStyle.normal"),p=t.getModel("areaStyle.normal"),g=l.mapArray(l.getItemLayout,!0),v="polar"===o.type,m=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get("animation"),S=!p.isEmpty(),M=s(o,l),A=t.get("showSymbol"),I=A&&!v&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),T.setItemGraphicEl(e,null))}),A||y.remove(),a.add(b);var C=!v&&t.get("step");x&&m.type===o.type&&C===this._step?(S&&!_?_=this._newPolygon(g,M,o,w):_&&!S&&(b.remove(_),_=this._polygon=null),b.setClipPath(c(o,!1,t)),A&&y.updateData(l,I),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),i(this._stackedOnPoints,M)&&i(this._points,g)||(w?this._updateAnimation(l,M,o,n,C):(C&&(g=h(g,o,C),M=h(M,o,C)),x.setShape({points:g}),_&&_.setShape({points:g,stackedOnPoints:M})))):(A&&y.updateData(l,I),C&&(g=h(g,o,C),M=h(M,o,C)),x=this._newPolyline(g,o,w),S&&(_=this._newPolygon(g,M,o,w)),b.setClipPath(c(o,!0,t)));var D=d(l,o)||l.getVisual("color");x.useStyle(f.defaults(u.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"}));var L=t.get("smooth");if(L=r(t.get("smooth")),x.setShape({smooth:L,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var P=l.stackedOn,E=0;if(_.useStyle(f.defaults(p.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel"})),P){E=r(P.hostModel.get("smooth"))}_.setShape({smooth:L,stackedOnSmooth:E,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=o,this._stackedOnPoints=M,this._points=g,this._step=C},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=y.queryDataIndex(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;a=new g(r,o),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 _.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=y.queryDataIndex(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else _.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new x.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new x.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale("ordinal")[0];if(n&&n.isLabelIgnored)return f.bind(n.isLabelIgnored,n)},_updateAnimation:function(t,e,n,i,r){var o=this._polyline,a=this._polygon,s=t.hostModel,l=v(this._data,t,this._stackedOnPoints,e,this._coordSys,n),u=l.current,c=l.stackedOnCurrent,d=l.next,f=l.stackedOnNext;r&&(u=h(l.current,n,r),c=h(l.stackedOnCurrent,n,r),d=h(l.next,n,r),f=h(l.stackedOnNext,n,r)),o.shape.__points=l.current,o.shape.points=u,m.updateProps(o,{shape:{points:d}},s),a&&(a.setShape({points:u,stackedOnPoints:c}),m.updateProps(a,{shape:{points:d,stackedOnPoints:f}},s));for(var p=[],g=l.status,y=0;y<g.length;y++){if("="===g[y].cmd){var x=t.getItemGraphicEl(g[y].idx1);x&&p.push({el:x,ptIdx:y})}}o.animators&&o.animators.length&&o.animators[0].during(function(){for(var t=0;t<p.length;t++){p[t].el.attr("position",o.shape.__points[p[t].ptIdx])}})},remove:function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})},function(t,e){function n(t){return t>=0?1:-1}function i(t,e,i){for(var r,o=t.getBaseAxis(),a=t.getOtherAxis(o),s=o.onZero?0:a.scale.getExtent()[0],l=a.dim,u="x"===l||"radius"===l?1:0,c=e.stackedOn,h=e.get(l,i);c&&n(c.get(l,i))===n(h);){r=c;break}var d=[];return d[u]=e.get(o.dim,i),d[1-u]=r?r.get(l,i,!0):s,t.dataToPoint(d)}function r(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}t.exports=function(t,e,n,o,a,s){for(var l=r(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],v=s.dimensions,m=0;m<l.length;m++){var y=l[m],x=!0;switch(y.cmd){case"=":var _=t.getItemLayout(y.idx),b=e.getItemLayout(y.idx1);(isNaN(_[0])||isNaN(_[1]))&&(_=b.slice()),u.push(_),c.push(b),h.push(n[y.idx]),d.push(o[y.idx1]),g.push(e.getRawIndex(y.idx1));break;case"+":var w=y.idx;u.push(a.dataToPoint([e.get(v[0],w,!0),e.get(v[1],w,!0)])),c.push(e.getItemLayout(w).slice()),h.push(i(a,e,w)),d.push(o[w]),g.push(e.getRawIndex(w));break;case"-":var w=y.idx,S=t.getRawIndex(w);S!==w?(u.push(t.getItemLayout(w)),c.push(s.dataToPoint([t.get(v[0],w,!0),t.get(v[1],w,!0)])),h.push(n[w]),d.push(i(s,t,w)),g.push(S)):x=!1}x&&(f.push(y),p.push(p.length))}p.sort(function(t,e){return g[t]-g[e]});for(var M=[],A=[],I=[],T=[],C=[],m=0;m<p.length;m++){var w=p[m];M[m]=u[w],A[m]=c[w],I[m]=h[w],T[m]=d[w],C[m]=f[w]}return{current:M,next:A,stackedOnCurrent:I,stackedOnNext:T,status:C}}},function(t,e,n){n(300),n(301);var i=n(1);i.registerLayout(n(302)),i.registerVisual(n(303))},function(t,e,n){"use strict";function i(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(__DEV__&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=a.map(e,function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),a.mergeAll([n,t[0],t[1]])}))}var r=n(13),o=n(10),a=n(0),s=n(6),l=n(20),u=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.normal.color",init:function(t){i(t),u.superApply(this,"init",arguments)},mergeOption:function(t){i(t),u.superApply(this,"mergeOption",arguments)},getInitialData:function(t,e){if(__DEV__){if(!l.get(t.coordinateSystem))throw new Error("Unkown coordinate system "+t.coordinateSystem)}var n=new o(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),n},formatTooltip:function(t){var e=this.getData(),n=e.getItemModel(t),i=n.get("name");if(i)return i;var r=n.get("fromName"),o=n.get("toName"),a=[];return null!=r&&a.push(r),null!=o&&a.push(o),s.encodeHTML(a.join(" > "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})},function(t,e,n){var i=n(91),r=n(133),o=n(90),a=n(134),s=n(289),l=n(291);n(1).extendChartView({type:"lines",init:function(){},render:function(t,e,n){var u=t.getData(),c=this._lineDraw,h=t.get("effect.show"),d=t.get("polyline"),f=t.get("large")&&u.count()>=t.get("largeThreshold");__DEV__&&h&&f&&console.warn("Large lines not support effect"),h===this._hasEffet&&d===this._isPolyline&&f===this._isLarge||(c&&c.remove(),c=this._lineDraw=f?new l:new i(d?h?s:a:h?r:o),this._hasEffet=h,this._isPolyline=d,this._isLarge=f);var p=t.get("zlevel"),g=t.get("effect.trailLength"),v=n.getZr();if(v.painter.getLayer(p).clear(!0),null!=this._lastZlevel&&v.configLayer(this._lastZlevel,{motionBlur:!1}),h&&g){if(__DEV__){var m=!1;e.eachSeries(function(e){e!==t&&e.get("zlevel")===p&&(m=!0)}),m&&console.warn("Lines with trail effect should have an individual zlevel")}v.configLayer(p,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})}this.group.add(c.group),c.updateData(u),this._lastZlevel=p},updateLayout:function(t,e,n){this._lineDraw.updateLayout(t),n.getZr().painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(e,!0)},dispose:function(){}})},function(t,e){t.exports=function(t){t.eachSeriesByType("lines",function(t){var e=t.coordinateSystem,n=t.getData();n.each(function(i){var r=n.getItemModel(i),o=r.option instanceof Array?r.option:r.get("coords");if(__DEV__&&!(o instanceof Array&&o.length>0&&o[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(o)+". Lines must have 2d coords array in data item.");var a=[];if(t.get("polyline"))for(var s=0;s<o.length;s++)a.push(e.dataToPoint(o[s]));else{a[0]=e.dataToPoint(o[0]),a[1]=e.dataToPoint(o[1]);var l=r.get("lineStyle.normal.curveness");+l&&(a[2]=[(a[0][0]+a[1][0])/2-(a[0][1]-a[1][1])*l,(a[0][1]+a[1][1])/2-(a[1][0]-a[0][0])*l])}n.setItemLayout(i,a)})})}},function(t,e){function n(t){return t instanceof Array||(t=[t,t]),t}t.exports=function(t){t.eachSeriesByType("lines",function(t){var e=t.getData(),i=n(t.get("symbol")),r=n(t.get("symbolSize")),o="lineStyle.normal.opacity".split(".");e.setVisual("fromSymbol",i&&i[0]),e.setVisual("toSymbol",i&&i[1]),e.setVisual("fromSymbolSize",r&&r[0]),e.setVisual("toSymbolSize",r&&r[1]),e.setVisual("opacity",t.get(o)),e.each(function(t){var i=e.getItemModel(t),r=n(i.getShallow("symbol",!0)),a=n(i.getShallow("symbolSize",!0)),s=i.get(o);r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),a[0]&&e.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(t,"toSymbolSize",a[1]),e.setItemVisual(t,"opacity",s)})})}},function(t,e,n){var i=n(1),r=i.PRIORITY;n(305),n(306),n(126),n(68),i.registerLayout(n(309)),i.registerVisual(n(310)),i.registerProcessor(r.PROCESSOR.STATISTIC,n(308)),i.registerPreprocessor(n(307)),n(125)("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(t,e,n){var i=n(10),r=n(13),o=n(0),a=n(16),s=n(6),l=s.encodeHTML,u=s.addCommas,c=n(97),h=n(68),d=r.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(t){t=this._fillOption(t,this.getMapType()),this.option=t,d.superApply(this,"init",arguments),this.updateSelectedMap(t.data)},getInitialData:function(t){var e=a(["value"],t.data||[]),n=new i(e,this);return n.initData(t.data),n},mergeOption:function(t){t.data&&(t=this._fillOption(t,this.getMapType())),d.superCall(this,"mergeOption",t),this.updateSelectedMap(this.option.data)},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},_fillOption:function(t,e){return t=o.extend({},t),t.data=h.getFilledRegions(t.data,e),t},getRawValue:function(t){return this.getData().get("value",t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t){for(var e=this.getData(),n=u(this.getRawValue(t)),i=e.getName(t),r=this.seriesGroup,o=[],a=0;a<r.length;a++){var s=r[a].originalData.indexOfName(i);isNaN(r[a].originalData.get("value",s))||o.push(l(r[a].name))}return o.join(", ")+"<br />"+l(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});o.mixin(d,c),t.exports=d},function(t,e,n){var i=n(2),r=n(148);n(1).extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){var a=this._mapDraw;a&&o.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new r(n,!0);o.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var r=t.originalData,o=this.group;r.each("value",function(e,n){if(!isNaN(e)){var a=r.getItemLayout(n);if(a&&a.point){var s=a.point,l=a.offset,u=new i.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainSeries.getData(),h=r.getName(n),d=h,f=c.indexOfName(h),p=r.getItemModel(n),g=p.getModel("label.normal"),v=p.getModel("label.emphasis"),m=g.getModel("textStyle"),y=v.getModel("textStyle"),x=c.getItemGraphicEl(f);u.setStyle({textPosition:"bottom"});var _=function(){u.setStyle({text:v.get("show")?d:"",textFill:y.getTextColor(),textFont:y.getFont()})},b=function(){u.setStyle({text:g.get("show")?d:"",textFill:m.getTextColor(),textFont:m.getFont()})};x.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b),b()}o.add(u)}}})}})},function(t,e,n){var i=n(0);t.exports=function(t){var e=[];i.each(t.series,function(t){"map"===t.type&&e.push(t)}),i.each(e,function(t){t.map=t.map||t.mapType,i.defaults(t,t.mapLocation)})}},function(t,e,n){function i(t,e){var n={},i=["value"];return r.each(t,function(t){t.each(i,function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)})}),t[0].map(i,function(i,r){for(var o="ec-"+t[0].getName(r),a=0,s=1/0,l=-1/0,u=n[o].length,c=0;c<u;c++)s=Math.min(s,n[o][c]),l=Math.max(l,n[o][c]),a+=n[o][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?a/u:a,0===u?NaN:h})}var r=n(0);t.exports=function(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),r.each(e,function(t,e){for(var n=i(r.map(t,function(t){return t.getData()}),t[0].get("mapValueCalculation")),o=0;o<t.length;o++)t[o].originalData=t[o].getData();for(var o=0;o<t.length;o++)t[o].seriesGroup=t,t[o].needsDrawMap=0===o&&!t[o].getHostGeoModel(),t[o].setData(n.cloneShallow()),t[o].mainSeries=t[0]})}},function(t,e,n){var i=n(0);t.exports=function(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var o={};i.each(n.seriesGroup,function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each("value",function(t,e){var r=i.getName(e),a=n.getRegion(r);if(a&&!isNaN(t)){var s=o[r]||0,l=n.dataToPoint(a.center);o[r]=s+1,i.setItemLayout(e,{point:l,offset:s})}})});var a=n.getData();a.each(function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!o[e],a.setItemLayout(t,n)}),e[r]=!0}})}},function(t,e){t.exports=function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),n=t.getModel("itemStyle.normal"),i=n.get("areaColor"),r=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:r})})}},function(t,e,n){var i=n(1);n(153),n(312),n(313),i.registerVisual(n(314))},function(t,e,n){function i(t,e,n){var i=t.get("data"),o=r(e);i&&i.length&&s.each(n,function(t){if(t){var e=s.indexOf(i,t[o]);t[o]=e>=0?e:NaN}})}function r(t){return+t.replace("dim","")}function o(t,e){var n=0;s.each(t,function(t){var e=r(t);e>n&&(n=e)});var i=e[0];i&&i.length-1>n&&(n=i.length-1);for(var o=[],a=0;a<=n;a++)o.push("dim"+a);return o}var a=n(10),s=n(0),l=n(13),u=n(16);t.exports=l.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(t,e){var n=e.getComponent("parallel",this.get("parallelIndex")),r=n.parallelAxisIndex,l=t.data,c=n.dimensions,h=o(c,l),d=s.map(h,function(t,n){var o=s.indexOf(c,t),a=o>=0&&e.getComponent("parallelAxis",r[o]);return a&&"category"===a.get("type")?(i(a,t,l),{name:t,type:"ordinal"}):o<0&&u.guessOrdinal(l,n)?{name:t,type:"ordinal"}:t}),f=new a(d,this);return f.initData(l),this.option.progressive&&(this.option.animation=!1),f},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})},function(t,e,n){function i(t,e,n){var i=t.model,r=t.getRect(),o=new l.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),l.initProps(o,{shape:{width:r.width,height:r.height}},e,n),o}function r(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],l=t.get(a,e);s(l,i.getAxis(a).type)||r.push(i.dataToPoint(l,a))}return r}function o(t,e,n,i,o){var a=r(t,n,i,o),s=new l.Polyline({shape:{points:a},silent:!0,z2:10});e.add(s),t.setItemGraphicEl(n,s)}function a(t,e){var n=t.hostModel.getModel("lineStyle.normal"),i=n.getLineStyle();t.eachItemGraphicEl(function(r,o){if(t.hasItemOption){var a=t.getItemModel(o),s=a.getModel("lineStyle.normal",n);i=s.getLineStyle(["color","stroke"])}r.useStyle(u.extend(i,{fill:null,stroke:t.getItemVisual(o,"color"),opacity:t.getItemVisual(o,"opacity")})),r.shape.smooth=e})}function s(t,e){return"category"===e?null==t:null==t||isNaN(t)}var l=n(2),u=n(0),c=n(31).extend({type:"parallel",init:function(){this._dataGroup=new l.Group,this.group.add(this._dataGroup),this._data},render:function(t,e,n,i){this._renderForNormal(t,i)},dispose:function(){},_renderForNormal:function(t,e){function n(t){o(h,c,t,p,f)}function s(n,i){var o=d.getItemGraphicEl(i),a=r(h,n,p,f);h.setItemGraphicEl(n,o);var s=e&&!1===e.animation?null:t;l.updateProps(o,{shape:{points:a}},s,n)}function u(t){var e=d.getItemGraphicEl(t);c.remove(e)}var c=this._dataGroup,h=t.getData(),d=this._data,f=t.coordinateSystem,p=f.dimensions,g=t.option,v=g.smooth?.3:null;if(h.diff(d).add(n).update(s).remove(u).execute(),a(h,v),!this._data){var m=i(f,t,function(){setTimeout(function(){c.removeClipPath()})});c.setClipPath(m)}this._data=h},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});t.exports=c},function(t,e){var n=["lineStyle","normal","opacity"];t.exports=function(t){t.eachSeriesByType("parallel",function(e){var i=e.getModel("itemStyle.normal"),r=e.getModel("lineStyle.normal"),o=t.get("color"),a=r.get("color")||i.get("color")||o[e.seriesIndex%o.length],s=e.get("inactiveOpacity"),l=e.get("activeOpacity"),u=e.getModel("lineStyle.normal").getLineStyle(),c=e.coordinateSystem,h=e.getData(),d={normal:u.opacity,active:l,inactive:s};c.eachActiveState(h,function(t,e){var i=h.getItemModel(e),r=d[t];if("normal"===t){var o=i.get(n,!0);null!=o&&(r=o)}h.setItemVisual(e,"opacity",r)}),h.setVisual("color",a)})}},function(t,e,n){var i=n(0);n(101),n(246),n(247);var r=n(104),o=n(1);o.registerLayout(i.curry(r,"pictorialBar")),o.registerVisual(i.curry(n(45),"pictorialBar","roundRect",null)),n(56)},function(t,e,n){var i=n(0),r=n(1);n(317),n(318),n(125)("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),r.registerVisual(i.curry(n(108),"pie")),r.registerLayout(i.curry(n(320),"pie")),r.registerProcessor(i.curry(n(69),"pie"))},function(t,e,n){"use strict";var i=n(10),r=n(0),o=n(4),a=n(3),s=n(16),l=n(97),u=n(1).extendSeriesModel({type:"series.pie",init:function(t){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this.updateSelectedMap(this.option.data)},getInitialData:function(t,e){var n=s(["value"],t.data),r=new i(n,this);return r.initData(t.data),r},getDataParams:function(t){var e=this.getData(),n=u.superCall(this,"getDataParams",t),i=[];return e.each("value",function(t){i.push(t)}),n.percent=a.getPercentWithPrecision(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){o.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.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,percentPrecision:2,stillShowZeroSum:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationType:"expansion",animationEasing:"cubicOut",data:[]}});r.mixin(u,l),t.exports=u},function(t,e,n){function i(t,e,n,i){var o=e.getData(),a=this.dataIndex,s=o.getName(a),l=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),o.each(function(t){r(o.getItemGraphicEl(t),o.getItemLayout(t),e.isSelected(o.getName(t)),l,n)})}function r(t,e,n,i,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=n?i:0,u=[a*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function o(t,e){function n(){o.ignore=o.hoverIgnore,a.ignore=a.hoverIgnore}function i(){o.ignore=o.normalIgnore,a.ignore=a.normalIgnore}s.Group.call(this);var r=new s.Sector({z2:2}),o=new s.Polyline,a=new s.Text;this.add(r),this.add(o),this.add(a),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function a(t,e,n,i,r){var o=i.getModel("textStyle"),a="inside"===r||"inner"===r;return{fill:o.getTextColor()||(a?"#fff":t.getItemVisual(e,"color")),opacity:t.getItemVisual(e,"opacity"),textFont:o.getFont(),text:l.retrieve(t.hostModel.getFormattedLabel(e,n),t.getName(e))}}var s=n(2),l=n(0),u=o.prototype;u.updateData=function(t,e,n){function i(){a.stopAnimation(!0),a.animateTo({shape:{r:h.r+10}},300,"elasticOut")}function o(){a.stopAnimation(!0),a.animateTo({shape:{r:h.r}},300,"elasticOut")}var a=this.childAt(0),u=t.hostModel,c=t.getItemModel(e),h=t.getItemLayout(e),d=l.extend({},h);if(d.label=null,n){a.setShape(d);"scale"===u.getShallow("animationType")?(a.shape.r=h.r0,s.initProps(a,{shape:{r:h.r}},u,e)):(a.shape.endAngle=h.startAngle,s.updateProps(a,{shape:{endAngle:h.endAngle}},u,e))}else s.updateProps(a,{shape:d},u,e);var f=c.getModel("itemStyle"),p=t.getItemVisual(e,"color");a.useStyle(l.defaults({lineJoin:"bevel",fill:p},f.getModel("normal").getItemStyle())),a.hoverStyle=f.getModel("emphasis").getItemStyle();var g=c.getShallow("cursor");g&&a.attr("cursor",g),r(this,t.getItemLayout(e),c.get("selected"),u.get("selectedOffset"),u.get("animation")),a.off("mouseover").off("mouseout").off("emphasis").off("normal"),c.get("hoverAnimation")&&u.isAnimationEnabled()&&a.on("mouseover",i).on("mouseout",o).on("emphasis",i).on("normal",o),this._updateLabel(t,e),s.setHoverStyle(this)},u._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");s.updateProps(n,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},r,e),s.updateProps(i,{style:{x:u.x,y:u.y}},r,e),i.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u.textAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=o.getModel("label.normal"),d=o.getModel("label.emphasis"),f=o.getModel("labelLine.normal"),p=o.getModel("labelLine.emphasis"),g=h.get("position")||d.get("position");i.setStyle(a(t,e,"normal",h,g)),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!f.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:c,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(f.getModel("lineStyle").getLineStyle()),i.hoverStyle=a(t,e,"emphasis",d,g),n.hoverStyle=p.getModel("lineStyle").getLineStyle();var v=f.get("smooth");v&&!0===v&&(v=.4),n.setShape({smooth:v})},l.inherits(o,s.Group);var c=n(31).extend({type:"pie",init:function(){var t=new s.Group;this._sectorGroup=t},render:function(t,e,n,r){if(!r||r.from!==this.uid){var a=t.getData(),s=this._data,u=this.group,c=e.get("animation"),h=!s,d=t.get("animationType"),f=l.curry(i,this.uid,t,c,n),p=t.get("selectedMode");if(a.diff(s).add(function(t){var e=new o(a,t);h&&"scale"!==d&&e.eachChild(function(t){t.stopAnimation(!0)}),p&&e.on("click",f),a.setItemGraphicEl(t,e),u.add(e)}).update(function(t,e){var n=s.getItemGraphicEl(e);n.updateData(a,t),n.off("click"),p&&n.on("click",f),u.add(n),a.setItemGraphicEl(t,n)}).remove(function(t){var e=s.getItemGraphicEl(t);u.remove(e)}).execute(),c&&h&&a.count()>0&&"scale"!==d){var g=a.getItemLayout(0),v=Math.max(n.getWidth(),n.getHeight())/2,m=l.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,v,g.startAngle,g.clockwise,m,t))}this._data=a}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,a){var l=new s.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return s.initProps(l,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),l},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}}});t.exports=c},function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){function s(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function l(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("center"!==t[s].position){var u=Math.abs(t[s].y-i),c=t[s].len,h=t[s].len2,d=u<r+c?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-n);e&&d>=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*o,a=d}}t.sort(function(t,e){return t.y-e.y});for(var u,c=0,h=t.length,d=[],f=[],p=0;p<h;p++)u=t[p].y-c,u<0&&function(e,n,i,r){for(var o=e;o<n;o++)if(t[o].y+=i,o>e&&o+1<n&&t[o+1].y>t[o].y+t[o].height)return void s(o,i/2);s(n-1,i/2)}(p,h,-u),c=t[p].y+t[p].height;a-c<0&&s(h-1,c-a);for(var p=0;p<h;p++)t[p].y>=n?f.push(t[p]):d.push(t[p]);l(d,!1,e,n,i,r),l(f,!0,e,n,i,r)}function r(t,e,n,r,o,a){for(var s=[],l=[],u=0;u<t.length;u++)t[u].x<e?s.push(t[u]):l.push(t[u]);i(l,e,n,r,1,o,a),i(s,e,n,r,-1,o,a);for(var u=0;u<t.length;u++){var c=t[u].linePoints;if(c){var h=c[1][0]-c[2][0];t[u].x<e?c[2][0]=t[u].x+3:c[2][0]=t[u].x-3,c[1][1]=c[2][1]=t[u].y,c[1][0]=c[2][0]+h}}}var o=n(22);t.exports=function(t,e,n,i){var a,s,l=t.getData(),u=[],c=!1;l.each(function(n){var i,r,h,d,f=l.getItemLayout(n),p=l.getItemModel(n),g=p.getModel("label.normal"),v=g.get("position")||p.get("label.emphasis.position"),m=p.getModel("labelLine.normal"),y=m.get("length"),x=m.get("length2"),_=(f.startAngle+f.endAngle)/2,b=Math.cos(_),w=Math.sin(_);a=f.cx,s=f.cy;var S="inside"===v||"inner"===v;if("center"===v)i=f.cx,r=f.cy,d="center";else{var M=(S?(f.r+f.r0)/2*b:f.r*b)+a,A=(S?(f.r+f.r0)/2*w:f.r*w)+s;if(i=M+3*b,r=A+3*w,!S){var I=M+b*(y+e-f.r),T=A+w*(y+e-f.r),C=I+(b<0?-1:1)*x,D=T;i=C+(b<0?-5:5),r=D,h=[[M,A],[I,T],[C,D]]}d=S?"center":b>0?"left":"right"}var L=g.getModel("textStyle").getFont(),P=g.get("rotate")?b<0?-_+Math.PI:-_:0,E=t.getFormattedLabel(n,"normal")||l.getName(n),k=o.getBoundingRect(E,L,d,"top");c=!!P,f.label={x:i,y:r,position:v,height:k.height,len:y,len2:x,linePoints:h,textAlign:d,verticalAlign:"middle",font:L,rotation:P},S||u.push(f.label)}),!c&&t.get("avoidLabelOverlap")&&r(u,a,s,e,n,i)}},function(t,e,n){var i=n(3),r=i.parsePercent,o=n(319),a=n(0),s=2*Math.PI,l=Math.PI/180;t.exports=function(t,e,n,u){e.eachSeriesByType(t,function(t){var e=t.get("center"),u=t.get("radius");a.isArray(u)||(u=[0,u]),a.isArray(e)||(e=[e,e]);var c=n.getWidth(),h=n.getHeight(),d=Math.min(c,h),f=r(e[0],c),p=r(e[1],h),g=r(u[0],d/2),v=r(u[1],d/2),m=t.getData(),y=-t.get("startAngle")*l,x=t.get("minAngle")*l,_=0;m.each("value",function(t){!isNaN(t)&&_++});var b=m.getSum("value"),w=Math.PI/(b||_)*2,S=t.get("clockwise"),M=t.get("roseType"),A=t.get("stillShowZeroSum"),I=m.getDataExtent("value");I[0]=0;var T=s,C=0,D=y,L=S?1:-1;if(m.each("value",function(t,e){var n;if(isNaN(t))return void m.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:f,cy:p,r0:g,r:M?NaN:v});n="area"!==M?0===b&&A?w:t*w:s/_,n<x?(n=x,T-=x):C+=t;var r=D+L*n;m.setItemLayout(e,{angle:n,startAngle:D,endAngle:r,clockwise:S,cx:f,cy:p,r0:g,r:M?i.linearMap(t,I,[g,v]):v}),D=r},!0),T<s&&_)if(T<=.001){var P=s/_;m.each("value",function(t,e){if(!isNaN(t)){var n=m.getItemLayout(e);n.angle=P,n.startAngle=y+L*e*P,n.endAngle=y+L*(e+1)*P}})}else w=T/C,D=y,m.each("value",function(t,e){if(!isNaN(t)){var n=m.getItemLayout(e),i=n.angle===x?x:t*w;n.startAngle=D,n.endAngle=D+L*i,D+=L*i}});o(t,v,c,h)})}},function(t,e,n){var i=n(0),r=n(1);n(398),n(322),n(323),r.registerVisual(i.curry(n(108),"radar")),r.registerVisual(i.curry(n(45),"radar","circle",null)),r.registerLayout(n(325)),r.registerProcessor(i.curry(n(69),"radar")),r.registerPreprocessor(n(324))},function(t,e,n){"use strict";var i=n(13),r=n(10),o=n(16),a=n(0),s=n(6).encodeHTML,l=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){var n=t.data||[],i=o([],n,{extraPrefix:"indicator_",extraFromZero:!0}),a=new r(i,this);return a.initData(n),a},formatTooltip:function(t){var e=this.getRawValue(t),n=this.coordinateSystem,i=n.getIndicatorAxes(),r=this.getData().getName(t);return s(""===r?this.name:r)+"<br/>"+a.map(i,function(t,n){return s(t.name+" : "+e[n])}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}});t.exports=l},function(t,e,n){function i(t){return o.isArray(t)||(t=[+t,+t]),t}var r=n(2),o=n(0),a=n(17);t.exports=n(1).extendChartView({type:"radar",render:function(t,e,n){function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle",r=t.getItemVisual(e,"color");if("none"!==n){var o=a.createSymbol(n,-.5,-.5,1,1,r);return o.attr({style:{strokeNoScale:!0},z2:100,scale:i(t.getItemVisual(e,"symbolSize"))}),o}}function l(e,n,i,o,a,l){i.removeAll();for(var u=0;u<n.length-1;u++){var c=s(o,a);c&&(c.__dimIdx=u,e[u]?(c.attr("position",e[u]),r[l?"initProps":"updateProps"](c,{position:n[u]},t,a)):c.attr("position",n[u]),i.add(c))}}function u(t){return o.map(t,function(t){return[c.cx,c.cy]})}var c=t.coordinateSystem,h=this.group,d=t.getData(),f=this._data;d.diff(f).add(function(e){var n=d.getItemLayout(e);if(n){var i=new r.Polygon,o=new r.Polyline,a={shape:{points:n}};i.shape.points=u(n),o.shape.points=u(n),r.initProps(i,a,t,e),r.initProps(o,a,t,e);var s=new r.Group,c=new r.Group;s.add(o),s.add(i),s.add(c),l(o.shape.points,n,c,d,e,!0),d.setItemGraphicEl(e,s)}}).update(function(e,n){var i=f.getItemGraphicEl(n),o=i.childAt(0),a=i.childAt(1),s=i.childAt(2),u={shape:{points:d.getItemLayout(e)}};u.shape.points&&(l(o.shape.points,u.shape.points,s,d,e,!1),r.updateProps(o,u,t),r.updateProps(a,u,t),d.setItemGraphicEl(e,i))}).remove(function(t){h.remove(f.getItemGraphicEl(t))}).execute(),d.eachItemGraphicEl(function(e,n){function i(){u.attr("ignore",m)}function a(){u.attr("ignore",v)}var s=d.getItemModel(n),l=e.childAt(0),u=e.childAt(1),c=e.childAt(2),f=d.getItemVisual(n,"color");h.add(e),l.useStyle(o.defaults(s.getModel("lineStyle.normal").getLineStyle(),{fill:"none",stroke:f})),l.hoverStyle=s.getModel("lineStyle.emphasis").getLineStyle();var p=s.getModel("areaStyle.normal"),g=s.getModel("areaStyle.emphasis"),v=p.isEmpty()&&p.parentModel.isEmpty(),m=g.isEmpty()&&g.parentModel.isEmpty();m=m&&v,u.ignore=v,u.useStyle(o.defaults(p.getAreaStyle(),{fill:f,opacity:.7})),u.hoverStyle=g.getAreaStyle();var y=s.getModel("itemStyle.normal").getItemStyle(["color"]),x=s.getModel("itemStyle.emphasis").getItemStyle(),_=s.getModel("label.normal"),b=s.getModel("label.emphasis");c.eachChild(function(e){e.setStyle(y),e.hoverStyle=o.clone(x);var i=d.get(d.dimensions[e.__dimIdx],n);r.setText(e.style,_,f),e.setStyle({text:_.get("show")?o.retrieve(t.getFormattedLabel(n,"normal",null,e.__dimIdx),i):""}),r.setText(e.hoverStyle,b,f),e.hoverStyle.text=b.get("show")?o.retrieve(t.getFormattedLabel(n,"emphasis",null,e.__dimIdx),i):""}),e.off("mouseover").off("mouseout").off("normal").off("emphasis"),e.on("emphasis",i).on("mouseover",i).on("normal",a).on("mouseout",a),r.setHoverStyle(e)}),this._data=d},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}})},function(t,e,n){var i=n(0);t.exports=function(t){var e=t.polar;if(e){i.isArray(e)||(e=[e]);var n=[];i.each(e,function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],i.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}i.each(t.series,function(t){"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("radar",function(t){function e(t,e){i[e]=i[e]||[],i[e][o]=r.dataToPoint(t,o)}var n=t.getData(),i=[],r=t.coordinateSystem;if(r){for(var o=0;o<r.getIndicatorAxes().length;o++){var a=n.dimensions[o];n.each(a,e)}n.each(function(t){i[t][0]&&i[t].push(i[t][0].slice()),n.setItemLayout(t,i[t])})}})}},function(t,e,n){var i=n(1);n(327),n(328),i.registerLayout(n(329)),i.registerVisual(n(330))},function(t,e,n){var i=n(13),r=n(135),o=n(6).encodeHTML,a=i.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(t){var e=t.edges||t.links,n=t.data||t.nodes;if(n&&e){return r(n,e,this,!0).data}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getDataParams(t,n),r=i.data,s=r.source+" -- "+r.target;return i.value&&(s+=" : "+i.value),o(s)}return a.superCall(this,"formatTooltip",t,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodeWidth:20,nodeGap:8,layoutIterations:32,label:{normal:{show:!0,position:"right",textStyle:{color:"#000",fontSize:12}},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:1,borderColor:"#333"}},lineStyle:{normal:{color:"#314656",opacity:.2,curveness:.5},emphasis:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}});t.exports=a},function(t,e,n){function i(t,e,n){var i=new r.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return r.initProps(i,{shape:{width:t.width+20,height:t.height+20}},e,n),i}var r=n(2),o=n(0),a=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildPath:function(t,e){var n=e.extent/2;t.moveTo(e.x1,e.y1-n),t.bezierCurveTo(e.cpx1,e.cpy1-n,e.cpx2,e.cpy2-n,e.x2,e.y2-n),t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n),t.closePath()}});t.exports=n(1).extendChartView({type:"sankey",_model:null,render:function(t,e,n){var s=t.getGraph(),l=this.group,u=t.layoutInfo,c=t.getData(),h=t.getData("edge");this._model=t,l.removeAll(),l.position=[u.x,u.y],s.eachEdge(function(e){var n=new a;n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var i=e.getModel("lineStyle.normal"),o=i.get("curveness"),s=e.node1.getLayout(),u=e.node2.getLayout(),c=e.getLayout();n.shape.extent=Math.max(1,c.dy);var d=s.x+s.dx,f=s.y+c.sy+c.dy/2,p=u.x,g=u.y+c.ty+c.dy/2,v=d*(1-o)+p*o,m=f,y=d*o+p*(1-o),x=g;switch(n.setShape({x1:d,y1:f,x2:p,y2:g,cpx1:v,cpy1:m,cpx2:y,cpy2:x}),n.setStyle(i.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color");break;case"target":n.style.fill=e.node2.getVisual("color")}r.setHoverStyle(n,e.getModel("lineStyle.emphasis").getItemStyle()),l.add(n),h.setItemGraphicEl(e.dataIndex,n)}),s.eachNode(function(e){var n=e.getLayout(),i=e.getModel(),a=i.getModel("label.normal"),s=a.getModel("textStyle"),u=i.getModel("label.emphasis"),h=u.getModel("textStyle"),d=new r.Rect({shape:{x:n.x,y:n.y,width:e.getLayout().dx,height:e.getLayout().dy},style:{text:a.get("show")?t.getFormattedLabel(e.dataIndex,"normal")||e.id:"",textFont:s.getFont(),textFill:s.getTextColor(),textPosition:a.get("position")}});d.setStyle(o.defaults({fill:e.getVisual("color")},i.getModel("itemStyle.normal").getItemStyle())),r.setHoverStyle(d,o.extend(e.getModel("itemStyle.emphasis"),{text:u.get("show")?t.getFormattedLabel(e.dataIndex,"emphasis")||e.id:"",textFont:h.getFont(),textFill:h.getTextColor(),textPosition:u.get("position")})),l.add(d),c.setItemGraphicEl(e.dataIndex,d),d.dataType="node"}),!this._data&&t.get("animation")&&l.setClipPath(i(l.getBoundingRect(),t,function(){l.removeClipPath()})),this._data=t.getData()},dispose:function(){}})},function(t,e,n){function i(t,e){return M.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function r(t,e,n,i,r,o,s){a(t,n,r),u(t,e,o,i,s),v(t)}function o(t){I.each(t,function(t){var e=x(t.outEdges,S),n=x(t.inEdges,S),i=Math.max(e,n);t.setLayout({value:i},!0)})}function a(t,e,n){for(var i=t,r=null,o=0,a=0;i.length;){r=[];for(var u=0,c=i.length;u<c;u++){var h=i[u];h.setLayout({x:o},!0),h.setLayout({dx:e},!0);for(var d=0,f=h.outEdges.length;d<f;d++)r.push(h.outEdges[d].node2)}i=r,++o}s(t,o),a=(n-e)/(o-1),l(t,a)}function s(t,e){I.each(t,function(t){t.outEdges.length||t.setLayout({x:e-1},!0)})}function l(t,e){I.each(t,function(t){var n=t.getLayout().x*e;t.setLayout({x:n},!0)})}function u(t,e,n,i,r){var o=A().key(function(t){return t.getLayout().x}).sortKeys(w).entries(t).map(function(t){return t.values});c(t,o,e,n,i),h(o,i,n);for(var a=1;r>0;r--)a*=.99,d(o,a),h(o,i,n),p(o,a),h(o,i,n)}function c(t,e,n,i,r){var o=[];I.each(e,function(t){var e=t.length,n=0;I.each(t,function(t){n+=t.getLayout().value});var a=(i-(e-1)*r)/n;o.push(a)}),o.sort(function(t,e){return t-e});var a=o[0];I.each(e,function(t){I.each(t,function(t,e){t.setLayout({y:e},!0);var n=t.getLayout().value*a;t.setLayout({dy:n},!0)})}),I.each(n,function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)})}function h(t,e,n){I.each(t,function(t){var i,r,o,a=0,s=t.length;for(t.sort(b),o=0;o<s;o++){if(i=t[o],(r=a-i.getLayout().y)>0){var l=i.getLayout().y+r;i.setLayout({y:l},!0)}a=i.getLayout().y+i.getLayout().dy+e}if((r=a-e-n)>0){var l=i.getLayout().y-r;for(i.setLayout({y:l},!0),a=i.getLayout().y,o=s-2;o>=0;--o)i=t[o],r=i.getLayout().y+i.getLayout().dy+e-a,r>0&&(l=i.getLayout().y-r,i.setLayout({y:l},!0)),a=i.getLayout().y}})}function d(t,e){I.each(t.slice().reverse(),function(t){I.each(t,function(t){if(t.outEdges.length){var n=x(t.outEdges,f)/x(t.outEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function f(t){return _(t.node2)*t.getValue()}function p(t,e){I.each(t,function(t){I.each(t,function(t){if(t.inEdges.length){var n=x(t.inEdges,g)/x(t.inEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function g(t){return _(t.node1)*t.getValue()}function v(t){I.each(t,function(t){t.outEdges.sort(m),t.inEdges.sort(y)}),I.each(t,function(t){var e=0,n=0;I.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),I.each(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}function m(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function y(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function x(t,e){for(var n=0,i=t.length,r=-1;++r<i;){var o=+e.call(t,t[r],r);isNaN(o)||(n+=o)}return n}function _(t){return t.getLayout().y+t.getLayout().dy/2}function b(t,e){return t.getLayout().y-e.getLayout().y}function w(t,e){return t<e?-1:t>e?1:t===e?0:NaN}function S(t){return t.getValue()}var M=n(7),A=n(170),I=n(0);t.exports=function(t,e,n){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),s=i(t,e);t.layoutInfo=s;var l=s.width,u=s.height,c=t.getGraph(),h=c.nodes,d=c.edges;o(h),r(h,d,n,a,l,u,0!==I.filter(h,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"))})}},function(t,e,n){var i=n(37),r=n(0);t.exports=function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes;n.sort(function(t,e){return t.getLayout().value-e.getLayout().value});var o=n[0].getLayout().value,a=n[n.length-1].getLayout().value;r.each(n,function(e){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),r=n.mapValueToVisual(e.getLayout().value);e.setVisual("color",r);var s=e.getModel(),l=s.get("itemStyle.normal.color");null!=l&&e.setVisual("color",l)})})}},function(t,e,n){var i=n(0),r=n(1);n(332),n(333),r.registerVisual(i.curry(n(45),"scatter","circle",null)),r.registerLayout(i.curry(n(105),"scatter")),n(56)},function(t,e,n){"use strict";var i=n(28),r=n(13);t.exports=r.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(t,e,n){var i=n(52),r=n(292);n(1).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new i,this._largeSymbolDraw=new r},render:function(t,e,n){var i=t.getData(),r=this._largeSymbolDraw,o=this._normalSymbolDraw,a=this.group,s=t.get("large")&&i.count()>t.get("largeThreshold")?r:o;this._symbolDraw=s,s.updateData(i),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)},dispose:function(){}})},function(t,e,n){var i=n(1),r=n(0);n(154),n(335),n(336),i.registerLayout(n(337)),i.registerVisual(n(338)),i.registerProcessor(r.curry(n(69),"themeRiver"))},function(t,e,n){"use strict";var i=n(16),r=n(13),o=n(10),a=n(0),s=n(6),l=s.encodeHTML,u=n(170),c=r.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){c.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=u().key(function(t){return t[2]}).entries(t),i=a.map(n,function(t){return{name:t.key,dataList:t.values}}),r=i.length,o=-1,s=-1,l=0;l<r;++l){var c=i[l].dataList.length;c>o&&(o=c,s=l)}for(var h=0;h<r;++h)if(h!==s)for(var d=i[h].name,f=0;f<o;++f){for(var p=i[s].dataList[f][0],g=i[h].dataList.length,v=-1,m=0;m<g;++m){var y=i[h].dataList[m][0];if(y===p){v=m;break}}-1===v&&(t[e]=[],t[e][0]=p,t[e][1]=0,t[e][2]=d,e++)}return t},getInitialData:function(t,e){var n=[],r=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],s=r.get("type");n=[{name:"time",type:"category"===s?"ordinal":"time"===s?"time":"float"},{name:"value",type:"float"},{name:"name",type:"ordinal"}];for(var l=a.filter(t.data,function(t){return void 0!==t[2]}),u=this.fixData(l||[]),c=[],h=this.nameMap=a.createHashMap(),d=0,f=0;f<u.length;++f)c.push(u[f][2]),h.get(u[f][2])||(h.set(u[f][2],d),d++);n=i(n,u);var p=new o(n,this);return p.initData(u,c),p},coordDimToDataDim:function(t){return["time"]},getLayerSeries:function(){function t(t,n){return e.get("time",t)-e.get("time",n)}for(var e=this.getData(),n=e.count(),i=[],r=0;r<n;++r)i[r]=r;for(var o=u().key(function(t){return e.get("name",t)}).entries(i),s=a.map(o,function(t){return{name:t.key,indices:t.values}}),l=0;l<s.length;++l)s[l].indices.sort(t);return s},getAxisTooltipData:function(t,e,n){a.isArray(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,h=-1,d=o[u].indices.length,f=0;f<d;++f){var p=r.get(t[0],o[u].indices[f]),g=Math.abs(p-e);g<=c&&(i=p,c=g,h=o[u].indices[f])}s.push(h)}return{dataIndices:s,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),n=e.get("name",t),i=e.get("value",t);return(isNaN(i)||null==i)&&(i="-"),l(n+" : "+i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{normal:{margin:4,textAlign:"right",show:!0,position:"left",textStyle:{color:"#000",fontSize:11}},emphasis:{show:!0}}}});t.exports=c},function(t,e,n){function i(t,e,n){var i=new o.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return o.initProps(i,{shape:{width:t.width+20,height:t.height+20}},e,n),i}var r=n(137),o=n(2),a=n(0),s=n(58);t.exports=n(1).extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,n){function l(t){return t.name}function u(e,n,s){var l=this._layers;if("remove"===e)return void d.remove(l[n]);for(var u,p=[],g=[],v=f[n].indices,m=0;m<v.length;m++){var x=c.getItemLayout(v[m]),_=x.x,b=x.y0,w=x.y;p.push([_,b]),g.push([_,b+w]),u=h.getItemVisual(v[m],"color")}var S,M,A=c.getItemLayout(v[0]),I=c.getItemModel(v[m-1]),T=I.getModel("label.normal"),C=T.get("margin");if("add"===e){var D=y[n]=new o.Group;S=new r.Polygon({shape:{points:p,stackedOnPoints:g,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M=new o.Text({style:{x:A.x-C,y:A.y0+A.y/2}}),D.add(S),D.add(M),d.add(D),S.setClipPath(i(S.getBoundingRect(),t,function(){S.removeClipPath()}))}else{var D=l[s];S=D.childAt(0),M=D.childAt(1),d.add(D),y[n]=D,o.updateProps(S,{shape:{points:p,stackedOnPoints:g}},t),o.updateProps(M,{style:{x:A.x-C,y:A.y0+A.y/2}},t)}var L=I.getModel("itemStyle.emphasis"),P=I.getModel("itemStyle.normal"),E=T.getModel("textStyle");M.setStyle({text:T.get("show")?t.getFormattedLabel(v[m-1],"normal")||c.getName(v[m-1]):"",textFont:E.getFont(),textAlign:T.get("textAlign"),textVerticalAlign:"middle"}),S.setStyle(a.extend({fill:u},P.getItemStyle(["color"]))),o.setHoverStyle(S,L.getItemStyle())}var c=t.getData(),h=t.getRawData();if(c.count()){var d=this.group,f=t.getLayerSeries(),p=c.getLayout("layoutInfo"),g=p.rect,v=p.boundaryGap;d.attr("position",[0,g.y+v[0]]);var m=new s(this._layersSeries||[],f,l,l),y={};m.add(a.bind(a.curry(u,"add"),this)).update(a.bind(a.curry(u,"update"),this)).remove(a.bind(a.curry(u,"remove"),this)).execute(),this._layersSeries=f,this._layers=y}},dispose:function(){}})},function(t,e,n){function i(t,e,n){if(t.count())for(var i,a=e.coordinateSystem,s=e.getLayerSeries(),l=o.map(s,function(e){return o.map(e.indices,function(e){var n=a.dataToPoint(t.get("time",e));return n[1]=t.get("value",e),n})}),u=r(l),c=u.y0,h=n/u.max,d=s.length,f=s[0].indices.length,p=0;p<f;++p){i=c[p]*h,t.setItemLayout(s[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:i,y:l[0][p][1]*h});for(var g=1;g<d;++g)i+=l[g-1][p][1]*h,t.setItemLayout(s[g].indices[p],{layerIndex:g,x:l[g][p][0],y0:i,y:l[g][p][1]*h})}}function r(t){for(var e,n=t.length,i=t[0].length,r=[],o=[],a=0,s={},l=0;l<i;++l){for(var u=0,e=0;u<n;++u)e+=t[u][l][1];e>a&&(a=e),r.push(e)}for(var c=0;c<i;++c)o[c]=(a-r[c])/2;a=0;for(var h=0;h<i;++h){var d=r[h]+o[h];d>a&&(a=d)}return s.y0=o,s.max=a,s}var o=n(0),a=n(3);t.exports=function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,r={},o=n.getRect();r.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(r.boundaryGap=s,"horizontal"===l.orient){s[0]=a.parsePercent(s[0],o.height),s[1]=a.parsePercent(s[1],o.height);i(e,t,o.height-s[0]-s[1])}else{s[0]=a.parsePercent(s[0],o.width),s[1]=a.parsePercent(s[1],o.width);i(e,t,o.width-s[0]-s[1])}e.setLayout("layoutInfo",r)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.getRawData(),i=t.get("color");e.each(function(r){var o=e.getName(r),a=i[(t.nameMap.get(o)-1)%i.length];n.setItemVisual(r,"color",a)})})}},function(t,e,n){var i=n(1);n(341),n(342),n(343),i.registerVisual(n(345)),i.registerLayout(n(344))},function(t,e,n){function i(t){this.group=new a.Group,t.add(this.group)}function r(t,e,n,i,r,o){var a=[[r?t:t-c,e],[t+n,e],[t+n,e+i],[r?t:t-c,e+i]];return!o&&a.splice(2,0,[t+n+c,e+i/2]),!r&&a.push([t,e+i/2]),a}function o(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&u.wrapTreePathInfo(n,e)}}var a=n(2),s=n(7),l=n(0),u=n(42),c=5;i.prototype={constructor:i,render:function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle.normal"),l=a.getModel("textStyle"),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,a,l,i),s.positionElement(o,u.pos,u.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(t,e,n,i,u){for(var c=0,h=e.emptyItemWidth,d=t.get("breadcrumb.height"),f=s.getAvailableSize(e.pos,e.box),p=e.totalWidth,g=e.renderList,v=g.length-1;v>=0;v--){var m=g[v],y=m.node,x=m.width,_=m.text;p>f.width&&(p-=x-h,x=h,_="");var b=new a.Polygon({shape:{points:r(c,0,x,d,v===g.length-1,0===v)},style:l.defaults(n.getItemStyle(),{lineJoin:"bevel",text:_,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:l.curry(u,y)});this.group.add(b),o(b,t,y),c+=x+8}},remove:function(){this.group.removeAll()}},t.exports=i},function(t,e,n){function i(t){var e=0;s.each(t.children,function(t){i(t);var n=t.value;s.isArray(n)&&(n=n[0]),e+=n});var n=t.value;s.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s.isArray(t.value)?t.value[0]=n:t.value=n}function r(t,e){var n=e.get("color");if(n){t=t||[];var i;if(s.each(t,function(t){var e=new l(t),n=e.get("color");(e.get("itemStyle.normal.color")||n&&"none"!==n)&&(i=!0)}),!i){(t[0]||(t[0]={})).color=n.slice()}return t}}var o=n(13),a=n(466),s=n(0),l=n(8),u=n(6),c=n(42),h=u.encodeHTML,d=u.addCommas;t.exports=o.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:"inside",textStyle:{color:"#fff",ellipsis:!0}}},upperLabel:{normal:{show:!1,position:[0,"50%"],height:20,textStyle:{color:"#fff",ellipsis:!0,baseline:"middle"}},emphasis:{show:!0,position:[0,"50%"],textStyle:{color:"#fff",ellipsis:!0,baseline:"middle"}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};i(n);var o=t.levels||[];return o=t.levels=r(o,e),a.createTree(n,this,o).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=d(s.isArray(n)?n[0]:n),r=e.getName(t);return h(r+": "+i)},getDataParams:function(t){var e=o.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c.wrapTreePathInfo(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=s.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}})},function(t,e,n){function i(){return{nodeGroup:[],background:[],content:[]}}function r(t,e,n,i,r,l,u,c,h,d){function f(t,e){P?!t.invisible&&l.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function p(e,n,i,r,o,s){var l=u.getModel(),c=a.retrieve(t.getFormattedLabel(u.dataIndex,"normal",null,null,s?"upperLabel":"label"),l.get("name"));if(!s&&T.isLeafRoot){var h=t.get("drillDownIcon",!0);c=h?h+" "+c:c}g(c,e,l,s?b:x,i,r,o,s),g(c,n,l,s?w:_,i,r,o,s)}function g(t,e,n,i,r,o,l,u){var c=n.getModel(i),h=c.getModel("textStyle");s.setText(e,c,r),e.textAlign=h.get("align"),e.textVerticalAlign=h.get("baseline"),u&&(e.textPositionRect=a.clone(u));var d=h.getTextRect(t);!c.getShallow("show")||d.height>l?e.text="":d.width>o?e.text=h.get("ellipsis")?h.truncateText(t,o,null,{minChar:2}):"":e.text=t}function y(t,i,a,s){var l=null!=k&&n[t][k],u=r[t];return l?(n[t][k]=null,S(u,l,t)):P||(l=new i({z:o(a,s)}),l.__tmDepth=a,l.__tmStorageName=t,I(u,l,t)),e[t][E]=l}function S(t,e,n){(t[E]={}).old="nodeGroup"===n?e.position.slice():a.extend({},e.shape)}function I(t,e,n){var o=t[E]={},a=u.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,l=0,c=r.background[a.getRawIndex()];!i&&c&&c.old&&(s=c.old.width,l=c.old.height),o.old="nodeGroup"===n?[0,l]:{x:s,y:l,width:0,height:0}}o.fadein="nodeGroup"!==n}if(u){var T=u.getLayout();if(T&&T.isInView){var C=T.width,D=T.height,L=T.borderWidth,P=T.invisible,E=u.getRawIndex(),k=c&&c.getRawIndex(),O=u.viewChildren,N=T.upperHeight,V=O&&O.length,R=u.getModel("itemStyle.emphasis"),z=y("nodeGroup",v);if(z){if(h.add(z),z.attr("position",[T.x||0,T.y||0]),z.__tmNodeWidth=C,z.__tmNodeHeight=D,T.isAboveViewRoot)return z;var B=y("background",m,d,M);if(B&&function(e,n,i){n.dataIndex=u.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:C,height:D});var r=u.getVisual("borderColor",!0),o=R.get("borderColor");f(n,function(){var t={fill:r},e={fill:o};if(i){var a=C-2*L;p(t,e,r,a,N,{x:L,y:0,width:a,height:N})}else t.text=e.text="";n.setStyle(t),s.setHoverStyle(n,e)}),e.add(n)}(z,B,V&&T.upperHeight),!V){var G=y("content",m,d,A);G&&function(e,n){n.dataIndex=u.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(C-2*L,0),r=Math.max(D-2*L,0);n.culling=!0,n.setShape({x:L,y:L,width:i,height:r});var o=u.getVisual("color",!0);f(n,function(){var t={fill:o},e=R.getItemStyle();p(t,e,o,i,r),n.setStyle(t),s.setHoverStyle(n,e)}),e.add(n)}(z,G)}return z}}}}function o(t,e){var n=t*S+e;return(n-1)/n}var a=n(0),s=n(2),l=n(58),u=n(42),c=n(340),h=n(66),d=n(9),f=n(18),p=n(484),g=a.bind,v=s.Group,m=s.Rect,y=a.each,x=["label","normal"],_=["label","emphasis"],b=["upperLabel","normal"],w=["upperLabel","emphasis"],S=10,M=1,A=2;t.exports=n(1).extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=i(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(a.indexOf(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=u.retrieveTargetInfo(i,t),s=i&&i.type,l=t.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===s&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,f=this._giveContainerGroup(l),p=this._doRender(f,t,d);c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(f,p,t,d),this._resetController(n),this._renderBreadcrumb(t,n,o)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new v,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){function o(t,e,n,i,r){function s(t){return t.getId()}function u(a,s){var l=null!=a?t[a]:null,u=null!=s?e[s]:null,c=g(l,u,n,r);c&&o(l&&l.viewChildren||[],u&&u.viewChildren||[],c,i,r+1)}i?(e=t,y(t,function(t,e){!t.isRemoved()&&u(e,e)})):new l(e,t,s,s).add(u).update(u).remove(a.curry(u,null)).execute()}function s(){y(v,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(p,function(t){t.invisible=!0,t.dirty()})}var u=e.getData().tree,c=this._oldTree,h=i(),d=i(),f=this._storage,p=[],g=a.curry(r,e,d,f,n,h,p);o(u.root?[u.root]:[],c&&c.root?[c.root]:[],t,u===c||!c,0);var v=function(t){var e=i();return t&&y(t,function(t,n){var i=e[n];y(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}(f);return this._oldTree=u,this._storage=d,{lastsForAnimation:h,willDeleteEls:v,renderFinally:s}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),s=p.createWrap();y(e.willDeleteEls,function(t,e){y(t,function(t,n){if(!t.invisible){var a,l=t.parent;if(i&&"drillDown"===i.direction)a=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),a="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}a&&s.add(t,a,r,o)}})}),y(this._storage,function(t,n){y(t,function(t,i){var l=e.lastsForAnimation[n][i],u={};l&&("nodeGroup"===n?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=a.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,r,o))})},this),this._state="animating",s.done(g(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new h(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",g(this._onPan,this)),e.on("zoom",g(this._onZoom,this)));var n=new d(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,i){return n.contain(e,i)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t,e){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(t)>3||Math.abs(e)>3)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t,y:i.y+e,width:i.width,height:i.height}})}},_onZoom:function(t,e,n){if(this._mayClick=!1,"animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new d(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=f.create();f.translate(s,s,[-e,-n]),f.scale(s,s,[t,t]),f.translate(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){function e(t){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&window.open(o,a)}}}}t.on("mousedown",function(t){"ready"===this._state&&(this._mayClick=!0)},this),t.on("mouseup",function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(u.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,n.node,g(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=i(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n}})},function(t,e,n){for(var i=n(1),r=n(42),o=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)i.registerAction({type:a[s],update:"updateView"},o);i.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,e){function n(e,n){var i=r.retrieveTargetInfo(t,e);if(i){var o=e.getViewRoot();o&&(t.direction=r.aboveViewRoot(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)})},function(t,e,n){function i(t,e,n){var i={mainType:"series",subType:"treemap",query:n};t.eachComponent(i,function(t){var i=e.getWidth(),o=e.getHeight(),a=t.option,s=m.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=a.size||[],u=w(S(s.width,l[0]),i),c=w(S(s.height,l[1]),o),p=n&&n.type,v=y.retrieveTargetInfo(n,t),_="treemapRender"===p||"treemapMove"===p?n.rootRect:null,b=t.getViewRoot(),A=y.getPathToRoot(b);if("treemapMove"!==p){var I="treemapZoomToNode"===p?h(t,v,b,u,c):_?[_.width,_.height]:[u,c],T=a.sort;T&&"asc"!==T&&"desc"!==T&&(T="desc");var C={squareRatio:a.squareRatio,sort:T,leafDepth:a.leafDepth};b.hostTree.clearLayouts();var D={x:0,y:0,width:I[0],height:I[1],area:I[0]*I[1]};b.setLayout(D),r(b,C,!1,0);var D=b.getLayout();M(A,function(t,e){var n=(A[e+1]||b).getValue();t.setLayout(g.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},D))})}var L=t.getData().tree.root;L.setLayout(d(s,_,v),!0),t.setLayoutInfo(s),f(L,new x(-s.x,-s.y,i,o),A,b,0)})}function r(t,e,n,i){var a,s;if(!t.isRemoved()){var l=t.getLayout();a=l.width,s=l.height;var h=t.getModel(),d=h.get(A),f=h.get(I)/2,g=p(h),v=Math.max(d,g),m=d-f,y=v-f,h=t.getModel();t.setLayout({borderWidth:d,upperHeight:v,upperLabelHeight:g},!0),a=_(a-2*m,0),s=_(s-m-y,0);var x=a*s,w=o(t,h,x,e,n,i);if(w.length){var S={x:m,y:y,width:a,height:s},M=b(a,s),T=1/0,C=[];C.area=0;for(var D=0,L=w.length;D<L;){var P=w[D];C.push(P),C.area+=P.getLayout().area;var E=u(C,M,e.squareRatio);E<=T?(D++,T=E):(C.area-=C.pop().getLayout().area,c(C,M,S,f,!1),M=b(S.width,S.height),C.length=C.area=0,T=1/0)}if(C.length&&c(C,M,S,f,!0),!n){var k=h.get("childrenVisibleMin");null!=k&&x<k&&(n=!0)}for(var D=0,L=w.length;D<L;D++)r(w[D],e,n,i+1)}}}function o(t,e,n,i,r,o){var u=t.children||[],c=i.sort;"asc"!==c&&"desc"!==c&&(c=null);var h=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!h)return t.viewChildren=[];u=g.filter(u,function(t){return!t.isRemoved()}),s(u,c);var d=l(e,u,c);if(0===d.sum)return t.viewChildren=[];if(d.sum=a(e,n,d.sum,c,u),0===d.sum)return t.viewChildren=[];for(var f=0,p=u.length;f<p;f++){var v=u[f].getValue()/d.sum*n;u[f].setLayout({area:v})}return h&&(u.length&&t.setLayout({isLeafRoot:!0},!0),u.length=0),t.viewChildren=u,t.setLayout({dataExtent:d.dataExtent},!0),u}function a(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function s(t,e){return e&&t.sort(function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}),t}function l(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");if(e&&e.length)if("value"===s&&n)a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse();else{var a=[1/0,-1/0];M(e,function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)})}else a=[NaN,NaN];return{sum:i,dataExtent:a}}function u(t,e,n){for(var i,r=0,o=1/0,a=0,s=t.length;a<s;a++)(i=t[a].getLayout().area)&&(i<o&&(o=i),i>r&&(r=i));var l=t.area*t.area,u=e*e*n;return l?_(u*r/l,l/(u*o)):1/0}function c(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var f=t[h],p={},g=c?f.getLayout().area/c:0,v=p[l[a]]=_(c-2*i,0),m=n[s[o]]+n[l[o]]-u,y=h===d-1||m<g?m:g,x=p[l[o]]=_(y-2*i,0);p[s[a]]=n[s[a]]+b(i,v/2),p[s[o]]=u+b(i,x/2),u+=y,f.setLayout(p,!0)}n[s[a]]+=c,n[l[a]]-=c}function h(t,e,n,i,r){var o=(e||{}).node,a=[i,r];if(!o||o===n)return a;for(var s,l=i*r,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var c=0,h=s.children,d=0,f=h.length;d<f;d++)c+=h[d].getValue();var g=o.getValue();if(0===g)return a;u*=c/g;var m=s.getModel(),y=m.get(A);u+=4*y*y+(3*y+Math.max(y,p(m)))*Math.pow(u,.5),u>v.MAX_SAFE_INTEGER&&(u=v.MAX_SAFE_INTEGER),o=s}u<l&&(u=l);var x=Math.pow(u/l,.5);return[i*x,r*x]}function d(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function f(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new x(e.x-o.x,e.y-o.y,e.width,e.height);M(t.viewChildren||[],function(t){f(t,l,n,i,r+1)})}}function p(t){return t.get(T)?t.get(C):0}var g=n(0),v=n(3),m=n(7),y=n(42),x=n(9),y=n(42),_=Math.max,b=Math.min,w=v.parsePercent,S=g.retrieve,M=g.each,A=["itemStyle","normal","borderWidth"],I=["itemStyle","normal","gapWidth"],T=["upperLabel","normal","show"],C=["upperLabel","normal","height"];t.exports=i},function(t,e,n){function i(t,e,n,s,u,h){var d=t.getModel(),p=t.getLayout();if(p&&!p.invisible&&p.isInView){var v,m=t.getModel(g),y=n[t.depth],x=r(m,e,y,s),_=m.get("borderColor"),b=m.get("borderColorSaturation");null!=b&&(v=o(x),_=a(b,v)),t.setVisual("borderColor",_);var w=t.viewChildren;if(w&&w.length){var S=l(t,d,p,m,x,w);f.each(w,function(t,e){if(t.depth>=u.length||t===u[t.depth]){i(t,c(d,x,t,e,S,h),n,s,u,h)}})}else v=o(x),t.setVisual("color",v)}}function r(t,e,n,i){var r=f.extend({},e);return f.each(["color","colorAlpha","colorSaturation"],function(o){var a=t.get(o,!0);null==a&&n&&(a=n[o]),null==a&&(a=e[o]),null==a&&(a=i.get(o)),null!=a&&(r[o]=a)}),r}function o(t){var e=s(t,"color");if(e){var n=s(t,"colorAlpha"),i=s(t,"colorSaturation");return i&&(e=d.modifyHSL(e,null,null,i)),n&&(e=d.modifyAlpha(e,n)),e}}function a(t,e){return null!=e?d.modifyHSL(e,null,null,t):null}function s(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function l(t,e,n,i,r,o){if(o&&o.length){var a=u(e,"color")||null!=r.color&&"none"!==r.color&&(u(e,"colorAlpha")||u(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var d=e.get("colorMappingBy"),f={type:a.name,dataExtent:c,visual:a.range};"color"!==f.type||"index"!==d&&"id"!==d?f.mappingMethod="linear":(f.mappingMethod="category",f.loop=!0);var p=new h(f);return p.__drColorMappingBy=d,p}}}function u(t,e){var n=t.get(e);return p(n)&&n.length?{name:e,range:n}:null}function c(t,e,n,i,r,o){var a=f.extend({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var h=n(37),d=n(24),f=n(0),p=f.isArray,g="itemStyle.normal";t.exports=function(t,e,n){var r={mainType:"series",subType:"treemap",query:n};t.eachComponent(r,function(t){var e=t.getData().tree,n=e.root,r=t.getModel(g);if(!n.isRemoved()){i(n,{},f.map(e.levelModels,function(t){return t?t.get(g):null}),r,t.getViewRoot().getAncestors(),t)}})}},function(t,e,n){"use strict";n(103),n(353)},function(t,e,n){"use strict";n(164),n(354)},function(t,e,n){var i=n(1),r=i.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,textStyle:{color:"#fff"},padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});t.exports=r},function(t,e,n){var i=n(140),r=n(1).extendComponentView({type:"axisPointer",render:function(t,e,n){var r=e.getComponent("tooltip"),o=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";i.register("axisPointer",n,function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){i.disopse(e.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(t,e){i.unregister("axisPointer",e),r.superApply(this._model,"dispose",arguments)}})},function(t,e,n){"use strict";function i(t,e,n,i,r){var o=e.axis,s=o.dataToCoord(t),c=i.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,f,p=i.getRadiusAxis().getExtent();if("radius"===o.dim){var g=l.create();l.rotate(g,g,c),l.translate(g,g,[i.cx,i.cy]),h=a.applyTransform([s,-r],g);var v=e.getModel("axisLabel").get("rotate")||0,m=u.innerTextLayout(c,v*Math.PI/180,-1);d=m.textAlign,f=m.textVerticalAlign}else{var y=p[1];h=i.coordToPoint([y+r,s]);var x=i.cx,_=i.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",f=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}var r=n(6),o=n(93),a=n(2),s=n(65),l=n(18),u=n(35),c=n(36),h=o.extend({makeElOption:function(t,e,n,o,a){var l=n.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var u,c=l.polar,h=c.getOtherAxis(l),f=h.getExtent();u=l["dataTo"+r.capitalFirst(l.dim)](e);var p=o.get("type");if(p&&"none"!==p){var g=s.buildElStyle(o),v=d[p](l,c,u,f,g);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=o.get("label.margin"),y=i(e,n,o,c,m);s.buildLabelElOption(t,n,o,a,y)}}),d={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:s.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var o=t.getBandWidth(),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",h),t.exports=h},function(t,e,n){"use strict";function i(t){return t.isHorizontal()?0:1}function r(t,e){var n=t.getRect();return[n[c[e]],n[c[e]]+n[h[e]]]}var o=n(2),a=n(93),s=n(65),l=n(142),u=n(36),c=["x","y"],h=["width","height"],d=a.extend({makeElOption:function(t,e,n,o,a){var u=n.axis,c=u.coordinateSystem,h=r(c,1-i(u)),d=c.dataToPoint(e)[0],p=o.get("type");if(p&&"none"!==p){var g=s.buildElStyle(o),v=f[p](u,d,h,g);v.style=g,t.graphicKey=v.type,t.pointer=v}var m=l.layout(n);s.buildCartesianSingleLabelElOption(e,t,m,n,o,a)},getHandleTransform:function(t,e,n){var i=l.layout(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,o){var a=n.axis,s=a.coordinateSystem,l=i(a),u=r(s,l),c=t.position;c[l]+=e[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=r(s,1-l),d=(h[1]+h[0])/2,f=[d,d];return f[l]=c[l],{position:c,rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),f={line:function(t,e,n,r){var a=s.makeLineShape([e,n[0]],[e,n[1]],i(t));return o.subPixelOptimizeLine({shape:a,style:r}),{type:"Line",shape:a}},shadow:function(t,e,n,r){var o=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:s.makeRectShape([e-o/2,n[0]],[o,a],i(t))}}};u.registerAxisPointerClass("SingleAxisPointer",d),t.exports=d},function(t,e,n){function i(t,e,n){var i=t.currTrigger,o=[t.x,t.y],g=t,v=t.dispatchAction||p.bind(n.dispatchAction,n),_=e.getComponent("axisPointer").coordSysAxesInfo;f(o)&&(o=m({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var b=f(o),w=g.axesInfo,S=_.axesInfo,M="leave"===i||f(o),A={},I={},T={list:[],map:{}},C={showPointer:x(a,I),showTooltip:x(s,T)};y(_.coordSysMap,function(t,e){var n=b||t.containPoint(o);y(_.coordSysAxesInfo[e],function(t,e){var i=t.axis,a=h(w,t);if(!M&&n&&(!w||a)){var s=a&&a.value;null!=s||b||(s=i.pointToData(o)),null!=s&&r(t,s,C,!1,A)}})});var D={};return y(S,function(t,e){var n=t.linkGroup;n&&!I[e]&&y(n.axesInfo,function(e,i){var r=I[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,d(e),d(t)))),D[t.key]=o}})}),y(D,function(t,e){r(S[e],t,C,!0,A)}),l(I,S,A),u(T,o,t,v),c(S,v,n),A}function r(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var s=o(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&p.extend(r,l[0]),!i&&t.snap&&a.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l,r),n.showTooltip(t,s,u)}}function o(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return y(e.seriesModels,function(e,l){var u,c,h=e.coordDimToDataDim(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,!1,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=u,o.length=0),y(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function a(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function s(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=v.makeKey(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function l(t,e,n){var i=n.axesInfo=[];y(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function u(t,e,n,i){if(f(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function c(t,e,n){var i=n.getZr(),r=_(i).axisPointerLastHighlights||{},o=_(i).axisPointerLastHighlights={};y(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&y(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var a=[],s=[];p.each(r,function(t,e){!o[e]&&s.push(t)}),p.each(o,function(t,e){!r[e]&&a.push(t)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:a})}function h(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function d(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function f(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}var p=n(0),g=n(4),v=n(64),m=n(139),y=p.each,x=p.curry,_=g.makeGetter();t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){var r=t.coordToPoint([e,i]),o=t.coordToPoint([n,i]);return{x1:r[0],y1:r[1],x2:o[0],y2:o[1]}}var r=n(0),o=n(2),a=n(8),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];n(36).extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords();"category"!==n.type&&a.pop(),r.each(s,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,i,a,o)},this)}},_axisLine:function(t,e,n,i){var r=t.getModel("axisLine.lineStyle"),a=new o.Circle({shape:{cx:e.cx,cy:e.cy,r:i[1]},style:r.getLineStyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axisTick:function(t,e,n,a){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),u=r.map(n,function(t){return new o.Line({shape:i(e,a[1],a[1]+l,t)})});this.group.add(o.mergePath(u,{style:r.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,i){for(var r=t.axis,s=t.get("data"),l=t.getModel("axisLabel"),u=l.getModel("textStyle"),c=t.getFormattedLabels(),h=l.get("margin"),d=r.getLabelsCoords(),f=0;f<n.length;f++){var p=i[1],g=e.coordToPoint([p+h,d[f]]),v=e.cx,m=e.cy,y=Math.abs(g[0]-v)/p<.3?"center":g[0]>v?"left":"right",x=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom",_=u;s&&s[f]&&s[f].textStyle&&(_=new a(s[f].textStyle,u)),this.group.add(new o.Text({style:{x:g[0],y:g[1],fill:_.getTextColor()||t.get("axisLine.lineStyle.color"),text:c[f],textAlign:y,textVerticalAlign:x,textFont:_.getFont()},silent:!0}))}},_splitLine:function(t,e,n,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<n.length;d++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new o.Line({shape:i(e,a[0],a[1],n[d])}))}for(var d=0;d<h.length;d++)this.group.add(o.mergePath(h[d],{style:r.defaults({stroke:u[d%u.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,n,i){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-n[0]*h,f=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),g=t.get("clockwise"),v=1;v<n.length;v++){var m=u++%l.length;c[m]=c[m]||[],c[m].push(new o.Sector({shape:{cx:e.cx,cy:e.cy,r0:f,r:p,startAngle:d,endAngle:-n[v]*h,clockwise:g},silent:!0})),d=-n[v]*h}for(var v=0;v<c.length;v++)this.group.add(o.mergePath(c[v],{style:r.defaults({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}})},function(t,e,n){var i=n(0),r=n(2),o=n(35),a=n(36),s=n(141),l=o.ifIgnoreOnTick,u=o.getInterval,c=["axisLine","axisLabel","axisTick","axisName"],h=["splitArea","splitLine"],d=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,a){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),t.get("show")){var u=t.getCoordSysModel(),f=s.layout(u,t),p=new o(t,f);i.each(c,p.add,p),this._axisGroup.add(p.getGroup()),i.each(h,function(e){t.get(e+".show")&&this["_"+e](t,u,f.labelInterval)},this),r.groupTransition(l,this._axisGroup,t),d.superCall(this,"render",t,e,n,a)}},_splitLine:function(t,e,n){var o=t.axis;if(!o.scale.isBlank()){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),c=s.get("color"),h=u(a,n);c=i.isArray(c)?c:[c];for(var d=e.coordinateSystem.getRect(),f=o.isHorizontal(),p=0,g=o.getTicksCoords(),v=o.scale.getTicks(),m=[],y=[],x=s.getLineStyle(),_=0;_<g.length;_++)if(!l(o,_,h)){var b=o.toGlobalCoord(g[_]);f?(m[0]=b,m[1]=d.y,y[0]=b,y[1]=d.y+d.height):(m[0]=d.x,m[1]=b,y[0]=d.x+d.width,y[1]=b);var w=p++%c.length;this._axisGroup.add(new r.Line(r.subPixelOptimizeLine({anid:"line_"+v[_],shape:{x1:m[0],y1:m[1],x2:y[0],y2:y[1]},style:i.defaults({stroke:c[w]},x),silent:!0})))}}},_splitArea:function(t,e,n){var o=t.axis;if(!o.scale.isBlank()){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),c=s.get("color"),h=e.coordinateSystem.getRect(),d=o.getTicksCoords(),f=o.scale.getTicks(),p=o.toGlobalCoord(d[0]),g=o.toGlobalCoord(d[0]),v=0,m=u(a,n),y=s.getAreaStyle();c=i.isArray(c)?c:[c];for(var x=1;x<d.length;x++)if(!l(o,x,m)){var _,b,w,S,M=o.toGlobalCoord(d[x]);o.isHorizontal()?(_=p,b=h.y,w=M-_,S=h.height):(_=h.x,b=g,w=h.width,S=M-b);var A=v++%c.length;this._axisGroup.add(new r.Rect({anid:"area_"+f[x],shape:{x:_,y:b,width:w,height:S},style:i.defaults({fill:c[A]},y),silent:!0})),p=_+w,g=b+S}}}});d.extend({type:"xAxis"}),d.extend({type:"yAxis"})},function(t,e,n){function i(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function r(t){var e=t.axis;return a.map(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function o(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var a=n(0),s=n(35),l=n(95),u=n(149),c=n(2),h=["axisLine","axisLabel","axisTick","axisName"],d=n(1).extendComponentView({type:"parallelAxis",init:function(t,e){d.superApply(this,"init",arguments),(this._brushController=new l(e.getZr())).on("brush",a.bind(this._onBrush,this))},render:function(t,e,n,r){if(!i(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new c.Group,this.group.add(this._axisGroup),t.get("show")){var u=o(t,e),d=u.coordinateSystem,f=t.getAreaSelectStyle(),p=f.width,g=t.axis.dim,v=d.getAxisLayout(g),m=a.extend({strokeContainThreshold:p},v),y=new s(t,m);a.each(h,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(m,f,t,u,p,n);var x=r&&!1===r.animation?null:t;c.groupTransition(l,this._axisGroup,x)}}},updateVisual:function(t,e,n,i){this._brushController&&this._brushController.updateCovers(r(t))},_refreshBrushController:function(t,e,n,i,o,a){var s=n.axis.getExtent(),l=s[1]-s[0],h=Math.min(30,.1*Math.abs(l)),d=c.BoundingRect.create({x:s[0],y:-o/2,width:l,height:o});d.x-=h,d.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:u.makeRectPanelClipPath(d),isTargetByCursor:u.makeRectIsTargetByCursor(d,a,i),getLinearBrushOtherExtent:u.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(r(n))},_onBrush:function(t,e){var n=this.axisModel,i=n.axis,r=a.map(t,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},dispose:function(){this._brushController.dispose()}});t.exports=d},function(t,e,n){"use strict";function i(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var r=n(0),o=n(2),a=n(35),s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"];n(36).extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,o=n.polar,u=o.getAngleAxis(),c=n.getTicksCoords(),h=u.getExtent()[0],d=n.getExtent(),f=i(o,t,h),p=new a(t,f);r.each(s,p.add,p),this.group.add(p.getGroup()),r.each(l,function(e){t.get(e+".show")&&!n.scale.isBlank()&&this["_"+e](t,o,h,d,c)},this)}},_splitLine:function(t,e,n,i,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<a.length;d++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new o.Circle({shape:{cx:e.cx,cy:e.cy,r:a[d]},silent:!0}))}for(var d=0;d<h.length;d++)this.group.add(o.mergePath(h[d],{style:r.defaults({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},_splitArea:function(t,e,n,i,a){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=a[0],f=1;f<a.length;f++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new o.Sector({shape:{cx:e.cx,cy:e.cy,r0:d,r:a[f],startAngle:0,endAngle:2*Math.PI},silent:!0})),d=a[f]}for(var f=0;f<h.length;f++)this.group.add(o.mergePath(h[f],{style:r.defaults({fill:u[f%u.length]},l.getAreaStyle()),silent:!0}))}})},function(t,e,n){var i=n(35),r=n(0),o=n(2),a=n(142),s=i.getInterval,l=i.ifIgnoreOnTick,u=["axisLine","axisLabel","axisTick","axisName"],c=n(36).extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,o){var s=this.group;s.removeAll();var l=a.layout(t),h=new i(t,l);r.each(u,h.add,h),s.add(h.getGroup()),t.get("splitLine.show")&&this._splitLine(t,l.labelInterval),c.superCall(this,"render",t,e,n,o)},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),r=i.getModel("lineStyle"),a=r.get("width"),u=r.get("color"),c=s(i,e);u=u instanceof Array?u:[u];for(var h=t.coordinateSystem.getRect(),d=n.isHorizontal(),f=[],p=0,g=n.getTicksCoords(),v=[],m=[],y=0;y<g.length;++y)if(!l(n,y,c)){var x=n.toGlobalCoord(g[y]);d?(v[0]=x,v[1]=h.y,m[0]=x,m[1]=h.y+h.height):(v[0]=h.x,v[1]=x,m[0]=h.x+h.width,m[1]=x);var _=p++%u.length;f[_]=f[_]||[],f[_].push(new o.Line(o.subPixelOptimizeLine({shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:{lineWidth:a},silent:!0})))}for(var y=0;y<f.length;++y)this.group.add(o.mergePath(f[y],{style:{stroke:u[y%u.length],lineDash:r.getLineDash(a),lineWidth:a},silent:!0}))}}});t.exports=c},function(t,e,n){var i=n(1),r={type:"axisAreaSelect",event:"axisAreaSelected",update:"updateVisual"};i.registerAction(r,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),i.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})},function(t,e,n){n(1).registerPreprocessor(n(363)),n(365),n(360),n(361),n(362),n(414)},function(t,e,n){function i(t,e){return o.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new s(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var r=n(1),o=n(0),a=n(72),s=n(8),l=["#ddd"],u=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&a.replaceVisualOption(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{},n.outOfBrush=n.outOfBrush||{color:l}},setAreas:function(t){__DEV__&&(o.assert(o.isArray(t)),o.each(t,function(t){o.assert(t.brushType,"Illegal areas")})),t&&(this.areas=o.map(t,function(t){return i(this.option,t)},this))},setBrushOption:function(t){this.brushOption=i(this.option,t),this.brushType=this.brushOption.brushType}});t.exports=u},function(t,e,n){function i(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}var r=n(0),o=n(95),a=n(1);t.exports=a.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new o(e.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,i.apply(this,arguments)},updateView:i,updateLayout:i,updateVisual:i,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:r.clone(t),$from:n})}})},function(t,e,n){var i=n(1);i.registerAction({type:"brush",event:"brush",update:"updateView"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),i.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},function(t,e,n){function i(t){var e={};r.each(t,function(t){e[t]=1}),t.length=0,r.each(e,function(e,n){t.push(n)})}var r=n(0),o=["rect","polygon","keep","clear"];t.exports=function(t,e){var n=t&&t.brush;if(r.isArray(n)||(n=n?[n]:[]),n.length){var a=[];r.each(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))});var s=t&&t.toolbox;r.isArray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,a),i(c),e&&!c.length&&c.push.apply(c,o)}}},function(t,e,n){function i(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){var o=i.range;return r(e[t],o)},rect:function(i,o,a){var s=a.range,l=[i[e[t]],i[e[t]]+i[n[t]]];return l[1]<l[0]&&l.reverse(),r(l[0],s)||r(l[1],s)||r(s[0],l)||r(s[1],l)}}}function r(t,e){return e[0]<=t&&t<=e[1]}function o(t,e,n,i,r){for(var o=0,s=r[r.length-1];o<r.length;o++){var l=r[o];if(a(t,e,n,i,l[0],l[1],s[0],s[1]))return!0;s=l}}function a(t,e,n,i,r,o,a,u){var c=l(n-t,r-a,i-e,o-u);if(s(c))return!1;var h=l(r-t,r-a,o-e,o-u)/c;if(h<0||h>1)return!1;var d=l(n-t,r-t,i-e,o-e)/c;return!(d<0||d>1)}function s(t){return t<=1e-6&&t>=-1e-6}function l(t,e,n,i){return t*i-e*n}var u=n(176).contain,c=n(9),h={lineX:i(0),lineY:i(1),rect:{point:function(t,e,n){return n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return n.boundingRect.contain(t[0],t[1])&&u(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(i.length<=1)return!1;var r=t.x,a=t.y,s=t.width,l=t.height,h=i[0];return!!(u(i,r,a)||u(i,r+s,a)||u(i,r,a+l)||u(i,r+s,a+l)||c.create(t).contain(h[0],h[1])||o(r,a,r+s,a,i)||o(r,a,r,a+l,i)||o(r+s,a,r+s,a+l,i)||o(r,a+l,r+s,a+l,i))||void 0}}};t.exports=h},function(t,e,n){function i(t,e,n,i,o){if(o){var a=t.getZr();if(!a[x]){a[y]||(a[y]=r);g.createOrUpdate(a,y,n,e)(t,i)}}}function r(t,e){if(!t.isDisposed()){var n=t.getZr();n[x]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[x]=!1}}function o(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t[a.brushType](i,n,a.selectors,a))return!0}}function a(t){var e=t.brushSelector;if(d.isString(e)){var n=[];return d.each(p,function(t,i){n[i]=function(n,i,r,o){var a=i.getItemLayout(n);return t[e](a,r,o)}}),n}if(d.isFunction(e)){var i={};return d.each(p,function(t,n){i[n]=e}),i}return e}function s(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(d.isArray(n)?d.indexOf(n,e)<0:e!==n)}function l(t){var e=t.selectors={};return d.each(p[t.brushType],function(n,i){e[i]=function(i){return n(i,e,t)}}),t}function u(t){return new f(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var c=n(1),h=n(72),d=n(0),f=n(9),p=n(364),g=n(44),v=n(147),m=["inBrush","outOfBrush"],y="__ecBrushSelect",x="__ecInBrushSelectEvent",_=c.PRIORITY.VISUAL.BRUSH;c.registerLayout(_,function(t,e,n){t.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1}),(e.brushTargetManager=new v(e.option,t)).setInputRanges(e.areas,t)})}),c.registerVisual(_,function(t,e,n){var r,u,c=[];t.eachComponent({mainType:"brush"},function(e,n){function i(t){return"all"===x||_[t]}function f(t){return!!t.length}function p(t,e){var n=t.coordinateSystem;M|=n.hasAxisBrushed(),i(e)&&n.eachActiveState(t.getData(),function(t,e){"active"===t&&(w[e]=1)})}function g(n,r,l){var u=a(n);if(u&&!s(e,r)&&(d.each(A,function(i){u[i.brushType]&&e.brushTargetManager.controlSeries(i,n,t)&&l.push(i),M|=f(l)}),i(r)&&f(l))){var c=n.getData();c.each(function(t){o(u,l,c,t)&&(w[t]=1)})}}var v={brushId:e.id,brushIndex:n,brushName:e.name,areas:d.clone(e.areas),selected:[]};c.push(v);var y=e.option,x=y.brushLink,_=[],w=[],S=[],M=0;n||(r=y.throttleType,u=y.throttleDelay);var A=d.map(e.areas,function(t){return l(d.defaults({boundingRect:b[t.brushType](t)},t))}),I=h.createVisualMappings(e.option,m,function(t){t.mappingMethod="fixed"});d.isArray(x)&&d.each(x,function(t){_[t]=1}),t.eachSeries(function(t,e){var n=S[e]=[];"parallel"===t.subType?p(t,e):g(t,e,n)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};v.selected.push(n);var r=a(t),s=S[e],l=t.getData(),u=i(e)?function(t){return w[t]?(n.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return o(r,s,l,t)?(n.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"};(i(e)?M:f(s))&&h.applyVisual(m,I,l,u)})}),i(e,r,u,c,n)});var b={lineX:d.noop,lineY:d.noop,rect:function(t){return u(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&u(e)}}},function(t,e,n){"use strict";n(431),n(432),n(367)},function(t,e,n){"use strict";var i=n(0),r=n(2),o=n(6),a=n(3),s={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},l={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};t.exports=n(1).extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle.normal").getItemStyle(),a=i.getCellWidth(),s=i.getCellHeight(),l=e.start.time;l<=e.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,c=new r.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:o});n.add(c)}},_renderLines:function(t,e,n,i){function r(e){o._firstDayOfMonth.push(a.getDateInfo(e)),o._firstDayPoints.push(a.dataToRect([e],!1).tl);var r=o._getLinePointsOfOneWeek(t,e,n);o._tlpoints.push(r[0]),o._blpoints.push(r[r.length-1]),l&&o._drawSplitline(r,s,i)}var o=this,a=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,h=0;c.time<=e.end.time;h++){r(c.formatedDate),0===h&&(c=a.getDateInfo(e.start.y+"-"+e.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=a.getDateInfo(d)}r(a.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,n),s,i),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,n),s,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},_drawSplitline:function(t,e,n){var i=new r.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=i.getNextNDay(e.time,o),s=i.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?o.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i){t=t.slice();var r=["center","bottom"];"top"===n&&(t[1]-=i),"bottom"===n&&(t[1]+=i,r=["center","top"]),"left"===n&&(t[0]-=i),"right"===n&&(t[0]+=i,r=["center","top"]);var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,origin:t,style:{x:t[0],y:t[1],textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(t,e,n,o){var a=t.getModel("yearLabel");if(a.get("show")){var s=t.getModel("yearLabel.textStyle"),l=a.get("margin"),u=a.get("position");u||(u="horizontal"!==n?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(c[0][0]+c[1][0])/2,d=(c[0][1]+c[1][1])/2,f="horizontal"===n?0:1,p={top:[h,c[f][1]],bottom:[h,c[1-f][1]],left:[c[1-f][0],d],right:[c[f][0],d]},g=e.start.y;+e.end.y>+e.start.y&&(g=g+"-"+e.end.y);var v=a.get("formatter"),m={start:e.start.y,end:e.end.y,nameMap:g},y=this._formatterLabel(v,m),x=new r.Text(i.merge({z2:30,style:{text:y,font:s.getFont(),fill:s.getTextColor()}},this._yearTextPositionControl(p[u],n,u,l)));o.add(x)}},_monthTextPositionControl:function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var o=t.getModel("monthLabel");if(o.get("show")){var a=t.getModel("monthLabel.textStyle"),l=o.get("nameMap"),u=o.get("margin"),c=o.get("position"),h=o.get("align"),d=[this._tlpoints,this._blpoints];i.isString(l)&&(l=s[l.toUpperCase()]||[]);var f="start"===c?0:1,p="horizontal"===e?0:1;u="start"===c?-u:u;for(var g="center"===h,v=0;v<d[f].length-1;v++){var m=d[f][v].slice(),y=this._firstDayOfMonth[v];if(g){var x=this._firstDayPoints[v];m[p]=(x[p]+d[0][v+1][p])/2}var _=o.get("formatter"),b=l[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},S=this._formatterLabel(_,w),M=new r.Text({z2:30,style:i.extend({text:S,font:a.getFont(),fill:a.getTextColor()},this._monthTextPositionControl(m,g,e,c,u))});n.add(M)}}},_weekTextPositionControl:function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(t,e,n,o){var s=t.getModel("dayLabel");if(s.get("show")){var u=t.coordinateSystem,c=t.getModel("dayLabel.textStyle"),h=s.get("position"),d=s.get("nameMap"),f=s.get("margin"),p=u.getFirstDayOfWeek();i.isString(d)&&(d=l[d.toUpperCase()]||[]);var g=u.getNextNDay(e.end.time,7-e.lweek).time,v=[u.getCellWidth(),u.getCellHeight()];f=a.parsePercent(f,v["horizontal"===n?0:1]),"start"===h&&(g=u.getNextNDay(e.start.time,-(7+e.fweek)).time,f=-f);for(var m=0;m<7;m++){var y=u.getNextNDay(g,m),x=u.dataToRect([y.time],!1).center,_=m;_=Math.abs((m+p)%7);var b=new r.Text({z2:30,style:i.extend({text:d[_],font:c.getFont(),fill:c.getTextColor()},this._weekTextPositionControl(x,n,h,f,v))});o.add(b)}}}})},function(t,e,n){n(146),n(54),n(55),n(375),n(376),n(371),n(372),n(144),n(143)},function(t,e,n){n(146),n(54),n(55),n(373),n(374),n(144),n(143)},function(t,e,n){function i(t,e,n){var i=[1/0,-1/0];return c(n,function(t){var n=t.getData();n&&c(t.coordDimToDataDim(e),function(t){var e=n.getDataExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})}),i[1]<i[0]&&(i=[NaN,NaN]),r(t,i),i}function r(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),o=r&&(n.get("data")||[]).length;null!=i&&"dataMin"!==i?e[0]=i:r&&(e[0]=o>0?0:NaN);var a=n.getMax(!0);return null!=a&&"dataMax"!==a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function o(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=l.getPixelPrecision(r,[0,500]),a=e||0===i[0]&&100===i[1];n.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}function a(t){var e=t._minMaxSpan={},n=t._dataZoomModel;c(["min","max"],function(i){e[i+"Span"]=n.get(i+"Span");var r=n.get(i+"ValueSpan");null!=r&&(e[i+"ValueSpan"]=r,null!=(r=t.getAxisModel().axis.scale.parse(r))&&(e[i+"Span"]=l.linearMap(r,t._dataExtent,[0,100],!0)))})}var s=n(0),l=n(3),u=n(94),c=s.each,h=l.asc,d=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};d.prototype={constructor:d,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(u.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n=this._dimName,i=this.ecModel,r=this.getAxisModel(),o="x"===n||"y"===n;o?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle");var a;return i.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(a=t)}),a},getMinMaxSpan:function(){return s.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[t.start,t.end],s=[];return c(["startValue","endValue"],function(e){s.push(null!=t[e]?i.parse(t[e]):null)}),c([0,1],function(t){var n=s[t],u=a[t];"percent"===r[t]?(null==u&&(u=o[t]),n=i.parse(l.linearMap(u,o,e,!0))):u=l.linearMap(n,e,o,!0),s[t]=n,a[t]=u}),{valueWindow:h(s),percentWindow:h(a)}},reset:function(t){if(t===this._dataZoomModel){this._dataExtent=i(this,this._dimName,this.getTargetSeriesModels());var e=this.calculateDataWindow(t.option);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,a(this),o(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,o(this,!0))},filterData:function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;if("none"!==r){var a=this.getOtherAxisModel();t.get("$fromToolbox")&&a&&"category"===a.get("type")&&(r="empty"),c(i,function(t){var i=t.getData(),a=t.coordDimToDataDim(n);"weakFilter"===r?i&&i.filterSelf(function(t){for(var e,n,r,s=0;s<a.length;s++){var l=i.get(a[s],t),u=!isNaN(l),c=l<o[0],h=l>o[1];if(u&&!c&&!h)return!0;u&&(r=!0),c&&(e=!0),h&&(n=!0)}return r&&e&&n}):i&&c(a,function(n){"empty"===r?t.setData(i.map(n,function(t){return e(t)?t:NaN})):i.filterSelf(n,e)})})}}}},t.exports=d},function(t,e,n){t.exports=n(54).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}})},function(t,e,n){var i=n(55),r=n(0),o=n(57),a=n(377),s=r.bind,l=i.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,i){l.superApply(this,"render",arguments),a.shouldRecordRange(i,t.id)&&(this._range=t.getPercentRange()),r.each(this.getTargetCoordInfo(),function(e,i){var o=r.map(e,function(t){return a.generateCoordId(t.model)});r.each(e,function(e){var r=e.model,l=t.option;a.register(n,{coordId:a.generateCoordId(r),allCoordIds:o,containsPoint:function(t,e,n){return r.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,throttleRate:t.get("throttle",!0),panGetRange:s(this._onPan,this,e,i),zoomGetRange:s(this._onZoom,this,e,i),zoomLock:l.zoomLock,disabled:l.disabled,roamControllerOpt:{zoomOnMouseWheel:l.zoomOnMouseWheel,moveOnMouseMove:l.moveOnMouseMove,preventDefaultMouseMove:l.preventDefaultMouseMove}})},this)},this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,n,i,r,a,s,l,c){var h=this._range.slice(),d=t.axisModels[0];if(d){var f=u[e]([a,s],[l,c],d,n,t),p=f.signal*(h[1]-h[0])*f.pixel/f.pixelLength;return o(p,h,[0,100],"all"),this._range=h}},_onZoom:function(t,e,n,i,r,a){var s=this._range.slice(),l=t.axisModels[0];if(l){var c=u[e](null,[r,a],l,n,t),h=(c.signal>0?c.pixelStart+c.pixelLength-c.pixel:c.pixel-c.pixelStart)/c.pixelLength*(s[1]-s[0])+s[0];i=Math.max(1/i,0),s[0]=(s[0]-h)*i+h,s[1]=(s[1]-h)*i+h;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,s,[0,100],0,d.minSpan,d.maxSpan),this._range=s}}}),u={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};t.exports=l},function(t,e,n){var i=n(54);t.exports=i.extend({type:"dataZoom.select"})},function(t,e,n){t.exports=n(55).extend({type:"dataZoom.select"})},function(t,e,n){var i=n(54),r=i.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)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});t.exports=r},function(t,e,n){function i(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}var r=n(0),o=n(2),a=n(44),s=n(55),l=o.Rect,u=n(3),c=u.linearMap,h=n(7),d=n(57),f=n(23),p=u.asc,g=r.bind,v=r.each,m="horizontal",y=5,x=["line","bar","candlestick","scatter"],_=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){if(_.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1===this.dataZoomModel.get("show"))return void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()},remove:function(){_.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){_.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},o=this._orient===m?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},a=h.getLayoutParams(t.option);r.each(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=h.getLayoutRect(a,i,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==m||r?n===m&&r?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||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.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new l({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new l({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=a){var s=i.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,h=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],p=[],g=d[1]/(i.count()-1),v=0,m=Math.round(i.count()/e[0]);i.each([a],function(t,e){if(m>0&&e%m)return void(v+=g);var n=null==t||isNaN(t)||""===t,i=n?0:c(t,s,h,!0);n&&!u&&e?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&u&&(f.push([v,0]),p.push([v,0])),f.push([v,i]),p.push([v,i]),v+=g,u=n});var y=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:f},style:r.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,o=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a.name,s).getTargetSeriesModels();r.each(l,function(t){if(!(n||!0!==e&&r.indexOf(x,t.get("type"))<0)){var l,u=o.getComponent(a.axis,s).axis,c=i(a.name),h=t.coordinateSystem;null!=c&&h.getOtherAxis&&(l=h.getOtherAxis(u).inverse),n={thisAxis:u,series:t,thisDim:a.name,otherDim:c,otherAxisInverse:l}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,a=this.dataZoomModel;i.add(t.filler=new l({draggable:!0,cursor:"move",drift:g(this._onDragMove,this,"all"),onmousemove:function(t){f.stop(t.event)},ondragstart:g(this._showDataInfo,this,!0),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new l(o.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})));var s=a.get("handleIcon");v([0,1],function(t){var r={style:{strokeNoScale:!0},rectHover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:g(this._onDragMove,this,t),onmousemove:function(t){f.stop(t.event)},ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1)},l={x:-1,y:0,width:2,height:2},c=0===s.indexOf("image://")?(l.image=s.slice(8),r.style=l,new o.Image(r)):o.makePath(s.replace("path://",""),r,l,"center"),h=c.getBoundingRect();this._handleHeight=u.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=h.width/h.height*this._handleHeight,c.setStyle(a.getModel("handleStyle").getItemStyle());var d=a.get("handleColor");null!=d&&(c.style.fill=d),i.add(e[t]=c);var p=a.textStyleModel;this.group.add(n[t]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:p.getTextColor(),textFont:p.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[c(t[0],[0,100],e,!0),c(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];d(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?c(o.minSpan,a,r,!0):null,null!=o.maxSpan?c(o.maxSpan,a,r,!0):null),this._range=p([c(i[0],r,a,!0),c(i[1],r,a,!0)])},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=p(n.slice()),r=this._size;v([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o/2,o/2],position:[n[t],r[1]/2-o/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=o.getTransform(i.handles[t].parent,this.group),n=o.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+y,u=o.applyTransform([d[t]+(0===t?-l:l),this._size[1]/2],e);r[t].setStyle({x:u[0],y:u[1],textVerticalAlign:a===m?"middle":n,textAlign:a===m?n:"center",text:s[t]})}var n=this.dataZoomModel,i=this._displayables,r=i.handleLabels,a=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var d=p(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(o,20));return r.isFunction(i)?i(t,a):r.isString(i)?i.replace("{value}",a):a},_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,n){this._dragging=!0;var i=this._displayables.barGroup.getLocalTransform(),r=o.applyTransform([e,n],i,!0);this._updateInterval(t,r[0]);var a=this.dataZoomModel.get("realtime");this._updateView(!a),a&&a&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2;this._updateInterval("all",n[0]-r),this._updateView(),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]})},_findCoordRect:function(){var t;if(v(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});t.exports=_},function(t,e,n){function i(t){var e=t.getZr();return e[g]||(e[g]={})}function r(t,e){var n=new d(t.getZr());return n.on("pan",p(a,e)),n.on("zoom",p(s,e)),n}function o(t){h.each(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function a(t,e,n,i,r,o,a){l(t,function(s){return s.panGetRange(t.controller,e,n,i,r,o,a)})}function s(t,e,n,i){l(t,function(r){return r.zoomGetRange(t.controller,e,n,i)})}function l(t,e){var n=[];h.each(t.dataZoomInfos,function(t){var i=e(t);!t.disabled&&i&&n.push({dataZoomId:t.dataZoomId,start:i[0],end:i[1]})}),t.dispatchAction(n)}function u(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function c(t){var e,n={},i={true:2,move:1,false:0,undefined:-1};return h.each(t,function(t){var r=!t.disabled&&(!t.zoomLock||"move");i[r]>i[e]&&(e=r),h.extend(n,t.roamControllerOpt)}),{controlType:e,opt:n}}var h=n(0),d=n(66),f=n(44),p=h.curry,g="\0_ec_dataZoom_roams",v={register:function(t,e){var n=i(t),a=e.dataZoomId,s=e.coordId;h.each(n,function(t,n){var i=t.dataZoomInfos;i[a]&&h.indexOf(e.allCoordIds,s)<0&&(delete i[a],t.count--)}),o(n);var l=n[s];l||(l=n[s]={coordId:s,dataZoomInfos:{},count:0},l.controller=r(t,l),l.dispatchAction=h.curry(u,t)),!l.dataZoomInfos[a]&&l.count++,l.dataZoomInfos[a]=e;var d=c(l.dataZoomInfos);l.controller.enable(d.controlType,d.opt),l.controller.setPointerChecker(e.containsPoint),f.createOrUpdate(l,"dispatchAction",e.throttleRate,"fixRate")},unregister:function(t,e){var n=i(t);h.each(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),o(n)},shouldRecordRange:function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var n=0,i=t.batch.length;n<i;n++)if(t.batch[n].dataZoomId===e)return!1;return!0},generateCoordId:function(t){return t.type+"\0_"+t.id}};t.exports=v},function(t,e,n){function i(t,e){e.update="updateView",r.registerAction(e,function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name);var r=n.coordinateSystem;o.each(r.regions,function(t){i[t.name]=n.isSelected(t.name)||!1})}),{selected:i,name:e.name}})}n(440),n(68),n(379),n(126);var r=n(1),o=n(0);i("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),i("select",{type:"geoSelect",event:"geoselected"}),i("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(t,e,n){"use strict";var i=n(148);t.exports=n(1).extendComponentView({type:"geo",init:function(t,e){var n=new i(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}})},function(t,e,n){function i(t,e,n,i){var r=n.type;__DEV__&&h.assert(r,"graphic type MUST be set");var o=f[r.charAt(0).toUpperCase()+r.slice(1)];__DEV__&&h.assert(o,"graphic type can not be found");var a=new o(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function r(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){r(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function o(t){return t=h.extend({},t),h.each(["id","parentId","$action","hv","bounding"].concat(p.LOCATION_PARAMS),function(e){delete t[e]}),t}function a(t,e){var n;return h.each(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}function s(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function l(t,e,n){var i=h.extend({},n),r=t[e],o=n.$action||"merge";if("merge"===o)if(r){if(__DEV__){var a=n.type;h.assert(!a||r.type===a,'Please set $action: "replace" to change `type`')}h.merge(r,i,!0),p.mergeLayoutParam(r,i,{ignoreSize:!0}),p.copyLayoutParams(n,r)}else t[e]=i;else"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}function u(t,e){t&&(t.hv=e.hv=[a(e,["left","right"]),a(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}var c=n(1),h=n(0),d=n(4),f=n(2),p=n(7);c.registerPreprocessor(function(t){var e=t.graphic;h.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var g=c.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,g.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o);var a=d.mappingToExists(r,o);d.makeIdAndName(a);var c=this._elOptionsToUpdate=[];h.each(a,function(t,e){var n=t.option;__DEV__&&h.assert(h.isObject(n)||t.exist,"Empty graphic option definition"),n&&(c.push(n),s(t,n),l(r,e,n),u(r[e],n))},this);for(var f=r.length-1;f>=0;f--)null==r[f]?r.splice(f,1):delete r[f].$action},_flatten:function(t,e,n){h.each(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});c.extendComponentView({type:"graphic",init:function(t,e){this._elMap=h.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,n),this._relocate(t,n)},_updateElements:function(t,e){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,s=this.group;h.each(n,function(t){var e=t.$action,n=t.id,l=a.get(n),u=t.parentId,c=null!=u?a.get(u):s;t.hv&&t.hv[1]&&"text"===t.type&&(t.style=h.defaults({textBaseline:"middle"},t.style),t.style.textVerticalAlign=null);var d=o(t);__DEV__&&l&&h.assert(c===l.parent,"Changing parent is not supported."),e&&"merge"!==e?"replace"===e?(r(l,a),i(n,c,d,a)):"remove"===e&&r(l,a):l?l.attr(d):i(n,c,d,a);var f=a.get(n);f&&(f.__ecGraphicWidth=t.width,f.__ecGraphicHeight=t.height)})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=n.length-1;o>=0;o--){var a=n[o],s=r.get(a.id);if(s){var l=s.parent,u=l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};p.positionElement(s,a,u,null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){r(e,t)}),this._elMap=h.createHashMap()},dispose:function(){this._clear()}})},function(t,e,n){n(56),n(138),n(53)},function(t,e,n){n(383),n(385),n(384),n(1).registerProcessor(n(386))},function(t,e,n){"use strict";var i=n(0),r=n(8),o=n(1).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){o.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=i.map(this.get("data")||[],function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new r(t,this,this.ecModel)},this);this._data=e;var n=i.map(t.getSeries(),function(t){return t.name});t.eachSeries(function(t){if(t.legendDataProvider){var e=t.legendDataProvider();n=n.concat(e.mapArray(e.getName))}}),this._availableNames=n},getData:function(){return this._data},select:function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;i.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;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&i.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,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});t.exports=o},function(t,e,n){function i(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function r(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function o(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var a=n(0),s=n(17),l=n(2),u=n(151),c=a.curry;t.exports=n(1).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,e,n){var s=this.group;if(s.removeAll(),t.get("show")){var h=t.get("selectedMode"),d=t.get("align");"auto"===d&&(d="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var f=a.createHashMap();a.each(t.getData(),function(a){var u=a.get("name");if(""===u||"\n"===u)return void s.add(new l.Group({newline:!0}));var p=e.getSeriesByName(u)[0];if(!f.get(u)){if(p){var g=p.getData(),v=g.getVisual("color");"function"==typeof v&&(v=v(p.getDataParams(0)));var m=g.getVisual("legendSymbol")||"roundRect",y=g.getVisual("symbol");this._createItem(u,a,t,m,y,d,v,h).on("click",c(i,u,n)).on("mouseover",c(r,p,null,n)).on("mouseout",c(o,p,null,n)),f.set(u,!0)}else e.eachRawSeries(function(e){if(!f.get(u)&&e.legendDataProvider){var s=e.legendDataProvider(),l=s.indexOfName(u);if(l<0)return;var p=s.getItemVisual(l,"color");this._createItem(u,a,t,"roundRect",null,d,p,h).on("click",c(i,u,n)).on("mouseover",c(r,e,u,n)).on("mouseout",c(o,e,u,n)),f.set(u,!0)}},this);__DEV__&&(f.get(u)||console.warn(u+" series not exists. Legend data should be same with series name or data name."))}},this),u.layout(s,t,n),u.addBackground(s,t)}},_createItem:function(t,e,n,i,r,o,u,c){var h=n.get("itemWidth"),d=n.get("itemHeight"),f=n.get("inactiveColor"),p=n.isSelected(t),g=new l.Group,v=e.getModel("textStyle"),m=e.get("icon"),y=e.getModel("tooltip"),x=y.parentModel;if(i=m||i,g.add(s.createSymbol(i,0,0,h,d,p?u:f)),!m&&r&&(r!==i||"none"==r)){var _=.8*d;"none"===r&&(r="circle"),g.add(s.createSymbol(r,(h-_)/2,(d-_)/2,_,_,p?u:f))}var b="left"===o?h+5:-5,w=o,S=n.get("formatter"),M=t;"string"==typeof S&&S?M=S.replace("{name}",null!=t?t:""):"function"==typeof S&&(M=S(t));var A=new l.Text({style:{text:M,x:b,y:d/2,fill:p?v.getTextColor():f,textFont:v.getFont(),textAlign:w,textVerticalAlign:"middle"}});g.add(A);var I=new l.Rect({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?a.extend({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},y.option):null});return g.add(I),g.eachChild(function(t){t.silent=!0}),I.silent=!c,this.group.add(g),l.setHoverStyle(g),g}})},function(t,e,n){function i(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();o.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}})}),{name:e.name,selected:r}}var r=n(1),o=n(0);r.registerAction("legendToggleSelect","legendselectchanged",o.curry(i,"toggleSelected")),r.registerAction("legendSelect","legendselected",o.curry(i,"select")),r.registerAction("legendUnSelect","legendunselected",o.curry(i,"unSelect"))},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}},function(t,e,n){n(390),n(391),n(1).registerPreprocessor(function(t){t.markArea=t.markArea||{}})},function(t,e,n){n(392),n(393),n(1).registerPreprocessor(function(t){t.markLine=t.markLine||{}})},function(t,e,n){n(394),n(395),n(1).registerPreprocessor(function(t){t.markPoint=t.markPoint||{}})},function(t,e,n){t.exports=n(98).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{normal:{show:!0,position:"top"},emphasis:{show:!0,position:"top"}},itemStyle:{normal:{borderWidth:0}}}})},function(t,e,n){function i(t){return!isNaN(t)&&!isFinite(t)}function r(t,e,n,r){var o=1-t;return i(e[o])&&i(n[o])}function o(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!r(1,n,i,t)&&!r(0,n,i,t))||(f.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||f.dataFilter(t,{coord:i,x:e.x1,y:e.y1}))}function a(t,e,n,r,o){var a,s=r.coordinateSystem,l=t.getItemModel(e),u=c.parsePercent(l.get(n[0]),o.getWidth()),h=c.parsePercent(l.get(n[1]),o.getHeight());if(isNaN(u)||isNaN(h)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(n,e));else{var d=t.get(n[0],e),f=t.get(n[1],e);a=s.dataToPoint([d,f],!0)}if("cartesian2d"===s.type){var p=s.getAxis("x"),g=s.getAxis("y"),d=t.get(n[0],e),f=t.get(n[1],e);i(d)?a[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):i(f)&&(a[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(a[0]=u),isNaN(h)||(a[1]=h)}else a=[u,h];return a}function s(t,e,n){var i,r,a=["x0","y0","x1","y1"];t?(i=l.map(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return n.name=t,n}),r=new u(l.map(a,function(t,e){return{name:t,type:i[e%2].type}}),n)):(i=[{name:"value",type:"float"}],r=new u(i,n));var s=l.map(n.get("data"),l.curry(p,e,t,n));t&&(s=l.filter(s,l.curry(o,t)));var c=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return r.initData(s,null,c),r.hasItemOption=!0,r}var l=n(0),u=n(10),c=n(3),h=n(2),d=n(24),f=n(100),p=function(t,e,n,i){var r=f.dataTransform(t,i[0]),o=f.dataTransform(t,i[1]),a=l.retrieve,s=r.coord,u=o.coord;s[0]=a(s[0],-1/0),s[1]=a(s[1],-1/0),u[0]=a(u[0],1/0),u[1]=a(u[1],1/0);var c=l.mergeAll([{},r,o]);return c.coord=[r.coord,o.coord],c.x0=r.x,c.y0=r.y,c.x1=o.x,c.y1=o.y,c},g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];n(99).extend({type:"markArea",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var i=e.getData();i.each(function(e){var r=l.map(g,function(r){return a(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},renderSeries:function(t,e,n,i){var r=t.coordinateSystem,o=t.name,u=t.getData(),c=this.markerGroupMap,f=c.get(o)||c.set(o,{group:new h.Group});this.group.add(f.group),f.__keep=!0;var p=s(r,t,e);e.setData(p),p.each(function(e){p.setItemLayout(e,l.map(g,function(n){return a(p,e,n,t,i)})),p.setItemVisual(e,{color:u.getVisual("color")})}),p.diff(f.__data).add(function(t){var e=new h.Polygon({shape:{points:p.getItemLayout(t)}});p.setItemGraphicEl(t,e),f.group.add(e)}).update(function(t,n){var i=f.__data.getItemGraphicEl(n);h.updateProps(i,{shape:{points:p.getItemLayout(t)}},e,t),f.group.add(i),p.setItemGraphicEl(t,i)}).remove(function(t){var e=f.__data.getItemGraphicEl(t);f.group.remove(e)}).execute(),p.eachItemGraphicEl(function(t,n){var i=p.getItemModel(n),r=i.getModel("label.normal"),o=i.getModel("label.emphasis"),a=p.getItemVisual(n,"color");t.useStyle(l.defaults(i.getModel("itemStyle.normal").getItemStyle(),{fill:d.modifyAlpha(a,.4),stroke:a})),t.hoverStyle=i.getModel("itemStyle.normal").getItemStyle();var s=p.getName(n)||"",u=a||t.style.fill;r.getShallow("show")?(h.setText(t.style,r,u),t.style.text=l.retrieve(e.getFormattedLabel(n,"normal"),s)):t.style.text="",o.getShallow("show")?(h.setText(t.hoverStyle,o,u),t.hoverStyle.text=l.retrieve(e.getFormattedLabel(n,"emphasis"),s)):t.hoverStyle.text="",h.setHoverStyle(t,{}),t.dataModel=e}),f.__data=p,f.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){t.exports=n(98).extend({type:"markLine",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"}})},function(t,e,n){function i(t){return!isNaN(t)&&!isFinite(t)}function r(t,e,n,r){var o=1-t,a=r.dimensions[t];return i(e[o])&&i(n[o])&&e[t]===n[t]&&r.getAxis(a).containData(e[t])}function o(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(r(1,n,i,t)||r(0,n,i,t)))return!0}return h.dataFilter(t,e[0])&&h.dataFilter(t,e[1])}function a(t,e,n,r,o){var a,s=r.coordinateSystem,l=t.getItemModel(e),u=c.parsePercent(l.get("x"),o.getWidth()),h=c.parsePercent(l.get("y"),o.getHeight());if(isNaN(u)||isNaN(h)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,f=t.get(d[0],e),p=t.get(d[1],e);a=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var g=s.getAxis("x"),v=s.getAxis("y"),d=s.dimensions;i(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):i(t.get(d[1],e))&&(a[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(u)||(a[0]=u),isNaN(h)||(a[1]=h)}else a=[u,h];t.setItemLayout(e,a)}function s(t,e,n){var i;i=t?l.map(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return n.name=t,n}):[{name:"value",type:"float"}];var r=new u(i,n),a=new u(i,n),s=new u([],n),c=l.map(n.get("data"),l.curry(f,e,t,n));t&&(c=l.filter(c,l.curry(o,t)));var d=t?h.dimValueGetter:function(t){return t.value};return r.initData(l.map(c,function(t){return t[0]}),null,d),a.initData(l.map(c,function(t){return t[1]}),null,d),s.initData(l.map(c,function(t){return t[2]})),s.hasItemOption=!0,{from:r,to:a,line:s}}var l=n(0),u=n(10),c=n(3),h=n(100),d=n(91),f=function(t,e,n,i){var r=t.getData(),o=i.type;if(!l.isArray(i)&&("min"===o||"max"===o||"average"===o||null!=i.xAxis||null!=i.yAxis)){var a,s;if(null!=i.yAxis||null!=i.xAxis)a=null!=i.yAxis?"y":"x",e.getAxis(a),s=l.retrieve(i.yAxis,i.xAxis);else{var u=h.getAxisInfo(i,r,e,t);a=u.valueDataDim,u.valueAxis,s=h.numCalculate(r,a,o)}var c="x"===a?0:1,d=1-c,f=l.clone(i),p={};f.type=null,f.coord=[],p.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var g=n.get("precision");g>=0&&"number"==typeof s&&(s=+s.toFixed(g)),f.coord[c]=p.coord[c]=s,i=[f,p,{type:o,valueIndex:i.valueIndex,value:s}]}return i=[h.dataTransform(t,i[0]),h.dataTransform(t,i[1]),l.extend({},i[2])],i[2].type=i[2].type||"",l.merge(i[2],i[0]),l.merge(i[2],i[1]),i};n(99).extend({type:"markLine",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each(function(e){a(r,e,!0,t,n),a(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,n,i){function r(e,n,r){var o=e.getItemModel(n);a(e,n,r,t,i),e.setItemVisual(n,{symbolSize:o.get("symbolSize")||x[r?0:1],symbol:o.get("symbol",!0)||y[r?0:1],color:o.get("itemStyle.normal.color")||c.getVisual("color")})}var o=t.coordinateSystem,u=t.id,c=t.getData(),h=this.markerGroupMap,f=h.get(u)||h.set(u,new d);this.group.add(f.group);var p=s(o,t,e),g=p.from,v=p.to,m=p.line;e.__from=g,e.__to=v,e.setData(m);var y=e.get("symbol"),x=e.get("symbolSize");l.isArray(y)||(y=[y,y]),"number"==typeof x&&(x=[x,x]),p.from.each(function(t){r(g,t,!0),r(v,t,!1)}),m.each(function(t){var e=m.getItemModel(t).get("lineStyle.normal.color");m.setItemVisual(t,{color:e||g.getItemVisual(t,"color")}),m.setItemLayout(t,[g.getItemLayout(t),v.getItemLayout(t)]),m.setItemVisual(t,{fromSymbolSize:g.getItemVisual(t,"symbolSize"),fromSymbol:g.getItemVisual(t,"symbol"),toSymbolSize:v.getItemVisual(t,"symbolSize"),toSymbol:v.getItemVisual(t,"symbol")})}),f.updateData(m),p.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){t.dataModel=e})}),f.__keep=!0,f.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){t.exports=n(98).extend({type:"markPoint",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}}}})},function(t,e,n){function i(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),l=s.parsePercent(a.get("x"),n.getWidth()),u=s.parsePercent(a.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var c=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([c,h])}}else o=[l,u];isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),t.setItemLayout(r,o)})}function r(t,e,n){var i;i=t?a.map(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return n.name=t,n}):[{name:"value",type:"float"}];var r=new l(i,n),o=a.map(n.get("data"),a.curry(u.dataTransform,e));return t&&(o=a.filter(o,a.curry(u.dataFilter,t))),r.initData(o,null,t?u.dimValueGetter:function(t){return t.value}),r}var o=n(52),a=n(0),s=n(3),l=n(10),u=n(100);n(99).extend({type:"markPoint",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markPointModel;e&&(i(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,n,a){var s=t.coordinateSystem,l=t.id,u=t.getData(),c=this.markerGroupMap,h=c.get(l)||c.set(l,new o),d=r(s,t,e);e.setData(d),i(e.getData(),t,a),d.each(function(t){var n=d.getItemModel(t),i=n.getShallow("symbolSize");"function"==typeof i&&(i=i(e.getRawValue(t),e.getDataParams(t))),d.setItemVisual(t,{symbolSize:i,color:n.get("itemStyle.normal.color")||u.getVisual("color"),symbol:n.getShallow("symbol")})}),h.updateData(d),this.group.add(h.group),d.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),h.__keep=!0,h.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){n(166),n(358),n(355)},function(t,e,n){"use strict";var i=n(0);n(103),n(346),n(400),n(53),n(350),n(1).registerLayout(i.curry(n(468),"bar")),n(1).extendComponentView({type:"polar"})},function(t,e,n){n(458),n(459),n(399)},function(t,e,n){var i=n(35),r=n(0),o=n(2),a=["axisLine","axisLabel","axisTick","axisName"];t.exports=n(1).extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),o=r.map(n,function(t){return new i(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});r.each(o,function(t){r.each(a,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}var n=t.coordinateSystem,i=n.getIndicatorAxes();if(i.length){var a=t.get("shape"),s=t.getModel("splitLine"),l=t.getModel("splitArea"),u=s.getModel("lineStyle"),c=l.getModel("areaStyle"),h=s.get("show"),d=l.get("show"),f=u.get("color"),p=c.get("color");f=r.isArray(f)?f:[f],p=r.isArray(p)?p:[p];var g=[],v=[];if("circle"===a)for(var m=i[0].getTicksCoords(),y=n.cx,x=n.cy,_=0;_<m.length;_++){if(h){var b=e(g,f,_);g[b].push(new o.Circle({shape:{cx:y,cy:x,r:m[_]}}))}if(d&&_<m.length-1){var b=e(v,p,_);v[b].push(new o.Ring({shape:{cx:y,cy:x,r0:m[_],r:m[_+1]}}))}}else for(var w,S=r.map(i,function(t,e){var i=t.getTicksCoords();return w=null==w?i.length-1:Math.min(i.length-1,w),r.map(i,function(t){return n.coordToPoint(t,e)})}),M=[],_=0;_<=w;_++){for(var A=[],I=0;I<i.length;I++)A.push(S[I][_]);if(A[0]?A.push(A[0].slice()):__DEV__&&console.error("Can't draw value axis "+_),h){var b=e(g,f,_);g[b].push(new o.Polyline({shape:{points:A}}))}if(d&&M){var b=e(v,p,_-1);v[b].push(new o.Polygon({shape:{points:A.concat(M)}}))}M=A.slice().reverse()}var T=u.getLineStyle(),C=c.getAreaStyle();r.each(v,function(t,e){this.group.add(o.mergePath(t,{style:r.defaults({stroke:"none",fill:p[e%p.length]},C),silent:!0}))},this),r.each(g,function(t,e){this.group.add(o.mergePath(t,{style:r.defaults({fill:"none",stroke:f[e%f.length]},T),silent:!0}))},this)}}})},function(t,e,n){n(103),n(356)},function(t,e,n){n(1).registerPreprocessor(n(407)),n(409),n(408),n(402),n(403)},function(t,e,n){var i=n(405),r=n(0),o=n(4),a=i.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});r.mixin(a,o.dataFormatMixin),t.exports=a},function(t,e,n){function i(t,e){return u.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function r(t,e,n,i){return l.makePath(t.get(e).replace(/^path:\/\//,""),s.clone(i||{}),new p(n[0],n[1],n[2],n[3]),"center")}function o(t,e,n,i,r,o){var a=e.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var l=t.get("symbol");r=d.createSymbol(l,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var u=e.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(u),i=s.merge({rectHover:!0,z2:100},i,!0);var c=t.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,i.scale=c;var h=t.get("symbolOffset");if(h){var f=i.position=i.position||[0,0];f[0]+=v.parsePercent(h[0],c[0]),f[1]+=v.parsePercent(h[1],c[1])}var p=t.get("symbolRotate");return i.rotation=(p||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function a(t,e,n,i,r){if(!t.dragging){var o=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}var s=n(0),l=n(2),u=n(7),c=n(406),h=n(404),d=n(17),f=n(15),p=n(9),g=n(18),v=n(3),m=n(6),y=m.encodeHTML,x=s.bind,_=s.each,b=Math.PI;t.exports=c.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return y(s.scale.getLabel(t))},_(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,o,s,t)},this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.normal.position"),r=t.get("orient"),o=i(t,e);null==n||"auto"===n?n="horizontal"===r?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]);var a={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:b/2},u="vertical"===r?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show"),d=h?c.get("itemSize"):0,f=h?c.get("itemGap"):0,p=d+f,g=t.get("label.normal.rotate")||0;g=g*b/180;var v,m,y,x,_=c.get("position",!0),h=c.get("show",!0),w=h&&c.get("showPlayBtn",!0),S=h&&c.get("showPrevBtn",!0),M=h&&c.get("showNextBtn",!0),A=0,I=u;return"left"===_||"bottom"===_?(w&&(v=[0,0],A+=p),S&&(m=[A,0],A+=p),M&&(y=[I-d,0],I-=p)):(w&&(v=[I-d,0],I-=p),S&&(m=[0,0],A+=p),M&&(y=[I-d,0],I-=p)),x=[A,I],t.get("inverse")&&x.reverse(),{viewRect:o,mainLength:u,orient:r,rotation:l[r],labelRotation:g,labelPosOpt:n,labelAlign:t.get("label.normal.textStyle.align")||a[r],labelBaseline:t.get("label.normal.textStyle.baseline")||s[r],playPosition:v,prevBtnPosition:m,nextBtnPosition:y,axisExtent:x,controlSize:d,controlGap:f}},_position:function(t,e){function n(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function r(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}var o=this._mainGroup,a=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=g.create(),u=s.x,c=s.y+s.height;g.translate(l,l,[-u,-c]),g.rotate(l,l,-b/2),g.translate(l,l,[u,c]),s=s.clone(),s.applyTransform(l)}var h=i(s),d=i(o.getBoundingRect()),f=i(a.getBoundingRect()),p=o.position,v=a.position;v[0]=p[0]=h[0][0];var m=t.labelPosOpt;if(isNaN(m)){var y="+"===m?0:1;r(p,d,h,1,y),r(v,f,h,1,1-y)}else{var y=m>=0?0:1;r(p,d,h,1,y),v[1]=p[1]+m}o.attr("position",p),a.attr("position",v),o.rotation=a.rotation=t.rotation,n(o),n(a)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=f.createScaleByModel(e,i),o=n.getDataExtent("value");r.setExtent(o[0],o[1]),this._customizeScale(r,n),r.niceTicks();var a=new h("value",r,t.axisExtent,i);return a.model=e,a},_customizeScale:function(t,e){t.getTicks=function(){return e.mapArray(["value"],function(t){return t})},t.getTicksLabels=function(){return s.map(this.getTicks(),t.getLabel,t)}},_createGroup:function(t){var e=this["_"+t]=new l.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var r=n.getExtent();i.get("lineStyle.show")&&e.add(new l.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:s.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData(),a=n.scale.getTicks();_(a,function(t,a){var s=n.dataToCoord(t),u=r.getItemModel(a),c=u.getModel("itemStyle.normal"),h=u.getModel("itemStyle.emphasis"),d={position:[s,0],onclick:x(this._changeTimeline,this,a)},f=o(u,c,e,d);l.setHoverStyle(f,h.getItemStyle()),u.get("tooltip")?(f.dataIndex=a,f.dataModel=i):f.dataIndex=f.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){var r=i.getModel("label.normal");if(r.get("show")){var o=i.getData(),a=n.scale.getTicks(),s=f.getFormattedLabels(n,r.get("formatter")),u=n.getLabelInterval();_(a,function(i,r){if(!n.isLabelIgnored(r,u)){var a=o.getItemModel(r),c=a.getModel("label.normal.textStyle"),h=a.getModel("label.emphasis.textStyle"),d=n.dataToCoord(i),f=new l.Text({style:{text:s[r],textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline,textFont:c.getFont(),fill:c.getTextColor()},position:[d,0],rotation:t.labelRotation-t.rotation,onclick:x(this._changeTimeline,this,r),silent:!1});e.add(f),l.setHoverStyle(f,h.getItemStyle())}},this)}},_renderControl:function(t,e,n,i){function o(t,n,o,d){if(t){var f={position:t,origin:[a/2,0],rotation:d?-s:0,rectHover:!0,style:u,onclick:o},p=r(i,n,h,f);e.add(p),l.setHoverStyle(p,c)}}var a=t.controlSize,s=t.rotation,u=i.getModel("controlStyle.normal").getItemStyle(),c=i.getModel("controlStyle.emphasis").getItemStyle(),h=[0,-a/2,a,a],d=i.getPlayState(),f=i.get("inverse",!0);o(t.nextBtnPosition,"controlStyle.nextIcon",x(this._changeTimeline,this,f?"-":"+")),o(t.prevBtnPosition,"controlStyle.prevIcon",x(this._changeTimeline,this,f?"+":"-")),o(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),x(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),s=i.getCurrentIndex(),l=r.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(t){t.draggable=!0,t.drift=x(u._handlePointerDrag,u),t.ondragend=x(u._handlePointerDragend,u),a(t,s,n,i,!0)},onUpdate:function(t){a(t,s,n,i)}};this._currentPointer=o(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=v.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(x(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return l.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}})},function(t,e,n){var i=n(0),r=n(30),o=n(15),a=function(t,e,n,i){r.call(this,t,e,n),this.type=i||"value",this._autoLabelInterval,this.model=null};a.prototype={constructor:a,getLabelInterval:function(){var t=this.model,e=t.getModel("label.normal"),n=e.get("interval");if(null!=n&&"auto"!=n)return n;var n=this._autoLabelInterval;return n||(n=this._autoLabelInterval=o.getAxisLabelInterval(i.map(this.scale.getTicks(),this.dataToCoord,this),o.getFormattedLabels(this,e.get("formatter")),e.getModel("textStyle").getFont(),"horizontal"===t.get("orient"))),n},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}}},i.inherits(a,r),t.exports=a},function(t,e,n){var i=n(11),r=n(10),o=n(0),a=n(4),s=i.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,i=this._names=[];if("category"===n){var s=[];o.each(e,function(t,e){var n,r=a.getDataItemValue(t);o.isObject(t)?(n=o.clone(t),n.value=e):n=e,s.push(n),o.isString(r)||null!=r&&!isNaN(r)||(r=""),i.push(r+"")}),e=s}var l={category:"ordinal",time:"time"}[n]||"number";(this._data=new r([{name:"value",type:l}],this)).initData(e,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});t.exports=s},function(t,e,n){var i=n(107);t.exports=i.extend({type:"timeline"})},function(t,e,n){function i(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),r(t),o(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});o(i,"position")||(i.position=t.controlPosition),"none"!==i.position||o(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}a.each(t.data||[],function(t){a.isObject(t)&&!a.isArray(t)&&(!o(t,"value")&&o(t,"name")&&(t.value=t.name),r(t))})}function r(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),s={normal:1,emphasis:1};a.each(i,function(t,e){s[e]||o(r,e)||(r[e]=t)}),n.label&&!o(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function o(t,e){return t.hasOwnProperty(e)}var a=n(0);t.exports=function(t){var e=t&&t.timeline;a.isArray(e)||(e=e?[e]:[]),a.each(e,function(t){t&&i(t)})}},function(t,e,n){var i=n(1),r=n(0);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),r.defaults({currentIndex:n.option.currentIndex},t)}),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})},function(t,e,n){n(11).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(t,e,n){"use strict";var i=n(1),r=n(2),o=n(7);i.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"}}}),i.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=t.get("textBaseline"),c=new r.Text({style:{text:t.get("text"),textFont:a.getFont(),fill:a.getTextColor()},z2:10}),h=c.getBoundingRect(),d=t.get("subtext"),f=new r.Text({style:{text:d,textFont:s.getFont(),fill:s.getTextColor(),y:h.height+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),g=t.get("sublink");c.silent=!p,f.silent=!g,p&&c.on("click",function(){window.open(p,"_"+t.get("target"))}),g&&f.on("click",function(){window.open(g,"_"+t.get("subtarget"))}),i.add(c),d&&i.add(f);var v=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=v.width,m.height=v.height;var y=o.getLayoutRect(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?y.y+=y.height:"middle"===u&&(y.y+=y.height/2),u=u||"top"),i.attr("position",[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c.setStyle(x),f.setStyle(x),v=i.getBoundingRect();var _=y.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new r.Rect({shape:{x:v.x-_[3],y:v.y-_[0],width:v.width+_[1]+_[3],height:v.height+_[0]+_[2]},style:b,silent:!0});r.subPixelOptimizeRect(w),i.add(w)}}})},function(t,e,n){n(412),n(413),n(419),n(417),n(415),n(416),n(418)},function(t,e,n){var i=n(29),r=n(0),o=n(1).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 n=i.get(e);n&&r.merge(t,n.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(t,e,n){function i(t){return 0===t.indexOf("my")}var r=n(29),o=n(0),a=n(2),s=n(8),l=n(58),u=n(151),c=n(22);t.exports=n(1).extendComponentView({type:"toolbox",render:function(t,e,n,h){function d(o,a){var l,u=y[o],c=y[a],d=v[u],p=new s(d,t,t.ecModel);if(u&&!c){if(i(u))l={model:p,onclick:p.option.onclick,featureName:u};else{var g=r.get(u);if(!g)return;l=new g(p,e,n)}m[u]=l}else{if(!(l=m[c]))return;l.model=p,l.ecModel=e,l.api=n}return!u&&c?void(l.dispose&&l.dispose(e,n)):!p.get("show")||l.unusable?void(l.remove&&l.remove(e,n)):(f(p,l,u),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},void(l.render&&l.render(p,e,n,h)))}function f(i,r,s){var l=i.getModel("iconStyle"),u=r.getIcons?r.getIcons():i.get("icon"),c=i.get("title")||{};if("string"==typeof u){var h=u,d=c;u={},c={},u[s]=h,c[s]=d}var f=i.iconPaths={};o.each(u,function(s,u){var h=l.getModel("normal").getItemStyle(),d=l.getModel("emphasis").getItemStyle(),v={x:-g/2,y:-g/2,width:g,height:g},m=0===s.indexOf("image://")?(v.image=s.slice(8),new a.Image({style:v})):a.makePath(s.replace("path://",""),{style:h,hoverStyle:d,rectHover:!0},v,"center");a.setHoverStyle(m),t.get("showTitle")&&(m.__title=c[u],m.on("mouseover",function(){var t=l.getModel("emphasis").getItemStyle();m.setStyle({text:c[u],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){m.setStyle({textFill:null})})),m.trigger(i.get("iconStatus."+u)||"normal"),p.add(m),m.on("click",o.bind(r.onclick,r,e,n,u)),f[u]=m})}var p=this.group;if(p.removeAll(),t.get("show")){var g=+t.get("itemSize"),v=t.get("feature")||{},m=this._features||(this._features={}),y=[];o.each(v,function(t,e){y.push(e)}),new l(this._featureNames||[],y).add(d).update(d).remove(o.curry(d,null)).execute(),this._featureNames=y,u.layout(p,t,n),u.addBackground(p,t),p.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=c.getBoundingRect(e,i.font),o=t.position[0]+p.position[0],a=t.position[1]+p.position[1]+g,s=!1;a+r.height>n.getHeight()&&(i.textPosition="top",s=!0);var l=s?-5-r.height:g+8;o+r.width/2>n.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}})}},updateView:function(t,e,n,i){o.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},updateLayout:function(t,e,n,i){o.each(this._features,function(t){t.updateLayout&&t.updateLayout(t.model,e,n,i)})},remove:function(t,e){o.each(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){o.each(this._features,function(n){n.dispose&&n.dispose(t,e)})}})},function(t,e,n){"use strict";function i(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}var r=n(29),o=n(0);i.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}};var a=i.prototype;a.render=a.updateView=a.updateLayout=function(t,e,n){var i,r,a;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",a|=t.areas.length}),this._brushType=i,this._brushMode=r,o.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?a:e===i)?"emphasis":"normal")})},a.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return o.each(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},a.onclick=function(t,e,n){var e=this.api,i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},r.register("brush",i),t.exports=i},function(t,e,n){function i(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function r(t){var e=[];return p.each(t,function(t,n){var i=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(p.map(t.series,function(t){return t.name})),s=[i.model.getCategories()];p.each(t.series,function(t){s.push(t.getRawData().mapArray(o,function(t){return t}))});for(var l=[a.join(m)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(m))}e.push(l.join("\n"))}),e.join("\n\n"+v+"\n\n")}function o(t){return p.map(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+m:"")+i.join(m))}),n.join("\n")}).join("\n\n"+v+"\n\n")}function a(t){var e=i(t);return{value:p.filter([r(e.seriesGroupByCategoryAxis),o(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+v+"\n\n"),meta:e.meta}}function s(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(t){if(t.slice(0,t.indexOf("\n")).indexOf(m)>=0)return!0}function u(t){for(var e=t.split(/\n+/g),n=s(e.shift()).split(y),i=[],r=p.map(n,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=s(e[o]).split(y);i.push(a.shift());for(var l=0;l<a.length;l++)r[l]&&(r[l].data[o]=a[l])}return{series:r,categories:i}}function c(t){for(var e=t.split(/\n+/g),n=s(e.shift()),i=[],r=0;r<e.length;r++){var o,a=s(e[r]).split(y),l="",u=!1;isNaN(a[0])?(u=!0,l=a[0],a=a.slice(1),i[r]={name:l,value:[]},o=i[r].value):o=i[r]=[];for(var c=0;c<a.length;c++)o.push(+a[c]);1===o.length&&(u?i[r].value=o[0]:i[r]=o[0])}return{name:n,data:i}}function h(t,e){var n=t.split(new RegExp("\n*"+v+"\n*","g")),i={series:[]};return p.each(n,function(t,n){if(l(t)){var r=u(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{var r=c(t);i.series.push(r)}}),i}function d(t){this._dom=null,this.model=t}function f(t,e){return p.map(t,function(t,n){var i=e&&e[n];return p.isObject(i)&&!p.isArray(i)?(p.isObject(t)&&!p.isArray(t)&&(t=t.value),p.defaults({value:t},i)):t})}var p=n(0),g=n(23),v=new Array(60).join("-"),m="\t",y=new RegExp("["+m+"]+","g");d.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},d.prototype.onclick=function(t,e){function n(){i.removeChild(o),M._dom=null}var i=e.getDom(),r=this.model;this._dom&&i.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 s=document.createElement("h4"),l=r.get("lang")||[];s.innerHTML=l[0]||r.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=r.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var d=r.get("optionToContent"),f=r.get("contentToOption"),v=a(t);if("function"==typeof d){var y=d(e.getOption());"string"==typeof y?u.innerHTML=y:p.isDom(y)&&u.appendChild(y)}else u.appendChild(c),c.readOnly=r.get("readOnly"),c.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",c.style.color=r.get("textColor"),c.style.borderColor=r.get("textareaBorderColor"),c.style.backgroundColor=r.get("textareaColor"),c.value=v.value;var x=v.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),S=document.createElement("div");b+=";background-color:"+r.get("buttonColor"),b+=";color:"+r.get("buttonTextColor");var M=this;g.addEventListener(w,"click",n),g.addEventListener(S,"click",function(){var t;try{t="function"==typeof f?f(u,e.getOption()):h(c.value,x)}catch(t){throw n(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),n()}),w.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=b,w.style.cssText=b,!r.get("readOnly")&&_.appendChild(S),_.appendChild(w),g.addEventListener(c,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,n=this.selectionStart,i=this.selectionEnd;this.value=e.substring(0,n)+m+e.substring(i),this.selectionStart=this.selectionEnd=n+1,g.stop(t)}}),o.appendChild(s),o.appendChild(u),o.appendChild(_),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},d.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},d.prototype.dispose=function(t,e){this.remove(t,e)},n(29).register("dataView",d),n(1).registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];p.each(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:f(t.data,r)})}else n.push(p.extend({type:"scatter"},t))}),e.mergeOption(p.defaults({series:n},t.newOption))}),t.exports=d},function(t,e,n){"use strict";function i(t,e,n){(this._brushController=new l(n.getZr())).on("brush",s.bind(this._onBrush,this)).mount(),this._isZoomActive}function r(t){var e={};return s.each(["xAxisIndex","yAxisIndex"],function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(!1===e[n]||"none"===e[n])&&(e[n]=[])}),e}function o(t,e){t.setIconStatus("back",c.count(e)>1?"emphasis":"normal")}function a(t,e,n,i,o){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new u(r(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!a&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}var s=n(0),l=n(95),u=n(147),c=n(145),h=n(57),d=s.each;n(369);var f="\0_ec_\0toolbox-dataZoom_";i.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 p=i.prototype;p.render=function(t,e,n,i){this.model=t,this.ecModel=e,this.api=n,a(t,e,this,i,n),o(t,e)},p.onclick=function(t,e,n){g[n].call(this)},p.remove=function(t,e){this._brushController.unmount()},p.dispose=function(t,e){this._brushController.dispose()};var g={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(c.pop(this.ecModel))}};p._onBrush=function(t,e){function n(t,e,n){var r=e.getAxis(t),s=r.model,l=i(t,s,a),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(n=h(0,n.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(o[l.id]={dataZoomId:l.id,startValue:n[0],endValue:n[1]})}function i(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}if(e.isEnd&&t.length){var o={},a=this.ecModel;this._brushController.updateCovers([]);new u(r(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,function(t,e,i){if("cartesian2d"===i.type){var r=t.brushType;"rect"===r?(n("x",i,e[0]),n("y",i,e[1])):n({lineX:"x",lineY:"y"}[r],i,e)}}),c.push(a,o),this._dispatchZoomAction(o)}},p._dispatchZoomAction=function(t){var e=[];d(t,function(t,n){e.push(s.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},n(29).register("dataZoom",i),n(1).registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",o=e[r];null==o||"all"==o||s.isArray(o)||(o=!1===o||"none"===o?[]:[o]),n(t,function(e,n){if(null==o||"all"==o||-1!==s.indexOf(o,n)){var a={type:"select",$fromToolbox:!0,id:f+t+n};a[r]=n,i.push(a)}})}}function n(e,n){var i=t[e];s.isArray(i)||(i=i?[i]:[]),d(i,n)}if(t){var i=t.dataZoom||(t.dataZoom=[]);s.isArray(i)||(t.dataZoom=i=[i]);var r=t.toolbox;if(r&&(s.isArray(r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var r=n(0);i.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 o=i.prototype;o.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return r.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var a={line:function(t,e,n,i){if("bar"===t)return r.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return r.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return r.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return r.merge({id:e,stack:""},i.get("option.tiled")||{},!0)}},s=[["line","bar"],["stack","tiled"]];o.onclick=function(t,e,n){var i=this.model,o=i.get("seriesIndex."+n);if(a[n]){var l={series:[]},u=function(e){var o=e.subType,s=e.id,u=a[n](o,s,e,i);u&&(r.defaults(u,e.option),l.series.push(u));var c=e.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var h=c.getAxesByScale("ordinal")[0];if(h){var d=h.dim,f=d+"Axis",p=t.queryComponents({mainType:f,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=p.componentIndex;l[f]=l[f]||[];for(var v=0;v<=g;v++)l[f][g]=l[f][g]||{};l[f][g].boundaryGap="bar"===n}}};r.each(s,function(t){r.indexOf(t,n)>=0&&r.each(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},u),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:l})}},n(1).registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),n(29).register("magicType",i),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var r=n(145);i.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:"还原"},i.prototype.onclick=function(t,e,n){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},n(29).register("restore",i),n(1).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.exports=i},function(t,e,n){function i(t){this.model=t}var r=n(12);i.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:["右键另存为图片"]},i.prototype.unusable=!r.canvasSupported,i.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=document.createElement("a"),a=n.get("type",!0)||"png";o.download=i+"."+a,o.target="_blank";var s=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(o.href=s,"function"!=typeof MouseEvent||r.browser.ie||r.browser.edge){var l=n.get("lang"),u='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>';window.open().document.write(u)}else{var c=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(c)}},n(29).register("saveAsImage",i),t.exports=i},function(t,e,n){n(53),n(422),n(423),n(1).registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),n(1).registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(t,e,n){function i(t){var e="left "+t+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)";return s.map(p,function(t){return t+"transition:"+e}).join(";")}function r(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),h(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function o(t){var e=[],n=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.getModel("textStyle"),s=t.get("padding");return n&&e.push(i(n)),o&&(f.canvasSupported?e.push("background-Color:"+o):(e.push("background-Color:#"+l.toHex(o)),e.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(n){var i="border-"+n,r=d(i),o=t.get(r);null!=o&&e.push(i+":"+o+("color"===n?"":"px"))}),e.push(r(a)),null!=s&&e.push("padding:"+c.normalizeCssArray(s).join("px ")+"px"),e.join(";")+";"}function a(t,e){var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;u.normalizeEvent(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}var s=n(0),l=n(24),u=n(23),c=n(6),h=s.each,d=c.toCamelCase,f=n(12),p=["","-webkit-","-moz-","-o-"];a.prototype={constructor:a,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+o(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRoot())&&(t+=n.offsetLeft||0,e+=n.offsetTop||0);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},t.exports=a},function(t,e,n){n(1).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}})},function(t,e,n){function i(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(n instanceof m&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new m(n,e,e.ecModel))}return e}function r(t,e){return t.dispatchAction||c.bind(e.dispatchAction,e)}function o(t,e,n,i,r,o,a){var s=n.clientWidth,l=n.clientHeight;return null!=o&&(t+s+o>i?t-=s+o:t+=o),null!=a&&(e+l+a>r?e-=l+a:e+=a),[t,e]}function a(t,e,n,i,r){var o=n.clientWidth,a=n.clientHeight;return t=Math.min(t+o,i)-o,e=Math.min(e+a,r)-a,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function s(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-5;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+5;break;case"left":o=e.x-i-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+5,a=e.y+l/2-r/2}return[o,a]}function l(t){return"center"===t||"middle"===t}var u=n(421),c=n(0),h=n(6),d=n(3),f=n(2),p=n(139),g=n(7),v=n(12),m=n(8),y=n(140),x=n(15),_=n(65),b=c.bind,w=c.each,S=d.parsePercent,M=new f.Rect({shape:{x:-1,y:-1,width:2,height:2}});n(1).extendComponentView({type:"tooltip",init:function(t,e){if(!v.node){var n=new u(e.getDom(),e);this._tooltipContent=n}},render:function(t,e,n){if(!v.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");y.register("itemTooltip",this._api,b(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!v.node){var o=r(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=M;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},o)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=p(i,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:i.position,target:l.el,event:{}},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},o))}},manuallyHideTip:function(t,e,n,i){var o=this._tooltipContent;this._alwaysShowContent||o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(r(i,n))},_manuallyAxisShowTip:function(t,e,n,r){var o=r.seriesIndex,a=r.dataIndex,s=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=a&&null!=s){var l=e.getSeriesByIndex(o);if(l){var u=l.getData(),t=i([u.getItemModel(a),l,(l.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:r.position}),!0}}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=c.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,r=this._tooltipModel,o=[e.offsetX,e.offsetY],a=[],s=[],l=i([e.tooltipOption,r]);w(t,function(t){w(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,r=[];if(e&&null!=i){var o=_.getValueLabel(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);c.each(t.seriesDataIndices,function(a){var l=n.getSeriesByIndex(a.seriesIndex),u=a.dataIndexInside,c=l&&l.getDataParams(u);c.axisDim=t.axisDim,c.axisIndex=t.axisIndex,c.axisType=t.axisType,c.axisId=t.axisId,c.axisValue=x.getAxisRawValue(e.axis,i),c.axisValueLabel=o,c&&(s.push(c),r.push(l.formatTooltip(u,!0)))});var l=o;a.push((l?h.encodeHTML(l)+"<br />":"")+r.join("<br />"))}})},this),a.reverse(),a=a.join("<br /><br />");var u=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,u,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(l,a,s,Math.random(),o[0],o[1],u)})},_showSeriesItemTooltip:function(t,e,n){var r=this._ecModel,o=e.seriesIndex,a=r.getSeriesByIndex(o),s=e.dataModel||a,l=e.dataIndex,u=e.dataType,c=s.getData(),h=i([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var f=s.getDataParams(l,u),p=s.formatTooltip(l,!1,u),g="item_"+s.name+"_"+l;this._showOrMove(h,function(){this._showTooltipContent(h,p,f,g,t.offsetX,t.offsetY,t.position,t.target)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){var r=i;i={content:r,formatter:r}}var o=new m(i,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,o,a,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,u=t.get("formatter");a=a||t.get("position");var c=e;if(u&&"string"==typeof u)c=h.formatTpl(u,n,!0);else if("function"==typeof u){var d=b(function(e,i){e===this._ticket&&(l.setContent(i),this._updatePosition(t,a,r,o,l,n,s))},this);this._ticket=i,c=u(n,i,d)}l.setContent(c),l.show(t),this._updatePosition(t,a,r,o,l,n,s)}},_updatePosition:function(t,e,n,i,r,u,h){var d=this._api.getWidth(),f=this._api.getHeight();e=e||t.get("position");var p=r.getSize(),v=t.get("align"),m=t.get("verticalAlign"),y=h&&h.getBoundingRect().clone();if(h&&y.applyTransform(h.transform),"function"==typeof e&&(e=e([n,i],u,r.el,y,{viewSize:[d,f],contentSize:p.slice()})),c.isArray(e))n=S(e[0],d),i=S(e[1],f);else if(c.isObject(e)){e.width=p[0],e.height=p[1];var x=g.getLayoutRect(e,{width:d,height:f});n=x.x,i=x.y,v=null,m=null}else if("string"==typeof e&&h){var _=s(e,y,p);n=_[0],i=_[1]}else{var _=o(n,i,r.el,d,f,v?null:20,m?null:20);n=_[0],i=_[1]}if(v&&(n-=l(v)?p[0]/2:"right"===v?p[0]:0),m&&(i-=l(m)?p[1]/2:"bottom"===m?p[1]:0),t.get("confine")){var _=a(n,i,r.el,d,f);n=_[0],i=_[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&w(e,function(e,i){var r=e.dataByAxis||{},o=t[i]||{},a=o.dataByAxis||[];(n&=r.length===a.length)&&w(r,function(t,e){var i=a[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length)&&w(r,function(t,e){var i=o[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){v.node||(this._tooltipContent.hide(),y.unregister("itemTooltip",e))}})},function(t,e,n){n(425),n(426)},function(t,e,n){n(1).registerPreprocessor(n(158)),n(159),n(160),n(427),n(428),n(161)},function(t,e,n){n(1).registerPreprocessor(n(158)),n(159),n(160),n(429),n(430),n(161)},function(t,e,n){function i(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var r=n(155),o=n(0),a=n(3),s=[20,140],l=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:!0},optionUpdated:function(t,e){l.superApply(this,"optionUpdated",arguments),this.resetTargetSeries(),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){l.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=s[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):o.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),o.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},!0,this),e.push({seriesId:n.id,dataIndex:i})},this),e},getVisualMeta:function(t){function e(e,n){o.push({value:e,color:t(e,n)})}for(var n=i(this,"outOfRange",this.getExtent()),r=i(this,"inRange",this.option.range.slice()),o=[],a=0,s=0,l=r.length,u=n.length;s<u&&(!r.length||n[s]<=r[0]);s++)n[s]<r[a]&&e(n[s],"outOfRange");for(var c=1;a<l;a++,c=0)c&&o.length&&e(r[a],"outOfRange"),e(r[a],"inRange");for(var c=1;s<u;s++)(!r.length||r[r.length-1]<n[s])&&(c&&(o.length&&e(o[o.length-1].value,"outOfRange"),c=0),e(n[s],"outOfRange"));var h=o.length;return{stops:o,outerColors:[h?o[0].color:"transparent",h?o[h-1].color:"transparent"]}}});t.exports=l},function(t,e,n){function i(t,e,n,i){return new u.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){v.stop(t.event)},ondragend:i})}function r(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function o(t,e,n,i){return t?[[0,-x(e,_(n,0))],[w,0],[0,x(e,_(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function a(t,e,n){var i=b/2,r=t.get("hoverLinkDataSize");return r&&(i=m(r,e,n,!0)/2),i}function s(t){return!t.get("realtime")&&t.get("hoverLinkOnHandle")}var l=n(156),u=n(2),c=n(0),h=n(3),d=n(57),f=n(182),p=n(157),g=n(4),v=n(23),m=h.linearMap,y=c.each,x=Math.min,_=Math.max,b=12,w=6,S=l.extend({type:"visualMap.continuous",init:function(){S.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.barGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new u.Text({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===h?"middle":c,textAlign:"horizontal"===h?c:"center",text:i,textFont:d.getFont(),fill:d.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,o=this._orient,a=this._useHandle,s=p.getItemAlign(e,this.api,r),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=i()),l.add(n.inRange=i(null,a?"move":null,c.bind(this._dragHandle,this,"all",!1),c.bind(this._dragHandle,this,"all",!0)));var u=e.textStyleModel.getTextRect("国"),h=_(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,r,h,o,s),this._createHandle(l,1,r,h,o,s)),this._createIndicator(l,r,h,o),t.add(l)},_createHandle:function(t,e,n,o,a){var s=c.bind(this._dragHandle,this,e,!1),l=c.bind(this._dragHandle,this,e,!0),h=i(r(e,o),"move",s,l);h.position[0]=n[0],t.add(h);var d=this.visualMapModel.textStyleModel,f=new u.Text({draggable:!0,drift:s,onmousemove:function(t){v.stop(t.event)},ondragend:l,style:{x:0,y:0,text:"",textFont:d.getFont(),fill:d.getTextColor()}});this.group.add(f);var p=["horizontal"===a?o/2:1.5*o,"horizontal"===a?0===e?-1.5*o:1.5*o:0===e?-o/2:o/2],g=this._shapes;g.handleThumbs[e]=h,g.handleLabelPoints[e]=p,g.handleLabels[e]=f},_createIndicator:function(t,e,n,r){var o=i([[0,0]],"move");o.position[0]=e[0],o.attr({invisible:!0,silent:!0}),t.add(o);var a=this.visualMapModel.textStyleModel,s=new u.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:a.getFont(),fill:a.getTextColor()}});this.group.add(s);var l=["horizontal"===r?n/2:w+3,0],c=this._shapes;c.indicator=o,c.indicatorLabel=s,c.indicatorLabelPoint=l},_dragHandle:function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(t,r[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():s(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[m(e[0],n,i,!0),m(e[1],n,i,!0)]},_updateInterval:function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];d(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[m(i[0],r,o,!0),m(i[1],r,o,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new f(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new u.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;y([0,1],function(a){var s=r[a];s.setStyle("fill",e.handlesColor[a]),s.position[1]=t[a];var l=u.applyTransform(n.handleLabelPoints[a],u.getTransform(s,this.group));o[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,a=r.getExtent(),s=r.itemSize,l=[0,s[1]],c=m(t,a,l,!0),h=this._shapes,d=h.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",o(!!n,i,c,s[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",f);d.setStyle("fill",p);var g=u.applyTransform(h.indicatorLabelPoint,u.getTransform(d,this.group)),v=h.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",h.barGroup),x=this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=x(_(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=x(_(r[0],t),r[1]);var l=a(n,o,r),u=[t-l,t+l],c=m(t,r,o,!0),h=[m(u[0],r,o,!0),m(u[1],r,o,!0)];u[0]<r[0]&&(h[0]=-1/0),u[1]>r[1]&&(h[1]=1/0),e&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,f=[];(e||s(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var v=g.compressBatches(d,f);this._dispatchHighDown("downplay",p.convertDataIndex(v[0])),this._dispatchHighDown("highlight",p.convertDataIndex(v[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(e.dataType),o=r.getDimension(n.getDataDimension(r)),a=r.get(o,e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",p.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,i){var r=u.getTransform(e,i?null:this.group);return u[c.isArray(t)?"applyTransform":"transformDirection"](t,r,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});t.exports=S},function(t,e,n){function i(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var r=n(155),o=n(0),a=n(37),s=n(171),l=n(3).reformIntervals,u=r.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetTargetSeries(),this.resetExtent();var n=this._mode=this._determineMode();c[this._mode].call(this),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=o.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=o.map(this._pieceList,function(t){var t=o.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,n){return t&&t[e]&&(o.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}var e=this.option,n={},i=a.listVisualTypes(),l=this.isCategory();o.each(e.pieces,function(t){o.each(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),o.each(n,function(n,i){var r=0;o.each(this.stateList,function(n){r|=t(e,n,i)||t(e.target,n,i)},this),!r&&o.each(this.stateList,function(t){(e[t]||(e[t]={}))[i]=s.get(i,"inRange"===t?"active":"inactive",l)})},this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,o.each(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var a=!1;o.each(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(a?r[n]=!1:a=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=o.clone(t)},getValueState:function(t){var e=a.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){a.findPieceIndex(e,this._pieceList)===t&&i.push(n)},!0,this),e.push({seriesId:n.id,dataIndex:i})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){function e(e,o){var a=r.getRepresentValue({interval:e});o||(o=r.getValueState(a));var s=t(a,o);e[0]===-1/0?i[0]=s:e[1]===1/0?i[1]=s:n.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var n=[],i=[],r=this,a=this._pieceList.slice();if(a.length){var s=a[0].interval[0];s!==-1/0&&a.unshift({interval:[-1/0,s]}),s=a[a.length-1].interval[1],s!==1/0&&a.push({interval:[s,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return o.each(a,function(t){var n=t.interval;n&&(n[0]>l&&e([l,n[0]],"outOfRange"),e(n.slice()),l=n[1])},this),{stops:n,outerColors:i}}}}),c={splitNumber:function(){var t=this.option,e=this._pieceList,n=t.precision,i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var a=(i[1]-i[0])/r;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n);var s=0;t.minOpen&&e.push({index:s++,interval:[-1/0,i[0]],close:[0,0]});for(var u=i[0],c=s+r;s<c;u+=a){var h=s===r-1?i[1]:u+a;e.push({index:s++,interval:[u,h],close:[1,1]})}t.maxOpen&&e.push({index:s++,interval:[i[1],1/0],close:[0,0]}),l(e),o.each(e,function(t){t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;o.each(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),i(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;o.each(t.pieces,function(t,n){o.isObject(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],p=0;p<3&&null==s[d];p++)s[d]=t[f[p]],l[d]=u[p],h[d]=2===p;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),__DEV__&&s[0]>s[1]&&console.warn("Piece "+n+"is illegal: "+s+" lower bound should not greater then uppper bound."),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=a.retrieveVisuals(t),e.push(i)},this),i(t,e),l(e),o.each(e,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};t.exports=u},function(t,e,n){var i=n(156),r=n(0),o=n(2),a=n(17),s=n(7),l=n(157),u=i.extend({type:"visualMap.piecewise",doRender:function(){function t(t){var a=t.piece,s=new o.Group;s.onclick=r.bind(this._onItemClick,this,a),this._enableHoverLink(s,t.indexInModelPieceList);var d=n.getRepresentValue(a);if(this._createItemSymbol(s,d,[0,0,h[0],h[1]]),p){var f=this.visualMapModel.getValueState(d);s.add(new o.Text({style:{x:"right"===c?-i:h[0]+i,y:h[1]/2,text:a.text,textVerticalAlign:"middle",textAlign:c,textFont:l,fill:u,opacity:"outOfRange"===f?.5:1}}))}e.add(s)}var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,l=a.getFont(),u=a.getTextColor(),c=this._getItemAlign(),h=n.itemSize,d=this._getViewData(),f=d.endsText,p=r.retrieve(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],h,p,c),r.each(d.viewPieceList,t,this),f&&this._renderEndsText(e,f[1],h,p,c),s.box(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.convertDataIndex(n.findTargetDataIndices(e))})}t.on("mouseover",r.bind(n,this,"highlight")).on("mouseout",r.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:s.getFont(),fill:s.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=r.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(a.createSymbol(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=r.clone(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,r.each(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});t.exports=u},function(t,e,n){"use strict";function i(t,e,n){this._model=t}function r(t,e,n,i){var r=n.calendarModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](i):null}var o=n(7),a=n(3),s=n(0);i.prototype={constructor:i,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"}]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=a.parseDate(t);var e=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e,m:n,d:i,day:r,time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){if(0===(e=e||0))return this.getDateInfo(t);var n=this.getDateInfo(t).time;return this.getDateInfo(n+864e5*e)},update:function(t,e){function n(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle.normal").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,r=["width","height"],a=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),u="horizontal"===this._orient?[i,7]:[7,i];s.each([0,1],function(t){n(a,t)&&(l[r[t]]=a[t]*u[t])});var c={width:e.getWidth(),height:e.getHeight()},h=this._rect=o.getLayoutRect(l,c);s.each([0,1],function(t){n(a,t)||(a[t]=h[r[t]]/u[t])}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){s.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<=i.end.time))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).weeks;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+(a-1)*this._sh+this._sh/2]:[this._rect.x+(a-1)*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},convertToPixel:s.curry(r,"dataToPoint"),convertFromPixel:s.curry(r,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(s.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var n=this.getDateInfo(e),i=n.date;i.setMonth(i.getMonth()+1);var r=this.getNextNDay(i,-1);t=[n.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e=this.getDateInfo(t[0]),n=this.getDateInfo(t[1]),i=Math.floor(n.time/864e5)-Math.floor(e.time/864e5)+1,r=Math.floor((i+e.day+6)/7);return{range:[e.formatedDate,n.formatedDate],start:e,end:n,allDay:i,weeks:r,fweek:e.day,lweek:n.day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return!1;var r=7*(t-1)-i.fweek+e,o=i.start.time+864e5*r;return this.getDateInfo(o)}},i.dimensions=i.prototype.dimensions,i.getDimensionsInfo=i.prototype.getDimensionsInfo,i.create=function(t,e){var n=[];return t.eachComponent("calendar",function(r){var o=new i(r,t,e);n.push(o),r.coordinateSystem=o}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},n(20).register("calendar",i),t.exports=i},function(t,e,n){"use strict";function i(t,e){var n=t.cellSize;o.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=o.map([0,1],function(t){return a.sizeCalculable(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});a.mergeLayoutParam(t,e,{type:"box",ignoreSize:i})}var r=n(11),o=n(0),a=n(7),s=r.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{normal:{color:"#fff",borderWidth:1,borderColor:"#ccc"}},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",textStyle:{color:"#000"}},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,textStyle:{color:"#000"}},yearLabel:{show:!0,position:null,margin:30,formatter:null,textStyle:{color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}}},init:function(t,e,n,r){var o=a.getLayoutParams(t);s.superApply(this,"init",arguments),i(t,o)},mergeOption:function(t,e){s.superApply(this,"mergeOption",arguments),i(this.option,t)}});t.exports=s},function(t,e,n){function i(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:r.bind(t.dataToPoint,t)}}}var r=n(0);t.exports=i},function(t,e,n){var i=n(0),r=n(30),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom"};o.prototype={constructor:o,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},i.inherits(o,r),t.exports=o},function(t,e,n){"use strict";function i(t){return this._axes[t]}var r=n(0),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,i,this)},getAxesByScale:function(t){return t=t.toLowerCase(),r.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var o=n[r],a=this._axes[o];i[o]=a[e](t[o])}return i}},t.exports=o},function(t,e,n){"use strict";function i(t){o.call(this,t)}var r=n(0),o=n(435);i.prototype={constructor:i,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"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.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 n=this.getAxis("x"),i=this.getAxis("y");return[n.toGlobalCoord(n.dataToCoord(t[0],e)),i.toGlobalCoord(i.dataToCoord(t[1],e))]},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.coordToData(n.toLocalCoord(t[0]),e),i.coordToData(i.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},r.inherits(i,o),t.exports=i},function(t,e,n){"use strict";n(164);var i=n(11);t.exports=i.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,n){function i(t,e){return e=e||[0,0],o.map(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function r(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:o.bind(t.dataToPoint,t),size:o.bind(i,t)}}}var o=n(0);t.exports=r},function(t,e,n){function i(t,e,n,i,r){l.call(this,t),this.map=e,this._nameCoordMap=a.createHashMap(),this.loadGeoJson(n,i,r)}function r(t,e,n,i){var r=n.geoModel,o=n.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}var o=n(165),a=n(0),s=n(9),l=n(162),u=[n(443),n(444),n(442),n(441)];i.prototype={constructor:i,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return!0;return!1},loadGeoJson:function(t,e,n){try{this.regions=t?o(t):[]}catch(t){throw"Invalid geoJson format\n"+t.message}e=e||{},n=n||{};for(var i=this.regions,r=a.createHashMap(),s=0;s<i.length;s++){var l=i[s].name;l=n.hasOwnProperty(l)?n[l]:l,i[s].name=l,r.set(l,i[s]),this.addGeoCoord(l,i[s].center);var c=e[l];c&&i[s].transformTo(c.left,c.top,c.width,c.height)}this._regionsMap=r,this._rect=null,a.each(u,function(t){t(this)},this)},transformTo:function(t,e,n,i){var r=this.getBoundingRect();r=r.clone(),r.y=-r.y-r.height;var o=this._viewTransform;o.transform=r.calculateTransform(new s(t,e,n,i)),o.decomposeTransform();var a=o.scale;a[1]=-a[1],o.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){if(this._rect)return this._rect;for(var t,e=this.regions,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return this._rect=t||new s(0,0,0,0)},dataToPoints:function(t){var e=[];return t.mapArray(["lng","lat"],function(t,n){return e[0]=t,e[1]=n,this.dataToPoint(e)},this)},dataToPoint:function(t){if("string"==typeof t&&(t=this.getGeoCoord(t)),t)return l.prototype.dataToPoint.call(this,t)},convertToPixel:a.curry(r,"dataToPoint"),convertFromPixel:a.curry(r,"pointToData")},a.mixin(i,l),t.exports=i},function(t,e,n){"use strict";var i=n(4),r=n(11),o=n(8),a=n(0),s=n(97),l=n(68),u=r.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){r.prototype.init.apply(this,arguments),i.defaultEmphasis(t.label,["position","show","textStyle","distance","formatter"])},optionUpdated:function(){var t=this.option,e=this;t.regions=l.getFilledRegions(t.regions,t.map),this._optionModelMap=a.reduce(t.regions||[],function(t,n){return n.name&&t.set(n.name,new o(n,e)),t},a.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new o(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t),i=n.get("label."+e+".formatter"),r={name:t};if("function"==typeof i)return r.status=e,i(r);if("string"==typeof i){var o=r.seriesName;return i.replace("{a}",null!=o?o:"")}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});a.mixin(u,s),t.exports=u},function(t,e,n){var i=(n(102),n(0),[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]]);t.exports=function(t){if("china"===t.map)for(var e=0,n=t.regions.length;e<n;++e)"台湾"===t.regions[e].name&&t.regions[e].geometries.push({type:"polygon",exterior:i[0]})}},function(t,e,n){var i=n(0),r={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};t.exports=function(t){i.each(t.regions,function(t){var e=r[t.name];if(e){var n=t.center;n[0]=e[0],n[1]=e[1]}})}},function(t,e,n){for(var i=n(102),r=n(0),o=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=o[0],a[s][l][1]+=o[1];t.exports=function(t){"china"===t.map&&t.regions.push(new i("南海诸岛",r.map(a,function(t){return{type:"polygon",exterior:t}}),o))}},function(t,e,n){var i=n(0),r={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};t.exports=function(t){i.each(t.regions,function(t){var e=r[t.name];if(e){var n=t.center;n[0]+=e[0]/10.5,n[1]+=-e[1]/14}})}},function(t,e,n){function i(t,e){return e=e||[0,0],o.map([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function r(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:o.bind(t.dataToPoint,t),size:o.bind(i,t)}}}var o=n(0);t.exports=r},function(t,e,n){function i(t,e){return e.type||(e.data?"category":"value")}var r=n(11),o=n(0),a=n(59),s=n(67),l=n(3),u=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return a([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]]).call(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=o.clone(t);if(e)for(var n=e.length-1;n>=0;n--)l.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var n=0,i=e.length;n<i;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};o.merge(u.prototype,n(43)),s("parallel",u,i,c),t.exports=u},function(t,e,n){function i(t,e,n){this._axesMap=u.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function r(t,e){return v(m(t,e[0]),e[1])}function o(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function a(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var s=n(7),l=n(15),u=n(0),c=n(448),h=n(2),d=n(18),f=n(3),p=n(57),g=u.each,v=Math.min,m=Math.max,y=Math.floor,x=Math.ceil,_=f.round,b=Math.PI;i.prototype={type:"parallel",constructor:i,_init:function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;g(i,function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new c(t,l.createScaleByModel(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},_updateAxesFromSeries:function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();g(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,t),l.niceScaleExtent(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],o=["width","height"],a=e.get("layout"),s="horizontal"===a?0:1,l=n[o[s]],u=[0,l],c=this.dimensions.length,h=r(e.get("axisExpandWidth"),u),d=r(e.get("axisExpandCount")||0,[0,c]),f=e.get("axisExpandable")&&c>3&&c>d&&d>1&&h>0&&l>0,p=e.get("axisExpandWindow");if(p)t=r(p[1]-p[0],u),p[1]=p[0]+t;else{t=r(h*(d-1),u);p=[h*(e.get("axisExpandCenter")||y(c/2))-t/2],p[1]=p[0]+t}var g=(l-t)/(c-d);g<3&&(g=0);var v=[y(_(p[0]/h,1))+1,x(_(p[1]/h,1))-1],m=g/h*p[0];return{layout:a,pixelDimIndex:s,layoutBase:n[i[s]],layoutLength:l,axisBase:n[i[1-s]],axisLength:n[o[1-s]],axisExpandable:f,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:p,axisCount:c,winInnerIndices:v,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),g(n,function(n,s){var l=(i.axisExpandable?a:o)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:b/2,vertical:0},h=[u[r].x+t.x,u[r].y+t.y],f=c[r],p=d.create();d.rotate(p,p,f),d.translate(p,p,h),this._axesLayout[n]={position:h,rotation:f,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1,labelInterval:e.get(n).getLabelInterval()}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n){for(var i=this.dimensions,r=this._axesMap,o=this.hasAxisBrushed(),a=0,s=t.count();a<s;a++){var l,u=t.getValues(i,a);if(o){l="active";for(var c=0,h=i.length;c<h;c++){var d=i[c];if("inactive"===r.get(d).model.getActiveState(u[c],c)){l="inactive";break}}}else l="normal";e.call(n,l,a)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(t,e){var n=this._axesLayout[e];return h.applyTransform([t,0],n.transform)},getAxisLayout:function(t){return u.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?p(a,i,o,"all"):l="none";else{var r=i[1]-i[0];i=[m(0,o[1]*s/r-r/2)],i[1]=v(o[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:l}}},t.exports=i},function(t,e,n){var i=n(0),r=n(30),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.axisIndex=o};o.prototype={constructor:o,model:null},i.inherits(o,r),t.exports=o},function(t,e,n){var i=n(0),r=n(11);n(446),r.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,function(t){return t.get("parallelIndex")===this.componentIndex});i.each(n,function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})}})},function(t,e,n){function i(t){if(!t.parallel){var e=!1;o.each(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function r(t){var e=a.normalizeToArray(t.parallelAxis);o.each(e,function(e){if(o.isObject(e)){var n=e.parallelIndex||0,i=a.normalizeToArray(t.parallel)[n];i&&i.parallelAxisDefault&&o.merge(e,i.parallelAxisDefault,!1)}})}var o=n(0),a=n(4);t.exports=function(t){i(t),r(t)}},function(t,e,n){"use strict";function i(t,e){e=e||[0,360],o.call(this,"angle",t,e),this.type="category"}var r=n(0),o=n(30);i.prototype={constructor:i,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData},r.inherits(i,o),t.exports=i},function(t,e,n){"use strict";function i(t,e){return e.type||(e.data?"category":"value")}var r=n(0),o=n(11),a=n(67),s=o.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(s.prototype,n(43));var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};a("angle",s,i,l.angle),a("radius",s,i,l.radius)},function(t,e,n){"use strict";var i=n(455),r=n(451),o=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};o.prototype={type:"polar",axisPointerEnabled:!0,constructor:o,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoints:function(t){return t.mapArray(this.dimensions,function(t,e){return this.dataToPoint([t,e])},!0,this)},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}},t.exports=o},function(t,e,n){"use strict";n(452),n(1).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(t,e,n){"use strict";function i(t,e){o.call(this,"radius",t,e),this.type="category"}var r=n(0),o=n(30);i.prototype={constructor:i,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:o.prototype.dataToCoord,radiusToData:o.prototype.coordToData},r.inherits(i,o),t.exports=i},function(t,e,n){function i(t,e){return o.map(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="dataTo"+n,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===n&&(l=l*Math.PI/180),l},this)}function r(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:o.bind(function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a}),size:o.bind(i,t)}}}var o=n(0);t.exports=r},function(t,e,n){function i(t,e,n){o.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}var r=n(0),o=n(30);r.inherits(i,o),t.exports=i},function(t,e,n){function i(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=r.map(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new o(n,new a);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n),this.cx,this.cy,this.r,this.startAngle}var r=n(0),o=n(457),a=n(70),s=n(3),l=n(15);i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},i.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},i.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coodToData(i))]},i.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),a=Math.min(i,o)/2;this.cx=s.parsePercent(n[0],i),this.cy=s.parsePercent(n[1],o),this.startAngle=t.get("startAngle")*Math.PI/180,this.r=s.parsePercent(t.get("radius"),a),r.each(this._indicatorAxes,function(t,e){t.setExtent(0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n},this)},i.prototype.update=function(t,e){function n(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}var i=this._indicatorAxes,o=this._model;r.each(i,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,n){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===o){var a=e.getData();r.each(i,function(t){t.scale.unionExtentFromData(a,t.dim)})}},this);var a=o.get("splitNumber");r.each(i,function(t,e){var i=l.getScaleExtent(t.scale,t.model);l.niceScaleExtent(t.scale,t.model);var r=t.model,o=t.scale,u=r.getMin(),c=r.getMax(),h=o.getInterval();if(null!=u&&null!=c)o.setExtent(+u,+c),o.setInterval((c-u)/a);else if(null!=u){var d;do{d=u+h*a,o.setExtent(+u,d),o.setInterval(h),h=n(h)}while(d<i[1]&&isFinite(d)&&isFinite(i[1]))}else if(null!=c){var f;do{f=c-h*a,o.setExtent(f,+c),o.setInterval(h),h=n(h)}while(f>i[0]&&isFinite(f)&&isFinite(i[0]))}else{var p=o.getTicks().length-1;p>a&&(h=n(h));var g=Math.round((i[0]+i[1])/2/h)*h,v=Math.round(a/2);o.setExtent(s.round(g-v*h),s.round(g+(a-v)*h)),o.setInterval(h)}})},i.dimensions=[],i.create=function(t,e){var n=[];return t.eachComponent("radar",function(r){var o=new i(r,t,e);n.push(o),r.coordinateSystem=o}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])}),n},n(20).register("radar",i),t.exports=i},function(t,e,n){function i(t,e){return s.defaults({show:e},t)}var r=n(163),o=r.valueAxis,a=n(8),s=n(0),l=n(43),u=n(1).extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),u=this.get("name.textStyle"),c=this.get("name.show"),h=this.get("name.formatter"),d=this.get("nameGap"),f=this.get("triggerEvent"),p=s.map(this.get("indicator")||[],function(p){if(null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0),p=s.merge(s.clone(p),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:p.text,nameLocation:"end",nameGap:d,nameTextStyle:u,triggerEvent:f},!1),c||(p.name=""),"string"==typeof h){var g=p.name;p.name=h.replace("{value}",null!=g?g:"")}else"function"==typeof h&&(p.name=h(p.name,p));var v=s.extend(new a(p,null,this.ecModel),l);return v.mainType="radar",v.componentIndex=this.componentIndex,v},this);this.getIndicatorModels=function(){return p}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:s.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:i(o.axisLabel,!1),axisTick:i(o.axisTick,!1),splitLine:i(o.splitLine,!0),splitArea:i(o.splitArea,!0),indicator:[]}});t.exports=u},function(t,e,n){function i(t,e){return e.type||(e.data?"category":"value")}var r=n(11),o=n(67),a=n(0),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};a.merge(s.prototype,n(43)),o("single",s,i,l),t.exports=s},function(t,e,n){function i(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}var r=n(462),o=n(15),a=n(7);i.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:i,_init:function(t,e,n){var i=this.dimension,a=new r(i,o.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData(),n=this.dimension;this._axis.scale.unionExtentFromData(e,t.coordDimToDataDim(n)),o.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=a.getLayoutRect({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}},t.exports=i},function(t,e,n){var i=n(0),r=n(30),o=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom",this.orient=null,this._labelInterval=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(o,r),t.exports=o},function(t,e,n){function i(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function r(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:o.bind(t.dataToPoint,t),size:o.bind(i,t)}}}var o=n(0);t.exports=r},function(t,e,n){function i(t,e){var n=[];return t.eachComponent("singleAxis",function(i,o){var a=new r(i,t,e);a.name="single_"+o,a.resize(i,e),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n}var r=n(461);n(20).register("single",{create:i,dimensions:r.prototype.dimensions})},function(t,e,n){"use strict";function i(t){return"_EC_"+t}function r(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function o(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}var a=n(0),s=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},l=s.prototype;l.type="graph",l.isDirected=function(){return this._directed},l.addNode=function(t,e){t=t||""+e;var n=this._nodesMap;if(n[i(t)])return void(__DEV__&&console.error("Graph nodes have duplicate name or id"));var o=new r(t,e);return o.hostGraph=this,this.nodes.push(o),n[i(t)]=o,o},l.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},l.getNodeById=function(t){return this._nodesMap[i(t)]},l.addEdge=function(t,e,n){var a=this._nodesMap,s=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),t instanceof r||(t=a[i(t)]),e instanceof r||(e=a[i(e)]),t&&e){var l=t.id+"-"+e.id;if(!s[l]){var u=new o(t,e,n);return u.hostGraph=this,this._directed&&(t.outEdges.push(u),e.inEdges.push(u)),t.edges.push(u),t!==e&&e.edges.push(u),this.edges.push(u),s[l]=u,u}}},l.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},l.getEdge=function(t,e){t instanceof r&&(t=t.id),e instanceof r&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},l.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},l.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},l.breadthFirstTraverse=function(t,e,n,o){if(e instanceof r||(e=this._nodesMap[i(e)]),e){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(o,e,null))for(var l=[e];l.length;)for(var u=l.shift(),c=u[a],s=0;s<c.length;s++){var h=c[s],d=h.node1===u?h.node2:h.node1;if(!d.__visited){if(t.call(o,d,u))return;l.push(d),d.__visited=!0}}}},l.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(var r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(var r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},l.clone=function(){for(var t=new s(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<n.length;i++){var r=n[i];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},r.prototype={constructor:r,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0)){return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)}}},o.prototype.getModel=function(t){if(!(this.dataIndex<0)){return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)}};var u=function(t,e){return{getValue:function(n){var i=this[t][e];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};a.mixin(r,u("hostGraph","data")),a.mixin(o,u("hostGraph","edgeData")),s.Node=r,s.Edge=o,t.exports=s},function(t,e,n){function i(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=o.map(e||[],function(e){return new a(e,t,t.ecModel)})}function r(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var o=n(0),a=n(8),s=n(10),l=n(167),u=n(16),c=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};c.prototype={constructor:c,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null),t=t||{},o.isString(t)&&(t={order:t});var i,r=t.order||"preorder",a=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var s=0;!i&&s<a.length;s++)a[s].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex),i=this.getLevelModel();return n.getModel(t,(i||e.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}},i.prototype={constructor:i,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},i.createTree=function(t,e,n){function a(t,e){var n=t.value;f=Math.max(f,o.isArray(n)?n.length:1),d.push(t);var i=new c(t.name,h);e?r(i,e):h.root=i,h._nodes.push(i);var s=t.children;if(s)for(var l=0;l<s.length;l++)a(s[l],i)}var h=new i(e,n),d=[],f=1;a(t),h.root.updateDepthAndHeight(0);var p=u([{name:"value"}],d,{dimCount:f}),g=new s(p,e);return g.initData(d),l({mainData:g,struct:h,structAttr:"tree"}),h.update(),h},t.exports=i},function(t,e,n){var i=n(28),r=n(17),o=n(15),a=n(43),s=n(8),l=n(0);t.exports={createList:function(t){var e=t.get("data");return i(e,t,t.ecModel)},completeDimensions:n(16),createSymbol:r.createSymbol,createScale:function(t,e){var n=e;e instanceof s||(n=new s(e),l.mixin(n,a));var i=o.createScaleByModel(n);return i.setExtent(t[0],t[1]),o.niceScaleExtent(i,n),i},mixinAxisModelCommonMethods:function(t){l.mixin(t,a)}}},function(t,e,n){"use strict";function i(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function r(t){return t.dim}function o(t,e,n){var o=n.getWidth(),u=n.getHeight(),c={},h={},d=a(s.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,a=n.getAngleAxis(),s=n.getBaseAxis(),f=i(t),p=d[r(s)][f],g=p.offset,v=p.width,m=n.getOtherAxis(s),y=t.get("center")||["50%","50%"],x=l(y[0],o),_=l(y[1],u),b=t.get("barMinHeight")||0,w=t.get("barMinAngle")||0,S=m.getExtent()[0],M=m.model.get("max"),A=m.model.get("min"),I=n.dataToPoints(e);c[f]=c[f]||[],h[f]=h[f]||[],e.each(m.dim,function(t,i){if(!isNaN(t)){c[f][i]||(c[f][i]={p:S,n:S},h[f][i]={p:S,n:S});var r,o,s,l,u=t>=0?"p":"n",d=n.pointToCoord(I[i]),p=h[f][i][u];if("radius"===m.dim)r=p,o=d[0],s=(-d[1]+g)*Math.PI/180,l=s+v*Math.PI/180,Math.abs(o)<b&&(o=r+(o<0?-1:1)*b),h[f][i][u]=o;else{r=d[0]+g,o=r+v,null!=M&&(t=Math.min(t,M)),null!=A&&(t=Math.max(t,A));var y=a.dataToAngle(t);Math.abs(y-p)<w&&(y=p-(t<0?-1:1)*w),s=-p*Math.PI/180,l=-y*Math.PI/180;var T=a.getExtent(),C=y;C===T[0]&&t>0?C=T[1]:C===T[1]&&t<0&&(C=T[0]),h[f][i][u]=C}e.setItemLayout(i,{cx:x,cy:_,r0:r,r:o,startAngle:s,endAngle:l})}},!0)}},this)}function a(t,e){var n={};s.each(t,function(t,e){var o=t.getData(),a=t.coordinateSystem,s=a.getBaseAxis(),u=s.getExtent(),c="category"===s.type?s.getBandWidth():Math.abs(u[1]-u[0])/o.count(),h=n[r(s)]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;n[r(s)]=h;var f=i(t);d[f]||h.autoWidthCount++,d[f]=d[f]||{width:0,maxWidth:0};var p=l(t.get("barWidth"),c),g=l(t.get("barMaxWidth"),c),v=t.get("barGap"),m=t.get("barCategoryGap");p&&!d[f].width&&(p=Math.min(h.remainedWidth,p),d[f].width=p,h.remainedWidth-=p),g&&(d[f].maxWidth=g),null!=v&&(h.gap=v),null!=m&&(h.categoryGap=m)});var o={};return s.each(n,function(t,e){o[e]={};var n=t.stacks,i=t.bandWidth,r=l(t.categoryGap,i),a=l(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-r)/(c+(c-1)*a);h=Math.max(h,0),s.each(n,function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,u),t.width&&(n=Math.min(n,t.width)),u-=n,t.width=n,c--)}),h=(u-r)/(c+(c-1)*a),h=Math.max(h,0);var d,f=0;s.each(n,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+a)}),d&&(f-=d.width*a);var p=-f/2;s.each(n,function(t,n){o[e][n]=o[e][n]||{offset:p,width:t.width},p+=t.width*(1+a)})}),o}var s=n(0),l=n(3).parsePercent;t.exports=o},function(t,e,n){var i=n(2),r=n(0),o=Math.PI;t.exports=function(t,e){e=e||{},r.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new i.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),a=new i.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),s=new i.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut");var l=new i.Group;return l.add(a),l.add(s),l.add(n),l.resize=function(){var e=t.getWidth()/2,i=t.getHeight()/2;a.setShape({cx:e,cy:i});var r=a.shape.r;s.setShape({x:e-r,y:i-r,width:2*r,height:2*r}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},l.resize(),l}},function(t,e,n){function i(t,e){c.each(e,function(e,n){x.hasClass(n)||("object"==typeof e?t[n]=t[n]?c.merge(t[n],e,!1):c.clone(e):null==t[n]&&(t[n]=e))})}function r(t){t=t,this.option={},this.option[b]=1,this._componentsMap=c.createHashMap({series:[]}),this._seriesIndices=null,i(t,this._theme.option),c.merge(t,_,!1),this.mergeOption(t)}function o(t,e){c.isArray(e)||(e=e?[e]:[]);var n={};return f(e,function(e){n[e]=(t.get(e)||[]).slice()}),n}function a(t,e,n){return e.type?e.type:n?n.subType:x.determineSubType(t,e)}function s(t){return g(t,function(t){return t.componentIndex})||[]}function l(t,e){return e.hasOwnProperty("subType")?p(t,function(t){return t.subType===e.subType}):t}function u(t){if(__DEV__&&!t._seriesIndices)throw new Error("Option should contains series.")}var c=n(0),h=n(4),d=n(8),f=c.each,p=c.filter,g=c.map,v=c.isArray,m=c.indexOf,y=c.isObject,x=n(11),_=n(472),b="\0_ec_inner",w=d.extend({constructor:w,init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new d(n),this._optionManager=i},setOption:function(t,e){c.assert(!(b in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):r.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(this.mergeOption(o),e=!0)}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this,this._api);a.length&&f(a,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,r){var l=h.normalizeToArray(t[e]),u=h.mappingToExists(i.get(e),l);h.makeIdAndName(u),f(u,function(t,n){var i=t.option;y(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=a(e,i,t.exist))});var d=o(i,r);n[e]=[],i.set(e,[]),f(u,function(t,r){var o=t.exist,a=t.option;if(c.assert(y(a)||o,"Empty component definition"),a){var s=x.getClass(e,t.keyInfo.subType,!0);if(o&&o instanceof s)o.name=t.keyInfo.name,o.mergeOption(a,this),o.optionUpdated(a,!1);else{var l=c.extend({dependentModels:d,componentIndex:r},t.keyInfo);o=new s(a,this,this,l),c.extend(o,l),o.init(a,this,this,l),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);i.get(e)[r]=o,n[e][r]=o.option},this),"series"===e&&(this._seriesIndices=s(i.get("series")))}var n=this.option,i=this._componentsMap,r=[];f(t,function(t,e){null!=t&&(x.hasClass(e)?r.push(e):n[e]=null==n[e]?c.clone(t):c.merge(n[e],t,!0))}),x.topologicalTravel(r,x.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=c.clone(this.option);return f(t,function(e,n){if(x.hasClass(n)){for(var e=h.normalizeToArray(e),i=e.length-1;i>=0;i--)h.isIdInner(e[i])&&e.splice(i,1);t[n]=e}}),delete t[b],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;if(null!=n)v(n)||(n=[n]),a=p(g(n,function(t){return o[t]}),function(t){return!!t});else if(null!=i){var s=v(i);a=p(o,function(t){return s&&m(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var u=v(r);a=p(o,function(t){return u&&m(r,t.name)>=0||!u&&t.name===r})}else a=o.slice();return l(a,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=function(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}(e),r=i?this.queryComponents(i):this._componentsMap.get(n);return function(e){return t.filter?p(e,t.filter):e}(l(r,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each(function(t,i){f(t,function(t,r){e.call(n,i,t,r)})});else if(c.isString(t))f(i.get(t),e,n);else if(y(t)){var r=this.findComponents(t);f(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return p(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return p(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},eachSeries:function(t,e){u(this),f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){f(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){u(this),f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return f(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return u(this),c.indexOf(this._seriesIndices,t.componentIndex)<0},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){u(this);var n=p(this._componentsMap.get("series"),t,e);this._seriesIndices=s(n)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t.get("series"));var e=[];t.each(function(t,n){e.push(n)}),x.topologicalTravel(e,x.getAllClassMainTypes(),function(e,n){f(t.get(e),function(t){t.restoreData()})})}});c.mixin(w,n(168)),t.exports=w},function(t,e,n){function i(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function r(t,e,n){var i,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;d(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),d([r].concat(o).concat(u.map(a,function(t){return t.option})),function(t){d(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:a}}function o(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return u.each(t,function(t,e){var n=e.match(v);if(n&&n[1]&&n[2]){var o=n[1],s=n[2].toLowerCase();a(i[s],t,o)||(r=!1)}}),r}function a(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function s(t,e){return t.join(",")===e.join(",")}function l(t,e){e=e||{},d(e,function(e,n){if(null!=e){var i=t[n];if(h.hasClass(n)){e=c.normalizeToArray(e),i=c.normalizeToArray(i);var r=c.mappingToExists(i,e);t[n]=p(r,function(t){return t.option&&t.exist?g(t.exist,t.option,!0):t.exist||t.option})}else t[n]=g(i,e,!0)}})}var u=n(0),c=n(4),h=n(11),d=u.each,f=u.clone,p=u.map,g=u.merge,v=/^(min|max)?(.+)$/;i.prototype={constructor:i,setOption:function(t,e){t=f(t,!0);var n=this._optionBackup,i=r.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(l(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=p(e.timelineOptions,f),this._mediaList=p(e.mediaList,f),this._mediaDefault=f(e.mediaDefault),this._currentMediaIndices=[],f(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=f(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],l=[];if(!i.length&&!r)return l;for(var u=0,c=i.length;u<c;u++)o(i[u].query,e,n)&&a.push(u);return!a.length&&r&&(a=[-1]),a.length&&!s(a,this._currentMediaIndices)&&(l=p(a,function(t){return f(-1===t?r.option:i[t].option)})),this._currentMediaIndices=a,l}},t.exports=i},function(t,e){var n="";"undefined"!=typeof navigator&&(n=navigator.platform||""),t.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}},function(t,e,n){t.exports={getAreaStyle:n(59)([["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,n){var i=n(59)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);t.exports={getItemStyle:function(t,e){var n=i.call(this,t,e),r=this.getBorderLineDash();return r&&(n.lineDash=r),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}},function(t,e,n){var i=n(59)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getLineStyle:function(t){var e=i.call(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}}},function(t,e,n){var i=n(22),r=n(2);t.exports={getTextColor:function(){var t=this.ecModel;return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("baseline"))},truncateText:function(t,e,n,r){return i.truncateText(t,e,this.getFont(),n,r)}}},function(t,e,n){function i(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}function r(t,e,n,i){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];(i||null==o[e[a]])&&(o[e[a]]=n)}function o(t){h(l,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var a=n(0),s=n(479),l=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],u=["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"],h=a.each;t.exports=function(t){h(t.series,function(t){if(a.isObject(t)){var e=t.type;if(s(t),"pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var n=i(t,"pointer.color");null!=n&&r(t,"itemStyle.normal.color",n)}for(var l=0;l<c.length;l++)if(c[l]===t.type){o(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),h(u,function(e){var n=t[e];n&&(a.isArray(n)||(n=[n]),h(n,function(t){o(t)}))})}},function(t,e,n){function i(t){var e=t&&t.itemStyle;e&&r.each(o,function(n){var i=e.normal,o=e.emphasis;i&&i[n]&&(t[n]=t[n]||{},t[n].normal?r.merge(t[n].normal,i[n]):t[n].normal=i[n],i[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?r.merge(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)})}var r=n(0),o=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];t.exports=function(t){if(t){i(t),i(t.markPoint),i(t.markLine);var e=t.data;if(e){for(var n=0;n<e.length;n++)i(e[n]);var o=t.markPoint;if(o&&o.data)for(var a=o.data,n=0;n<a.length;n++)i(a[n]);var s=t.markLine;if(s&&s.data)for(var l=s.data,n=0;n<l.length;n++)r.isArray(l[n])?(i(l[n][0]),i(l[n][1])):i(l[n])}}}},function(t,e){var n={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return e},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return e},nearest:function(t){return t[0]}},i=function(t,e){return Math.round(t.length/2)};t.exports=function(t,e,r){e.eachSeriesByType(t,function(t){var e=t.getData(),r=t.get("sampling"),o=t.coordinateSystem;if("cartesian2d"===o.type&&r){var a=o.getBaseAxis(),s=o.getOtherAxis(a),l=a.getExtent(),u=l[1]-l[0],c=Math.round(e.count()/u);if(c>1){var h;"string"==typeof r?h=n[r]:"function"==typeof r&&(h=r),h&&(e=e.downSample(s.dim,1/c,h,i),t.setData(e))}}},this)}},function(t,e,n){function i(t,e){return h(t,c(e))}var r=n(0),o=n(71),a=n(3),s=n(70),l=o.prototype,u=s.prototype,c=a.getPrecisionSafe,h=a.round,d=Math.floor,f=Math.ceil,p=Math.pow,g=Math.log,v=o.extend({type:"log",base:10,$constructor:function(){o.apply(this,arguments),this._originalScale=new s},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return r.map(u.getTicks.call(this),function(r){var o=a.round(p(this.base,r));return o=r===e[0]&&t.__fixMin?i(o,n[0]):o,o=r===e[1]&&t.__fixMax?i(o,n[1]):o},this)},getLabel:u.getLabel,scale:function(t){return t=l.scale.call(this,t),p(this.base,t)},setExtent:function(t,e){var n=this.base;t=g(t)/g(n),e=g(e)/g(n),u.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=l.getExtent.call(this);e[0]=p(t,e[0]),e[1]=p(t,e[1]);var n=this._originalScale,r=n.getExtent();return n.__fixMin&&(e[0]=i(e[0],r[0])),n.__fixMax&&(e[1]=i(e[1],r[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!0,function(t){return t>0}))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=a.quantity(n),r=t/n*i;for(r<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[a.round(f(e[0]/i)*i),a.round(d(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(t){u.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});r.each(["contain","normalize"],function(t){v.prototype[t]=function(e){return e=g(e)/g(this.base),l[t].call(this,e)}}),v.create=function(){return new v},t.exports=v},function(t,e,n){var i=n(0),r=n(71),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?i.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,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!1))},niceTicks:i.noop,niceExtent:i.noop});a.create=function(){return new a},t.exports=a},function(t,e,n){var i=n(0),r=n(3),o=n(6),a=n(169),s=n(70),l=s.prototype,u=Math.ceil,c=Math.floor,h=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][2]<e?n=r+1:i=r}return n},d=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return o.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber);var i=this._interval;t.fixMin||(e[0]=r.round(c(e[0]/i)*i)),t.fixMax||(e[1]=r.round(u(e[1]/i)*i))},niceTicks:function(t){var e=this.getSetting("useUTC")?0:60*r.getTimezoneOffset()*1e3;t=t||10;var n=this._extent,i=n[1]-n[0],o=i/t,s=f.length,l=h(f,o,0,s),d=f[Math.min(l,s-1)],p=d[2];if("year"===d[0]){var g=i/p;p*=r.nice(g/t,!0)}var v=[Math.round(u((n[0]-e)/p)*p+e),Math.round(c((n[1]-e)/p)*p+e)];a.fixExtent(v,n),this._stepLvl=d,this._interval=p,this._niceExtent=v},parse:function(t){return+r.parseDate(t)}});i.each(["contain","normalize"],function(t){d.prototype[t]=function(e){return l[t].call(this,this.parse(e))}});var f=[["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,864e5],["week",7,6048e5],["month",1,26784e5],["quarter",3,8208e6],["half-year",6,16416e6],["year",1,32832e6]];d.create=function(t){return new d({useUTC:t.ecModel.get("useUTC")})},t.exports=d},function(t,e,n){function i(){var t,e=[],n={};return{add:function(t,i,o,a,s){return r.isString(a)&&(s=a,a=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:i,time:o,delay:a,easing:s}),!0)},done:function(e){return t=e,this},start:function(){function i(){--r||(e.length=0,n={},t&&t())}for(var r=e.length,o=0,a=e.length;o<a;o++){var s=e[o];s.el.animateTo(s.target,s.time,s.delay,s.easing,i)}return this}}}var r=n(0);t.exports={createWrap:i}},function(t,e,n){var i=n(77);t.exports=function(t){function e(e){var n=(e.visualColorAccessPath||"itemStyle.normal.color").split("."),r=e.getData(),o=e.get(n)||e.getColorFromPalette(e.get("name"));r.setVisual("color",o),t.isSeriesFiltered(e)||("function"!=typeof o||o instanceof i||r.each(function(t){r.setItemVisual(t,"color",o(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.eachRawSeries(e)}},function(t,e,n){(function(e){function n(t,e,n){function r(e){var n=g,i=v;return g=v=void 0,M=e,y=t.apply(i,n)}function o(t){return M=t,x=setTimeout(c,e),A?r(t):y}function l(t){var n=t-S,i=t-M,r=e-n;return I?b(r,m-i):r}function u(t){var n=t-S,i=t-M;return void 0===S||n>=e||n<0||I&&i>=m}function c(){var t=w();if(u(t))return h(t);x=setTimeout(c,l(t))}function h(t){return x=void 0,T&&g?r(t):(g=v=void 0,y)}function d(){void 0!==x&&clearTimeout(x),M=0,g=S=v=x=void 0}function f(){return void 0===x?y:h(w())}function p(){var t=w(),n=u(t);if(g=arguments,v=this,S=t,n){if(void 0===x)return o(S);if(I)return x=setTimeout(c,e),r(S)}return void 0===x&&(x=setTimeout(c,e)),y}var g,v,m,y,x,S,M=0,A=!1,I=!1,T=!0;if("function"!=typeof t)throw new TypeError(s);return e=a(e)||0,i(n)&&(A=!!n.leading,I="maxWait"in n,m=I?_(a(n.maxWait)||0,e):m,T="trailing"in n?!!n.trailing:T),p.cancel=d,p.flush=f,p}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function r(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||r(t)&&x.call(t)==u}function a(t){if("number"==typeof t)return t;if(o(t))return l;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(c,"");var n=d.test(t);return n||f.test(t)?p(t.slice(2),n?2:8):h.test(t)?l:+t}var s="Expected a function",l=NaN,u="[object Symbol]",c=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt,g="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,m=g||v||Function("return this")(),y=Object.prototype,x=y.toString,_=Math.max,b=Math.min,w=function(){return m.Date.now()};t.exports=n}).call(e,n(73))},function(t,e){t.exports=function(t,e,n,i,r){var o,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,a=t.default);var l="function"==typeof a?a.options:a;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns),i&&(l._scopeId=i);var u;if(r?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=u):n&&(u=n),u){var c=l.functional,h=c?l.render:l.beforeCreate;c?l.render=function(t,e){return u.call(e),h(t,e)}:l.beforeCreate=h?[].concat(h,u):[u]}return{esModule:o,exports:a,options:l}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{position:"relative"}},[n("div",{class:t.echartsClassName}),t._v(" "),t._t("default")],2)},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o},function(t,e,n){var i=n(240);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(490)("60900f7a",i,!1)},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=c[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{for(var a=[],r=0;r<n.parts.length;r++)a.push(o(n.parts[r]));c[n.id]={id:n.id,refs:1,parts:a}}}}function r(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function o(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(p)return g;i.parentNode.removeChild(i)}if(v){var o=f++;i=d||(d=r()),e=a.bind(null,i,o,!1),n=a.bind(null,i,o,!0)}else i=r(),e=s.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function a(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(491),c={},h=l&&(document.head||document.getElementsByTagName("head")[0]),d=null,f=0,p=!1,g=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){p=n;var r=u(t,e);return i(r),function(e){for(var n=[],o=0;o<r.length;o++){var a=r[o],s=c[a.id];s.refs--,n.push(s)}e?(r=u(t,e),i(r)):r=[];for(var o=0;o<n.length;o++){var s=n[o];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete c[s.id]}}}};var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s=o[1],l=o[2],u=o[3],c={id:t+":"+r,css:s,media:l,sourceMap:u};i[a]?i[a].parts.push(c):n.push(i[a]={id:a,parts:[c]})}return n}},function(t,e,n){"use strict";(function(t){function n(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function r(t){return!0===t}function o(t){return!1===t}function a(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}function l(t){return"[object Object]"===Xr.call(t)}function u(t){return"[object RegExp]"===Xr.call(t)}function c(t){var e=parseFloat(t);return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function f(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function p(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function g(t,e){return Jr.call(t,e)}function v(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function m(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function y(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function x(t,e){for(var n in e)t[n]=e[n];return t}function _(t){for(var e={},n=0;n<t.length;n++)t[n]&&x(e,t[n]);return e}function b(t,e,n){}function w(t,e){if(t===e)return!0;var n=s(t),i=s(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every(function(t,n){return w(t,e[n])});if(r||o)return!1;var a=Object.keys(t),l=Object.keys(e);return a.length===l.length&&a.every(function(n){return w(t[n],e[n])})}catch(t){return!1}}function S(t,e){for(var n=0;n<t.length;n++)if(w(t[n],e))return n;return-1}function M(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function A(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function I(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}function T(t){if(!ho.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function C(t,e,n){if(uo.errorHandler)uo.errorHandler.call(null,t,e,n);else{if("production"!=="production".NODE_ENV&&fo("Error in "+n+': "'+t.toString()+'"',e),!wo||"undefined"==typeof console)throw t;console.error(t)}}function D(t){return"function"==typeof t&&/native code/.test(t.toString())}function L(t){Go.target&&Fo.push(Go.target),Go.target=t}function P(){Go.target=Fo.pop()}function E(t,e,n){t.__proto__=e}function k(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];I(t,o,e[o])}}function O(t,e){if(s(t)){var n;return g(t,"__ob__")&&t.__ob__ instanceof Zo?n=t.__ob__:jo.shouldConvert&&!No()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Zo(t)),e&&n&&n.vmCount++,n}}function N(t,e,n,i,r){var o=new Go,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set,u=!r&&O(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return Go.target&&(o.depend(),u&&u.dep.depend(),Array.isArray(e)&&z(e)),e},set:function(e){var a=s?s.call(t):n;e===a||e!==e&&a!==a||("production"!=="production".NODE_ENV&&i&&i(),l?l.call(t,e):n=e,u=!r&&O(e),o.notify())}})}}function V(t,e,n){if(Array.isArray(t)&&c(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(g(t,e))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?("production"!=="production".NODE_ENV&&fo("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):i?(N(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function R(t,e){if(Array.isArray(t)&&c(e))return void t.splice(e,1);var n=t.__ob__;if(t._isVue||n&&n.vmCount)return void("production"!=="production".NODE_ENV&&fo("Avoid deleting properties on a Vue instance or its root $data - just set it to null."));g(t,e)&&(delete t[e],n&&n.dep.notify())}function z(t){for(var e=void 0,n=0,i=t.length;n<i;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&z(e)}function B(t,e){if(!e)return t;for(var n,i,r,o=Object.keys(e),a=0;a<o.length;a++)n=o[a],i=t[n],r=e[n],g(t,n)?l(i)&&l(r)&&B(i,r):V(t,n,r);return t}function G(t,e,n){return n?t||e?function(){var i="function"==typeof e?e.call(n):e,r="function"==typeof t?t.call(n):void 0;return i?B(i,r):r}:void 0:e?t?function(){return B("function"==typeof e?e.call(this):e,"function"==typeof t?t.call(this):t)}:e:t}function F(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function H(t,e){var n=Object.create(t||null);return e?x(n,e):n}function W(t){for(var e in t.components){var n=e.toLowerCase();(Yr(n)||uo.isReservedTag(n))&&fo("Do not use built-in or reserved HTML elements as component id: "+e)}}function $(t){var e=t.props;if(e){var n,i,r,o={};if(Array.isArray(e))for(n=e.length;n--;)i=e[n],"string"==typeof i?(r=to(i),o[r]={type:null}):"production"!=="production".NODE_ENV&&fo("props must be strings when using array syntax.");else if(l(e))for(var a in e)i=e[a],r=to(a),o[r]=l(i)?i:{type:i};t.props=o}}function j(t){var e=t.inject;if(Array.isArray(e))for(var n=t.inject={},i=0;i<e.length;i++)n[e[i]]=e[i]}function Z(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"==typeof i&&(e[n]={bind:i,update:i})}}function U(t,e,n){function i(i){var r=Uo[i]||Yo;l[i]=r(t[i],e[i],n,i)}"production"!=="production".NODE_ENV&&W(e),"function"==typeof e&&(e=e.options),$(e),j(e),Z(e);var r=e.extends;if(r&&(t=U(t,r,n)),e.mixins)for(var o=0,a=e.mixins.length;o<a;o++)t=U(t,e.mixins[o],n);var s,l={};for(s in t)i(s);for(s in e)g(t,s)||i(s);return l}function q(t,e,n,i){if("string"==typeof n){var r=t[e];if(g(r,n))return r[n];var o=to(n);if(g(r,o))return r[o];var a=eo(o);if(g(r,a))return r[a];var s=r[n]||r[o]||r[a];return"production"!=="production".NODE_ENV&&i&&!s&&fo("Failed to resolve "+e.slice(0,-1)+": "+n,t),s}}function X(t,e,n,i){var r=e[t],o=!g(n,t),a=n[t];if(tt(Boolean,r.type)&&(o&&!g(r,"default")?a=!1:tt(String,r.type)||""!==a&&a!==io(t)||(a=!0)),void 0===a){a=Y(i,r,t);var s=jo.shouldConvert;jo.shouldConvert=!0,O(a),jo.shouldConvert=s}return"production"!=="production".NODE_ENV&&K(r,t,a,i,o),a}function Y(t,e,n){if(g(e,"default")){var i=e.default;return"production"!=="production".NODE_ENV&&s(i)&&fo('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',t),t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof i&&"Function"!==Q(e.type)?i.call(t):i}}function K(t,e,n,i,r){if(t.required&&r)return void fo('Missing required prop: "'+e+'"',i);if(null!=n||t.required){var o=t.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var l=0;l<o.length&&!a;l++){var u=J(n,o[l]);s.push(u.expectedType||""),a=u.valid}}if(!a)return void fo('Invalid prop: type check failed for prop "'+e+'". Expected '+s.map(eo).join(", ")+", got "+Object.prototype.toString.call(n).slice(8,-1)+".",i);var c=t.validator;c&&(c(n)||fo('Invalid prop: custom validator check failed for prop "'+e+'".',i))}}function J(t,e){var n,i=Q(e);return n=Ko.test(i)?typeof t===i.toLowerCase():"Object"===i?l(t):"Array"===i?Array.isArray(t):t instanceof e,{valid:n,expectedType:i}}function Q(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function tt(t,e){if(!Array.isArray(e))return Q(e)===Q(t);for(var n=0,i=e.length;n<i;n++)if(Q(e[n])===Q(t))return!0;return!1}function et(t){return new aa(void 0,void 0,void 0,String(t))}function nt(t){var e=new aa(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.isCloned=!0,e}function it(t){for(var e=t.length,n=new Array(e),i=0;i<e;i++)n[i]=nt(t[i]);return n}function rt(t){function e(){var t=arguments,n=e.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var i=n.slice(),r=0;r<i.length;r++)i[r].apply(null,t)}return e.fns=t,e}function ot(t,e,i,r,o){var a,s,l,u;for(a in t)s=t[a],l=e[a],u=ca(a),n(s)?"production"!=="production".NODE_ENV&&fo('Invalid handler for event "'+u.name+'": got '+String(s),o):n(l)?(n(s.fns)&&(s=t[a]=rt(s)),i(u.name,s,u.once,u.capture,u.passive)):s!==l&&(l.fns=s,t[a]=l);for(a in e)n(t[a])&&(u=ca(a),r(u.name,e[a],u.capture))}function at(t,e,o){function a(){o.apply(this,arguments),p(s.fns,a)}var s,l=t[e];n(l)?s=rt([a]):i(l.fns)&&r(l.merged)?(s=l,s.fns.push(a)):s=rt([l,a]),s.merged=!0,t[e]=s}function st(t,e,r){var o=e.options.props;if(!n(o)){var a={},s=t.attrs,l=t.props;if(i(s)||i(l))for(var u in o){var c=io(u);if("production"!=="production".NODE_ENV){var h=u.toLowerCase();u!==h&&s&&g(s,h)&&po('Prop "'+h+'" is passed to component '+go(r||e)+', but the declared prop name is "'+u+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+c+'" instead of "'+u+'".')}lt(a,l,u,c,!0)||lt(a,s,u,c,!1)}return a}}function lt(t,e,n,r,o){if(i(e)){if(g(e,n))return t[n]=e[n],o||delete e[n],!0;if(g(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function ut(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function ct(t){return a(t)?[et(t)]:Array.isArray(t)?dt(t):void 0}function ht(t){return i(t)&&i(t.text)&&o(t.isComment)}function dt(t,e){var o,s,l,u=[];for(o=0;o<t.length;o++)s=t[o],n(s)||"boolean"==typeof s||(l=u[u.length-1],Array.isArray(s)?u.push.apply(u,dt(s,(e||"")+"_"+o)):a(s)?ht(l)?l.text+=String(s):""!==s&&u.push(et(s)):ht(s)&&ht(l)?u[u.length-1]=et(l.text+s.text):(r(t._isVList)&&i(s.tag)&&n(s.key)&&i(e)&&(s.key="__vlist"+e+"_"+o+"__"),u.push(s)));return u}function ft(t,e){return t.__esModule&&t.default&&(t=t.default),s(t)?e.extend(t):t}function pt(t,e,n,i,r){var o=ua();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}function gt(t,e,o){if(r(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;if(r(t.loading)&&i(t.loadingComp))return t.loadingComp;if(!i(t.contexts)){var a=t.contexts=[o],l=!0,u=function(){for(var t=0,e=a.length;t<e;t++)a[t].$forceUpdate()},c=M(function(n){t.resolved=ft(n,e),l||u()}),h=M(function(e){"production"!=="production".NODE_ENV&&fo("Failed to resolve async component: "+String(t)+(e?"\nReason: "+e:"")),i(t.errorComp)&&(t.error=!0,u())}),d=t(c,h);return s(d)&&("function"==typeof d.then?n(t.resolved)&&d.then(c,h):i(d.component)&&"function"==typeof d.component.then&&(d.component.then(c,h),i(d.error)&&(t.errorComp=ft(d.error,e)),i(d.loading)&&(t.loadingComp=ft(d.loading,e),0===d.delay?t.loading=!0:setTimeout(function(){n(t.resolved)&&n(t.error)&&(t.loading=!0,u())},d.delay||200)),i(d.timeout)&&setTimeout(function(){n(t.resolved)&&h("production"!=="production".NODE_ENV?"timeout ("+d.timeout+"ms)":null)},d.timeout))),l=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(o)}function vt(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&i(n.componentOptions))return n}}function mt(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&_t(t,e)}function yt(t,e,n){n?la.$once(t,e):la.$on(t,e)}function xt(t,e){la.$off(t,e)}function _t(t,e,n){la=t,ot(e,n||{},yt,xt,t)}function bt(t,e){var n={};if(!t)return n;for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r];if(a.context!==e&&a.functionalContext!==e||!a.data||null==a.data.slot)i.push(a);else{var s=a.data.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children):l.push(a)}}return i.every(wt)||(n.default=i),n}function wt(t){return t.isComment||" "===t.text}function St(t,e){e=e||{};for(var n=0;n<t.length;n++)Array.isArray(t[n])?St(t[n],e):e[t[n].key]=t[n].fn;return e}function Mt(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function At(t,e,n){t.$el=e,t.$options.render||(t.$options.render=ua,"production"!=="production".NODE_ENV&&(t.$options.template&&"#"!==t.$options.template.charAt(0)||t.$options.el||e?fo("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",t):fo("Failed to mount component: template or render function not defined.",t))),Lt(t,"beforeMount");var i;return i="production"!=="production".NODE_ENV&&uo.performance&&qo?function(){var e=t._name,i=t._uid,r="vue-perf-start:"+i,o="vue-perf-end:"+i;qo(r);var a=t._render();qo(o),Xo(e+" render",r,o),qo(r),t._update(a,n),qo(o),Xo(e+" patch",r,o)}:function(){t._update(t._render(),n)},t._watcher=new wa(t,i,b),n=!1,null==t.$vnode&&(t._isMounted=!0,Lt(t,"mounted")),t}function It(t,e,n,i,r){"production"!=="production".NODE_ENV&&(da=!0);var o=!!(r||t.$options._renderChildren||i.data.scopedSlots||t.$scopedSlots!==co);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=r,t.$attrs=i.data&&i.data.attrs,t.$listeners=n,e&&t.$options.props){jo.shouldConvert=!1;for(var a=t._props,s=t.$options._propKeys||[],l=0;l<s.length;l++){var u=s[l];a[u]=X(u,t.$options.props,e,t)}jo.shouldConvert=!0,t.$options.propsData=e}if(n){var c=t.$options._parentListeners;t.$options._parentListeners=n,_t(t,n,c)}o&&(t.$slots=bt(r,i.context),t.$forceUpdate()),"production"!=="production".NODE_ENV&&(da=!1)}function Tt(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Ct(t,e){if(e){if(t._directInactive=!1,Tt(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Ct(t.$children[n]);Lt(t,"activated")}}function Dt(t,e){if(!(e&&(t._directInactive=!0,Tt(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Dt(t.$children[n]);Lt(t,"deactivated")}}function Lt(t,e){var n=t.$options[e];if(n)for(var i=0,r=n.length;i<r;i++)try{n[i].call(t)}catch(n){C(n,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e)}function Pt(){_a=pa.length=ga.length=0,va={},"production"!=="production".NODE_ENV&&(ma={}),ya=xa=!1}function Et(){xa=!0;var t,e;for(pa.sort(function(t,e){return t.id-e.id}),_a=0;_a<pa.length;_a++)if(t=pa[_a],e=t.id,va[e]=null,t.run(),"production"!=="production".NODE_ENV&&null!=va[e]&&(ma[e]=(ma[e]||0)+1,ma[e]>fa)){fo("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var n=ga.slice(),i=pa.slice();Pt(),Nt(n),kt(i),Vo&&uo.devtools&&Vo.emit("flush")}function kt(t){for(var e=t.length;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&Lt(i,"updated")}}function Ot(t){t._inactive=!1,ga.push(t)}function Nt(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Ct(t[e],!0)}function Vt(t){var e=t.id;if(null==va[e]){if(va[e]=!0,xa){for(var n=pa.length-1;n>_a&&pa[n].id>t.id;)n--;pa.splice(n+1,0,t)}else pa.push(t);ya||(ya=!0,zo(Et))}}function Rt(t){Sa.clear(),zt(t,Sa)}function zt(t,e){var n,i,r=Array.isArray(t);if((r||s(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(r)for(n=t.length;n--;)zt(t[n],e);else for(i=Object.keys(t),n=i.length;n--;)zt(t[i[n]],e)}}function Bt(t,e,n){Ma.get=function(){return this[e][n]},Ma.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Ma)}function Gt(t){t._watchers=[];var e=t.$options;e.props&&Ht(t,e.props),e.methods&&qt(t,e.methods),e.data?Wt(t):O(t._data={},!0),e.computed&&jt(t,e.computed),e.watch&&e.watch!==Lo&&Xt(t,e.watch)}function Ft(t,e){l(t.$options[e])||fo('component option "'+e+'" should be an object.',t)}function Ht(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],o=!t.$parent;jo.shouldConvert=o;for(var a in e)!function(o){r.push(o);var a=X(o,e,n,t);"production"!=="production".NODE_ENV?((Kr(o)||uo.isReservedAttr(o))&&fo('"'+o+'" is a reserved attribute and cannot be used as component prop.',t),N(i,o,a,function(){t.$parent&&!da&&fo("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+o+'"',t)})):N(i,o,a),o in t||Bt(t,"_props",o)}(a);jo.shouldConvert=!0}function Wt(t){var e=t.$options.data;e=t._data="function"==typeof e?$t(e,t):e||{},l(e)||(e={},"production"!=="production".NODE_ENV&&fo("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));for(var n=Object.keys(e),i=t.$options.props,r=t.$options.methods,o=n.length;o--;){var a=n[o];"production"!=="production".NODE_ENV&&r&&g(r,a)&&fo('method "'+a+'" has already been defined as a data property.',t),i&&g(i,a)?"production"!=="production".NODE_ENV&&fo('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',t):A(a)||Bt(t,"_data",a)}O(e,!0)}function $t(t,e){try{return t.call(e)}catch(t){return C(t,e,"data()"),{}}}function jt(t,e){"production"!=="production".NODE_ENV&&Ft(t,"computed");var n=t._computedWatchers=Object.create(null);for(var i in e){var r=e[i],o="function"==typeof r?r:r.get;"production"!=="production".NODE_ENV&&null==o&&fo('Getter is missing for computed property "'+i+'".',t),n[i]=new wa(t,o||b,b,Aa),i in t?"production"!=="production".NODE_ENV&&(i in t.$data?fo('The computed property "'+i+'" is already defined in data.',t):t.$options.props&&i in t.$options.props&&fo('The computed property "'+i+'" is already defined as a prop.',t)):Zt(t,i,r)}}function Zt(t,e,n){"function"==typeof n?(Ma.get=Ut(e),Ma.set=b):(Ma.get=n.get?!1!==n.cache?Ut(e):n.get:b,Ma.set=n.set?n.set:b),"production"!=="production".NODE_ENV&&Ma.set===b&&(Ma.set=function(){fo('Computed property "'+e+'" was assigned to but it has no setter.',this)}),Object.defineProperty(t,e,Ma)}function Ut(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Go.target&&e.depend(),e.value}}function qt(t,e){"production"!=="production".NODE_ENV&&Ft(t,"methods");var n=t.$options.props;for(var i in e)t[i]=null==e[i]?b:m(e[i],t),"production"!=="production".NODE_ENV&&(null==e[i]&&fo('method "'+i+'" has an undefined value in the component definition. Did you reference the function correctly?',t),n&&g(n,i)&&fo('method "'+i+'" has already been defined as a prop.',t))}function Xt(t,e){"production"!=="production".NODE_ENV&&Ft(t,"watch");for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)Yt(t,n,i[r]);else Yt(t,n,i)}}function Yt(t,e,n,i){return l(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}function Kt(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function Jt(t){var e=Qt(t.$options.inject,t);e&&(jo.shouldConvert=!1,Object.keys(e).forEach(function(n){"production"!=="production".NODE_ENV?N(t,n,e[n],function(){fo('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',t)}):N(t,n,e[n])}),jo.shouldConvert=!0)}function Qt(t,e){if(t){for(var n=Object.create(null),i=Ro?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){for(var o=i[r],a=t[o],s=e;s;){if(s._provided&&a in s._provided){n[o]=s._provided[a];break}s=s.$parent}"production"==="production".NODE_ENV||s||fo('Injection "'+o+'" not found',e)}return n}}function te(t,e,n,r,o){var a={},s=t.options.props;if(i(s))for(var l in s)a[l]=X(l,s,e||{});else i(n.attrs)&&ee(a,n.attrs),i(n.props)&&ee(a,n.props);var u=Object.create(r),c=function(t,e,n,i){return se(u,t,e,n,i,!0)},h=t.options.render.call(null,c,{data:n,props:a,children:o,parent:r,listeners:n.on||{},injections:Qt(t.options.inject,r),slots:function(){return bt(o,r)}});return h instanceof aa&&(h.functionalContext=r,h.functionalOptions=t.options,n.slot&&((h.data||(h.data={})).slot=n.slot)),h}function ee(t,e){for(var n in e)t[to(n)]=e[n]}function ne(t,e,o,a,l){if(!n(t)){var u=o.$options._base;if(s(t)&&(t=u.extend(t)),"function"!=typeof t)return void("production"!=="production".NODE_ENV&&fo("Invalid Component definition: "+String(t),o));var c;if(n(t.cid)&&(c=t,void 0===(t=gt(c,u,o))))return pt(c,e,o,a,l);e=e||{},we(t),i(e.model)&&ae(t.options,e);var h=st(e,t,l);if(r(t.options.functional))return te(t,h,e,o,a);var d=e.on;if(e.on=e.nativeOn,r(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}re(e);var p=t.options.name||l;return new aa("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,o,{Ctor:t,propsData:h,listeners:d,tag:l,children:a},c)}}function ie(t,e,n,r){var o=t.componentOptions,a={_isComponent:!0,parent:e,propsData:o.propsData,_componentTag:o.tag,_parentVnode:t,_parentListeners:o.listeners,_renderChildren:o.children,_parentElm:n||null,_refElm:r||null},s=t.data.inlineTemplate;return i(s)&&(a.render=s.render,a.staticRenderFns=s.staticRenderFns),new o.Ctor(a)}function re(t){t.hook||(t.hook={});for(var e=0;e<Ta.length;e++){var n=Ta[e],i=t.hook[n],r=Ia[n];t.hook[n]=i?oe(r,i):r}}function oe(t,e){return function(n,i,r,o){t(n,i,r,o),e(n,i,r,o)}}function ae(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.props||(e.props={}))[n]=e.model.value;var o=e.on||(e.on={});i(o[r])?o[r]=[e.model.callback].concat(o[r]):o[r]=e.model.callback}function se(t,e,n,i,o,s){return(Array.isArray(n)||a(n))&&(o=i,i=n,n=void 0),r(s)&&(o=Da),le(t,e,n,i,o)}function le(t,e,n,r,o){if(i(n)&&i(n.__ob__))return"production"!=="production".NODE_ENV&&fo("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",t),ua();if(i(n)&&i(n.is)&&(e=n.is),!e)return ua();"production"!=="production".NODE_ENV&&i(n)&&i(n.key)&&!a(n.key)&&fo("Avoid using non-primitive value as key, use string/number value instead.",t),Array.isArray(r)&&"function"==typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===Da?r=ct(r):o===Ca&&(r=ut(r));var s,l;if("string"==typeof e){var u;l=uo.getTagNamespace(e),s=uo.isReservedTag(e)?new aa(uo.parsePlatformTagName(e),n,r,void 0,void 0,t):i(u=q(t.$options,"components",e))?ne(u,n,t,r,e):new aa(e,n,r,void 0,void 0,t)}else s=ne(e,n,t,r);return i(s)?(l&&ue(s,l),s):ua()}function ue(t,e){if(t.ns=e,"foreignObject"!==t.tag&&i(t.children))for(var r=0,o=t.children.length;r<o;r++){var a=t.children[r];i(a.tag)&&n(a.ns)&&ue(a,e)}}function ce(t,e){var n,r,o,a,l;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(s(t))for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)l=a[r],n[r]=e(t[l],l,r);return i(n)&&(n._isVList=!0),n}function he(t,e,n,i){var r=this.$scopedSlots[t];if(r)return n=n||{},i&&(n=x(x({},i),n)),r(n)||e;var o=this.$slots[t];return o&&"production"!=="production".NODE_ENV&&(o._rendered&&fo('Duplicate presence of slot "'+t+'" found in the same render tree - this will likely cause render errors.',this),o._rendered=!0),o||e}function de(t){return q(this.$options,"filters",t,!0)||oo}function fe(t,e,n){var i=uo.keyCodes[e]||n;return Array.isArray(i)?-1===i.indexOf(t):i!==t}function pe(t,e,n,i,r){if(n)if(s(n)){Array.isArray(n)&&(n=_(n));var o;for(var a in n)!function(a){if("class"===a||"style"===a||Kr(a))o=t;else{var s=t.attrs&&t.attrs.type;o=i||uo.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(a in o)&&(o[a]=n[a],r)){(t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}}}(a)}else"production"!=="production".NODE_ENV&&fo("v-bind without argument expects an Object or Array value",this);return t}function ge(t,e){var n=this._staticTrees[t];return n&&!e?Array.isArray(n)?it(n):nt(n):(n=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),me(n,"__static__"+t,!1),n)}function ve(t,e,n){return me(t,"__once__"+e+(n?"_"+n:""),!0),t}function me(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&ye(t[i],e+"_"+i,n);else ye(t,e,n)}function ye(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function xe(t,e){if(e)if(l(e)){var n=t.on=t.on?x({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(o,r):o}}else"production"!=="production".NODE_ENV&&fo("v-on without argument expects an Object value",this);return t}function _e(t){t._vnode=null,t._staticTrees=null;var e=t.$vnode=t.$options._parentVnode,n=e&&e.context;t.$slots=bt(t.$options._renderChildren,n),t.$scopedSlots=co,t._c=function(e,n,i,r){return se(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return se(t,e,n,i,r,!0)};var i=e&&e.data;"production"!=="production".NODE_ENV?(N(t,"$attrs",i&&i.attrs,function(){!da&&fo("$attrs is readonly.",t)},!0),N(t,"$listeners",t.$options._parentListeners,function(){!da&&fo("$listeners is readonly.",t)},!0)):(N(t,"$attrs",i&&i.attrs,null,!0),N(t,"$listeners",t.$options._parentListeners,null,!0))}function be(t,e){var n=t.$options=Object.create(t.constructor.options);n.parent=e.parent,n.propsData=e.propsData,n._parentVnode=e._parentVnode,n._parentListeners=e._parentListeners,n._renderChildren=e._renderChildren,n._componentTag=e._componentTag,n._parentElm=e._parentElm,n._refElm=e._refElm,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function we(t){var e=t.options;if(t.super){var n=we(t.super);if(n!==t.superOptions){t.superOptions=n;var i=Se(t);i&&x(t.extendOptions,i),e=t.options=U(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Se(t){var e,n=t.options,i=t.extendOptions,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=Me(n[o],i[o],r[o]));return e}function Me(t,e,n){if(Array.isArray(t)){var i=[];n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e];for(var r=0;r<t.length;r++)(e.indexOf(t[r])>=0||n.indexOf(t[r])<0)&&i.push(t[r]);return i}return t}function Ae(t){"production"==="production".NODE_ENV||this instanceof Ae||fo("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function Ie(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function Te(t){t.mixin=function(t){return this.options=U(this.options,t),this}}function Ce(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name;"production"!=="production".NODE_ENV&&(/^[a-zA-Z][\w-]*$/.test(o)||fo('Invalid component name: "'+o+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.'));var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=U(n.options,t),a.super=n,a.options.props&&De(a),a.options.computed&&Le(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,so.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=x({},a.options),r[i]=a,a}}function De(t){var e=t.options.props;for(var n in e)Bt(t.prototype,"_props",n)}function Le(t){var e=t.options.computed;for(var n in e)Zt(t.prototype,n,e[n])}function Pe(t){so.forEach(function(e){t[e]=function(t,n){return n?("production"!=="production".NODE_ENV&&"component"===e&&uo.isReservedTag(t)&&fo("Do not use built-in or reserved HTML elements as component id: "+t),"component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ee(t){return t&&(t.Ctor.options.name||t.tag)}function ke(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!u(t)&&t.test(e)}function Oe(t,e,n){for(var i in t){var r=t[i];if(r){var o=Ee(r.componentOptions);o&&!n(o)&&(r!==e&&Ne(r),t[i]=null)}}}function Ne(t){t&&t.componentInstance.$destroy()}function Ve(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)r=r.componentInstance._vnode,r.data&&(e=Re(r.data,e));for(;i(n=n.parent);)n.data&&(e=Re(e,n.data));return ze(e.staticClass,e.class)}function Re(t,e){return{staticClass:Be(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function ze(t,e){return i(t)||i(e)?Be(t,Ge(e)):""}function Be(t,e){return t?e?t+" "+e:t:e||""}function Ge(t){return Array.isArray(t)?Fe(t):s(t)?He(t):"string"==typeof t?t:""}function Fe(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Ge(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function He(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function We(t){return ts(t)?"svg":"math"===t?"math":void 0}function $e(t){if(!wo)return!0;if(ns(t))return!1;if(t=t.toLowerCase(),null!=is[t])return is[t];var e=document.createElement(t);return t.indexOf("-")>-1?is[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:is[t]=/HTMLUnknownElement/.test(e.toString())}function je(t){if("string"==typeof t){var e=document.querySelector(t);return e||("production"!=="production".NODE_ENV&&fo("Cannot find element: "+t),document.createElement("div"))}return t}function Ze(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ue(t,e){return document.createElementNS(Ja[t],e)}function qe(t){return document.createTextNode(t)}function Xe(t){return document.createComment(t)}function Ye(t,e,n){t.insertBefore(e,n)}function Ke(t,e){t.removeChild(e)}function Je(t,e){t.appendChild(e)}function Qe(t){return t.parentNode}function tn(t){return t.nextSibling}function en(t){return t.tagName}function nn(t,e){t.textContent=e}function rn(t,e,n){t.setAttribute(e,n)}function on(t,e){var n=t.data.ref;if(n){var i=t.context,r=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[n])?p(o[n],r):o[n]===r&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(r)<0&&o[n].push(r):o[n]=[r]:o[n]=r}}function an(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&sn(t,e)||r(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&n(e.asyncFactory.error))}function sn(t,e){if("input"!==t.tag)return!0;var n;return(i(n=t.data)&&i(n=n.attrs)&&n.type)===(i(n=e.data)&&i(n=n.attrs)&&n.type)}function ln(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function un(t,e){(t.data.directives||e.data.directives)&&cn(t,e)}function cn(t,e){var n,i,r,o=t===as,a=e===as,s=hn(t.data.directives,t.context),l=hn(e.data.directives,e.context),u=[],c=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,fn(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(fn(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var h=function(){for(var n=0;n<u.length;n++)fn(u[n],"inserted",e,t)};o?at(e.data.hook||(e.data.hook={}),"insert",h):h()}if(c.length&&at(e.data.hook||(e.data.hook={}),"postpatch",function(){for(var n=0;n<c.length;n++)fn(c[n],"componentUpdated",e,t)}),!o)for(n in s)l[n]||fn(s[n],"unbind",t,t,a)}function hn(t,e){var n=Object.create(null);if(!t)return n;var i,r;for(i=0;i<t.length;i++)r=t[i],r.modifiers||(r.modifiers=us),n[dn(r)]=r,r.def=q(e.$options,"directives",r.name,!0);return n}function dn(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function fn(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(i){C(i,n.context,"directive "+t.name+" "+e+" hook")}}function pn(t,e){var r=e.componentOptions;if(!(i(r)&&!1===r.Ctor.options.inheritAttrs||n(t.data.attrs)&&n(e.data.attrs))){var o,a,s=e.elm,l=t.data.attrs||{},u=e.data.attrs||{};i(u.__ob__)&&(u=e.data.attrs=x({},u));for(o in u)a=u[o],l[o]!==a&&gn(s,o,a);Ao&&u.value!==l.value&&gn(s,"value",u.value);for(o in l)n(u[o])&&(Xa(o)?s.removeAttributeNS(qa,Ya(o)):Za(o)||s.removeAttribute(o))}}function gn(t,e,n){Ua(e)?Ka(n)?t.removeAttribute(e):t.setAttribute(e,e):Za(e)?t.setAttribute(e,Ka(n)||"false"===n?"false":"true"):Xa(e)?Ka(n)?t.removeAttributeNS(qa,Ya(e)):t.setAttributeNS(qa,e,n):Ka(n)?t.removeAttribute(e):t.setAttribute(e,n)}function vn(t,e){var r=e.elm,o=e.data,a=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Ve(e),l=r._transitionClasses;i(l)&&(s=Be(s,Ge(l))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}function mn(t){function e(){(a||(a=[])).push(t.slice(p,r).trim()),p=r+1}var n,i,r,o,a,s=!1,l=!1,u=!1,c=!1,h=0,d=0,f=0,p=0;for(r=0;r<t.length;r++)if(i=n,n=t.charCodeAt(r),s)39===n&&92!==i&&(s=!1);else if(l)34===n&&92!==i&&(l=!1);else if(u)96===n&&92!==i&&(u=!1);else if(c)47===n&&92!==i&&(c=!1);else if(124!==n||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||h||d||f){switch(n){case 34:l=!0;break;case 39:s=!0;break;case 96:u=!0;break;case 40:f++;break;case 41:f--;break;case 91:d++;break;case 93:d--;break;case 123:h++;break;case 125:h--}if(47===n){for(var g=r-1,v=void 0;g>=0&&" "===(v=t.charAt(g));g--);v&&fs.test(v)||(c=!0)}}else void 0===o?(p=r+1,o=t.slice(0,r).trim()):e();if(void 0===o?o=t.slice(0,r).trim():0!==p&&e(),a)for(r=0;r<a.length;r++)o=yn(o,a[r]);return o}function yn(t,e){var n=e.indexOf("(");return n<0?'_f("'+e+'")('+t+")":'_f("'+e.slice(0,n)+'")('+t+","+e.slice(n+1)}function xn(t){console.error("[Vue compiler]: "+t)}function _n(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function bn(t,e,n){(t.props||(t.props=[])).push({name:e,value:n})}function wn(t,e,n){(t.attrs||(t.attrs=[])).push({name:e,value:n})}function Sn(t,e,n,i,r,o){(t.directives||(t.directives=[])).push({name:e,rawName:n,value:i,arg:r,modifiers:o})}function Mn(t,e,n,i,r,o){"production"!=="production".NODE_ENV&&o&&i&&i.prevent&&i.passive&&o("passive and prevent can't be used together. Passive handler can't prevent default event."),i&&i.capture&&(delete i.capture,e="!"+e),i&&i.once&&(delete i.once,e="~"+e),i&&i.passive&&(delete i.passive,e="&"+e);var a;i&&i.native?(delete i.native,a=t.nativeEvents||(t.nativeEvents={})):a=t.events||(t.events={});var s={value:n,modifiers:i},l=a[e];Array.isArray(l)?r?l.unshift(s):l.push(s):a[e]=l?r?[s,l]:[l,s]:s}function An(t,e,n){var i=In(t,":"+e)||In(t,"v-bind:"+e);if(null!=i)return mn(i);if(!1!==n){var r=In(t,e);if(null!=r)return JSON.stringify(r)}}function In(t,e){var n;if(null!=(n=t.attrsMap[e]))for(var i=t.attrsList,r=0,o=i.length;r<o;r++)if(i[r].name===e){i.splice(r,1);break}return n}function Tn(t,e,n){var i=n||{},r=i.number,o=i.trim,a="$$v";o&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(a="_n("+a+")");var s=Cn(e,a);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+s+"}"}}function Cn(t,e){var n=Dn(t);return null===n.idx?t+"="+e:"$set("+n.exp+", "+n.idx+", "+e+")"}function Dn(t){if(Na=t,Oa=Na.length,Ra=za=Ba=0,t.indexOf("[")<0||t.lastIndexOf("]")<Oa-1)return{exp:t,idx:null};for(;!Pn();)Va=Ln(),En(Va)?On(Va):91===Va&&kn(Va);return{exp:t.substring(0,za),idx:t.substring(za+1,Ba)}}function Ln(){return Na.charCodeAt(++Ra)}function Pn(){return Ra>=Oa}function En(t){return 34===t||39===t}function kn(t){var e=1;for(za=Ra;!Pn();)if(t=Ln(),En(t))On(t);else if(91===t&&e++,93===t&&e--,0===e){Ba=Ra;break}}function On(t){for(var e=t;!Pn()&&(t=Ln())!==e;);}function Nn(t,e,n){Ga=n;var i=e.value,r=e.modifiers,o=t.tag,a=t.attrsMap.type;if("production"!=="production".NODE_ENV){var s=t.attrsMap["v-bind:type"]||t.attrsMap[":type"];"input"===o&&s&&Ga('<input :type="'+s+'" v-model="'+i+'">:\nv-model does not support dynamic input types. Use v-if branches instead.'),"input"===o&&"file"===a&&Ga("<"+t.tag+' v-model="'+i+'" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.')}if(t.component)return Tn(t,i,r),!1;if("select"===o)zn(t,i,r);else if("input"===o&&"checkbox"===a)Vn(t,i,r);else if("input"===o&&"radio"===a)Rn(t,i,r);else if("input"===o||"textarea"===o)Bn(t,i,r);else{if(!uo.isReservedTag(o))return Tn(t,i,r),!1;"production"!=="production".NODE_ENV&&Ga("<"+t.tag+' v-model="'+i+"\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.")}return!0}function Vn(t,e,n){var i=n&&n.number,r=An(t,"value")||"null",o=An(t,"true-value")||"true",a=An(t,"false-value")||"false";bn(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Mn(t,gs,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Cn(e,"$$c")+"}",null,!0)}function Rn(t,e,n){var i=n&&n.number,r=An(t,"value")||"null";r=i?"_n("+r+")":r,bn(t,"checked","_q("+e+","+r+")"),Mn(t,gs,Cn(e,r),null,!0)}function zn(t,e,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",o="var $$selectedVal = "+r+";";o=o+" "+Cn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Mn(t,"change",o,null,!0)}function Bn(t,e,n){var i=t.attrsMap.type,r=n||{},o=r.lazy,a=r.number,s=r.trim,l=!o&&"range"!==i,u=o?"change":"range"===i?ps:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var h=Cn(e,c);l&&(h="if($event.target.composing)return;"+h),bn(t,"value","("+e+")"),Mn(t,u,h,null,!0),(s||a)&&Mn(t,"blur","$forceUpdate()")}function Gn(t){var e;i(t[ps])&&(e=Mo?"change":"input",t[e]=[].concat(t[ps],t[e]||[]),delete t[ps]),i(t[gs])&&(e=Do?"click":"change",t[e]=[].concat(t[gs],t[e]||[]),delete t[gs])}function Fn(t,e,n,i,r){if(n){var o=e,a=Fa;e=function(n){null!==(1===arguments.length?o(n):o.apply(null,arguments))&&Hn(t,e,i,a)}}Fa.addEventListener(t,e,Po?{capture:i,passive:r}:i)}function Hn(t,e,n,i){(i||Fa).removeEventListener(t,e,n)}function Wn(t,e){if(!n(t.data.on)||!n(e.data.on)){var i=e.data.on||{},r=t.data.on||{};Fa=e.elm,Gn(i),ot(i,r,Fn,Hn,e.context)}}function $n(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var r,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};i(l.__ob__)&&(l=e.data.domProps=x({},l));for(r in s)n(l[r])&&(a[r]="");for(r in l)if(o=l[r],"textContent"!==r&&"innerHTML"!==r||(e.children&&(e.children.length=0),o!==s[r]))if("value"===r){a._value=o;var u=n(o)?"":String(o);jn(a,e,u)&&(a.value=u)}else a[r]=o}}function jn(t,e,n){return!t.composing&&("option"===e.tag||Zn(t,n)||Un(t,n))}function Zn(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Un(t,e){var n=t.value,r=t._vModifiers;return i(r)&&r.number?d(n)!==d(e):i(r)&&r.trim?n.trim()!==e.trim():n!==e}function qn(t){var e=Xn(t.style);return t.staticStyle?x(t.staticStyle,e):e}function Xn(t){return Array.isArray(t)?_(t):"string"==typeof t?ys(t):t}function Yn(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)r=r.componentInstance._vnode,r.data&&(n=qn(r.data))&&x(i,n);(n=qn(t.data))&&x(i,n);for(var o=t;o=o.parent;)o.data&&(n=qn(o.data))&&x(i,n);return i}function Kn(t,e){var r=e.data,o=t.data;if(!(n(r.staticStyle)&&n(r.style)&&n(o.staticStyle)&&n(o.style))){var a,s,l=e.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},h=u||c,d=Xn(e.data.style)||{};e.data.normalizedStyle=i(d.__ob__)?x({},d):d;var f=Yn(e,!0);for(s in h)n(f[s])&&bs(l,s,"");for(s in f)(a=f[s])!==h[s]&&bs(l,s,null==a?"":a)}}function Jn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Qn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ti(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&x(e,As(t.name||"v")),x(e,t),e}return"string"==typeof t?As(t):void 0}}function ei(t){ks(function(){ks(t)})}function ni(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Jn(t,e))}function ii(t,e){t._transitionClasses&&p(t._transitionClasses,e),Qn(t,e)}function ri(t,e,n){var i=oi(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Ts?Ls:Es,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout(function(){l<a&&u()},o+1),t.addEventListener(s,c)}function oi(t,e){var n,i=window.getComputedStyle(t),r=i[Ds+"Delay"].split(", "),o=i[Ds+"Duration"].split(", "),a=ai(r,o),s=i[Ps+"Delay"].split(", "),l=i[Ps+"Duration"].split(", "),u=ai(s,l),c=0,h=0;return e===Ts?a>0&&(n=Ts,c=a,h=o.length):e===Cs?u>0&&(n=Cs,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?Ts:Cs:null,h=n?n===Ts?o.length:l.length:0),{type:n,timeout:c,propCount:h,hasTransform:n===Ts&&Os.test(i[Ds+"Property"])}}function ai(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return si(e)+si(t[n])}))}function si(t){return 1e3*Number(t.slice(0,-1))}function li(t,e){var r=t.elm;i(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var o=ti(t.data.transition);if(!n(o)&&!i(r._enterCb)&&1===r.nodeType){for(var a=o.css,l=o.type,u=o.enterClass,c=o.enterToClass,h=o.enterActiveClass,f=o.appearClass,p=o.appearToClass,g=o.appearActiveClass,v=o.beforeEnter,m=o.enter,y=o.afterEnter,x=o.enterCancelled,_=o.beforeAppear,b=o.appear,w=o.afterAppear,S=o.appearCancelled,A=o.duration,I=ha,T=ha.$vnode;T&&T.parent;)T=T.parent,I=T.context;var C=!I._isMounted||!t.isRootInsert;if(!C||b||""===b){var D=C&&f?f:u,L=C&&g?g:h,P=C&&p?p:c,E=C?_||v:v,k=C&&"function"==typeof b?b:m,O=C?w||y:y,N=C?S||x:x,V=d(s(A)?A.enter:A);"production"!=="production".NODE_ENV&&null!=V&&ci(V,"enter",t);var R=!1!==a&&!Ao,z=di(k),B=r._enterCb=M(function(){R&&(ii(r,P),ii(r,L)),B.cancelled?(R&&ii(r,D),N&&N(r)):O&&O(r),r._enterCb=null});t.data.show||at(t.data.hook||(t.data.hook={}),"insert",function(){var e=r.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),k&&k(r,B)}),E&&E(r),R&&(ni(r,D),ni(r,L),ei(function(){ni(r,P),ii(r,D),B.cancelled||z||(hi(V)?setTimeout(B,V):ri(r,l,B))})),t.data.show&&(e&&e(),k&&k(r,B)),R||z||B()}}}function ui(t,e){function r(){S.cancelled||(t.data.show||((o.parentNode._pending||(o.parentNode._pending={}))[t.key]=t),p&&p(o),_&&(ni(o,c),ni(o,f),ei(function(){ni(o,h),ii(o,c),S.cancelled||b||(hi(w)?setTimeout(S,w):ri(o,u,S))})),g&&g(o,S),_||b||S())}var o=t.elm;i(o._enterCb)&&(o._enterCb.cancelled=!0,o._enterCb());var a=ti(t.data.transition);if(n(a))return e();if(!i(o._leaveCb)&&1===o.nodeType){var l=a.css,u=a.type,c=a.leaveClass,h=a.leaveToClass,f=a.leaveActiveClass,p=a.beforeLeave,g=a.leave,v=a.afterLeave,m=a.leaveCancelled,y=a.delayLeave,x=a.duration,_=!1!==l&&!Ao,b=di(g),w=d(s(x)?x.leave:x);"production"!=="production".NODE_ENV&&i(w)&&ci(w,"leave",t);var S=o._leaveCb=M(function(){o.parentNode&&o.parentNode._pending&&(o.parentNode._pending[t.key]=null),_&&(ii(o,h),ii(o,f)),S.cancelled?(_&&ii(o,c),m&&m(o)):(e(),v&&v(o)),o._leaveCb=null});y?y(r):r()}}function ci(t,e,n){"number"!=typeof t?fo("<transition> explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",n.context):isNaN(t)&&fo("<transition> explicit "+e+" duration is NaN - the duration expression might be incorrect.",n.context)}function hi(t){return"number"==typeof t&&!isNaN(t)}function di(t){if(n(t))return!1;var e=t.fns;return i(e)?di(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function fi(t,e){!0!==e.data.show&&li(e)}function pi(t,e,n){var i=e.value,r=t.multiple;if(r&&!Array.isArray(i))return void("production"!=="production".NODE_ENV&&fo('<select multiple v-model="'+e.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(i).slice(8,-1),n));for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],r)o=S(i,gi(a))>-1,a.selected!==o&&(a.selected=o);else if(w(gi(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}function gi(t){return"_value"in t?t._value:t.value}function vi(t){t.target.composing=!0}function mi(t){t.target.composing&&(t.target.composing=!1,yi(t.target,"input"))}function yi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function xi(t){return!t.componentInstance||t.data&&t.data.transition?t:xi(t.componentInstance._vnode)}function _i(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?_i(vt(e.children)):t}function bi(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[to(o)]=r[o];return e}function wi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Si(t){for(;t=t.parent;)if(t.data.transition)return!0}function Mi(t,e){return e.key===t.key&&e.tag===t.tag}function Ai(t){return t.isComment&&t.asyncFactory}function Ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ti(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ci(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}function Di(t,e){var n=e?Js(e):Ys;if(n.test(t)){for(var i,r,o=[],a=n.lastIndex=0;i=n.exec(t);){r=i.index,r>a&&o.push(JSON.stringify(t.slice(a,r)));var s=mn(i[1].trim());o.push("_s("+s+")"),a=r+i[0].length}return a<t.length&&o.push(JSON.stringify(t.slice(a))),o.join("+")}}function Li(t,e){var n=e.warn||xn,i=In(t,"class");if("production"!=="production".NODE_ENV&&i){Di(i,e.delimiters)&&n('class="'+i+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.')}i&&(t.staticClass=JSON.stringify(i));var r=An(t,"class",!1);r&&(t.classBinding=r)}function Pi(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Ei(t,e){var n=e.warn||xn,i=In(t,"style");if(i){if("production"!=="production".NODE_ENV){Di(i,e.delimiters)&&n('style="'+i+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.')}t.staticStyle=JSON.stringify(ys(i))}var r=An(t,"style",!1);r&&(t.styleBinding=r)}function ki(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Oi(t,e){e.value&&bn(t,"textContent","_s("+e.value+")")}function Ni(t,e){e.value&&bn(t,"innerHTML","_s("+e.value+")")}function Vi(t,e){var n=e?Nl:Ol;return t.replace(n,function(t){return kl[t]})}function Ri(t,e){function n(e){c+=e,t=t.substring(e)}function i(t,n,i){var r,s;if(null==n&&(n=c),null==i&&(i=c),t&&(s=t.toLowerCase()),t)for(r=a.length-1;r>=0&&a[r].lowerCasedTag!==s;r--);else r=0;if(r>=0){for(var l=a.length-1;l>=r;l--)"production"!=="production".NODE_ENV&&(l>r||!t)&&e.warn&&e.warn("tag <"+a[l].tag+"> has no matching end tag."),e.end&&e.end(a[l].tag,n,i);a.length=r,o=r&&a[r-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,i):"p"===s&&(e.start&&e.start(t,[],!1,n,i),e.end&&e.end(t,n,i))}for(var r,o,a=[],s=e.expectHTML,l=e.isUnaryTag||ro,u=e.canBeLeftOpenTag||ro,c=0;t;){if(r=t,o&&Pl(o)){var h=0,d=o.toLowerCase(),f=El[d]||(El[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i")),p=t.replace(f,function(t,n,i){return h=i.length,Pl(d)||"noscript"===d||(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Rl(d,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});c+=t.length-p.length,t=p,i(d,c-h,c)}else{var g=t.indexOf("<");if(0===g){if(yl.test(t)){var v=t.indexOf("--\x3e");if(v>=0){e.shouldKeepComment&&e.comment(t.substring(4,v)),n(v+3);continue}}if(xl.test(t)){var m=t.indexOf("]>");if(m>=0){n(m+2);continue}}var y=t.match(ml);if(y){n(y[0].length);continue}var x=t.match(vl);if(x){var _=c;n(x[0].length),i(x[1],_,c);continue}var b=function(){var e=t.match(pl);if(e){var i={tagName:e[1],attrs:[],start:c};n(e[0].length);for(var r,o;!(r=t.match(gl))&&(o=t.match(hl));)n(o[0].length),i.attrs.push(o);if(r)return i.unarySlash=r[1],n(r[0].length),i.end=c,i}}();if(b){!function(t){var n=t.tagName,r=t.unarySlash;s&&("p"===o&&ol(n)&&i(o),u(n)&&o===n&&i(n));for(var c=l(n)||!!r,h=t.attrs.length,d=new Array(h),f=0;f<h;f++){var p=t.attrs[f];_l&&-1===p[0].indexOf('""')&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var g=p[3]||p[4]||p[5]||"";d[f]={name:p[1],value:Vi(g,e.shouldDecodeNewlines)}}c||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d}),o=n),e.start&&e.start(n,d,c,t.start,t.end)}(b),Rl(o,t)&&n(1);continue}}var w=void 0,S=void 0,M=void 0;if(g>=0){for(S=t.slice(g);!(vl.test(S)||pl.test(S)||yl.test(S)||xl.test(S)||(M=S.indexOf("<",1))<0);)g+=M,S=t.slice(g);w=t.substring(0,g),n(g)}g<0&&(w=t,t=""),e.chars&&w&&e.chars(w)}if(t===r){e.chars&&e.chars(t),"production"!=="production".NODE_ENV&&!a.length&&e.warn&&e.warn('Mal-formatted tag at end of template: "'+t+'"');break}}i()}function zi(t,e){function n(t){c||(c=!0,bl(t))}function i(t){t.pre&&(l=!1),Il(t.tag)&&(u=!1)}bl=e.warn||xn,Il=e.isPreTag||ro,Tl=e.mustUseProp||ro,Cl=e.getTagNamespace||ro,Sl=_n(e.modules,"transformNode"),Ml=_n(e.modules,"preTransformNode"),Al=_n(e.modules,"postTransformNode"),wl=e.delimiters;var r,o,a=[],s=!1!==e.preserveWhitespace,l=!1,u=!1,c=!1;return Ri(t,{warn:bl,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldKeepComment:e.comments,start:function(t,s,c){function h(t){"production"!=="production".NODE_ENV&&("slot"!==t.tag&&"template"!==t.tag||n("Cannot use <"+t.tag+"> as component root element because it may contain multiple nodes."),t.attrsMap.hasOwnProperty("v-for")&&n("Cannot use v-for on stateful component root element because it renders multiple elements."))}var d=o&&o.ns||Cl(t);Mo&&"svg"===d&&(s=ir(s));var f={type:1,tag:t,attrsList:s,attrsMap:tr(s),parent:o,children:[]};d&&(f.ns=d),nr(f)&&!No()&&(f.forbidden=!0,"production"!=="production".NODE_ENV&&bl("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <"+t+">, as they will not be parsed."));for(var p=0;p<Ml.length;p++)Ml[p](f,e);if(l||(Bi(f),f.pre&&(l=!0)),Il(f.tag)&&(u=!0),l)Gi(f);else{Wi(f),$i(f),qi(f),Fi(f),f.plain=!f.key&&!s.length,Hi(f),Xi(f),Yi(f);for(var g=0;g<Sl.length;g++)Sl[g](f,e);Ki(f)}if(r?a.length||(r.if&&(f.elseif||f.else)?(h(f),Ui(r,{exp:f.elseif,block:f})):"production"!=="production".NODE_ENV&&n("Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.")):(r=f,h(r)),o&&!f.forbidden)if(f.elseif||f.else)ji(f,o);else if(f.slotScope){o.plain=!1;var v=f.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[v]=f}else o.children.push(f),f.parent=o;c?i(f):(o=f,a.push(f));for(var m=0;m<Al.length;m++)Al[m](f,e)},end:function(){var t=a[a.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!u&&t.children.pop(),a.length-=1,o=a[a.length-1],i(t)},chars:function(e){if(!o)return void("production"!=="production".NODE_ENV&&(e===t?n("Component template requires a root element, rather than just text."):(e=e.trim())&&n('text "'+e+'" outside root element will be ignored.')));if(!Mo||"textarea"!==o.tag||o.attrsMap.placeholder!==e){var i=o.children;if(e=u||e.trim()?er(o)?e:jl(e):s&&i.length?" ":""){var r;!l&&" "!==e&&(r=Di(e,wl))?i.push({type:2,expression:r,text:e}):" "===e&&i.length&&" "===i[i.length-1].text||i.push({type:3,text:e})}}},comment:function(t){o.children.push({type:3,text:t,isComment:!0})}}),r}function Bi(t){null!=In(t,"v-pre")&&(t.pre=!0)}function Gi(t){var e=t.attrsList.length;if(e)for(var n=t.attrs=new Array(e),i=0;i<e;i++)n[i]={name:t.attrsList[i].name,value:JSON.stringify(t.attrsList[i].value)};else t.pre||(t.plain=!0)}function Fi(t){var e=An(t,"key");e&&("production"!=="production".NODE_ENV&&"template"===t.tag&&bl("<template> cannot be keyed. Place the key on real elements instead."),t.key=e)}function Hi(t){var e=An(t,"ref");e&&(t.ref=e,t.refInFor=Ji(t))}function Wi(t){var e;if(e=In(t,"v-for")){var n=e.match(Gl);if(!n)return void("production"!=="production".NODE_ENV&&bl("Invalid v-for expression: "+e));t.for=n[2].trim();var i=n[1].trim(),r=i.match(Fl);r?(t.alias=r[1].trim(),t.iterator1=r[2].trim(),r[3]&&(t.iterator2=r[3].trim())):t.alias=i}}function $i(t){var e=In(t,"v-if");if(e)t.if=e,Ui(t,{exp:e,block:t});else{null!=In(t,"v-else")&&(t.else=!0);var n=In(t,"v-else-if");n&&(t.elseif=n)}}function ji(t,e){var n=Zi(e.children);n&&n.if?Ui(n,{exp:t.elseif,block:t}):"production"!=="production".NODE_ENV&&bl("v-"+(t.elseif?'else-if="'+t.elseif+'"':"else")+" used on element <"+t.tag+"> without corresponding v-if.")}function Zi(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];"production"!=="production".NODE_ENV&&" "!==t[e].text&&bl('text "'+t[e].text.trim()+'" between v-if and v-else(-if) will be ignored.'),t.pop()}}function Ui(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function qi(t){null!=In(t,"v-once")&&(t.once=!0)}function Xi(t){if("slot"===t.tag)t.slotName=An(t,"name"),"production"!=="production".NODE_ENV&&t.key&&bl("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.");else{var e=An(t,"slot");e&&(t.slotTarget='""'===e?'"default"':e),"template"===t.tag&&(t.slotScope=In(t,"scope"))}}function Yi(t){var e;(e=An(t,"is"))&&(t.component=e),null!=In(t,"inline-template")&&(t.inlineTemplate=!0)}function Ki(t){var e,n,i,r,o,a,s,l=t.attrsList;for(e=0,n=l.length;e<n;e++)if(i=r=l[e].name,o=l[e].value,Bl.test(i))if(t.hasBindings=!0,a=Qi(i),a&&(i=i.replace($l,"")),Wl.test(i))i=i.replace(Wl,""),o=mn(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(i=to(i))&&(i="innerHTML")),a.camel&&(i=to(i)),a.sync&&Mn(t,"update:"+to(i),Cn(o,"$event"))),s||!t.component&&Tl(t.tag,t.attrsMap.type,i)?bn(t,i,o):wn(t,i,o);else if(zl.test(i))i=i.replace(zl,""),Mn(t,i,o,a,!1,bl);else{i=i.replace(Bl,"");var u=i.match(Hl),c=u&&u[1];c&&(i=i.slice(0,-(c.length+1))),Sn(t,i,r,o,c,a),"production"!=="production".NODE_ENV&&"model"===i&&rr(t,o)}else{if("production"!=="production".NODE_ENV){var h=Di(o,wl);h&&bl(i+'="'+o+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.')}wn(t,i,JSON.stringify(o))}}function Ji(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function Qi(t){var e=t.match($l);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}function tr(t){for(var e={},n=0,i=t.length;n<i;n++)"production"==="production".NODE_ENV||!e[t[n].name]||Mo||Io||bl("duplicate attribute: "+t[n].name),e[t[n].name]=t[n].value;return e}function er(t){return"script"===t.tag||"style"===t.tag}function nr(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function ir(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];Zl.test(i.name)||(i.name=i.name.replace(Ul,""),e.push(i))}return e}function rr(t,e){for(var n=t;n;)n.for&&n.alias===e&&bl("<"+t.tag+' v-model="'+e+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.'),n=n.parent}function or(t,e){t&&(Dl=ql(e.staticKeys||""),Ll=e.isReservedTag||ro,sr(t),lr(t,!1))}function ar(t){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function sr(t){if(t.static=ur(t),1===t.type){if(!Ll(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var i=t.children[e];sr(i),i.static||(t.static=!1)}if(t.ifConditions)for(var r=1,o=t.ifConditions.length;r<o;r++){var a=t.ifConditions[r].block;sr(a),a.static||(t.static=!1)}}}function lr(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,i=t.children.length;n<i;n++)lr(t.children[n],e||!!t.for);if(t.ifConditions)for(var r=1,o=t.ifConditions.length;r<o;r++)lr(t.ifConditions[r].block,e)}}function ur(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||Yr(t.tag)||!Ll(t.tag)||cr(t)||!Object.keys(t).every(Dl))))}function cr(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t.for)return!0}return!1}function hr(t,e,n){var i=e?"nativeOn:{":"on:{";for(var r in t){var o=t[r];"production"!=="production".NODE_ENV&&"click"===r&&o&&o.modifiers&&o.modifiers.right&&n('Use "contextmenu" instead of "click.right" since right clicks do not actually fire "click" events.'),i+='"'+r+'":'+dr(r,o)+","}return i.slice(0,-1)+"}"}function dr(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return dr(t,e)}).join(",")+"]";var n=Yl.test(e.value),i=Xl.test(e.value);if(e.modifiers){var r="",o="",a=[];for(var s in e.modifiers)Ql[s]?(o+=Ql[s],Kl[s]&&a.push(s)):a.push(s);a.length&&(r+=fr(a)),o&&(r+=o);return"function($event){"+r+(n?e.value+"($event)":i?"("+e.value+")($event)":e.value)+"}"}return n||i?e.value:"function($event){"+e.value+"}"}function fr(t){return"if(!('button' in $event)&&"+t.map(pr).join("&&")+")return null;"}function pr(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=Kl[t];return"_k($event.keyCode,"+JSON.stringify(t)+(n?","+JSON.stringify(n):"")+")"}function gr(t,e){"production"!=="production".NODE_ENV&&e.modifiers&&fo("v-on without argument does not support modifiers."),t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}}function vr(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}}function mr(t,e){var n=new eu(e);return{render:"with(this){return "+(t?yr(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function yr(t,e){if(t.staticRoot&&!t.staticProcessed)return xr(t,e);if(t.once&&!t.onceProcessed)return _r(t,e);if(t.for&&!t.forProcessed)return Sr(t,e);if(t.if&&!t.ifProcessed)return br(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return Vr(t,e);var n;if(t.component)n=Rr(t.component,t,e);else{var i=t.plain?void 0:Mr(t,e),r=t.inlineTemplate?null:Lr(t,e,!0);n="_c('"+t.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var o=0;o<e.transforms.length;o++)n=e.transforms[o](t,n);return n}return Lr(t,e)||"void 0"}function xr(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+yr(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function _r(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return br(t,e);if(t.staticInFor){for(var n="",i=t.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+yr(t,e)+","+e.onceId+++(n?","+n:"")+")":("production"!=="production".NODE_ENV&&e.warn("v-once can only be used inside v-for that is keyed. "),yr(t,e))}return xr(t,e)}function br(t,e,n,i){return t.ifProcessed=!0,wr(t.ifConditions.slice(),e,n,i)}function wr(t,e,n,i){function r(t){return n?n(t,e):t.once?_r(t,e):yr(t,e)}if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+r(o.block)+":"+wr(t,e,n,i):""+r(o.block)}function Sr(t,e,n,i){var r=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return"production"!=="production".NODE_ENV&&e.maybeComponent(t)&&"slot"!==t.tag&&"template"!==t.tag&&!t.key&&e.warn("<"+t.tag+' v-for="'+o+" in "+r+'">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.',!0),t.forProcessed=!0,(i||"_l")+"(("+r+"),function("+o+a+s+"){return "+(n||yr)(t,e)+"})"}function Mr(t,e){var n="{",i=Ar(t,e);i&&(n+=i+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var r=0;r<e.dataGenFns.length;r++)n+=e.dataGenFns[r](t);if(t.attrs&&(n+="attrs:{"+zr(t.attrs)+"},"),t.props&&(n+="domProps:{"+zr(t.props)+"},"),t.events&&(n+=hr(t.events,!1,e.warn)+","),t.nativeEvents&&(n+=hr(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=Tr(t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=Ir(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ar(t,e){var n=t.directives;if(n){var i,r,o,a,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){o=n[i],a=!0;var u=e.directives[o.name];u&&(a=!!u(t,o,e.warn)),a&&(l=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return l?s.slice(0,-1)+"]":void 0}}function Ir(t,e){var n=t.children[0];if("production"!=="production".NODE_ENV&&(t.children.length>1||1!==n.type)&&e.warn("Inline-template components must have exactly one child element."),1===n.type){var i=mr(n,e.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function Tr(t,e){return"scopedSlots:_u(["+Object.keys(t).map(function(n){return Cr(n,t[n],e)}).join(",")+"])"}function Cr(t,e,n){return e.for&&!e.forProcessed?Dr(t,e,n):"{key:"+t+",fn:function("+String(e.attrsMap.scope)+"){return "+("template"===e.tag?Lr(e,n)||"void 0":yr(e,n))+"}}"}function Dr(t,e,n){var i=e.for,r=e.alias,o=e.iterator1?","+e.iterator1:"",a=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+i+"),function("+r+o+a+"){return "+Cr(t,e,n)+"})"}function Lr(t,e,n,i,r){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(i||yr)(a,e);var s=n?Pr(o,e.maybeComponent):0,l=r||kr;return"["+o.map(function(t){return l(t,e)}).join(",")+"]"+(s?","+s:"")}}function Pr(t,e){for(var n=0,i=0;i<t.length;i++){var r=t[i];if(1===r.type){if(Er(r)||r.ifConditions&&r.ifConditions.some(function(t){return Er(t.block)})){n=2;break}(e(r)||r.ifConditions&&r.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}function Er(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function kr(t,e){return 1===t.type?yr(t,e):3===t.type&&t.isComment?Nr(t):Or(t)}function Or(t){return"_v("+(2===t.type?t.expression:Br(JSON.stringify(t.text)))+")"}function Nr(t){return"_e("+JSON.stringify(t.text)+")"}function Vr(t,e){var n=t.slotName||'"default"',i=Lr(t,e),r="_t("+n+(i?","+i:""),o=t.attrs&&"{"+t.attrs.map(function(t){return to(t.name)+":"+t.value}).join(",")+"}",a=t.attrsMap["v-bind"];return!o&&!a||i||(r+=",null"),o&&(r+=","+o),a&&(r+=(o?"":",null")+","+a),r+")"}function Rr(t,e,n){var i=e.inlineTemplate?null:Lr(e,n,!0);return"_c("+t+","+Mr(e,n)+(i?","+i:"")+")"}function zr(t){for(var e="",n=0;n<t.length;n++){var i=t[n];e+='"'+i.name+'":'+Br(i.value)+","}return e.slice(0,-1)}function Br(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Gr(t){var e=[];return t&&Fr(t,e),e}function Fr(t,e){if(1===t.type){for(var n in t.attrsMap)if(Bl.test(n)){var i=t.attrsMap[n];i&&("v-for"===n?Wr(t,'v-for="'+i+'"',e):zl.test(n)?Hr(i,n+'="'+i+'"',e):jr(i,n+'="'+i+'"',e))}if(t.children)for(var r=0;r<t.children.length;r++)Fr(t.children[r],e)}else 2===t.type&&jr(t.expression,t.text,e)}function Hr(t,e,n){var i=t.replace(ou,""),r=i.match(iu);r&&"$"!==i.charAt(r.index-1)&&n.push('avoid using JavaScript unary operator as property name: "'+r[0]+'" in expression '+e.trim()),jr(t,e,n)}function Wr(t,e,n){jr(t.for||"",e,n),$r(t.alias,"v-for alias",e,n),$r(t.iterator1,"v-for iterator",e,n),$r(t.iterator2,"v-for iterator",e,n)}function $r(t,e,n,i){"string"!=typeof t||ru.test(t)||i.push("invalid "+e+' "'+t+'" in expression: '+n.trim())}function jr(t,e,n){try{new Function("return "+t)}catch(r){var i=t.replace(ou,"").match(nu);i?n.push('avoid using JavaScript keyword as property name: "'+i[0]+'" in expression '+e.trim()):n.push("invalid expression: "+e.trim())}}function Zr(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),b}}function Ur(t){var e=Object.create(null);return function(n,i,r){if(i=i||{},"production"!=="production".NODE_ENV)try{new Function("return 1")}catch(t){t.toString().match(/unsafe-eval|CSP/)&&fo("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var o=i.delimiters?String(i.delimiters)+n:n;if(e[o])return e[o];var a=t(n,i);"production"!=="production".NODE_ENV&&(a.errors&&a.errors.length&&fo("Error compiling template:\n\n"+n+"\n\n"+a.errors.map(function(t){return"- "+t}).join("\n")+"\n",r),a.tips&&a.tips.length&&a.tips.forEach(function(t){return po(t,r)}));var s={},l=[];return s.render=Zr(a.render,l),s.staticRenderFns=a.staticRenderFns.map(function(t){return Zr(t,l)}),"production"!=="production".NODE_ENV&&(a.errors&&a.errors.length||!l.length||fo("Failed to generate render function:\n\n"+l.map(function(t){var e=t.err,n=t.code;return e.toString()+" in\n\n"+n+"\n"}).join("\n"),r)),e[o]=s}}function qr(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var Xr=Object.prototype.toString,Yr=f("slot,component",!0),Kr=f("key,ref,slot,is"),Jr=Object.prototype.hasOwnProperty,Qr=/-(\w)/g,to=v(function(t){return t.replace(Qr,function(t,e){return e?e.toUpperCase():""})}),eo=v(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),no=/([^-])([A-Z])/g,io=v(function(t){return t.replace(no,"$1-$2").replace(no,"$1-$2").toLowerCase()}),ro=function(t,e,n){return!1},oo=function(t){return t},ao="data-server-rendered",so=["component","directive","filter"],lo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],uo={optionMergeStrategies:Object.create(null),silent:!1,productionTip:"production"!=="production".NODE_ENV,devtools:"production"!=="production".NODE_ENV,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ro,isReservedAttr:ro,isUnknownElement:ro,getTagNamespace:b,parsePlatformTagName:oo,mustUseProp:ro,_lifecycleHooks:lo},co=Object.freeze({}),ho=/[^\w.$]/,fo=b,po=b,go=null;if("production"!=="production".NODE_ENV){var vo="undefined"!=typeof console,mo=/(?:^|[-_])(\w)/g,yo=function(t){return t.replace(mo,function(t){return t.toUpperCase()}).replace(/[-_]/g,"")};fo=function(t,e){var n=e?_o(e):"";uo.warnHandler?uo.warnHandler.call(null,t,e,n):vo&&!uo.silent&&console.error("[Vue warn]: "+t+n)},po=function(t,e){vo&&!uo.silent&&console.warn("[Vue tip]: "+t+(e?_o(e):""))},go=function(t,e){if(t.$root===t)return"<Root>";var n="string"==typeof t?t:"function"==typeof t&&t.options?t.options.name:t._isVue?t.$options.name||t.$options._componentTag:t.name,i=t._isVue&&t.$options.__file;if(!n&&i){var r=i.match(/([^\/\\]+)\.vue$/);n=r&&r[1]}return(n?"<"+yo(n)+">":"<Anonymous>")+(i&&!1!==e?" at "+i:"")};var xo=function(t,e){for(var n="";e;)e%2==1&&(n+=t),e>1&&(t+=t),e>>=1;return n},_o=function(t){if(t._isVue&&t.$parent){for(var e=[],n=0;t;){if(e.length>0){var i=e[e.length-1];if(i.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[i,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map(function(t,e){return""+(0===e?"---\x3e ":xo(" ",5+2*e))+(Array.isArray(t)?go(t[0])+"... ("+t[1]+" recursive calls)":go(t))}).join("\n")}return"\n\n(found in "+go(t)+")"}}var bo="__proto__"in{},wo="undefined"!=typeof window,So=wo&&window.navigator.userAgent.toLowerCase(),Mo=So&&/msie|trident/.test(So),Ao=So&&So.indexOf("msie 9.0")>0,Io=So&&So.indexOf("edge/")>0,To=So&&So.indexOf("android")>0,Co=So&&/iphone|ipad|ipod|ios/.test(So),Do=So&&/chrome\/\d+/.test(So)&&!Io,Lo={}.watch,Po=!1;if(wo)try{var Eo={};Object.defineProperty(Eo,"passive",{get:function(){Po=!0}}),window.addEventListener("test-passive",null,Eo)}catch(t){}var ko,Oo,No=function(){return void 0===ko&&(ko=!wo&&void 0!==t&&"server"===t.process.env.VUE_ENV),ko},Vo=wo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ro="undefined"!=typeof Symbol&&D(Symbol)&&"undefined"!=typeof Reflect&&D(Reflect.ownKeys),zo=function(){function t(){i=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],i=!1;if("undefined"!=typeof Promise&&D(Promise)){var r=Promise.resolve(),o=function(t){console.error(t)};e=function(){r.then(t).catch(o),Co&&setTimeout(b)}}else if("undefined"==typeof MutationObserver||!D(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var a=1,s=new MutationObserver(t),l=document.createTextNode(String(a));s.observe(l,{characterData:!0}),e=function(){a=(a+1)%2,l.data=String(a)}}return function(t,r){var o;if(n.push(function(){if(t)try{t.call(r)}catch(t){C(t,r,"nextTick")}else o&&o(r)}),i||(i=!0,e()),!t&&"undefined"!=typeof Promise)return new Promise(function(t,e){o=t})}}();Oo="undefined"!=typeof Set&&D(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Bo=0,Go=function(){this.id=Bo++,this.subs=[]};Go.prototype.addSub=function(t){this.subs.push(t)},Go.prototype.removeSub=function(t){p(this.subs,t)},Go.prototype.depend=function(){Go.target&&Go.target.addDep(this)},Go.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},Go.target=null;var Fo=[],Ho=Array.prototype,Wo=Object.create(Ho);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Ho[t];I(Wo,t,function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o})});var $o=Object.getOwnPropertyNames(Wo),jo={shouldConvert:!0},Zo=function(t){if(this.value=t,this.dep=new Go,this.vmCount=0,I(t,"__ob__",this),Array.isArray(t)){(bo?E:k)(t,Wo,$o),this.observeArray(t)}else this.walk(t)};Zo.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)N(t,e[n],t[e[n]])},Zo.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)O(t[e])};var Uo=uo.optionMergeStrategies;"production"!=="production".NODE_ENV&&(Uo.el=Uo.propsData=function(t,e,n,i){return n||fo('option "'+i+'" can only be used during instance creation with the `new` keyword.'),Yo(t,e)}),Uo.data=function(t,e,n){return n?G(t,e,n):e&&"function"!=typeof e?("production"!=="production".NODE_ENV&&fo('The "data" option should be a function that returns a per-instance value in component definitions.',n),t):G.call(this,t,e)},lo.forEach(function(t){Uo[t]=F}),so.forEach(function(t){Uo[t+"s"]=H}),Uo.watch=function(t,e){if(t===Lo&&(t=void 0),e===Lo&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var n={};x(n,t);for(var i in e){var r=n[i],o=e[i];r&&!Array.isArray(r)&&(r=[r]),n[i]=r?r.concat(o):Array.isArray(o)?o:[o]}return n},Uo.props=Uo.methods=Uo.inject=Uo.computed=function(t,e){if(!t)return e;var n=Object.create(null);return x(n,t),e&&x(n,e),n},Uo.provide=G;var qo,Xo,Yo=function(t,e){return void 0===e?t:e},Ko=/^(String|Number|Boolean|Function|Symbol)$/;if("production"!=="production".NODE_ENV){var Jo=wo&&window.performance;Jo&&Jo.mark&&Jo.measure&&Jo.clearMarks&&Jo.clearMeasures&&(qo=function(t){return Jo.mark(t)},Xo=function(t,e,n){Jo.measure(t,e,n),Jo.clearMarks(e),Jo.clearMarks(n),Jo.clearMeasures(t)})}var Qo;if("production"!=="production".NODE_ENV){var ta=f("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),ea=function(t,e){fo('Property or method "'+e+'" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.',t)},na="undefined"!=typeof Proxy&&Proxy.toString().match(/native code/);if(na){var ia=f("stop,prevent,self,ctrl,shift,alt,meta");uo.keyCodes=new Proxy(uo.keyCodes,{set:function(t,e,n){return ia(e)?(fo("Avoid overwriting built-in modifier in config.keyCodes: ."+e),!1):(t[e]=n,!0)}})}var ra={has:function(t,e){var n=e in t,i=ta(e)||"_"===e.charAt(0);return n||i||ea(t,e),n||!i}},oa={get:function(t,e){return"string"!=typeof e||e in t||ea(t,e),t[e]}};Qo=function(t){if(na){var e=t.$options,n=e.render&&e.render._withStripped?oa:ra;t._renderProxy=new Proxy(t,n)}else t._renderProxy=t}}var aa=function(t,e,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},sa={child:{}};sa.child.get=function(){return this.componentInstance},Object.defineProperties(aa.prototype,sa);var la,ua=function(t){void 0===t&&(t="");var e=new aa;return e.text=t,e.isComment=!0,e},ca=v(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var i="!"===t.charAt(0);return t=i?t.slice(1):t,{name:t,once:n,capture:i,passive:e}}),ha=null,da=!1,fa=100,pa=[],ga=[],va={},ma={},ya=!1,xa=!1,_a=0,ba=0,wa=function(t,e,n,i){this.vm=t,t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ba,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Oo,this.newDepIds=new Oo,this.expression="production"!=="production".NODE_ENV?e.toString():"","function"==typeof e?this.getter=e:(this.getter=T(e),this.getter||(this.getter=function(){},"production"!=="production".NODE_ENV&&fo('Failed watching path: "'+e+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',t))),this.value=this.lazy?void 0:this.get()};wa.prototype.get=function(){L(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;C(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Rt(t),P(),this.cleanupDeps()}return t},wa.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},wa.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},wa.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Vt(this)},wa.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){C(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},wa.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},wa.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},wa.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||p(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Sa=new Oo,Ma={enumerable:!0,configurable:!0,get:b,set:b},Aa={lazy:!0},Ia={init:function(t,e,n,i){if(!t.componentInstance||t.componentInstance._isDestroyed){(t.componentInstance=ie(t,ha,n,i)).$mount(e?t.elm:void 0,e)}else if(t.data.keepAlive){var r=t;Ia.prepatch(r,r)}},prepatch:function(t,e){var n=e.componentOptions;It(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Lt(n,"mounted")),t.data.keepAlive&&(e._isMounted?Ot(n):Ct(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Dt(e,!0):e.$destroy())}},Ta=Object.keys(Ia),Ca=1,Da=2,La=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=La++;var n,i;"production"!=="production".NODE_ENV&&uo.performance&&qo&&(n="vue-perf-init:"+e._uid,i="vue-perf-end:"+e._uid,qo(n)),e._isVue=!0,t&&t._isComponent?be(e,t):e.$options=U(we(e.constructor),t||{},e),"production"!=="production".NODE_ENV?Qo(e):e._renderProxy=e,e._self=e,Mt(e),mt(e),_e(e),Lt(e,"beforeCreate"),Jt(e),Gt(e),Kt(e),Lt(e,"created"),"production"!=="production".NODE_ENV&&uo.performance&&qo&&(e._name=go(e,!1),qo(i),Xo(e._name+" init",n,i)),e.$options.el&&e.$mount(e.$options.el)}}(Ae),function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},"production"!=="production".NODE_ENV&&(e.set=function(t){fo("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){fo("$props is readonly.",this)}),Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=V,t.prototype.$delete=R,t.prototype.$watch=function(t,e,n){var i=this;if(l(e))return Yt(i,t,e,n);n=n||{},n.user=!0;var r=new wa(i,t,e,n);return n.immediate&&e.call(i,r.value),function(){r.teardown()}}}(Ae),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this,r=this;if(Array.isArray(t))for(var o=0,a=t.length;o<a;o++)i.$on(t[o],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){function n(){i.$off(t,n),e.apply(i,arguments)}var i=this;return n.fn=e,i.$on(t,n),i},t.prototype.$off=function(t,e){var n=this,i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(t)){for(var r=0,o=t.length;r<o;r++)n.$off(t[r],e);return i}var a=i._events[t];if(!a)return i;if(1===arguments.length)return i._events[t]=null,i;for(var s,l=a.length;l--;)if((s=a[l])===e||s.fn===e){a.splice(l,1);break}return i},t.prototype.$emit=function(t){var e=this;if("production"!=="production".NODE_ENV){var n=t.toLowerCase();n!==t&&e._events[n]&&po('Event "'+n+'" is emitted in component '+go(e)+' but the handler is registered for "'+t+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+io(t)+'" instead of "'+t+'".')}var i=e._events[t];if(i){i=i.length>1?y(i):i;for(var r=y(arguments,1),o=0,a=i.length;o<a;o++)try{i[o].apply(e,r)}catch(n){C(n,e,'event handler for "'+t+'"')}}return e}}(Ae),function(t){t.prototype._update=function(t,e){var n=this;n._isMounted&&Lt(n,"beforeUpdate");var i=n.$el,r=n._vnode,o=ha;ha=n,n._vnode=t,r?n.$el=n.__patch__(r,t):(n.$el=n.__patch__(n.$el,t,e,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),ha=o,i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Lt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||p(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Lt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null)}}}(Ae),function(t){t.prototype.$nextTick=function(t){return zo(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,i=e.staticRenderFns,r=e._parentVnode;if(t._isMounted)for(var o in t.$slots)t.$slots[o]=it(t.$slots[o]);t.$scopedSlots=r&&r.data.scopedSlots||co,i&&!t._staticTrees&&(t._staticTrees=[]),t.$vnode=r;var a;try{a=n.call(t._renderProxy,t.$createElement)}catch(e){C(e,t,"render function"),a="production"!=="production".NODE_ENV&&t.$options.renderError?t.$options.renderError.call(t._renderProxy,t.$createElement,e):t._vnode}return a instanceof aa||("production"!=="production".NODE_ENV&&Array.isArray(a)&&fo("Multiple root nodes returned from render function. Render function should return a single root node.",t),a=ua()),a.parent=r,a},t.prototype._o=ve,t.prototype._n=d,t.prototype._s=h,t.prototype._l=ce,t.prototype._t=he,t.prototype._q=w,t.prototype._i=S,t.prototype._m=ge,t.prototype._f=de,t.prototype._k=fe,t.prototype._b=pe,t.prototype._v=et,t.prototype._e=ua,t.prototype._u=St,t.prototype._g=xe}(Ae);var Pa=[String,RegExp,Array],Ea={name:"keep-alive",abstract:!0,props:{include:Pa,exclude:Pa},created:function(){this.cache=Object.create(null)},destroyed:function(){var t=this;for(var e in t.cache)Ne(t.cache[e])},watch:{include:function(t){Oe(this.cache,this._vnode,function(e){return ke(t,e)})},exclude:function(t){Oe(this.cache,this._vnode,function(e){return!ke(t,e)})}},render:function(){var t=vt(this.$slots.default),e=t&&t.componentOptions;if(e){var n=Ee(e);if(n&&(this.include&&!ke(this.include,n)||this.exclude&&ke(this.exclude,n)))return t;var i=null==t.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):t.key;this.cache[i]?t.componentInstance=this.cache[i].componentInstance:this.cache[i]=t,t.data.keepAlive=!0}return t}},ka={KeepAlive:Ea};!function(t){var e={};e.get=function(){return uo},"production"!=="production".NODE_ENV&&(e.set=function(){fo("Do not replace the Vue.config object, set individual fields instead.")}),Object.defineProperty(t,"config",e),t.util={warn:fo,extend:x,mergeOptions:U,defineReactive:N},t.set=V,t.delete=R,t.nextTick=zo,t.options=Object.create(null),so.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,ka),Ie(t),Te(t),Ce(t),Pe(t)}(Ae),Object.defineProperty(Ae.prototype,"$isServer",{get:No}),Object.defineProperty(Ae.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Ae.version="2.4.2";var Oa,Na,Va,Ra,za,Ba,Ga,Fa,Ha,Wa=f("style,class"),$a=f("input,textarea,option,select"),ja=function(t,e,n){return"value"===n&&$a(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Za=f("contenteditable,draggable,spellcheck"),Ua=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qa="http://www.w3.org/1999/xlink",Xa=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ya=function(t){return Xa(t)?t.slice(6,t.length):""},Ka=function(t){return null==t||!1===t},Ja={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Qa=f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ts=f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),es=function(t){return"pre"===t},ns=function(t){return Qa(t)||ts(t)},is=Object.create(null),rs=Object.freeze({createElement:Ze,createElementNS:Ue,createTextNode:qe,createComment:Xe,insertBefore:Ye,removeChild:Ke,appendChild:Je,parentNode:Qe,nextSibling:tn,tagName:en,setTextContent:nn,setAttribute:rn}),os={create:function(t,e){on(e)},update:function(t,e){t.data.ref!==e.data.ref&&(on(t,!0),on(e))},destroy:function(t){on(t,!0)}},as=new aa("",{},[]),ss=["create","activate","update","remove","destroy"],ls={create:un,update:un,destroy:function(t){un(t,as)}},us=Object.create(null),cs=[os,ls],hs={create:pn,update:pn},ds={create:vn,update:vn},fs=/[\w).+\-_$\]]/,ps="__r",gs="__c",vs={create:Wn,update:Wn},ms={create:$n,update:$n},ys=v(function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),xs=/^--/,_s=/\s*!important$/,bs=function(t,e,n){if(xs.test(e))t.style.setProperty(e,n);else if(_s.test(n))t.style.setProperty(e,n.replace(_s,""),"important");else{var i=Ss(e);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)t.style[i]=n[r];else t.style[i]=n}},ws=["Webkit","Moz","ms"],Ss=v(function(t){if(Ha=Ha||document.createElement("div").style,"filter"!==(t=to(t))&&t in Ha)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<ws.length;n++){var i=ws[n]+e;if(i in Ha)return i}}),Ms={create:Kn,update:Kn},As=v(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Is=wo&&!Ao,Ts="transition",Cs="animation",Ds="transition",Ls="transitionend",Ps="animation",Es="animationend";Is&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ds="WebkitTransition",Ls="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ps="WebkitAnimation",Es="webkitAnimationEnd"));var ks=wo&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,Os=/\b(transform|all)(,|$)/,Ns=wo?{create:fi,activate:fi,remove:function(t,e){!0!==t.data.show?ui(t,e):e()}}:{},Vs=[hs,ds,vs,ms,Ms,Ns],Rs=Vs.concat(cs),zs=function(t){function e(t){return new aa(P.tagName(t).toLowerCase(),{},[],void 0,t)}function o(t,e){function n(){0==--n.listeners&&s(t)}return n.listeners=e,n}function s(t){var e=P.parentNode(t);i(e)&&P.removeChild(e,t)}function l(t,e,n,o,a){if(t.isRootInsert=!a,!u(t,e,n,o)){var s=t.data,l=t.children,c=t.tag;i(c)?("production"!=="production".NODE_ENV&&(s&&s.pre&&E++,E||t.ns||uo.ignoredElements.length&&uo.ignoredElements.indexOf(c)>-1||!uo.isUnknownElement(c)||fo("Unknown custom element: <"+c+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context)),t.elm=t.ns?P.createElementNS(t.ns,c):P.createElement(c,t),m(t),p(t,l,e),i(s)&&v(t,e),d(n,t.elm,o),"production"!=="production".NODE_ENV&&s&&s.pre&&E--):r(t.isComment)?(t.elm=P.createComment(t.text),d(n,t.elm,o)):(t.elm=P.createTextNode(t.text),d(n,t.elm,o))}}function u(t,e,n,o){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1,n,o),i(t.componentInstance))return c(t,e),r(s)&&h(t,e,n,o),!0}}function c(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(v(t,e),m(t)):(on(t),e.push(t))}function h(t,e,n,r){for(var o,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,i(o=a.data)&&i(o=o.transition)){for(o=0;o<D.activate.length;++o)D.activate[o](as,a);e.push(a);break}d(n,t.elm,r)}function d(t,e,n){i(t)&&(i(n)?n.parentNode===t&&P.insertBefore(t,e,n):P.appendChild(t,e))}function p(t,e,n){if(Array.isArray(e))for(var i=0;i<e.length;++i)l(e[i],n,t.elm,null,!0);else a(t.text)&&P.appendChild(t.elm,P.createTextNode(t.text))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return i(t.tag)}function v(t,e){for(var n=0;n<D.create.length;++n)D.create[n](as,t);T=t.data.hook,i(T)&&(i(T.create)&&T.create(as,t),i(T.insert)&&e.push(t))}function m(t){for(var e,n=t;n;)i(e=n.context)&&i(e=e.$options._scopeId)&&P.setAttribute(t.elm,e,""),n=n.parent;i(e=ha)&&e!==t.context&&i(e=e.$options._scopeId)&&P.setAttribute(t.elm,e,"")}function y(t,e,n,i,r,o){for(;i<=r;++i)l(n[i],o,t,e)}function x(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<D.destroy.length;++e)D.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)x(t.children[n])}function _(t,e,n,r){for(;n<=r;++n){var o=e[n];i(o)&&(i(o.tag)?(b(o),x(o)):s(o.elm))}}function b(t,e){if(i(e)||i(t.data)){var n,r=D.remove.length+1;for(i(e)?e.listeners+=r:e=o(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&b(n,e),n=0;n<D.remove.length;++n)D.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else s(t.elm)}function w(t,e,r,o,a){for(var s,u,c,h,d=0,f=0,p=e.length-1,g=e[0],v=e[p],m=r.length-1,x=r[0],b=r[m],w=!a;d<=p&&f<=m;)n(g)?g=e[++d]:n(v)?v=e[--p]:an(g,x)?(S(g,x,o),g=e[++d],x=r[++f]):an(v,b)?(S(v,b,o),v=e[--p],b=r[--m]):an(g,b)?(S(g,b,o),w&&P.insertBefore(t,g.elm,P.nextSibling(v.elm)),g=e[++d],b=r[--m]):an(v,x)?(S(v,x,o),w&&P.insertBefore(t,v.elm,g.elm),v=e[--p],x=r[++f]):(n(s)&&(s=ln(e,d,p)),u=i(x.key)?s[x.key]:null,n(u)?(l(x,o,t,g.elm),x=r[++f]):(c=e[u],"production"==="production".NODE_ENV||c||fo("It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key."),an(c,x)?(S(c,x,o),e[u]=void 0,w&&P.insertBefore(t,c.elm,g.elm),x=r[++f]):(l(x,o,t,g.elm),x=r[++f])));d>p?(h=n(r[m+1])?null:r[m+1].elm,y(t,h,r,f,m,o)):f>m&&_(t,e,d,p)}function S(t,e,o,a){if(t!==e){var s=e.elm=t.elm;if(r(t.isAsyncPlaceholder))return void(i(e.asyncFactory.resolved)?A(t.elm,e,o):e.isAsyncPlaceholder=!0);if(r(e.isStatic)&&r(t.isStatic)&&e.key===t.key&&(r(e.isCloned)||r(e.isOnce)))return void(e.componentInstance=t.componentInstance);var l,u=e.data;i(u)&&i(l=u.hook)&&i(l=l.prepatch)&&l(t,e);var c=t.children,h=e.children;if(i(u)&&g(e)){for(l=0;l<D.update.length;++l)D.update[l](t,e);i(l=u.hook)&&i(l=l.update)&&l(t,e)}n(e.text)?i(c)&&i(h)?c!==h&&w(s,c,h,o,a):i(h)?(i(t.text)&&P.setTextContent(s,""),y(s,null,h,0,h.length-1,o)):i(c)?_(s,c,0,c.length-1):i(t.text)&&P.setTextContent(s,""):t.text!==e.text&&P.setTextContent(s,e.text),i(u)&&i(l=u.hook)&&i(l=l.postpatch)&&l(t,e)}}function M(t,e,n){if(r(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var o=0;o<e.length;++o)e[o].data.hook.insert(e[o])}function A(t,e,n){if(r(e.isComment)&&i(e.asyncFactory))return e.elm=t,e.isAsyncPlaceholder=!0,!0;if("production"!=="production".NODE_ENV&&!I(t,e))return!1;e.elm=t;var o=e.tag,a=e.data,s=e.children;if(i(a)&&(i(T=a.hook)&&i(T=T.init)&&T(e,!0),i(T=e.componentInstance)))return c(e,n),!0;if(i(o)){if(i(s))if(t.hasChildNodes()){for(var l=!0,u=t.firstChild,h=0;h<s.length;h++){if(!u||!A(u,s[h],n)){l=!1;break}u=u.nextSibling}if(!l||u)return"production"==="production".NODE_ENV||"undefined"==typeof console||k||(k=!0,console.warn("Parent: ",t),console.warn("Mismatching childNodes vs. VNodes: ",t.childNodes,s)),!1}else p(e,s,n);if(i(a))for(var d in a)if(!O(d)){v(e,n);break}}else t.data!==e.text&&(t.data=e.text);return!0}function I(t,e){return i(e.tag)?0===e.tag.indexOf("vue-component")||e.tag.toLowerCase()===(t.tagName&&t.tagName.toLowerCase()):t.nodeType===(e.isComment?8:3)}var T,C,D={},L=t.modules,P=t.nodeOps;for(T=0;T<ss.length;++T)for(D[ss[T]]=[],C=0;C<L.length;++C)i(L[C][ss[T]])&&D[ss[T]].push(L[C][ss[T]]);var E=0,k=!1,O=f("attrs,style,class,staticClass,staticStyle,key");return function(t,o,a,s,u,c){if(n(o))return void(i(t)&&x(t));var h=!1,d=[];if(n(t))h=!0,l(o,d,u,c);else{var f=i(t.nodeType);if(!f&&an(t,o))S(t,o,d,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(ao)&&(t.removeAttribute(ao),a=!0),r(a)){if(A(t,o,d))return M(o,d,!0),t;"production"!=="production".NODE_ENV&&fo("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}t=e(t)}var p=t.elm,v=P.parentNode(p);if(l(o,d,p._leaveCb?null:v,P.nextSibling(p)),i(o.parent)){for(var m=o.parent;m;)m.elm=o.elm,m=m.parent;if(g(o))for(var y=0;y<D.create.length;++y)D.create[y](as,o.parent)}i(v)?_(v,[t],0,0):i(t.tag)&&x(t)}}return M(o,d,h),o.elm}}({nodeOps:rs,modules:Rs}),Bs=f("text,number,password,search,email,tel,url");Ao&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&yi(t,"input")});var Gs={inserted:function(t,e,n){if("select"===n.tag){var i=function(){pi(t,e,n.context)};i(),(Mo||Io)&&setTimeout(i,0),t._vOptions=[].map.call(t.options,gi)}else("textarea"===n.tag||Bs(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("change",mi),To||(t.addEventListener("compositionstart",vi),t.addEventListener("compositionend",mi)),Ao&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){pi(t,e,n.context);var i=t._vOptions;(t._vOptions=[].map.call(t.options,gi)).some(function(t,e){return!w(t,i[e])})&&yi(t,"change")}}},Fs={bind:function(t,e,n){var i=e.value;n=xi(n);var r=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,li(n,function(){t.style.display=o})):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;i!==e.oldValue&&(n=xi(n),n.data&&n.data.transition?(n.data.show=!0,i?li(n,function(){t.style.display=t.__vOriginalDisplay}):ui(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},Hs={model:Gs,show:Fs},Ws={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},$s={name:"transition",props:Ws,abstract:!0,render:function(t){var e=this,n=this.$options._renderChildren;if(n&&(n=n.filter(function(t){return t.tag||Ai(t)}),n.length)){"production"!=="production".NODE_ENV&&n.length>1&&fo("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var i=this.mode;"production"!=="production".NODE_ENV&&i&&"in-out"!==i&&"out-in"!==i&&fo("invalid <transition> mode: "+i,this.$parent);var r=n[0];if(Si(this.$vnode))return r;var o=_i(r);if(!o)return r;if(this._leaving)return wi(t,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=bi(this),u=this._vnode,c=_i(u);if(o.data.directives&&o.data.directives.some(function(t){return"show"===t.name})&&(o.data.show=!0),c&&c.data&&!Mi(o,c)&&!Ai(c)){var h=c&&(c.data.transition=x({},l));if("out-in"===i)return this._leaving=!0,at(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),wi(t,r);if("in-out"===i){if(Ai(o))return u;var d,f=function(){d()};at(l,"afterEnter",f),at(l,"enterCancelled",f),at(h,"delayLeave",function(t){d=t})}}return r}}},js=x({tag:String,moveClass:String},Ws);delete js.mode;var Zs={props:js,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=bi(this),s=0;s<r.length;s++){var l=r[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else if("production"!=="production".NODE_ENV){var u=l.componentOptions,c=u?u.Ctor.options.name||u.tag||"":l.tag;fo("<transition-group> children must be keyed: <"+c+">")}}if(i){for(var h=[],d=[],f=0;f<i.length;f++){var p=i[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?h.push(p):d.push(p)}this.kept=t(e,null,h),this.removed=d}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";if(t.length&&this.hasMove(t[0].elm,e)){t.forEach(Ii),t.forEach(Ti),t.forEach(Ci);var n=document.body;n.offsetHeight;t.forEach(function(t){if(t.data.moved){var n=t.elm,i=n.style;ni(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Ls,n._moveCb=function t(i){i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Ls,t),n._moveCb=null,ii(n,e))})}})}},methods:{hasMove:function(t,e){if(!Is)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Qn(n,t)}),Jn(n,e),n.style.display="none",this.$el.appendChild(n);var i=oi(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}},Us={Transition:$s,TransitionGroup:Zs};Ae.config.mustUseProp=ja,Ae.config.isReservedTag=ns,Ae.config.isReservedAttr=Wa,Ae.config.getTagNamespace=We,Ae.config.isUnknownElement=$e,x(Ae.options.directives,Hs),x(Ae.options.components,Us),Ae.prototype.__patch__=wo?zs:b,Ae.prototype.$mount=function(t,e){return t=t&&wo?je(t):void 0,At(this,t,e)},setTimeout(function(){uo.devtools&&(Vo?Vo.emit("init",Ae):"production"!=="production".NODE_ENV&&Do&&console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),"production"!=="production".NODE_ENV&&!1!==uo.productionTip&&wo&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")},0);var qs,Xs=!!wo&&function(t,e){var n=document.createElement("div");return n.innerHTML='<div a="'+t+'"/>',n.innerHTML.indexOf(e)>0}("\n","&#10;"),Ys=/\{\{((?:.|\n)+?)\}\}/g,Ks=/[-.*+?^${}()|[\]\/\\]/g,Js=v(function(t){var e=t[0].replace(Ks,"\\$&"),n=t[1].replace(Ks,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),Qs={staticKeys:["staticClass"],transformNode:Li,genData:Pi},tl={staticKeys:["staticStyle"],transformNode:Ei,genData:ki},el=[Qs,tl],nl={model:Nn,text:Oi,html:Ni},il=f("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),rl=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ol=f("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),al={expectHTML:!0,modules:el,directives:nl,isPreTag:es,isUnaryTag:il,mustUseProp:ja,canBeLeftOpenTag:rl,isReservedTag:ns,getTagNamespace:We,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(el)},sl={decode:function(t){return qs=qs||document.createElement("div"),qs.innerHTML=t,qs.textContent}},ll=/([^\s"'<>\/=]+)/,ul=/(?:=)/,cl=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],hl=new RegExp("^\\s*"+ll.source+"(?:\\s*("+ul.source+")\\s*(?:"+cl.join("|")+"))?"),dl="[a-zA-Z_][\\w\\-\\.]*",fl="((?:"+dl+"\\:)?"+dl+")",pl=new RegExp("^<"+fl),gl=/^\s*(\/?)>/,vl=new RegExp("^<\\/"+fl+"[^>]*>"),ml=/^<!DOCTYPE [^>]+>/i,yl=/^<!--/,xl=/^<!\[/,_l=!1;"x".replace(/x(.)?/g,function(t,e){_l=""===e});var bl,wl,Sl,Ml,Al,Il,Tl,Cl,Dl,Ll,Pl=f("script,style,textarea",!0),El={},kl={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n"},Ol=/&(?:lt|gt|quot|amp);/g,Nl=/&(?:lt|gt|quot|amp|#10);/g,Vl=f("pre,textarea",!0),Rl=function(t,e){return t&&Vl(t)&&"\n"===e[0]},zl=/^@|^v-on:/,Bl=/^v-|^@|^:/,Gl=/(.*?)\s+(?:in|of)\s+(.*)/,Fl=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,Hl=/:(.*)$/,Wl=/^:|^v-bind:/,$l=/\.[^.]+/g,jl=v(sl.decode),Zl=/^xmlns:NS\d+/,Ul=/^NS\d+:/,ql=v(ar),Xl=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Yl=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,Kl={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Jl=function(t){return"if("+t+")return null;"},Ql={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Jl("$event.target !== $event.currentTarget"),ctrl:Jl("!$event.ctrlKey"),shift:Jl("!$event.shiftKey"),alt:Jl("!$event.altKey"),meta:Jl("!$event.metaKey"),left:Jl("'button' in $event && $event.button !== 0"),middle:Jl("'button' in $event && $event.button !== 1"),right:Jl("'button' in $event && $event.button !== 2")},tu={on:gr,bind:vr,cloak:b},eu=function(t){this.options=t,this.warn=t.warn||xn,this.transforms=_n(t.modules,"transformCode"),this.dataGenFns=_n(t.modules,"genData"),this.directives=x(x({},tu),t.directives);var e=t.isReservedTag||ro;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},nu=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),iu=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),ru=/[A-Za-z_$][\w$]*/,ou=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,au=function(t){return function(e){function n(n,i){var r=Object.create(e),o=[],a=[];if(r.warn=function(t,e){(e?a:o).push(t)},i){i.modules&&(r.modules=(e.modules||[]).concat(i.modules)),i.directives&&(r.directives=x(Object.create(e.directives),i.directives));for(var s in i)"modules"!==s&&"directives"!==s&&(r[s]=i[s])}var l=t(n,r);return"production"!=="production".NODE_ENV&&o.push.apply(o,Gr(l.ast)),l.errors=o,l.tips=a,l}return{compile:n,compileToFunctions:Ur(n)}}}(function(t,e){var n=zi(t.trim(),e);or(n,e);var i=mr(n,e);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}}),su=au(al),lu=su.compileToFunctions,uu=v(function(t){var e=je(t);return e&&e.innerHTML}),cu=Ae.prototype.$mount;Ae.prototype.$mount=function(t,e){if((t=t&&je(t))===document.body||t===document.documentElement)return"production"!=="production".NODE_ENV&&fo("Do not mount Vue to <html> or <body> - mount to normal elements instead."),this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=uu(i),"production"==="production".NODE_ENV||i||fo("Template element not found or is empty: "+n.template,this));else{if(!i.nodeType)return"production"!=="production".NODE_ENV&&fo("invalid template option:"+i,this),this;i=i.innerHTML}else t&&(i=qr(t));if(i){"production"!=="production".NODE_ENV&&uo.performance&&qo&&qo("compile");var r=lu(i,{shouldDecodeNewlines:Xs,delimiters:n.delimiters,comments:n.comments},this),o=r.render,a=r.staticRenderFns;n.render=o,n.staticRenderFns=a,"production"!=="production".NODE_ENV&&uo.performance&&qo&&(qo("compile end"),Xo(this._name+" compile","compile","compile end"))}}return cu.call(this,t,e)},Ae.compile=lu,e.a=Ae}).call(e,n(73))},function(t,e,n){"use strict";function i(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch}}function r(){}function o(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||u}return!1}var a=n(0),s=n(520),l=n(38),u="silent";r.prototype.dispose=function(){};var c=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],h=function(t,e,n,i){l.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new r,this.proxy=n,n.handler=this,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,s.call(this),a.each(c,function(t){n.on&&n.on(t,this[t],this)},this)};h.prototype={constructor:h,mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,r=this._hovered=this.findHover(e,n),o=r.target,a=i.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),a&&o!==a&&a.__zr&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(r,"mousemove",t),o&&o!==a&&this.dispatchToElement(r,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,n=t.toElement||t.relatedTarget;do{n=n&&n.parentNode}while(n&&9!=n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};for(var r="on"+e,o=i(e,t,n),a=t.target;a&&(a[r]&&(o.cancelBubble=a[r].call(a,o)),a.trigger(e,o),a=a.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={},a=i.length-1;a>=0;a--){var s;if(i[a]!==n&&!i[a].ignore&&(s=o(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),s!==u)){r.target=i[a];break}}return r}},a.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){h.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(n,t,e)}}),a.mixin(h,l),a.mixin(h,s),t.exports=h},function(t,e,n){function i(){return!1}function r(t,e,n,i){var r=document.createElement(e),o=n.getWidth(),a=n.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*i,r.height=a*i,r.setAttribute("data-zr-dom-id",t),r}var o=n(0),a=n(74),s=n(184),l=n(183),u=function(t,e,n){var s;n=n||a.devicePixelRatio,"string"==typeof t?s=r(t,"canvas",e,n):o.isObject(t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=i,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=r("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 n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r.width=t+"px",r.height=e+"px",i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,r=e.height,o=this.clearColor,a=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/c,r/c)),n.clearRect(0,0,i,r),o){var h;o.colorStops?(h=o.__canvasGradient||s.getGradient(n,o,{x:0,y:0,width:i,height:r}),o.__canvasGradient=h):o.image&&(h=l.prototype.getCanvasPattern.call(o,n)),n.save(),n.fillStyle=h||o,n.fillRect(0,0,i,r),n.restore()}if(a){var d=this.domBack;n.save(),n.globalAlpha=u,n.drawImage(d,0,0,i,r),n.restore()}}},t.exports=u},function(t,e,n){"use strict";function i(t){return parseInt(t,10)}function r(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function o(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function s(t,e,n){return y.copy(t.getBoundingRect()),t.transform&&y.applyTransform(t.transform),x.width=e,x.height=n,!y.intersect(x)}function l(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0}function u(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}function c(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var h=n(74),d=n(0),f=n(110),p=n(9),g=n(111),v=n(494),m=n(174),y=new p(0,0,0,0),x=new p(0,0,0,0),_=function(t,e,n){var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=d.extend({},n||{}),this.dpr=n.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList=[],a=this._layers={};if(this._layerConfig={},i){null!=n.width&&(t.width=n.width),null!=n.height&&(t.height=n.height);var s=t.width,l=t.height;this._width=s,this._height=l;var u=new v(t,this,1);u.initContext(),a[0]=u,o.push(0),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=c(this._width,this._height);t.appendChild(f)}this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};_.prototype={constructor:_,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._paintList(e,t);for(var i=0;i<n.length;i++){var r=n[i],o=this._layers[r];!o.__builtin__&&o.refresh&&o.refresh()}return this.refreshHover(),this._progressiveLayers.length&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape});n.__from=t,t.__hoverMir=n,n.setStyle(e),this._hoverElements.push(n)}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=d.indexOf(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n<e.length;n++){var i=e[n].__from;i&&(i.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){g(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(1e5));var i={};n.ctx.save();for(var r=0;r<e;){var o=t[r],a=o.__from;a&&a.__zr?(r++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,n,!0,i))):(t.splice(r,1),a.__hoverMir=null,e--)}n.ctx.restore()}},_startProgessive:function(){function t(){n===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,m(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var n=e._progressiveToken=+new Date;e._progress++,m(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,d.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuiltinLayer(o),this._doPaintList(t,e),this.eachBuiltinLayer(a)},_doPaintList:function(t,e){function n(t){var e=o.dpr||1;o.save(),o.globalAlpha=1,o.shadowBlur=0,i.__dirty=!0,o.setTransform(1,0,0,1,0,0),o.drawImage(t.dom,0,0,c*e,h*e),o.restore()}for(var i,r,o,a,s,l,u=0,c=this._width,h=this._height,p=this._progress,g=0,v=t.length;g<v;g++){var m=t[g],y=this._singleCanvas?0:m.zlevel,x=m.__frame;if(x<0&&s&&(n(s),s=null),r!==y&&(o&&o.restore(),a={},r=y,i=this.getLayer(r),i.__builtin__||f("ZLevel "+r+" has been used by unkown layer "+i.id),o=i.ctx,o.save(),i.__unusedCount=0,(i.__dirty||e)&&i.clear()),i.__dirty||e){if(x>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,4)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){g=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(p=l),s.__progress=p+1}x===p&&this._doPaintEl(m,s,!0,s.renderScope)}else this._doPaintEl(m,i,e,a);m.__dirty=!1}}s&&n(s),o&&o.restore(),this._furtherProgressive=!1,d.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,n,i){var r=e.ctx,o=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!s(t,this._width,this._height))){var a=t.__clipPaths;(i.prevClipLayer!==e||l(a,i.prevElClipPaths))&&(i.prevElClipPaths&&(i.prevClipLayer.ctx.restore(),i.prevClipLayer=i.prevElClipPaths=null,i.prevEl=null),a&&(r.save(),u(a,r),i.prevClipLayer=e,i.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new v("zr_"+t,this,this.dpr),e.__builtin__=!0,this._layerConfig[t]&&d.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,o=i.length,a=null,s=-1,l=this._domRoot;if(n[t])return void f("ZLevel "+t+" has been used already");if(!r(e))return void f("Layer of zlevel "+t+" is not valid");if(o>0&&t>i[0]){for(s=0;s<o-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],n=this._layers[i],n.__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,o=this._zlevelList;for(r=0;r<o.length;r++)i=o[r],n=this._layers[i],n.__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,n=this._progressiveLayers,i={},r={};this.eachBuiltinLayer(function(t,e){i[e]=t.elCount,t.elCount=0,t.__dirty=!1}),d.each(n,function(t,e){r[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var o,a,s=0,l=0,u=0,c=t.length;u<c;u++){var h=t[u],f=this._singleCanvas?0:h.zlevel,p=e[f],g=h.progressive;if(p&&(p.elCount++,p.__dirty=p.__dirty||h.__dirty),g>=0){a!==g&&(a=g,l++);var m=h.__frame=l-1;if(!o){var y=Math.min(s,4);o=n[y],o||(o=n[y]=new v("progressive",this,this.dpr),o.initContext()),o.__maxProgress=0}o.__dirty=o.__dirty||h.__dirty,o.elCount++,o.__maxProgress=Math.max(o.__maxProgress,m),o.__maxProgress>=o.__progress&&(p.__dirty=!0)}else h.__frame=-1,o&&(o.__nextIdxNotProg=u,s++,o=null)}o&&(s++,o.__nextIdxNotProg=u),this.eachBuiltinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!0)}),n.length=Math.min(s,5),d.each(n,function(t,e){r[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?d.merge(n[t],e,!0):n[t]=e;var i=this._layers[t];i&&d.merge(i,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(d.indexOf(n,t),1))},resize:function(t,e){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);d.each(this._progressiveLayers,function(n){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){function e(t,e){var i=a._zlevelList;null==t&&(t=-1/0);for(var r,o=0;o<i.length;o++){var s=i[o],l=a._layers[s];if(!l.__builtin__&&s>t&&s<e){r=l;break}}r&&r.renderToCanvas&&(n.ctx.save(),r.renderToCanvas(n.ctx),n.ctx.restore())}if(t=t||{},this._singleCanvas)return this._layers[0].dom;var n=new v("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clearColor=t.backgroundColor,n.clear();for(var i,r=this.storage.getDisplayList(!0),o={},a=this,s=0;s<r.length;s++){var l=r[s];l.zlevel!==i&&(e(i,l.zlevel),i=l.zlevel),this._doPaintEl(l,n,!0,o)}return e(i,1/0),n.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[r]||i(l[n])||i(s.style[n]))-(i(l[o])||0)-(i(l[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),r=i.getContext("2d"),o=t.getBoundingRect(),a=t.style,s=a.shadowBlur,l=a.shadowOffsetX,u=a.shadowOffsetY,c=a.hasStroke()?a.lineWidth:0,h=Math.max(c/2,-l+s),d=Math.max(c/2,l+s),f=Math.max(c/2,-u+s),p=Math.max(c/2,u+s),g=o.width+h+d,v=o.height+f+p;i.width=g*e,i.height=v*e,r.scale(e,e),r.clearRect(0,0,g,v),r.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[h-o.x,f-o.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(r);var y=n(112),x=new y({style:{x:0,y:0,image:i}});return null!=m.position&&(x.position=t.position=m.position),null!=m.rotation&&(x.rotation=t.rotation=m.rotation),null!=m.scale&&(x.scale=t.scale=m.scale),x}},t.exports=_},function(t,e,n){"use strict";function i(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var r=n(0),o=n(12),a=n(75),s=n(111),l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,a=e.length;r<a;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,o.canvasSupported&&s(n,i)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.clipPath}if(t.isGroup){for(var a=t._children,s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof a&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof a&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var o=r.indexOf(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t.__storage=this,t.dirty(!1),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:i},t.exports=l},function(t,e,n){"use strict";var i=n(0),r=n(23).Dispatcher,o=n(174),a=n(173),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,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(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=i.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],o=[],a=0;a<i;a++){var s=n[a],l=s.step(t,e);l&&(r.push(l),o.push(s))}for(var a=0;a<i;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;i=r.length;for(var a=0;a<i;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(o(t),!e._paused&&e._update())}var e=this;this._running=!0,o(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var n=new a(t,e.loop,e.getter,e.setter);return this.addAnimator(n),n}},i.mixin(s,r),t.exports=s},function(t,e,n){function i(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}var r=n(499);i.prototype={constructor:i,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,o="string"==typeof i?r[i]:i,a="function"==typeof o?o(n):n;return this.fire("frame",a),1==n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},t.exports=i},function(t,e){var n={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*(2-Math.pow(2,-10*(t-1)))},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,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.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?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}};t.exports=n},function(t,e,n){var i=n(178).normalizeRadian,r=2*Math.PI;t.exports={containStroke:function(t,e,n,o,a,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>n||d+h<n)return!1;if(Math.abs(o-a)%r<1e-4)return!0;if(s){var f=o;o=i(a),a=i(f)}else o=i(o),a=i(a);o>a&&(a+=r);var p=Math.atan2(c,u);return p<0&&(p+=r),p>=o&&p<=a||p+r>=o&&p+r<=a}}},function(t,e,n){var i=n(32);t.exports={containStroke:function(t,e,n,r,o,a,s,l,u,c,h){if(0===u)return!1;var d=u;return!(h>e+d&&h>r+d&&h>a+d&&h>l+d||h<e-d&&h<r-d&&h<a-d&&h<l-d||c>t+d&&c>n+d&&c>o+d&&c>s+d||c<t-d&&c<n-d&&c<o-d&&c<s-d)&&i.cubicProjectPoint(t,e,n,r,o,a,s,l,c,h,null)<=d/2}}},function(t,e,n){"use strict";function i(t,e){return Math.abs(t-e)<x}function r(){var t=b[0];b[0]=b[1],b[1]=t}function o(t,e,n,i,o,a,s,l,u,c){if(c>e&&c>i&&c>a&&c>l||c<e&&c<i&&c<a&&c<l)return 0;var h=g.cubicRootAt(e,i,a,l,c,_);if(0===h)return 0;for(var d,f,p=0,v=-1,m=0;m<h;m++){var y=_[m],x=0===y||1===y?.5:1;g.cubicAt(t,n,o,s,y)<u||(v<0&&(v=g.cubicExtrema(e,i,a,l,b),b[1]<b[0]&&v>1&&r(),d=g.cubicAt(e,i,a,l,b[0]),v>1&&(f=g.cubicAt(e,i,a,l,b[1]))),2==v?y<b[0]?p+=d<e?x:-x:y<b[1]?p+=f<d?x:-x:p+=l<f?x:-x:y<b[0]?p+=d<e?x:-x:p+=l<d?x:-x)}return p}function a(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=g.quadraticRootAt(e,i,o,s,_);if(0===l)return 0;var u=g.quadraticExtremum(e,i,o);if(u>=0&&u<=1){for(var c=0,h=g.quadraticAt(e,i,o,u),d=0;d<l;d++){var f=0===_[d]||1===_[d]?.5:1,p=g.quadraticAt(t,n,r,_[d]);p<a||(_[d]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}var f=0===_[0]||1===_[0]?.5:1,p=g.quadraticAt(t,n,r,_[0]);return p<a?0:o<e?f:-f}function s(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);_[0]=-l,_[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%y<1e-4){i=0,r=y;var c=o?1:-1;return a>=_[0]+t&&a<=_[1]+t?c:0}if(o){var l=i;i=p(r),r=p(l)}else i=p(i),r=p(r);i>r&&(r+=y);for(var h=0,d=0;d<2;d++){var f=_[d];if(f+t>a){var g=Math.atan2(s,f),c=o?1:-1;g<0&&(g=y+g),(g>=i&&g<=r||g+y>=i&&g+y<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function l(t,e,n,r,l){for(var c=0,p=0,g=0,y=0,x=0,_=0;_<t.length;){var b=t[_++];switch(b===u.M&&_>1&&(n||(c+=v(p,g,y,x,r,l))),1==_&&(p=t[_],g=t[_+1],y=p,x=g),b){case u.M:y=t[_++],x=t[_++],p=y,g=x;break;case u.L:if(n){if(m(p,g,t[_],t[_+1],e,r,l))return!0}else c+=v(p,g,t[_],t[_+1],r,l)||0;p=t[_++],g=t[_++];break;case u.C:if(n){if(h.containStroke(p,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],e,r,l))return!0}else c+=o(p,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],r,l)||0;p=t[_++],g=t[_++];break;case u.Q:if(n){if(d.containStroke(p,g,t[_++],t[_++],t[_],t[_+1],e,r,l))return!0}else c+=a(p,g,t[_++],t[_++],t[_],t[_+1],r,l)||0;p=t[_++],g=t[_++];break;case u.A:var w=t[_++],S=t[_++],M=t[_++],A=t[_++],I=t[_++],T=t[_++],C=(t[_++],1-t[_++]),D=Math.cos(I)*M+w,L=Math.sin(I)*A+S;_>1?c+=v(p,g,D,L,r,l):(y=D,x=L);var P=(r-w)*A/M+w;if(n){if(f.containStroke(w,S,A,I,I+T,C,e,P,l))return!0}else c+=s(w,S,A,I,I+T,C,P,l);p=Math.cos(I+T)*M+w,g=Math.sin(I+T)*A+S;break;case u.R:y=p=t[_++],x=g=t[_++];var E=t[_++],k=t[_++],D=y+E,L=x+k;if(n){if(m(y,x,D,x,e,r,l)||m(D,x,D,L,e,r,l)||m(D,L,y,L,e,r,l)||m(y,L,y,x,e,r,l))return!0}else c+=v(D,x,D,L,r,l),c+=v(y,L,y,x,r,l);break;case u.Z:if(n){if(m(p,g,y,x,e,r,l))return!0}else c+=v(p,g,y,x,r,l);p=y,g=x}}return n||i(g,x)||(c+=v(p,g,y,x,r,l)||0),0!==c}var u=n(46).CMD,c=n(175),h=n(501),d=n(177),f=n(500),p=n(178).normalizeRadian,g=n(32),v=n(179),m=c.containStroke,y=2*Math.PI,x=1e-4,_=[-1,-1,-1],b=[-1,-1];t.exports={contain:function(t,e,n){return l(t,0,!1,e,n)},containStroke:function(t,e,n,i){return l(t,e,!0,n,i)}}},function(t,e,n){"use strict";function i(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function r(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var o=n(23),a=function(){this._track=[]};a.prototype={constructor:a,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},a=0,s=i.length;a<s;a++){var l=i[a],u=o.clientToLocal(n,l,{});r.points.push([u.zrX,u.zrY]),r.touches.push(l)}this._track.push(r)}},_recognize:function(t){for(var e in s)if(s.hasOwnProperty(e)){var n=s[e](this._track,t);if(n)return n}}};var s={pinch:function(t,e){var n=t.length;if(n){var o=(t[n-1]||{}).points,a=(t[n-2]||{}).points||o;if(a&&a.length>1&&o&&o.length>1){var s=i(o)/i(a);!isFinite(s)&&(s=1),e.pinchScale=s;var l=r(o);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}};t.exports=a},function(t,e,n){function i(t){return"mousewheel"===t&&d.browser.firefox?"DOMMouseScroll":t}function r(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===n&&i.clear(),r){var o=r.type;e.gestureEvent=o,t.handler.dispatchToElement({target:r.target},o,r.event)}}function o(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function a(t){var e=t.pointerType;return"pen"===e||"touch"===e}function s(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}c.each(y,function(e){t._handlers[e]=c.bind(b[e],t)}),c.each(_,function(e){t._handlers[e]=c.bind(b[e],t)}),c.each(m,function(n){t._handlers[n]=e(b[n],t)})}function l(t){function e(e,n){c.each(e,function(e){p(t,i(e),n._handlers[e])},n)}h.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new f,this._handlers={},s(this),d.pointerEventsSupported?e(_,this):(d.touchEventsSupported&&e(y,this),e(m,this))}var u=n(23),c=n(0),h=n(38),d=n(12),f=n(503),p=u.addEventListener,g=u.removeEventListener,v=u.normalizeEvent,m=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],y=["touchstart","touchend","touchmove"],x={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},_=c.map(m,function(t){var e=t.replace("mouse","pointer");return x[e]?e:t}),b={mousemove:function(t){t=v(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=v(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=v(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,r(this,t,"start"),b.mousemove.call(this,t),b.mousedown.call(this,t),o(this)},touchmove:function(t){t=v(this.dom,t),t.zrByTouch=!0,r(this,t,"change"),b.mousemove.call(this,t),o(this)},touchend:function(t){t=v(this.dom,t),t.zrByTouch=!0,r(this,t,"end"),b.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&b.click.call(this,t),o(this)},pointerdown:function(t){b.mousedown.call(this,t)},pointermove:function(t){a(t)||b.mousemove.call(this,t)},pointerup:function(t){b.mouseup.call(this,t)},pointerout:function(t){a(t)||b.mouseout.call(this,t)}};c.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){b[t]=function(e){e=v(this.dom,e),this.trigger(t,e)}});var w=l.prototype;w.dispose=function(){for(var t=m.concat(y),e=0;e<t.length;e++){var n=t[e];g(this.dom,i(n),this._handlers[n])}},w.setCursor=function(t){this.dom.style.cursor=t||"default"},c.mixin(l,h),t.exports=l},function(t,e,n){var i=n(14);t.exports=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}})},function(t,e,n){"use strict";var i=n(0),r=n(77),o=function(t,e,n,i,o){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=o||!1,r.call(this,i)};o.prototype={constructor:o},i.inherits(o,r),t.exports=o},function(t,e){t.exports={buildPath:function(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,c=e.r;l<0&&(a+=l,l=-l),u<0&&(s+=u,u=-u),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0;var h;n+i>l&&(h=n+i,n*=l/h,i*=l/h),r+o>l&&(h=r+o,r*=l/h,o*=l/h),i+r>u&&(h=i+r,i*=u/h,r*=u/h),n+o>u&&(h=n+o,n*=u/h,o*=u/h),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.quadraticCurveTo(a+l,s,a+l,s+i),t.lineTo(a+l,s+u-r),0!==r&&t.quadraticCurveTo(a+l,s+u,a+l-r,s+u),t.lineTo(a+o,s+u),0!==o&&t.quadraticCurveTo(a,s+u,a,s+u-o),t.lineTo(a,s+n),0!==n&&t.quadraticCurveTo(a,s,a+n,s)}}},function(t,e,n){var i=n(5),r=i.min,o=i.max,a=i.scale,s=i.distance,l=i.add;t.exports=function(t,e,n,u){var c,h,d,f,p=[],g=[],v=[],m=[];if(u){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,x=t.length;y<x;y++)r(d,d,t[y]),o(f,f,t[y]);r(d,d,u[0]),o(f,f,u[1])}for(var y=0,x=t.length;y<x;y++){var _=t[y];if(n)c=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){p.push(i.clone(t[y]));continue}c=t[y-1],h=t[y+1]}i.sub(g,h,c),a(g,g,e);var b=s(_,c),w=s(_,h),S=b+w;0!==S&&(b/=S,w/=S),a(v,g,-b),a(m,g,w);var M=l([],_,v),A=l([],_,m);u&&(o(M,M,d),r(M,M,f),o(A,A,d),r(A,A,f)),p.push(M),p.push(A)}return n&&p.push(p.shift()),p}},function(t,e,n){function i(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}var r=n(5);t.exports=function(t,e){for(var n=t.length,o=[],a=0,s=1;s<n;s++)a+=r.distance(t[s-1],t[s]);var l=a/2;l=l<n?n:l;for(var s=0;s<l;s++){var u,c,h,d=s/(l-1)*(e?n:n-1),f=Math.floor(d),p=d-f,g=t[f%n];e?(u=t[(f-1+n)%n],c=t[(f+1)%n],h=t[(f+2)%n]):(u=t[0===f?f:f-1],c=t[f>n-2?n-1:f+1],h=t[f>n-3?n-1:f+2]);var v=p*p,m=p*v;o.push([i(u[0],g[0],c[0],h[0],p,v,m),i(u[1],g[1],c[1],h[1],p,v,m)])}return o}},function(t,e,n){t.exports=n(14).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 n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)}})},function(t,e,n){"use strict";function i(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?h:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?h:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?c:l)(t.x1,t.cpx1,t.x2,e),(n?c:l)(t.y1,t.cpy1,t.y2,e)]}var r=n(32),o=n(5),a=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,u=r.cubicAt,c=r.quadraticDerivativeAt,h=r.cubicDerivativeAt,d=[];t.exports=n(14).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 n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,f=e.percent;0!==f&&(t.moveTo(n,i),null==c||null==h?(f<1&&(a(n,l,r,f,d),l=d[1],r=d[2],a(i,u,o,f,d),u=d[1],o=d[2]),t.quadraticCurveTo(l,u,r,o)):(f<1&&(s(n,l,c,r,f,d),l=d[1],c=d[2],r=d[3],s(i,u,h,o,f,d),u=d[1],h=d[2],o=d[3]),t.bezierCurveTo(l,u,c,h,r,o)))},pointAt:function(t){return i(this.shape,t,!1)},tangentAt:function(t){var e=i(this.shape,t,!0);return o.normalize(e,e)}})},function(t,e,n){"use strict";t.exports=n(14).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})},function(t,e,n){t.exports=n(14).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.percent;0!==a&&(t.moveTo(n,i),a<1&&(r=n*(1-a)+r*a,o=i*(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,n){var i=n(186);t.exports=n(14).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){i.buildPath(t,e,!0)}})},function(t,e,n){var i=n(186);t.exports=n(14).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){i.buildPath(t,e,!1)}})},function(t,e,n){var i=n(507);t.exports=n(14).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,o=e.width,a=e.height;e.r?i.buildPath(t,e):t.rect(n,r,o,a),t.closePath()}})},function(t,e,n){t.exports=n(14).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}})},function(t,e,n){var i=n(12),r=n(14),o=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=r.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:i.browser.ie&&i.browser.version>=11?function(){var t,e=this.__clipPaths,n=this.style;if(e)for(var i=0;i<e.length;i++){var a=e[i]&&e[i].shape;if(a&&a.startAngle===a.endAngle){for(var s=0;s<o.length;s++)o[s][2]=n[o[s][0]],n[o[s][0]]=o[s][1];t=!0;break}}if(r.prototype.brush.apply(this,arguments),t)for(var s=0;s<o.length;s++)n[o[s][0]]=o[s][2]}:r.prototype.brush,buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),c=Math.sin(a);t.moveTo(u*r+n,c*r+i),t.lineTo(u*o+n,c*o+i),t.arc(n,i,o,a,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,a,l),t.closePath()}})},function(t,e,n){"use strict";var i=n(173),r=n(0),o=r.isString,a=r.isFunction,s=r.isObject,l=n(110),u=function(){this.animators=[]};u.prototype={constructor:u,animate:function(t,e){var n,o=!1,a=this,s=this.__zr;if(t){var u=t.split("."),c=a;o="shape"===u[0];for(var h=0,d=u.length;h<d;h++)c&&(c=c[u[h]]);c&&(n=c)}else n=a;if(!n)return void l('Property "'+t+'" is not existed in element '+a.id);var f=a.animators,p=new i(n,e);return p.during(function(t){a.dirty(o)}).done(function(){f.splice(r.indexOf(f,p),1)}),f.push(p),s&&s.animation.addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r){function s(){--u||r&&r()}o(n)?(r=i,i=n,n=0):a(i)?(r=i,i="linear",n=0):a(n)?(r=n,n=0):a(e)?(r=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,n,i,r);var l=this.animators.slice(),u=l.length;u||r&&r();for(var c=0;c<l.length;c++)l[c].done(s).start(i)},_animateToShallow:function(t,e,n,i,o){var a={},l=0;for(var u in n)if(n.hasOwnProperty(u))if(null!=e[u])s(n[u])&&!r.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],i,o):(a[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(t,!1).when(null==i?500:i,a).delay(o||0),this}},t.exports=u},function(t,e){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function i(t,e){return{target:t,topTarget:e&&e.topTarget}}n.prototype={constructor:n,_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.dispatchToElement(i(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,o=n-this._x,a=r-this._y;this._x=n,this._y=r,e.drift(o,a,t),this.dispatchToElement(i(e,t),"drag",t.event);var s=this.findHover(n,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(i(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(i(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(i(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(i(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t.exports=n},function(t,e,n){function i(t,e,n,i,r,o,a,s,l,u,p){var m=l*(f/180),y=d(m)*(t-n)/2+h(m)*(e-i)/2,x=-1*h(m)*(t-n)/2+d(m)*(e-i)/2,_=y*y/(a*a)+x*x/(s*s);_>1&&(a*=c(_),s*=c(_));var b=(r===o?-1:1)*c((a*a*(s*s)-a*a*(x*x)-s*s*(y*y))/(a*a*(x*x)+s*s*(y*y)))||0,w=b*a*x/s,S=b*-s*y/a,M=(t+n)/2+d(m)*w-h(m)*S,A=(e+i)/2+h(m)*w+d(m)*S,I=v([1,0],[(y-w)/a,(x-S)/s]),T=[(y-w)/a,(x-S)/s],C=[(-1*y-w)/a,(-1*x-S)/s],D=v(T,C);g(T,C)<=-1&&(D=f),g(T,C)>=1&&(D=0),0===o&&D>0&&(D-=2*f),1===o&&D<0&&(D+=2*f),p.addData(u,M,A,a,s,I,D,m,o)}function r(t){if(!t)return[];var e,n=t.replace(/-/g," -").replace(/  /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<u.length;e++)n=n.replace(new RegExp(u[e],"g"),"|"+u[e]);var r,o=n.split("|"),a=0,l=0,c=new s,h=s.CMD;for(e=1;e<o.length;e++){var d,f=o[e],p=f.charAt(0),g=0,v=f.slice(1).replace(/e,-/g,"e-").split(",");v.length>0&&""===v[0]&&v.shift();for(var m=0;m<v.length;m++)v[m]=parseFloat(v[m]);for(;g<v.length&&!isNaN(v[g])&&!isNaN(v[0]);){var y,x,_,b,w,S,M,A=a,I=l;switch(p){case"l":a+=v[g++],l+=v[g++],d=h.L,c.addData(d,a,l);break;case"L":a=v[g++],l=v[g++],d=h.L,c.addData(d,a,l);break;case"m":a+=v[g++],l+=v[g++],d=h.M,c.addData(d,a,l),p="l";break;case"M":a=v[g++],l=v[g++],d=h.M,c.addData(d,a,l),p="L";break;case"h":a+=v[g++],d=h.L,c.addData(d,a,l);break;case"H":a=v[g++],d=h.L,c.addData(d,a,l);break;case"v":l+=v[g++],d=h.L,c.addData(d,a,l);break;case"V":l=v[g++],d=h.L,c.addData(d,a,l);break;case"C":d=h.C,c.addData(d,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),a=v[g-2],l=v[g-1];break;case"c":d=h.C,c.addData(d,v[g++]+a,v[g++]+l,v[g++]+a,v[g++]+l,v[g++]+a,v[g++]+l),a+=v[g-2],l+=v[g-1];break;case"S":y=a,x=l;var T=c.len(),C=c.data;r===h.C&&(y+=a-C[T-4],x+=l-C[T-3]),d=h.C,A=v[g++],I=v[g++],a=v[g++],l=v[g++],c.addData(d,y,x,A,I,a,l);break;case"s":y=a,x=l;var T=c.len(),C=c.data;r===h.C&&(y+=a-C[T-4],x+=l-C[T-3]),d=h.C,A=a+v[g++],I=l+v[g++],a+=v[g++],l+=v[g++],c.addData(d,y,x,A,I,a,l);break;case"Q":A=v[g++],I=v[g++],a=v[g++],l=v[g++],d=h.Q,c.addData(d,A,I,a,l);break;case"q":A=v[g++]+a,I=v[g++]+l,a+=v[g++],l+=v[g++],d=h.Q,c.addData(d,A,I,a,l);break;case"T":y=a,x=l;var T=c.len(),C=c.data;r===h.Q&&(y+=a-C[T-4],x+=l-C[T-3]),a=v[g++],l=v[g++],d=h.Q,c.addData(d,y,x,a,l);break;case"t":y=a,x=l;var T=c.len(),C=c.data;r===h.Q&&(y+=a-C[T-4],x+=l-C[T-3]),a+=v[g++],l+=v[g++],d=h.Q,c.addData(d,y,x,a,l);break;case"A":_=v[g++],b=v[g++],w=v[g++],S=v[g++],M=v[g++],A=a,I=l,a=v[g++],l=v[g++],d=h.A,i(A,I,a,l,S,M,_,b,w,d,c);break;case"a":_=v[g++],b=v[g++],w=v[g++],S=v[g++],M=v[g++],A=a,I=l,a+=v[g++],l+=v[g++],d=h.A,i(A,I,a,l,S,M,_,b,w,d,c)}}"z"!==p&&"Z"!==p||(d=h.Z,c.addData(d)),r=d}return c.toStatic(),c}function o(t,e){var n=r(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;n.rebuildPath(e)}},e.applyTransform=function(t){l(n,t),this.dirty(!0)},e}var a=n(14),s=n(46),l=n(522),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,h=Math.sin,d=Math.cos,f=Math.PI,p=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},g=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))};t.exports={createFromString:function(t,e){return new a(o(t,e))},extendFromString:function(t,e){return a.extend(o(t,e))},mergePath:function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var s=new a(e);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},s}}},function(t,e,n){function i(t,e){var n,i,o,c,h,d,f=t.data,p=r.M,g=r.C,v=r.L,m=r.R,y=r.A,x=r.Q;for(o=0,c=0;o<f.length;){switch(n=f[o++],c=o,i=0,n){case p:case v:i=1;break;case g:i=3;break;case x:i=2;break;case y:var _=e[4],b=e[5],w=l(e[0]*e[0]+e[1]*e[1]),S=l(e[2]*e[2]+e[3]*e[3]),M=u(-e[1]/S,e[0]/w);f[o]*=w,f[o++]+=_,f[o]*=S,f[o++]+=b,f[o++]*=w,f[o++]*=S,f[o++]+=M,f[o++]+=M,o+=2,c=o;break;case m:d[0]=f[o++],d[1]=f[o++],a(d,d,e),f[c++]=d[0],f[c++]=d[1],d[0]+=f[o++],d[1]+=f[o++],a(d,d,e),f[c++]=d[0],f[c++]=d[1]}for(h=0;h<i;h++){var d=s[h];d[0]=f[o++],d[1]=f[o++],a(d,d,e),f[c++]=d[0],f[c++]=d[1]}}}var r=n(46).CMD,o=n(5),a=o.applyTransform,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;t.exports=i},function(t,e,n){function i(t){return parseInt(t,10)}function r(t,e){a.initVML(),this.root=t,this.storage=e;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var r=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){r.call(e,t),t&&t.onRemove&&t.onRemove(i)},e.addToStorage=function(t){t.onAdd&&t.onAdd(i),o.call(e,t)},this._firstPaint=!0}var o=n(110),a=n(188);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,n=0;n<t.length;n++){var i=t[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n.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},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||i(e.width))-i(e.paddingLeft)-i(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||i(e.height))-i(e.paddingTop)-i(e.paddingBottom)|0}};for(var s=["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],l=0;l<s.length;l++){var u=s[l];r.prototype[u]=function(t){return function(){o('In IE8.0 VML mode painter not support method "'+t+'"')}}(u)}t.exports=r},function(t,e,n){if(!n(12).canvasSupported){var i=n(5),r=n(9),o=n(46).CMD,a=n(24),s=n(22),l=n(187),u=n(76),c=n(112),h=n(185),d=n(14),f=n(46),p=n(77),g=n(188),v=Math.round,m=Math.sqrt,y=Math.abs,x=Math.cos,_=Math.sin,b=Math.max,w=i.applyTransform,S=21600,M=S/2,A=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=S+","+S,t.coordorigin="0,0"},I=function(t){return String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},T=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},C=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},D=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},L=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},P=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},E=function(t,e,n){var i=a.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=T(i[0],i[1],i[2]),t.opacity=n*i[3])},k=function(t){var e=a.parse(t);return[T(e[0],e[1],e[2]),e[3]]},O=function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof p){var r,o=0,a=[0,0],s=0,l=1,u=n.getBoundingRect(),c=u.width,h=u.height;if("linear"===i.type){r="gradient";var d=n.transform,f=[i.x*c,i.y*h],g=[i.x2*c,i.y2*h];d&&(w(f,f,d),w(g,g,d));var v=g[0]-f[0],m=g[1]-f[1];o=180*Math.atan2(v,m)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial";var f=[i.x*c,i.y*h],d=n.transform,y=n.scale,x=c,_=h;a=[(f[0]-u.x)/x,(f[1]-u.y)/_],d&&w(f,f,d),x/=y[0]*S,_/=y[1]*S;var M=b(x,_);s=0/M,l=2*i.r/M-s}var A=i.colorStops.slice();A.sort(function(t,e){return t.offset-e.offset});for(var I=A.length,T=[],C=[],D=0;D<I;D++){var L=A[D],P=k(L.color);C.push(L.offset*l+s+" "+P[0]),0!==D&&D!==I-1||T.push(P)}if(I>=2){var O=T[0][0],N=T[1][0],V=T[0][1]*e.opacity,R=T[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=O,t.color2=N,t.colors=C.join(","),t.opacity=R,t.opacity2=V}"radial"===r&&(t.focusposition=a.join(","))}else E(t,i,e.opacity)},N=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof p||E(t,e.stroke,e.opacity)},V=function(t,e,n,i){var r="fill"==e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof p&&D(t,o),o||(o=g.createNode(e)),r?O(o,n,i):N(o,n),C(t,o)):(t[r?"filled":"stroked"]="false",D(t,o))},R=[[],[],[]],z=function(t,e){var n,i,r,a,s,l,u=o.M,c=o.C,h=o.L,d=o.A,f=o.Q,p=[];for(a=0;a<t.length;){switch(r=t[a++],i="",n=0,r){case u:i=" m ",n=1,s=t[a++],l=t[a++],R[0][0]=s,R[0][1]=l;break;case h:i=" l ",n=1,s=t[a++],l=t[a++],R[0][0]=s,R[0][1]=l;break;case f:case c:i=" c ",n=3;var g,y,b=t[a++],A=t[a++],I=t[a++],T=t[a++];r===f?(g=I,y=T,I=(I+2*b)/3,T=(T+2*A)/3,b=(s+2*b)/3,A=(l+2*A)/3):(g=t[a++],y=t[a++]),R[0][0]=b,R[0][1]=A,R[1][0]=I,R[1][1]=T,R[2][0]=g,R[2][1]=y,s=g,l=y;break;case d:var C=0,D=0,L=1,P=1,E=0;e&&(C=e[4],D=e[5],L=m(e[0]*e[0]+e[1]*e[1]),P=m(e[2]*e[2]+e[3]*e[3]),E=Math.atan2(-e[1]/P,e[0]/L));var k=t[a++],O=t[a++],N=t[a++],V=t[a++],z=t[a++]+E,B=t[a++]+z+E;a++;var G=t[a++],F=k+x(z)*N,H=O+_(z)*V,b=k+x(B)*N,A=O+_(B)*V,W=G?" wa ":" at ";Math.abs(F-b)<1e-4&&(Math.abs(B-z)>.01?G&&(F+=.0125):Math.abs(H-O)<1e-4?G&&F<k||!G&&F>k?A-=.0125:A+=.0125:G&&H<O||!G&&H>O?b+=.0125:b-=.0125),p.push(W,v(((k-N)*L+C)*S-M),",",v(((O-V)*P+D)*S-M),",",v(((k+N)*L+C)*S-M),",",v(((O+V)*P+D)*S-M),",",v((F*L+C)*S-M),",",v((H*P+D)*S-M),",",v((b*L+C)*S-M),",",v((A*P+D)*S-M)),s=b,l=A;break;case o.R:var $=R[0],j=R[1];$[0]=t[a++],$[1]=t[a++],j[0]=$[0]+t[a++],j[1]=$[1]+t[a++],e&&(w($,$,e),w(j,j,e)),$[0]=v($[0]*S-M),j[0]=v(j[0]*S-M),$[1]=v($[1]*S-M),j[1]=v(j[1]*S-M),p.push(" m ",$[0],",",$[1]," l ",j[0],",",$[1]," l ",j[0],",",j[1]," l ",$[0],",",j[1]);break;case o.Z:p.push(" x ")}if(n>0){p.push(i);for(var Z=0;Z<n;Z++){var U=R[Z];e&&w(U,U,e),p.push(v(U[0]*S-M),",",v(U[1]*S-M),Z<n-1?",":"")}}}return p.join("")};d.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=g.createNode("shape"),A(n),this._vmlEl=n),V(n,"fill",e,this),V(n,"stroke",e,this);var i=this.transform,r=null!=i,o=n.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=m(y(s))}o.weight=a+"px"}var l=this.path||(this.path=new f);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=z(l.data,this.transform),n.style.zIndex=L(this.zlevel,this.z,this.z2),C(t,n),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},d.prototype.onRemove=function(t){D(t,this._vmlEl),this.removeRectText(t)},d.prototype.onAdd=function(t){C(t,this._vmlEl),this.appendRectText(t)};var B=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};c.prototype.brushVML=function(t){var e,n,i=this.style,r=i.image;if(B(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,n=this._imageHeight;else{var a=r.runtimeStyle,s=a.width,l=a.height;a.width="auto",a.height="auto",e=r.width,n=r.height,a.width=s,a.height=l,this._imageSrc=o,this._imageWidth=e,this._imageHeight=n}r=o}else r===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight);if(r){var u=i.x||0,c=i.y||0,h=i.width,d=i.height,f=i.sWidth,p=i.sHeight,y=i.sx||0,x=i.sy||0,_=f&&p,S=this._vmlEl;S||(S=g.doc.createElement("div"),A(S),this._vmlEl=S);var M,I=S.style,T=!1,D=1,P=1;if(this.transform&&(M=this.transform,D=m(M[0]*M[0]+M[1]*M[1]),P=m(M[2]*M[2]+M[3]*M[3]),T=M[1]||M[2]),T){var E=[u,c],k=[u+h,c],O=[u,c+d],N=[u+h,c+d];w(E,E,M),w(k,k,M),w(O,O,M),w(N,N,M);var V=b(E[0],k[0],O[0],N[0]),R=b(E[1],k[1],O[1],N[1]),z=[];z.push("M11=",M[0]/D,",","M12=",M[2]/P,",","M21=",M[1]/D,",","M22=",M[3]/P,",","Dx=",v(u*D+M[4]),",","Dy=",v(c*P+M[5])),I.padding="0 "+v(V)+"px "+v(R)+"px 0",I.filter="progid:DXImageTransform.Microsoft.Matrix("+z.join("")+", SizingMethod=clip)"}else M&&(u=u*D+M[4],c=c*P+M[5]),I.filter="",I.left=v(u)+"px",I.top=v(c)+"px";var G=this._imageEl,F=this._cropEl;G||(G=g.doc.createElement("div"),this._imageEl=G);var H=G.style;if(_){if(e&&n)H.width=v(D*e*h/f)+"px",H.height=v(P*n*d/p)+"px";else{var W=new Image,$=this;W.onload=function(){W.onload=null,e=W.width,n=W.height,H.width=v(D*e*h/f)+"px",H.height=v(P*n*d/p)+"px",$._imageWidth=e,$._imageHeight=n,$._imageSrc=r},W.src=r}F||(F=g.doc.createElement("div"),F.style.overflow="hidden",this._cropEl=F);var j=F.style;j.width=v((h+y*h/f)*D),j.height=v((d+x*d/p)*P),j.filter="progid:DXImageTransform.Microsoft.Matrix(Dx="+-y*h/f*D+",Dy="+-x*d/p*P+")",F.parentNode||S.appendChild(F),G.parentNode!=F&&F.appendChild(G)}else H.width=v(D*h)+"px",H.height=v(P*d)+"px",S.appendChild(G),F&&F.parentNode&&(S.removeChild(F),this._cropEl=null);var Z="",U=i.opacity;U<1&&(Z+=".Alpha(opacity="+v(100*U)+") "),Z+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+r+", SizingMethod=scale)",H.filter=Z,S.style.zIndex=L(this.zlevel,this.z,this.z2),C(t,S),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},c.prototype.onRemove=function(t){D(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},c.prototype.onAdd=function(t){C(t,this._vmlEl),this.appendRectText(t)};var G,F={},H=0,W=document.createElement("div"),$=function(t){var e=F[t];if(!e){H>100&&(H=0,F={});var n,i=W.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||"normal",variant:i.fontVariant||"normal",weight:i.fontWeight||"normal",size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},F[t]=e,H++}return e};s.measureText=function(t,e){var n=g.doc;G||(G=n.createElement("div"),G.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",g.doc.body.appendChild(G));try{G.style.font=e}catch(t){}return G.innerHTML="",G.appendChild(n.createTextNode(t)),{width:G.offsetWidth}};for(var j=new r,Z=function(t,e,n,i){var r=this.style,o=r.text;if(null!=o&&(o+=""),o){var a,l,u=r.textAlign,c=$(r.textFont),h=c.style+" "+c.variant+" "+c.weight+" "+c.size+'px "'+c.family+'"',d=r.textBaseline,f=r.textVerticalAlign;n=n||s.getBoundingRect(o,h,u,d);var p=this.transform;if(p&&!i&&(j.copy(e),j.applyTransform(p),e=j),i)a=e.x,l=e.y;else{var m=r.textPosition,y=r.textDistance;if(m instanceof Array)a=e.x+P(m[0],e.width),l=e.y+P(m[1],e.height),u=u||"left",d=d||"top";else{var x=s.adjustTextPositionOnRect(m,e,n,y);a=x.x,l=x.y,u=u||x.textAlign,d=d||x.textBaseline}}if(f){switch(f){case"middle":l-=n.height/2;break;case"bottom":l-=n.height}d="top"}var _=c.size;switch(d){case"hanging":case"top":l+=_/1.75;break;case"middle":break;default:l-=_/2.25}switch(u){case"left":break;case"center":a-=n.width/2;break;case"right":a-=n.width}var b,S,M,T=g.createNode,D=this._textVmlEl;D?(M=D.firstChild,b=M.nextSibling,S=b.nextSibling):(D=T("line"),b=T("path"),S=T("textpath"),M=T("skew"),S.style["v-text-align"]="left",A(D),b.textpathok=!0,S.on=!0,D.from="0 0",D.to="1000 0.05",C(D,M),C(D,b),C(D,S),this._textVmlEl=D);var E=[a,l],k=D.style;p&&i?(w(E,E,p),M.on=!0,M.matrix=p[0].toFixed(3)+","+p[2].toFixed(3)+","+p[1].toFixed(3)+","+p[3].toFixed(3)+",0,0",M.offset=(v(E[0])||0)+","+(v(E[1])||0),M.origin="0 0",k.left="0px",k.top="0px"):(M.on=!1,k.left=v(a)+"px",k.top=v(l)+"px"),S.string=I(o);try{S.style.font=h}catch(t){}V(D,"fill",{fill:i?r.fill:r.textFill,opacity:r.opacity},this),V(D,"stroke",{stroke:i?r.stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),D.style.zIndex=L(this.zlevel,this.z,this.z2),C(t,D)}},U=function(t){D(t,this._textVmlEl),this._textVmlEl=null},q=function(t){C(t,this._textVmlEl)},X=[l,u,c,d,h],Y=0;Y<X.length;Y++){var K=X[Y].prototype;K.drawRectText=Z,K.removeRectText=U,K.appendRectText=q}h.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},h.prototype.onRemove=function(t){this.removeRectText(t)},h.prototype.onAdd=function(t){this.appendRectText(t)}}},function(t,e,n){n(524),n(189).registerPainter("vml",n(523))}])});
//# sourceMappingURL=v-echarts-full.js.map