UNPKG

ttk-component

Version:

- 1、npm install ttk-component --save

1 lines 775 kB
(window.webpackJsonpTTKComponent=window.webpackJsonpTTKComponent||[]).push([[1],Array(1405).concat([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(1588)),a=r(n(1887));function r(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.echartsLib=i.default,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a["default"]),e}();e.default=o},function(t,e){var 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},i={"[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},a=Object.prototype.toString,r=Array.prototype,o=r.forEach,s=r.filter,l=r.slice,u=r.map,c=r.reduce,h={};function d(t){if(null==t||"object"!=typeof t)return t;var e=t,r=a.call(t);if("[object Array]"===r){if(!M(t)){e=[];for(var o=0,s=t.length;o<s;o++)e[o]=d(t[o])}}else if(i[r]){if(!M(t)){var l=t.constructor;if(t.constructor.from)e=l.from(t);else{e=new l(t.length);for(o=0,s=t.length;o<s;o++)e[o]=d(t[o])}}}else if(!n[r]&&!M(t)&&!w(t))for(var u in e={},t)t.hasOwnProperty(u)&&(e[u]=d(t[u]));return e}function f(t,e,n){if(!_(e)||!_(t))return n?d(e):t;for(var i in e)if(e.hasOwnProperty(i)){var a=t[i],r=e[i];!_(r)||!_(a)||x(r)||x(a)||w(r)||w(a)||b(r)||b(a)||M(r)||M(a)?!n&&i in t||(t[i]=d(e[i])):f(a,r,n)}return t}function p(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}var g,m=function(){return h.createCanvas()};function v(t,e,n){if(t&&e)if(t.forEach&&t.forEach===o)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,a=t.length;i<a;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function y(t,e){var n=l.call(arguments,2);return function(){return t.apply(e,n.concat(l.call(arguments)))}}function x(t){return"[object Array]"===a.call(t)}function _(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function b(t){return!!n[a.call(t)]}function w(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}h.createCanvas=function(){return document.createElement("canvas")};var S="__ec_primitive__";function M(t){return t[S]}function I(t){var e=x(t),n=this;function i(t,i){e?n.set(t,i):n.set(i,t)}t instanceof I?t.each(i):t&&v(t,i)}I.prototype={constructor:I,get:function(t){return this.hasOwnProperty(t)?this[t]:null},set:function(t,e){return this[t]=e},each:function(t,e){for(var n in void 0!==e&&(t=y(t,e)),this)this.hasOwnProperty(n)&&t(this[n],n)},removeKey:function(t){delete this[t]}},e.$override=function(t,e){"createCanvas"===t&&(g=null),h[t]=e},e.clone=d,e.merge=f,e.mergeAll=function(t,e){for(var n=t[0],i=1,a=t.length;i<a;i++)n=f(n,t[i],e);return n},e.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},e.defaults=p,e.createCanvas=m,e.getContext=function(){return g||(g=m().getContext("2d")),g},e.indexOf=function(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},e.inherits=function(t,e){var n=t.prototype;function i(){}for(var a in i.prototype=e.prototype,t.prototype=new i,n)t.prototype[a]=n[a];t.prototype.constructor=t,t.superClass=e},e.mixin=function(t,e,n){p(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,n)},e.isArrayLike=function(t){if(t)return"string"!=typeof t&&"number"==typeof t.length},e.each=v,e.map=function(t,e,n){if(t&&e){if(t.map&&t.map===u)return t.map(e,n);for(var i=[],a=0,r=t.length;a<r;a++)i.push(e.call(n,t[a],a,t));return i}},e.reduce=function(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===c)return t.reduce(e,n,i);for(var a=0,r=t.length;a<r;a++)n=e.call(i,n,t[a],a,t);return n}},e.filter=function(t,e,n){if(t&&e){if(t.filter&&t.filter===s)return t.filter(e,n);for(var i=[],a=0,r=t.length;a<r;a++)e.call(n,t[a],a,t)&&i.push(t[a]);return i}},e.find=function(t,e,n){if(t&&e)for(var i=0,a=t.length;i<a;i++)if(e.call(n,t[i],i,t))return t[i]},e.bind=y,e.curry=function(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}},e.isArray=x,e.isFunction=function(t){return"function"==typeof t},e.isString=function(t){return"[object String]"===a.call(t)},e.isObject=_,e.isBuiltInObject=b,e.isTypedArray=function(t){return!!i[a.call(t)]},e.isDom=w,e.eqNaN=function(t){return t!=t},e.retrieve=function(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]},e.retrieve2=function(t,e){return null!=t?t:e},e.retrieve3=function(t,e,n){return null!=t?t:null!=e?e:n},e.slice=function(){return Function.call.apply(l,arguments)},e.normalizeCssArray=function(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},e.assert=function(t,e){if(!t)throw new Error(e)},e.trim=function(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.setAsPrimitive=function(t){t[S]=!0},e.isPrimitive=M,e.createHashMap=function(t){return new I(t)},e.concatArray=function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var a=t.length;for(i=0;i<e.length;i++)n[i+a]=e[i];return n},e.noop=function(){}},function(t,e,n){n(1411).__DEV__;var i=n(1467),a=n(1406),r=n(1427),o=n(1417),s=n(1487),l=n(1436),u=n(1520),c=n(1530),h=n(1424),d=n(1624),f=n(1625),p=n(1627),g=n(1418),m=n(1420),v=n(1474),y=n(1430),x=n(1408),_=n(1410),b=n(1438).throttle,w=n(1628),S=n(1629),M=n(1630),I=n(1631),A=n(1632),T=n(1633);n(1531);var D=a.assert,C=a.each,L=a.isFunction,P=a.isObject,k=g.parseClassType,O=1e3,R=1e3,E=3e3,N={PROCESSOR:{FILTER:O,STATISTIC:5e3},VISUAL:{LAYOUT:R,GLOBAL:2e3,CHART:E,COMPONENT:4e3,BRUSH:5e3}},z="__flagInMainProcess",V="__optionUpdated",B=/^[a-zA-Z0-9_]+$/;function G(t){return function(e,n,i){e=e&&e.toLowerCase(),l.prototype[t].call(this,e,n,i)}}function F(){l.call(this)}function H(t,e,n){n=n||{},"string"==typeof e&&(e=ht[e]),this.id,this.group,this._dom=t;var r=this._zr=i.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=b(a.bind(r.flush,r),17),(e=a.clone(e))&&f(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var o=this._api=function(t){var e=t._coordSysMgr;return a.extend(new c(t),{getCoordinateSystems:a.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}}})}(this);function u(t,e){return t.__prio-e.__prio}s(ct,u),s(st,u),this._scheduler=new I(this,o,st,ct),l.call(this),this._messageCenter=new F,this._initEvents(),this.resize=a.bind(this.resize,this),this._pendingActions=[],r.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[V]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}(r,this),a.setAsPrimitive(this)}F.prototype.on=G("on"),F.prototype.off=G("off"),F.prototype.one=G("one"),a.mixin(F,l);var W=H.prototype;function U(t,e,n){var i,a=this._model,r=this._coordSysMgr.getCoordinateSystems();e=_.parseFinder(a,e);for(var o=0;o<r.length;o++){var s=r[o];if(s[t]&&null!=(i=s[t](a,e,n)))return i}}W._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[V]){var e=this[V].silent;this[z]=!0,j(this),Z.update.call(this),this[z]=!1,this[V]=!1,K.call(this,e),$.call(this,e)}else if(t.unfinished){var n=1,i=this._model,a=this._api;t.unfinished=!1;do{var r=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),X(this,i),t.performVisualTasks(i),et(this,this._model,a,"remain"),n-=+new Date-r}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},W.getDom=function(){return this._dom},W.getZr=function(){return this._zr},W.setOption=function(t,e,n){var i;if(P(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[z]=!0,!this._model||e){var a=new d(this._api),r=this._theme,o=this._model=new u(null,null,r,a);o.scheduler=this._scheduler,o.init(null,null,r,a)}this._model.setOption(t,lt),n?(this[V]={silent:i},this[z]=!1):(j(this),Z.update.call(this),this._zr.flush(),this[V]=!1,this[z]=!1,K.call(this,i),$.call(this,i))},W.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},W.getModel=function(){return this._model},W.getOption=function(){return this._model&&this._model.getOption()},W.getWidth=function(){return this._zr.getWidth()},W.getHeight=function(){return this._zr.getHeight()},W.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},W.getRenderedCanvas=function(t){if(o.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},W.getSvgDataUrl=function(){if(o.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return a.each(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},W.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],a=this;C(e,function(t){n.eachComponent({mainType:t},function(t){var e=a._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(i,function(t){t.group.ignore=!1}),r},W.getConnectedDataURL=function(t){if(o.canvasSupported){var e=this.group,n=Math.min,r=Math.max;if(pt[e]){var s=1/0,l=1/0,u=-1/0,c=-1/0,h=[],d=t&&t.pixelRatio||1;a.each(ft,function(i,o){if(i.group===e){var d=i.getRenderedCanvas(a.clone(t)),f=i.getDom().getBoundingClientRect();s=n(f.left,s),l=n(f.top,l),u=r(f.right,u),c=r(f.bottom,c),h.push({dom:d,left:f.left,top:f.top})}});var f=(u*=d)-(s*=d),p=(c*=d)-(l*=d),g=a.createCanvas();g.width=f,g.height=p;var m=i.init(g);return C(h,function(t){var e=new x.Image({style:{x:t.left*d-s,y:t.top*d-l,image:t.dom}});m.add(e)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},W.convertToPixel=a.curry(U,"convertToPixel"),W.convertFromPixel=a.curry(U,"convertFromPixel"),W.containPixel=function(t,e){var n,i=this._model;return t=_.parseFinder(i,t),a.each(t,function(t,i){i.indexOf("Models")>=0&&a.each(t,function(t){var a=t.coordinateSystem;if(a&&a.containPoint)n|=!!a.containPoint(e);else if("seriesModels"===i){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(n|=r.containPoint(e,t))}},this)},this),!!n},W.getVisual=function(t,e){var n=this._model,i=(t=_.parseFinder(n,t,{defaultMainType:"series"})).seriesModel.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=a?i.getItemVisual(a,e):i.getVisual(e)},W.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},W.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var Z={prepareAndUpdate:function(t){j(this),Z.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,a=this._coordSysMgr,s=this._scheduler;if(e){s.restoreData(e,t),s.performSeriesTasks(e),a.create(e,n),s.performDataProcessorTasks(e,t),X(this,e),a.update(e,n),Q(e),s.performVisualTasks(e,t),tt(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(o.canvasSupported)i.setBackgroundColor(l);else{var u=r.parse(l);l=r.stringify(u,"rgb"),0===u[3]&&(l="transparent")}nt(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(a,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var o=a.createHashMap();e.eachSeries(function(a){var r=n._chartsMap[a.__viewId];if(r.updateTransform){var s=r.updateTransform(a,e,i,t);s&&s.update&&o.set(a.uid,1)}else o.set(a.uid,1)}),Q(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),et(n,e,i,t,o),nt(e,this._api)}},updateView:function(t){var e=this._model;e&&(y.markUpdateMethod(t,"updateView"),Q(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),tt(this,this._model,this._api,t),nt(e,this._api))},updateVisual:function(t){Z.update.call(this,t)},updateLayout:function(t){Z.update.call(this,t)}};function j(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),J(t,"component",e,n),J(t,"chart",e,n),n.plan()}function Y(t,e,n,i,r){var o=t._model;if(i){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);var u=n.excludeSeriesId;null!=u&&(u=a.createHashMap(_.normalizeToArray(u))),o&&o.eachComponent(l,function(e){u&&null!=u.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else C(t._componentsViews.concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function X(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function q(t,e){var n=t.type,i=t.escapeConnect,r=rt[n],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&k(s[0]),this[z]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=a.map(t.batch,function(e){return(e=a.defaults(a.extend({},e),t)).batch=null,e}));var h,d=[],f="highlight"===n||"downplay"===n;C(u,function(t){(h=(h=r.action(t,this._model,this._api))||a.extend({},t)).type=o.event||h.type,d.push(h),f?Y(this,l,t,"series"):s&&Y(this,l,t,s.main,s.sub)},this),"none"===l||f||s||(this[V]?(j(this),Z.update.call(this,t),this[V]=!1):Z[l].call(this,t)),h=c?{type:o.event||n,escapeConnect:i,batch:d}:d[0],this[z]=!1,!e&&this._messageCenter.trigger(h.type,h)}function K(t){for(var e=this._pendingActions;e.length;){var n=e.shift();q.call(this,n,t)}}function $(t){!t&&this.trigger("updated")}function J(t,e,n,i){for(var a="component"===e,r=a?t._componentsViews:t._chartsViews,o=a?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<r.length;u++)r[u].__alive=!1;function c(t){var e="_ec_"+t.id+"_"+t.type,u=o[e];if(!u){var c=k(t.type);(u=new(a?v.getClass(c.main,c.sub):y.getClass(c.sub))).init(n,l),o[e]=u,r.push(u),s.add(u.group)}t.__viewId=u.__id=e,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!a&&i.prepareView(u,t,n,l)}a?n.eachComponent(function(t,e){"series"!==t&&c(e)}):n.eachSeries(c);for(u=0;u<r.length;){var h=r[u];h.__alive?u++:(!a&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),r.splice(u,1),delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function Q(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function tt(t,e,n,i){!function(t,e,n,i,a){C(a||t._componentsViews,function(t){var a=t.__model;t.render(a,e,n,i),at(a,t)})}(t,e,n,i),C(t._chartsViews,function(t){t.__alive=!1}),et(t,e,n,i),C(t._chartsViews,function(t){t.__alive||t.remove(e,n)})}function et(t,e,n,i,a){var r,s=t._scheduler;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var o=n.renderTask;s.updatePayload(o,i),a&&a.get(e.uid)&&o.dirty(),r|=o.perform(s.getPerformArgs(o)),n.group.silent=!!e.get("silent"),at(e,n),function(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",n)})})}(e,n)}),s.unfinished|=r,function(t,e){var n=t.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!o.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}(t._zr,e),S(t._zr.dom,e)}function nt(t,e){C(ut,function(n){n(t,e)})}W.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[z]=!0,n&&j(this),Z.update.call(this),this[z]=!1,K.call(this,i),$.call(this,i)}},W.showLoading=function(t,e){if(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),dt[t]){var n=dt[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},W.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},W.makeActionFromEvent=function(t){var e=a.extend({},t);return e.type=ot[t.type],e},W.dispatchAction=function(t,e){P(e)||(e={silent:!!e}),rt[t.type]&&this._model&&(this[z]?this._pendingActions.push(t):(q.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&o.browser.weChat&&this._throttledZrFlush(),K.call(this,e.silent),$.call(this,e.silent)))},W.appendData=function(t){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0},W.on=G("on"),W.off=G("off"),W.one=G("one");var it=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function at(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))})}W._initEvents=function(){C(it,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=a.extend({},r.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),C(ot,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},W.isDisposed=function(){return this._disposed},W.clear=function(){this.setOption({series:[]},!0)},W.dispose=function(){if(!this._disposed){this._disposed=!0,_.setAttribute(this.getDom(),vt,"");var t=this._api,e=this._model;C(this._componentsViews,function(n){n.dispose(e,t)}),C(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete ft[this.id]}},a.mixin(H,l);var rt={},ot={},st=[],lt=[],ut=[],ct=[],ht={},dt={},ft={},pt={},gt=new Date-0,mt=new Date-0,vt="_echarts_instance_",yt={};function xt(t){pt[t]=!1}var _t=xt;function bt(t){return ft[_.getAttribute(t,vt)]}function wt(t,e){ht[t]=e}function St(t){lt.push(t)}function Mt(t,e){Tt(st,t,e,O)}function It(t,e,n){"function"==typeof e&&(n=e,e="");var i=P(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,D(B.test(i)&&B.test(e)),rt[i]||(rt[i]={action:n,actionInfo:t}),ot[e]=i}function At(t,e){Tt(ct,t,e,E,"visual")}function Tt(t,e,n,i,a){(L(e)||P(e))&&(n=e,e=i);var r=I.wrapStageHandler(n,a);return r.__prio=e,r.__raw=n,t.push(r),r}function Dt(t,e){dt[t]=e}At(2e3,w),St(f),Mt(5e3,p),Dt("default",M),It({type:"highlight",event:"highlight",update:"highlight"},a.noop),It({type:"downplay",event:"downplay",update:"downplay"},a.noop),wt("light",A),wt("dark",T);e.version="4.1.0",e.dependencies={zrender:"4.0.4"},e.PRIORITY=N,e.init=function(t,e,n){var i=bt(t);if(i)return i;var a=new H(t,e,n);return a.id="ec_"+gt++,ft[a.id]=a,_.setAttribute(t,vt,a.id),function(t){var e="__connectUpdateStatus";function n(t,n){for(var i=0;i<t.length;i++)t[i][e]=n}C(ot,function(i,a){t._messageCenter.on(a,function(i){if(pt[t.group]&&0!==t[e]){if(i&&i.escapeConnect)return;var a=t.makeActionFromEvent(i),r=[];C(ft,function(e){e!==t&&e.group===t.group&&r.push(e)}),n(r,0),C(r,function(t){1!==t[e]&&t.dispatchAction(a)}),n(r,2)}})})}(a),a},e.connect=function(t){if(a.isArray(t)){var e=t;t=null,C(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+mt++,C(e,function(e){e.group=t})}return pt[t]=!0,t},e.disConnect=xt,e.disconnect=_t,e.dispose=function(t){"string"==typeof t?t=ft[t]:t instanceof H||(t=bt(t)),t instanceof H&&!t.isDisposed()&&t.dispose()},e.getInstanceByDom=bt,e.getInstanceById=function(t){return ft[t]},e.registerTheme=wt,e.registerPreprocessor=St,e.registerProcessor=Mt,e.registerPostUpdate=function(t){ut.push(t)},e.registerAction=It,e.registerCoordinateSystem=function(t,e){h.register(t,e)},e.getCoordinateSystemDimensions=function(t){var e=h.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},e.registerLayout=function(t,e){Tt(ct,t,e,R,"layout")},e.registerVisual=At,e.registerLoading=Dt,e.extendComponentModel=function(t){return g.extend(t)},e.extendComponentView=function(t){return v.extend(t)},e.extendSeriesModel=function(t){return m.extend(t)},e.extendChartView=function(t){return y.extend(t)},e.setCanvasCreator=function(t){a.$override("createCanvas",t)},e.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+");")()),yt[t]={geoJson:e,specialAreas:n}},e.getMap=function(t){return yt[t]},e.dataTool={};var Ct=n(1532);!function(){for(var t in Ct)Ct.hasOwnProperty(t)&&(e[t]=Ct[t])}()},function(t,e,n){var i=n(1406),a=n(1603),r=n(1427),o=n(1421),s=n(1413),l=n(1416),u=n(1486),c=n(1453);e.Image=c;var h=n(1468);e.Group=h;var d=n(1455);e.Text=d;var f=n(1608);e.Circle=f;var p=n(1609);e.Sector=p;var g=n(1610);e.Ring=g;var m=n(1611);e.Polygon=m;var v=n(1614);e.Polyline=v;var y=n(1615);e.Rect=y;var x=n(1616);e.Line=x;var _=n(1617);e.BezierCurve=_;var b=n(1618);e.Arc=b;var w=n(1619);e.CompoundPath=w;var S=n(1527);e.LinearGradient=S;var M=n(1620);e.RadialGradient=M;var I=n(1415);e.BoundingRect=I;var A=n(1490);e.IncrementalDisplayable=A;var T=Math.round,D=Math.max,C=Math.min,L={};function P(t,e,n,i){var r=a.createFromString(t,e),o=r.getBoundingRect();return n&&("center"===i&&(n=k(n,o)),R(r,n)),r}function k(t,e){var n,i=e.width/e.height,a=t.height*i;return n=a<=t.width?t.height:(a=t.width)/i,{x:t.x+t.width/2-a/2,y:t.y+t.height/2-n/2,width:a,height:n}}var O=a.mergePath;function R(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function E(t,e,n){var i=T(2*t);return(i+T(e))%2==0?i/2:(i+(n?1:-1))/2}function N(t){return null!=t&&"none"!=t}function z(t){return"string"==typeof t?r.lift(t,-.1):t}function V(t){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,i=t.__hoverStl;i.fill=i.fill||(N(n)?z(n):null),i.stroke=i.stroke||(N(e)?z(e):null);var a={};for(var r in i)null!=i[r]&&(a[r]=t.style[r]);t.__normalStl=a,t.__hoverStlDirty=!1}}function B(t){if(!t.__isHover){if(V(t),t.useHoverLayer)t.__zr&&t.__zr.addHover(t,t.__hoverStl);else{var e=t.style,n=e.insideRollbackOpt;n&&function(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth)}(e),e.extendFrom(t.__hoverStl),n&&(J(e,e.insideOriginalTextPosition,n),null==e.textFill&&(e.textFill=n.autoColor)),t.dirty(!1),t.z2+=1}t.__isHover=!0}}function G(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 F(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&B(t)}):B(t)}function H(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&G(t)}):G(t)}function W(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&V(t)}function U(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&F(this)}function Z(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&H(this)}function j(){this.__isEmphasis=!0,F(this)}function Y(){this.__isEmphasis=!1,H(this)}function X(t,e,n,a,r){return q(t,e,a,r),n&&i.extend(t,n),t.host&&t.host.dirty&&t.host.dirty(!1),t}function q(t,e,n,a){if((n=n||L).isRectText){var r=e.getShallow("position")||(a?null:"inside");"outside"===r&&(r="top"),t.textPosition=r,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=i.retrieve2(e.getShallow("distance"),a?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||L).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}(e);if(c)for(var h in s={},c)if(c.hasOwnProperty(h)){var d=e.getModel(["rich",h]);K(s[h]={},d,u,n,a)}return t.rich=s,K(t,e,u,n,a,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function K(t,e,n,a,r,o){if(n=!r&&n||L,t.textFill=$(e.getShallow("color"),a)||n.color,t.textStroke=$(e.getShallow("textBorderColor"),a)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),!r){if(o){var s=t.textPosition;t.insideRollback=J(t,s,a),t.insideOriginalTextPosition=s,t.insideRollbackOpt=a}null==t.textFill&&(t.textFill=a.autoColor)}t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&a.disableBox||(t.textBackgroundColor=$(e.getShallow("backgroundColor"),a),t.textPadding=e.getShallow("padding"),t.textBorderColor=$(e.getShallow("borderColor"),a),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function $(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function J(t,e,n){var i,a=n.useInsideStyle;return null==t.textFill&&!1!==a&&(!0===a||n.isRectText&&e&&"string"==typeof e&&e.indexOf("inside")>=0)&&(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=n.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),i}function Q(t,e,n,i,a,r){if("function"==typeof a&&(r=a,a=null),i&&i.isAnimationEnabled()){var o=t?"Update":"",s=i.getShallow("animationDuration"+o),l=i.getShallow("animationEasing"+o),u=i.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(a,i.getAnimationDelayParams?i.getAnimationDelayParams(e,a):null)),"function"==typeof s&&(s=s(a)),s>0?e.animateTo(n,s,u||0,l,r,!!r):(e.stopAnimation(),e.attr(n),r&&r())}else e.stopAnimation(),e.attr(n),r&&r()}function tt(t,e,n,i,a){Q(!0,t,e,n,i,a)}function et(t,e,n){return e&&!i.isArrayLike(e)&&(e=u.getLocalTransform(e)),n&&(e=o.invert([],e)),s.applyTransform([],t,e)}e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return a.extendFromString(t,e)},e.makePath=P,e.makeImage=function(t,e,n){var i=new c({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var a={width:t.width,height:t.height};i.setStyle(k(e,a))}}});return i},e.mergePath=O,e.resizePath=R,e.subPixelOptimizeLine=function(t){var e=t.shape,n=t.style.lineWidth;return T(2*e.x1)===T(2*e.x2)&&(e.x1=e.x2=E(e.x1,n,!0)),T(2*e.y1)===T(2*e.y2)&&(e.y1=e.y2=E(e.y1,n,!0)),t},e.subPixelOptimizeRect=function(t){var e=t.shape,n=t.style.lineWidth,i=e.x,a=e.y,r=e.width,o=e.height;return e.x=E(e.x,n,!0),e.y=E(e.y,n,!0),e.width=Math.max(E(i+r,n,!1)-e.x,0===r?0:1),e.height=Math.max(E(a+o,n,!1)-e.y,0===o?0:1),t},e.subPixelOptimize=E,e.setHoverStyle=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&W(t,e)}):W(t,e),t.on("mouseover",U).on("mouseout",Z),t.on("emphasis",j).on("normal",Y)},e.setLabelStyle=function(t,e,n,a,r,o,s){var l,u=(r=r||L).labelFetcher,c=r.labelDataIndex,h=r.labelDimIndex,d=n.getShallow("show"),f=a.getShallow("show");(d||f)&&(u&&(l=u.getFormattedLabel(c,"normal",null,h)),null==l&&(l=i.isFunction(r.defaultText)?r.defaultText(c,r):r.defaultText));var p=d?l:null,g=f?i.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h):null,l):null;null==p&&null==g||(X(t,n,o,r),X(e,a,s,r,!0)),t.text=p,e.text=g},e.setTextStyle=X,e.setText=function(t,e,n){var i,a={isRectText:!0};!1===n?i=!0:a.autoColor=n,q(t,e,a,i),t.host&&t.host.dirty&&t.host.dirty(!1)},e.getFont=function(t,e){var n=e||e.getModel("textStyle");return i.trim([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(" "))},e.updateProps=tt,e.initProps=function(t,e,n,i,a){Q(!1,t,e,n,i,a)},e.getTransform=function(t,e){for(var n=o.identity([]);t&&t!==e;)o.mul(n,t.getLocalTransform(),n),t=t.parent;return n},e.applyTransform=et,e.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-i:"right"===t?i:0,"top"===t?-a:"bottom"===t?a:0];return r=et(r,e,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},e.groupTransition=function(t,e,n,a){if(t&&e){var r=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=r[t.anid];if(e){var i=o(t);t.attr(o(e)),tt(t,i,n,t.dataIndex)}}})}function o(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return i.map(t,function(t){var n=t[0];n=D(n,e.x),n=C(n,e.x+e.width);var i=t[1];return i=D(i,e.y),[n,i=C(i,e.y+e.height)]})},e.clipRectByRect=function(t,e){var n=D(t.x,e.x),i=C(t.x+t.width,e.x+e.width),a=D(t.y,e.y),r=C(t.y+t.height,e.y+e.height);if(i>=n&&r>=a)return{x:n,y:a,width:i-n,height:r-a}},e.createIcon=function(t,e,n){var a=(e=i.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(a.image=t.slice(8),i.defaults(a,n),new c(e)):P(t.replace("path://",""),e,n,"center")}},function(t,e,n){var i=n(1406),a=1e-4;var r=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(t){return Math.floor(Math.log(t)/Math.LN10)}e.linearMap=function(t,e,n,i){var a=e[1]-e[0],r=n[1]-n[0];if(0===a)return 0===r?n[0]:(n[0]+n[1])/2;if(i)if(a>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])/a*r+n[0]},e.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?function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},e.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},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.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 a=e.indexOf(".");return a<0?0:e.length-1-a},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,a=Math.floor(n(t[1]-t[0])/i),r=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var a=i.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===a)return 0;for(var r=Math.pow(10,n),o=i.map(t,function(t){return(isNaN(t)?0:t)/a*r*100}),s=100*r,l=i.map(o,function(t){return Math.floor(t)}),u=i.reduce(l,function(t,e){return t+e},0),c=i.map(o,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},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-a&&t<a},e.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=r.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,o(t))},e.nice=function(t,e){var n=o(t),i=Math.pow(10,n),a=t/i;return t=(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)*i,n>=-20?+t.toFixed(n<0?-n:0):t},e.reformIntervals=function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var a=t[i].interval,r=t[i].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,r[o]=o?1:1-n),e=a[o],n=r[o];a[0]===a[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t},e.isNumeric=function(t){return t-parseFloat(t)>=0}},function(t,e,n){var i=n(1406),a=i.each,r=i.isObject,o=i.isArray,s="series\0";function l(t){return t instanceof Array?t:null==t?[]:[t]}function u(t){return r(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}var c=0;function h(t,e){return t&&t.hasOwnProperty(e)}e.normalizeToArray=l,e.defaultEmphasis=function(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,a=n.length;i<a;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}},e.TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],e.getDataItemValue=function(t){return!r(t)||o(t)||t instanceof Date?t:t.value},e.isDataItemOption=function(t){return r(t)&&!(t instanceof Array)},e.mappingToExists=function(t,e){e=(e||[]).slice();var n=i.map(t||[],function(t,e){return{exist:t}});return a(e,function(t,i){if(r(t)){for(var a=0;a<n.length;a++)if(!n[a].option&&null!=t.id&&n[a].exist.id===t.id+"")return n[a].option=t,void(e[i]=null);for(a=0;a<n.length;a++){var o=n[a].exist;if(!(n[a].option||null!=o.id&&null!=t.id||null==t.name||u(t)||u(o)||o.name!==t.name+""))return n[a].option=t,void(e[i]=null)}}}),a(e,function(t,e){if(r(t)){for(var i=0;i<n.length;i++){var a=n[i].exist;if(!n[i].option&&!u(a)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}}),n},e.makeIdAndName=function(t){var e=i.createHashMap();a(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),a(t,function(t,n){var a=t.option;i.assert(!a||null==a.id||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&null!=a.id&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),a(t,function(t,n){var i=t.exist,a=t.option,o=t.keyInfo;if(r(a)){if(o.name=null!=a.name?a.name+"":i?i.name:s+n,i)o.id=i.id;else if(null!=a.id)o.id=a.id+"";else{var l=0;do{o.id="\0"+o.name+"\0"+l++}while(e.get(o.id))}e.set(o.id,t)}})},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf(s))},e.isIdInner=u,e.compressBatches=function(t,e){var n={},i={};return a(t||[],n),a(e||[],i,n),[r(n),r(i)];function a(t,e,n){for(var i=0,a=t.length;i<a;i++)for(var r=t[i].seriesId,o=l(t[i].dataIndex),s=n&&n[r],u=0,c=o.length;u<c;u++){var h=o[u];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}function r(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var a=r(t[i],!0);a.length&&n.push({seriesId:i,dataIndex:a})}return n}},e.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?i.isArray(e.dataIndex)?i.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?i.isArray(e.name)?i.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},e.makeInner=function(){var t="__\0ec_inner_"+c+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}},e.parseFinder=function(t,e,n){if(i.isString(e)){var r={};r[e+"Index"]=0,e=r}var o=n&&n.defaultMainType;!o||h(e,o+"Index")||h(e,o+"Id")||h(e,o+"Name")||(e[o+"Index"]=0);var s={};return a(e,function(a,r){if(a=e[r],"dataIndex"!==r&&"dataIndexInside"!==r){var o=r.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],u=(o[2]||"").toLowerCase();if(!(!l||!u||null==a||"index"===u&&"none"===a||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===a||(c[u]=a);var h=t.queryComponents(c);s[l+"Models"]=h,s[l+"Model"]=h[0]}}else s[r]=a}),s},e.setAttribute=function(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n},e.getAttribute=function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}},function(t,e,n){(function(t){var n;"undefined"!=typeof window?n=window.__DEV__:void 0!==t&&(n=t.__DEV__),void 0===n&&(n=!0);var i=n;e.__DEV__=i}).call(this,n(17))},function(t,e,n){var i=n(1406),a=n(1415),r=n(1409).parsePercent,o=n(1414),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,a){var r=0,o=0;null==i&&(i=1/0),null==a&&(a=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 m=f.width+(g?-g.x+f.x:0);(c=r+m)>i||l.newline?(r=0,c=m,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(h=o+v)>a||l.newline?(r+=s+n,o=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=c+n:o=h+n)})}var h=c,d=i.curry(c,"vertical"),f=i.curry(c,"horizontal");function p(t,e,n){n=o.normalizeCssArray(n||0);var i=e.width,s=e.height,l=r(t.left,i),u=r(t.top,s),c=r(t.right,i),h=r(t.bottom,s),d=r(t.width,i),f=r(t.height,s),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(f)&&(f=s-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/s?d=.8*i:f=.8*s),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(f)&&(f=s-p-u-(h||0));var v=new a(l+n[3],u+n[0],d,f);return v.margin=n,v}function g(t,e){return e&&t&&s(l,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=h,e.vbox=d,e.hbox=f,e.getAvailableSize=function(t,e,n){var i=e.width,a=e.height,s=r(t.x,i),l=r(t.y,a),u=r(t.x2,i),c=r(t.y2,a);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=a),n=o.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,n,r,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new a(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(c=c.clone()).applyTransform(h)}e=p(i.defaults({width:c.width,height:c.height},e),n,r);var d=t.position,f=s?e.x-c.x:0,g=l?e.y-c.y:0;t.attr("position","raw"===u?[f,g]:[d[0]+f,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,n){!i.isObject(n)&&(n={});var a=n.ignoreSize;!i.isArray(a)&&(a=[a,a]);var r=l(u[0],0),o=l(u[1],1);function l(n,i){var r={},o=0,l={},u=0;if(s(n,function(e){l[e]=t[e]}),s(n,function(t){c(e,t)&&(r[t]=l[t]=e[t]),h(r,t)&&o++,h(l,t)&&u++}),a[i])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&o){if(o>=2)return r;for(var d=0;d<n.length;d++){var f=n[d];if(!c(r,f)&&c(t,f)){r[f]=t[f];break}}return r}return l}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,function(t){e[t]=n[t]})}d(u[0],t,r),d(u[1],t,o)},e.getLayoutParams=function(t){return g({},t)},e.copyLayoutParams=g},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function i(t){return Math.sqrt(r(t))}var a=i;function r(t){return t[0]*t[0]+t[1]*t[1]}var o=r;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var c=u;e.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},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},e.len=i,e.length=a,e.lenSquare=r,e.lengthSquare=o,e.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},e.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.normalize=function(t,e){var n=i(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},e.distance=s,e.dist=l,e.distanceSquare=u,e.distSquare=c,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.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},e.applyTransform=function(t,e,n){var i=e[0],a=e[1];return t[0]=n[0]*i+n[2]*a+n[4],t[1]=n[1]*i+n[3]*a+n[5],t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},function(t,e,n){var i=n(1406),a=n(1426),r=n(1409);var o=i.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function u(t){return null==t?"":(t+"").replace(s,function(t,e){return l[e]})}var c=["a","b","c","d","e","f","g"],h=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e){return"0000".substr(0,e-(t+="").length)+t}var f=a.truncateText,p=a.getBoundingRect;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.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},e.normalizeCssArray=o,e.encodeHTML=u,e.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var a=e.length;if(!a)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var s=c[o];t=t.replace(h(s),h(s,0))}for(var l=0;l<a;l++)for(var d=0;d<r.length;d++){var f=e[l][r[d]];t=t.replace(h(c[d],l),n?u(f):f)}return t},e.formatTplSimple=function(t,e,n){return i.each(e,function(e,i){t=t.replace("{"+i+"}",n?u(e):e)}),t},e.getTooltipMarker=function(t,e){var n=(t=i.isString(t)?{color:t,extraCssText:e}:t||{}).color,a=t.type;return e=t.extraCssText,n?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+u(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+u(n)+";"+(e||"")+'"></span>':""},e.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),a=n?"UTC":"",o=i["get"+a+"FullYear"](),s=i["get"+a+"Month"]()+1,l=i["get"+a+"Date"](),u=i["get"+a+"Hours"](),c=i["get"+a+"Minutes"](),h=i["get"+a+"Seconds"](),f=i["get"+a+"Milliseconds"]();return t=t.replace("MM",d(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",d(l,2)).replace("d",l).replace("hh",d(u,2)).replace("h",u).replace("mm",d(c,2)).replace("m",c).replace("ss",d(h,2)).replace("s",h).replace("SSS",d(f,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=f,e.getTextRect=p},function(t,e,n){var i=n(1413),a=n(1421),r=i.applyTransform,o=Math.min,s=Math.max;function l(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}l.prototype={constructor:l,union:function(t){var e=o(t.x,this.x),n=o(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this.height=s(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(a){if(a){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,r(t,t,a),r(e,e,a),r(n,n,a),r(i,i,a),this.x=o(t[0],e[0],n[0],i[0]),this.y=o(t[1],e[1],n[1],i[1]);var l=s(t[0],e[0],n[0],i[0]),u=s(t[1],e[1],n[1],i[1]);this.width=l-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=a.create();return a.translate(r,r,[-e.x,-e.y]),a.scale(r,r,[n,i]),a.translate(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof l||(t=l.create(t));var e=this,n=e.x,i=e.x+e.width,a=e.y,r=e.y+e.height,o=t.x,s=t.x+t.width,u=t.y,c=t.y+t.height;return!(i<o||s<n||r<u||c<a)},contain:function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new l(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}}},l.create=function(t){return new l(t.x,t.y,t.width,t.height)};var u=l;t.exports=u},function(t,e,n){var i=n(1454),a=n(1406),r=n(1447),o=n(1604),s=n(1516).prototype.getCanvasPattern,l=Math.abs,u=new r(!0);function c(t){i.call(this,t),this.path=null}c.prototype={constructor:c,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n,i=this.style,a=this.path||u,r=i.hasStroke(),o=i.hasFill(),l=i.fill,c=i.stroke,h=o&&!!l.colorStops,d=r&&!!c.colorStops,f=o&&!!l.image,p=r&&!!c.image;(i.bind(t,this,e),this.setTransform(t),this.__dirty)&&(h&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,l,n)),d&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,c,n)));h?t.fillStyle=this._fillGradient:f&&(t.fillStyle=s.call(l,t)),d?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=s.call(c,t));var g=i.lineDash,m=i.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();a.setScale(y[0],y[1]),this.__dirtyPath||g&&!v&&r?(a.beginPath(t),g&&!v&&(a.setLineDash(g),a.setLineDashOffset(m)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o&&a.fill(t),g&&v&&(t.setLineDash(g),t.lineDashOffset=m),r&&a.stroke(t),g&&v&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new r},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new r),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a.height+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),a=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var r=this.path.data;if(a.hasStroke()){var s=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(r,s/l,t,e)))return!0}if(a.hasFill())return o.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(a.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&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},c.extend=function(t){var e=function(e){c.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var a in n)!i.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(i[a]=n[a])}t.init&&t.init.call(this,e)};for(var n in a.inherits(e,c),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},a.inherits(c,i);var h=c;t.exports=h},function(t,e){var n="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0}:function(t){var e={},n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.