@xysfe/actui 1.5.78-beta.3 → 1.5.78-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),function(){try{return require("@xysfe/actui/es/assets/img/circle1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle3.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag3.png")}catch(t){}}()):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/mixins/visible.js","@xysfe/actui/es/assets/img/circle1.png","@xysfe/actui/es/assets/img/circle2.png","@xysfe/actui/es/assets/img/circle3.png","@xysfe/actui/es/assets/img/tag1.png","@xysfe/actui/es/assets/img/tag2.png","@xysfe/actui/es/assets/img/tag3.png"],e):"object"==typeof exports?exports.GoldFinanceChartV2=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),function(){try{return require("@xysfe/actui/es/assets/img/circle1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle3.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag3.png")}catch(t){}}()):t.GoldFinanceChartV2=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/visible.js"],t["@xysfe/actui/es/assets/img/circle1.png"],t["@xysfe/actui/es/assets/img/circle2.png"],t["@xysfe/actui/es/assets/img/circle3.png"],t["@xysfe/actui/es/assets/img/tag1.png"],t["@xysfe/actui/es/assets/img/tag2.png"],t["@xysfe/actui/es/assets/img/tag3.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,r,o,a,s){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.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="../es",e(e.s=2009)}({0: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)},1:function(t,e,n){var i=n(27)("wks"),r=n(24),o=n(0).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},10:function(t,e,n){var i=n(0),r=n(2),o=n(17),a=n(5),s=n(8),l=function(t,e,n){var u,h,c,f=t&l.F,p=t&l.G,d=t&l.S,g=t&l.P,y=t&l.B,v=t&l.W,m=p?r:r[e]||(r[e]={}),_=m.prototype,x=p?i:d?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(h=!f&&x&&void 0!==x[u])&&s(m,u)||(c=h?x[u]:n[u],m[u]=p&&"function"!=typeof x[u]?n[u]:y&&h?o(c,i):v&&x[u]==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):g&&"function"==typeof c?o(Function.call,c):c,g&&((m.virtual||(m.virtual={}))[u]=c,t&l.R&&_&&!_[u]&&a(_,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},11:function(t,e){t.exports={}},1158:function(t,e,n){"use strict";var i=n(92),r=n.n(i),o=n(88),a=n.n(o),s=n(691),l=n.n(s),u=n(32),h=n.n(u),c=n(2012),f=n(1160);e.a={name:"ActGoldFinanceChartV2",components:{Chart:c.a},mixins:[h.a],data:function(){return{chartOptions:null,source:l()({length:70},function(t,e){return[e+1]}),selectedData:[],colorConfig:f.a,hasData:!1}},props:{costTable:{type:Array,default:function(){return[]}},config:{type:Object,default:function(){return{title:"",colsXText:"",colsYText:"",colsXUnit:"",colsYUnit:"",productList:[],source:[],markPoint:[]}}}},filters:{formatPrice:function(t){var e=t/1e4,n=e.toString().split(".");return n[1]&&(n[1]=n[1].substr(0,2)),n.join(".")+"万元"}},computed:{isNewVersion:function(){return!(this.costTable.length>0)},filteredCostTable:function(){return this.costTable.filter(function(t){return-1!==t.colsType.findIndex(function(t){return 3===Number(t)})}).map(function(t){return t})}},created:function(){this.costTable.length>0?(this.initConfig(),this.generateData()):(this.initConfigV2(),this.generateDataV2())},methods:a()({},function(){return{initConfigV2:function(){var t=this.config;this.chartOptions={config:{xAxis:{labelFormat:function(e){return""+(e+t.colsXUnit)}},yAxis:{labelFormat:function(e){return""+(e+t.colsYUnit)}}},data:{markPoint:[],source:[]}}},generateDataV2:function(){var t=this.config.source,e=this.config.markPoint;this.chartOptions.data={markPoint:e,source:t},this.hasData=!0,console.log("alan->this.config",this.config)}}}(),{initConfig:function(){this.chartOptions={config:{xAxis:{labelFormat:function(t){return t+"年"}},yAxis:{labelFormat:function(t){return Math.floor(Number(t)/1e4)+"万"}}},data:{markPoint:[],source:[]}}},handleOriginData:function(t,e,n,i){var r=t.colsType.findIndex(function(t){return 3===Number(t)}),o=t.colsType.findIndex(function(t){return 6===Number(t)});this.$set(n,e,[]);for(var a=1,s=0;s<t.rows.length&&!(s>=70);s++){var l=t.rows[s],u=Number(l[r]),h=Number(l[o]);i[s].push(l[r]),this.findMultiple(h,u,a)&&(n[e].push({name:1===a?"本":"x"+a,coord:[s+1,u]}),a++)}},getCurrentData:function(t){this.selectedData=t},findMultiple:function(t,e,n){return e>=t*n},generateData:function(){if(!this.filteredCostTable||!this.filteredCostTable.length)return this.$emit("error"),void(this.hasData=!1);this.hasData=!0;for(var t=JSON.parse(r()(this.source)),e=[],n=0;n<this.filteredCostTable.length;n++)this.handleOriginData(this.filteredCostTable[n],n,e,t);this.chartOptions.data={markPoint:e,source:t}}}),watch:{costTable:{handler:function(){this.generateData()}},config:{handler:function(){this.generateDataV2()},deep:!0}}}},1159:function(t,e,n){"use strict";var i=n(65),r=n.n(i),o=n(1160),a=n(2014);e.a={props:{chartOptions:{type:Object,default:function(){return{config:{xAxis:{labelFormat:function(){}},yAxis:{labelFormat:function(){}}},data:{markPoint:[],source:[]}}}}},data:function(){return{chart:null}},computed:{defaultChartOption:function(){return{grid:{height:this.remToPxBased10Px(15),top:this.remToPxBased10Px(2.6),left:this.remToPxBased10Px(4.5),right:this.remToPxBased10Px(2.3),bottom:0,containLabel:!1},tooltip:{trigger:"axis",triggerOn:"mousemove",showContent:!1,axisPointer:{type:"cross",z:1}},xAxis:{type:"category",boundaryGap:!1,axisPointer:{label:{show:!1},lineStyle:{type:"solid",width:2,color:"#eeeeee"},show:!0},axisLabel:{showMaxLabel:!0,formatter:this.chartOptions.config.xAxis.labelFormat,interval:this.getXAxisInterval(),color:"#B3B3B3",fontSize:this.remToPxBased10Px(1),lineHeight:this.remToPxBased10Px(1.5)},axisLine:{lineStyle:{color:"#F5F5F5"}}},yAxis:{axisPointer:{label:{show:!1},lineStyle:{type:"solid",width:2,color:"#eeeeee"},show:!0},axisLine:{lineStyle:{color:"#B3B3B3"}},axisLabel:{formatter:this.chartOptions.config.yAxis.labelFormat,color:"#B3B3B3",fontSize:this.remToPxBased10Px(1),lineHeight:this.remToPxBased10Px(1.5)},splitLine:{lineStyle:{color:"#F5F5F5"}}},series:{type:"line",showSymbol:!1,symbolSize:[this.remToPxBased10Px(1.4),this.remToPxBased10Px(1.4)],smooth:!0,lineStyle:{width:3}}}}},methods:{getXAxisInterval:function(){var t=this.chartOptions.data.source.length;return Math.floor(t/7)},setEcharts:function(){for(var t=this.chartOptions.data.source[0].length-1,e=[],i=0;i<t;i++)e.push(r()({},this.defaultChartOption.series,{symbol:"image://"+n(948)("./circle"+(i+1)+".png"),areaStyle:{color:new a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:o.b[i][0]},{offset:1,color:o.b[i][1]}])},color:o.a[i],markPoint:{symbol:"image://"+n(2018)("./tag"+(i+1)+".png"),symbolSize:[this.remToPxBased10Px(1.6),this.remToPxBased10Px(1.7)],symbolOffset:["-30%","-50%"],silent:!0,label:{show:!0,formatter:"{b}",color:"#fff",fontSize:this.remToPxBased10Px(.7),position:[this.remToPxBased10Px(.5),this.remToPxBased10Px(.4)]},data:this.chartOptions.data.markPoint[i]}}));var s=r()({},this.defaultChartOption,{series:e,dataset:{source:this.chartOptions.data.source}});this.chart.setOption(s)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],n=parseFloat(getComputedStyle(e,null).fontSize);if(n>12)return t*n;var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=i/375*10;return i?t*r:10*t}},mounted:function(){var t=this;this.chart=a.init(this.$refs.chart),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);if(t.chart.containPixel("grid",n)){var r=t.chart.getOption(),o=r.dataset,a=o[0].source,s=a.find(function(t,e){return e===i[0]});s&&t.$emit("getCurrentData",s)}}),this.setEcharts()},watch:{"chartOptions.data":function(t){t&&this.setEcharts()}}}},1160:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=["rgba(255, 90, 110, 1)","rgba(140, 127, 238, 1)","rgba(255, 171, 17, 1)"],r=[["rgba(255, 90, 110, 0.2)","rgba(255, 90, 110, 0)"],["rgba(140, 127, 238, 0.2)","rgba(140, 127, 238, 0)"],["rgba(255, 171, 17, 0.2)","rgba(255, 171, 17, 0)"]]},12:function(t,e,n){var i=n(30),r=n(16);t.exports=function(t){return i(r(t))}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},16:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},17:function(t,e,n){var i=n(19);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)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var i=n(27)("keys"),r=n(24);t.exports=function(t){return i[t]||(i[t]=r(t))}},2009:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),r=n.n(i),o=n(2010);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChartV2=r()(o.a,t)},e.default=o.a},2010:function(t,e,n){"use strict";function i(t){s||n(2011)}var r=n(1158),o=n(2023),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-b2832d64",null);u.options.__file="src\\components\\GoldFinanceChartV2\\src\\index.vue",e.a=u.exports},2011:function(t,e){},2012:function(t,e,n){"use strict";function i(t){s||n(2013)}var r=n(1159),o=n(2022),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-3520b25a",null);u.options.__file="src\\components\\GoldFinanceChartV2\\src\\chart.vue",e.a=u.exports},2013:function(t,e){},2014:function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vy(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t){for(var e in Cy)t[e]&&(Cy[e]=t[e])}function i(){return zy++}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function o(t){if(null==t||"object"!=typeof t)return t;var e=t,n=ky.call(t);if("[object Array]"===n){if(!U(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=o(t[i])}}else if(Dy[n]){if(!U(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!Iy[n]&&!U(t)&&!A(t)){e={};for(var s in t)t.hasOwnProperty(s)&&s!==By&&(e[s]=o(t[s]))}return e}function a(t,e,n){if(!I(e)||!I(t))return n?o(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==By){var r=t[i],s=e[i];!I(s)||!I(r)||b(s)||b(r)||A(s)||A(r)||D(s)||D(r)||U(s)||U(r)?!n&&i in t||(t[i]=o(e[i])):a(r,s,n)}return t}function s(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=a(n,t[i],e);return n}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==By&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=_(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;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)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else u(t,e,n)}function p(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function d(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Py)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;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 g(t,e,n){if(!t)return[];if(!e)return z(t);if(t.map&&t.map===Ry)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function y(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function v(t,e,n){if(!t)return[];if(!e)return z(t);if(t.filter&&t.filter===Oy)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;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;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function _(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function x(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(Ly.call(arguments)))}}function w(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Ly.call(arguments)))}}function b(t){return Array.isArray?Array.isArray(t):"[object Array]"===ky.call(t)}function S(t){return"function"==typeof t}function M(t){return"string"==typeof t}function T(t){return"[object String]"===ky.call(t)}function C(t){return"number"==typeof t}function I(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function D(t){return!!Iy[ky.call(t)]}function k(t){return!!Dy[ky.call(t)]}function A(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function P(t){return null!=t.colorStops}function O(t){return null!=t.image}function L(t){return"[object RegExp]"===ky.call(t)}function R(t){return t!==t}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;i>n;n++)if(null!=t[n])return t[n]}function N(t,e){return null!=t?t:e}function B(t,e,n){return null!=t?t:null!=e?e:n}function z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Ly.apply(t,e)}function F(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}function V(t,e){if(!t)throw new Error(e)}function H(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function W(t){t[Hy]=!0}function U(t){return t[Hy]}function G(){return Uy?new Map:new Wy}function Y(t){return new Gy(t)}function j(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function X(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&l(n,e),n}function q(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(t,e){return t.hasOwnProperty(e)}function K(){}function $(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Q(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t){return[t[0],t[1]]}function tt(t,e,n){return t[0]=e,t[1]=n,t}function et(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function nt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function it(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function rt(t){return Math.sqrt(ot(t))}function ot(t){return t[0]*t[0]+t[1]*t[1]}function at(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function st(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function lt(t,e){return t[0]*e[0]+t[1]*e[1]}function ut(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ht(t,e){var n=rt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ct(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ft(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function pt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function dt(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function gt(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}function yt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function vt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function mt(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ev);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,f=0,p=0;s>f;f++){var d=1<<f;d&r||(c+=(p%2?-1:1)*t[n][f]*mt(t,e-1,h,u,r|d,o),p++)}return o[a]=c,c}function _t(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=mt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*mt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function xt(t,e,n,i,r){return wt(iv,e,i,r,!0)&&wt(t,n,iv[0],iv[1])}function wt(t,e,n,i,r){if(e.getBoundingClientRect&&xy.domSupported&&!Mt(e)){var o=e[nv]||(e[nv]={}),a=bt(e,o),s=St(a,o,r);if(s)return s(t,n,i),!0}return!1}function bt(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function St(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,f=h.left,p=h.top;a.push(f,p),l=l&&o&&f===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?_t(s,a):_t(a,s))}function Mt(t){return"CANVAS"===t.nodeName.toUpperCase()}function Tt(t){return null==t?"":(t+"").replace(rv,function(t,e){return ov[e]})}function Ct(t,e,n,i){return n=n||{},i?It(t,e,n):lv&&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):It(t,e,n),n}function It(t,e,n){if(xy.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Mt(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(wt(sv,t,i,r))return n.zrX=sv[0],void(n.zrY=sv[1])}n.zrX=n.zrY=0}function Dt(t){return t||window.event}function kt(t,e,n){if(e=Dt(e),null!=e.zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Ct(t,r,e,n)}else{Ct(t,e,e,n);var o=At(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&av.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function At(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*Math.abs(0!==i?i:n)*(i>0?-1:0>i?1:n>0?-1:1)}function Pt(t,e,n,i){t.addEventListener(e,n,i)}function Ot(t,e,n,i){t.removeEventListener(e,n,i)}function Lt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Rt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Et(){return[1,0,0,1,0,0]}function Nt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Bt(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}function zt(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}function Ft(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}function Vt(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),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ht(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}function Wt(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}function Ut(t){var e=Et();return Bt(e,t),e}function Gt(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,which:n.which,stop:Yt}}function Yt(){uv(this.event)}function jt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Sv}return!1}function Xt(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=jt(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Sv)){e.target=a;break}}}function qt(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Zt(t){for(var e=0;t>=Av;)e|=1&t,t>>=1;return t+e}function Kt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;$t(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function $t(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function Qt(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)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 Jt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function te(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function ee(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(n){var i=l[n],r=u[n],o=l[n+1],h=u[n+1];u[n]=r+h,n===c-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),c--;var f=te(t[o],t,i,r,0,e);i+=f,0!==(r-=f)&&0!==(h=Jt(t[i+r-1],t,o,h,h-1,e))&&(h>=r?a(i,r,o,h):s(i,r,o,h))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)f[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!=--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=f[s])}for(var c,p,d,g=h;;){c=0,p=0,d=!1;do{if(e(t[l],f[s])<0){if(t[u++]=t[l++],p++,c=0,0==--o){d=!0;break}}else if(t[u++]=f[s++],c++,p=0,1==--i){d=!0;break}}while(g>(c|p));if(d)break;do{if(0!==(c=te(t[l],f,s,i,0,e))){for(a=0;c>a;a++)t[u+a]=f[s+a];if(u+=c,s+=c,1>=(i-=c)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(p=Jt(f[s],t,l,o,0,e))){for(a=0;p>a;a++)t[u+a]=t[l+a];if(u+=p,l+=p,0===(o-=p)){d=!0;break}}if(t[u++]=f[s++],1==--i){d=!0;break}g--}while(c>=Pv||p>=Pv);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=f[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=f[s+a]}}else for(a=0;i>a;a++)t[u+a]=f[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)f[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,p=0;if(t[u--]=t[s--],0!=--i){if(1===o){for(u-=i,s-=i,p=u+1,c=s+1,a=i-1;a>=0;a--)t[p+a]=t[c+a];return void(t[u]=f[l])}for(var d=h;;){var g=0,y=0,v=!1;do{if(e(f[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0==--i){v=!0;break}}else if(t[u--]=f[l--],y++,g=0,1==--o){v=!0;break}}while(d>(g|y));if(v)break;do{if(0!==(g=i-te(f[l],t,n,i,i-1,e))){for(u-=g,s-=g,i-=g,p=u+1,c=s+1,a=g-1;a>=0;a--)t[p+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=f[l--],1==--o){v=!0;break}if(0!==(y=o-Jt(t[s],f,0,o,o-1,e))){for(u-=y,l-=y,o-=y,p=u+1,c=l+1,a=0;y>a;a++)t[p+a]=f[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0==--i){v=!0;break}d--}while(g>=Pv||y>=Pv);if(v)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=i,s-=i,p=u+1,c=s+1,a=i-1;a>=0;a--)t[p+a]=t[c+a];t[u]=f[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}var l,u,h=Pv,c=0,f=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function ne(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(Av>r)return o=Kt(t,n,i,e),void Qt(t,n,i,n+o,e);var a=ee(t,e),s=Zt(r);do{if(o=Kt(t,n,i,e),s>o){var l=r;l>s&&(l=s),Qt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function ie(){Rv||(Rv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function re(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function oe(t){return t>-Vv&&Vv>t}function ae(t){return t>Vv||-Vv>t}function se(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 le(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ue(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,f=l*l-3*s*u,p=0;if(oe(h)&&oe(c))if(oe(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[p++]=d)}else{var g=c*c-4*h*f;if(oe(g)){var y=c/h,d=-s/a+y,v=-y/2;d>=0&&1>=d&&(o[p++]=d),v>=0&&1>=v&&(o[p++]=v)}else if(g>0){var m=Fv(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-zv(-_,Uv):zv(_,Uv),x=0>x?-zv(-x,Uv):zv(x,Uv);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[p++]=d)}else{var w=(2*h*s-3*a*c)/(2*Fv(h*h*h)),b=Math.acos(w)/3,S=Fv(h),M=Math.cos(b),d=(-s-2*S*M)/(3*a),v=(-s+S*(M+Wv*Math.sin(b)))/(3*a),T=(-s+S*(M-Wv*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[p++]=d),v>=0&&1>=v&&(o[p++]=v),T>=0&&1>=T&&(o[p++]=T)}}return p}function he(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(oe(a)){if(ae(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(oe(h))r[0]=-o/(2*a);else if(h>0){var c=Fv(h),u=(-o+c)/(2*a),f=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),f>=0&&1>=f&&(r[l++]=f)}}return l}function ce(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,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function fe(t,e,n,i,r,o,a,s,l,u,h){var c,f,p,d,g,y=.005,v=1/0;Gv[0]=l,Gv[1]=u;for(var m=0;1>m;m+=.05)Yv[0]=se(t,n,r,a,m),Yv[1]=se(e,i,o,s,m),d=Ky(Gv,Yv),v>d&&(c=m,v=d);v=1/0;for(var _=0;32>_&&!(Hv>y);_++)f=c-y,p=c+y,Yv[0]=se(t,n,r,a,f),Yv[1]=se(e,i,o,s,f),d=Ky(Yv,Gv),f>=0&&v>d?(c=f,v=d):(jv[0]=se(t,n,r,a,p),jv[1]=se(e,i,o,s,p),g=Ky(jv,Gv),1>=p&&v>g?(c=p,v=g):y*=.5);return h&&(h[0]=se(t,n,r,a,c),h[1]=se(e,i,o,s,c)),Fv(v)}function pe(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,f=1/l,p=1;l>=p;p++){var d=p*f,g=se(t,n,r,a,d),y=se(e,i,o,s,d),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function de(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ge(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ye(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(oe(o)){if(ae(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(oe(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=Fv(h),u=(-a+c)/(2*o),f=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),f>=0&&1>=f&&(r[l++]=f)}}return l}function ve(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function me(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 _e(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;Gv[0]=a,Gv[1]=s;for(var f=0;1>f;f+=.05){Yv[0]=de(t,n,r,f),Yv[1]=de(e,i,o,f);var p=Ky(Gv,Yv);c>p&&(u=f,c=p)}c=1/0;for(var d=0;32>d&&!(Hv>h);d++){var g=u-h,y=u+h;Yv[0]=de(t,n,r,g),Yv[1]=de(e,i,o,g);var p=Ky(Yv,Gv);if(g>=0&&c>p)u=g,c=p;else{jv[0]=de(t,n,r,y),jv[1]=de(e,i,o,y);var v=Ky(jv,Gv);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=de(t,n,r,u),l[1]=de(e,i,o,u)),Fv(c)}function xe(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var f=c*h,p=de(t,n,r,f),d=de(e,i,o,f),g=p-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=p,l=d}return u}function we(t){var e=t&&Xv.exec(t);if(e){var n=e[1].split(","),i=+H(n[0]),r=+H(n[1]),o=+H(n[2]),a=+H(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:ue(0,i,o,1,t,s)&&se(0,r,a,1,s[0])}}}function be(t){return t=Math.round(t),0>t?0:t>255?255:t}function Se(t){return t=Math.round(t),0>t?0:t>360?360:t}function Me(t){return 0>t?0:t>1?1:t}function Te(t){var e=t;return be(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Ce(t){var e=t;return Me(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Ie(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function De(t,e,n){return t+(e-t)*n}function ke(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ae(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Pe(t,e){tm&&Ae(tm,e),tm=Jv.put(t,tm||e.slice())}function Oe(t,e){if(t){e=e||[];var n=Jv.get(t);if(n)return Ae(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in Qv)return Ae(e,Qv[i]),Pe(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?ke(e,+l[0],+l[1],+l[2],1):ke(e,0,0,0,1);u=Ce(l.pop());case"rgb":return l.length>=3?(ke(e,Te(l[0]),Te(l[1]),Te(l[2]),3===l.length?u:Ce(l[3])),Pe(t,e),e):void ke(e,0,0,0,1);case"hsla":return 4!==l.length?void ke(e,0,0,0,1):(l[3]=Ce(l[3]),Le(l,e),Pe(t,e),e);case"hsl":return 3!==l.length?void ke(e,0,0,0,1):(Le(l,e),Pe(t,e),e);default:return}}ke(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(i.slice(1,4),16);return h>=0&&4095>=h?(ke(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(i.slice(4),16)/15:1),Pe(t,e),e):void ke(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(i.slice(1,7),16);return h>=0&&16777215>=h?(ke(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(i.slice(7),16)/255:1),Pe(t,e),e):void ke(e,0,0,0,1)}}}}function Le(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Ce(t[1]),r=Ce(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],ke(e,be(255*Ie(a,o,n+1/3)),be(255*Ie(a,o,n)),be(255*Ie(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Re(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=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,f=((s-o)/6+l/2)/l;i===s?e=f-c:r===s?e=1/3+h-f:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function Ee(t,e){var n=Oe(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return He(n,4===n.length?"rgba":"rgb")}}function Ne(t){var e=Oe(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Be(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=be(De(a[0],s[0],l)),n[1]=be(De(a[1],s[1],l)),n[2]=be(De(a[2],s[2],l)),n[3]=Me(De(a[3],s[3],l)),n}}function ze(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Oe(e[r]),s=Oe(e[o]),l=i-r,u=He([be(De(a[0],s[0],l)),be(De(a[1],s[1],l)),be(De(a[2],s[2],l)),Me(De(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Fe(t,e,n,i){var r=Oe(t);return t?(r=Re(r),null!=e&&(r[0]=Se(e)),null!=n&&(r[1]=Ce(n)),null!=i&&(r[2]=Ce(i)),He(Le(r),"rgba")):void 0}function Ve(t,e){var n=Oe(t);return n&&null!=e?(n[3]=Me(e),He(n,"rgba")):void 0}function He(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+")"}}function We(t,e){var n=Oe(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Ue(){return He([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Ge(t){return"linear"===t.type}function Ye(t){return"radial"===t.type}function je(t,e,n){return(e-t)*n+t}function Xe(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=je(e[o],n[o],i);return t}function qe(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=je(e[a][s],n[a][s],i)}return t}function Ze(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function Ke(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function $e(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Qe(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){if(o>a)i.length=a;else for(var s=o;a>s;s++)i.push(1===n?r[s]:rm.call(r[s]))}for(var l=i[0]&&i[0].length,s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;l>u;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Je(t){if(p(t)){var e=t.length;if(p(t[0])){for(var n=[],i=0;e>i;i++)n.push(rm.call(t[i]));return n}return rm.call(t)}return t}function tn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function en(t){return p(t&&t[0])?2:1}function nn(t){return t===sm||t===lm}function rn(t){return t===om||t===am}function on(){return(new Date).getTime()}function an(t){var e=t.pointerType;return"pen"===e||"touch"===e}function sn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function ln(t){t&&(t.zrByTouch=!0)}function un(t,e){return kt(t.dom,new vm(t,e),!0)}function hn(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function cn(t,e){var n=e.domHandlers;xy.pointerEventsSupported?d(dm.pointer,function(i){pn(e,i,function(e){n[i].call(t,e)})}):(xy.touchEventsSupported&&d(dm.touch,function(i){pn(e,i,function(r){n[i].call(t,r),sn(e)})}),d(dm.mouse,function(i){pn(e,i,function(r){r=Dt(r),e.touching||n[i].call(t,r)})}))}function fn(t,e){function n(n){function i(i){i=Dt(i),hn(t,i.target)||(i=un(t,i),e.domHandlers[n].call(t,i))}pn(e,n,i,{capture:!0})}xy.pointerEventsSupported?d(gm.pointer,n):xy.touchEventsSupported||d(gm.mouse,n)}function pn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Pt(t.domTarget,e,n,i)}function dn(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Ot(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function gn(t){return t>Dm||-Dm>t}function yn(t,e){for(var n=0;n<Rm.length;n++){var i=Rm[n];t[i]=e[i]}}function vn(t,e){e=e||by;var n=Em[e];n||(n=Em[e]=new $v(500));var i=n.get(t);return null==i&&(i=Cy.measureText(t,e).width,n.put(t,i)),i}function mn(t,e,n,i){var r=vn(t,e),o=bn(e),a=xn(0,r,n),s=wn(0,o,i);return new bv(a,s,r,o)}function _n(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return mn(r[0],e,n,i);for(var o=new bv(0,0,0,0),a=0;a<r.length;a++){var s=mn(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function xn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function wn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function bn(t){return vn("国",t)}function Sn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Mn(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Sn(i[0],n.width),u+=Sn(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Tn(t,e,n,i,r){n=n||{};var o=[];Pn(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},c=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var f=0;f<o.length;f++){var p=o[f];h&&p.done(h),c&&p.aborted(c),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Cn(t,e,n){for(var i=0;n>i;i++)t[i]=e[i]}function In(t){return p(t[0])}function Dn(t,e,n){if(p(e[n]))if(p(t[n])||(t[n]=[]),k(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Cn(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(In(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Cn(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Cn(o,r,a);o.length=r.length}else t[n]=e[n]}function kn(t,e){return t===e||p(t)&&p(e)&&An(t,e)}function An(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function Pn(t,e,n,i,r,o,a,s){for(var l=_(i),u=r.duration,c=r.delay,f=r.additive,d=r.setToFinal,g=!I(o),y=t.animators,m=[],x=0;x<l.length;x++){var w=l[x],b=i[w];if(null!=b&&null!=n[w]&&(g||o[w]))if(!I(b)||p(b)||P(b))m.push(w);else{if(e){s||(n[w]=b,t.updateDuringAnimation(e));continue}Pn(t,w,n[w],b,r,o&&o[w],a,s)}else s||(n[w]=b,t.updateDuringAnimation(e),m.push(w))}var S=m.length;if(!f&&S)for(var M=0;M<y.length;M++){var T=y[M];if(T.targetName===e){var C=T.stopTracks(m);if(C){var D=h(y,T);y.splice(D,1)}}}if(r.force||(m=v(m,function(t){return!kn(i[t],n[t])}),S=m.length),S>0||r.force&&!a.length){var k=void 0,A=void 0,O=void 0;if(s){A={},d&&(k={});for(var M=0;S>M;M++){var w=m[M];A[w]=n[w],d?k[w]=i[w]:n[w]=i[w]}}else if(d){O={};for(var M=0;S>M;M++){var w=m[M];O[w]=Je(n[w]),Dn(n,i,w)}}var T=new cm(n,!1,!1,f?v(y,function(t){return t.targetName===e}):null);T.targetName=e,r.scope&&(T.scope=r.scope),d&&k&&T.whenWithKeys(0,k,m),O&&T.whenWithKeys(0,O,m),T.whenWithKeys(null==u?500:u,s?A:i,m).delay(c||0),t.addAnimator(T,e),a.push(T)}}function On(t){delete Gm[t]}function Ln(t){if(!t)return!1;if("string"==typeof t)return We(t,1)<Mm;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;i>r;r++)n+=We(e[r].color,1);return n/=i,Mm>n}return!1}function Rn(t,e){var n=new Ym(i(),t,e);return Gm[n.id]=n,n}function En(t){t.dispose()}function Nn(){for(var t in Gm)Gm.hasOwnProperty(t)&&Gm[t].dispose();Gm={}}function Bn(t){return Gm[t]}function zn(t,e){Um[t]=e}function Fn(t){return t.replace(/^\s+|\s+$/g,"")}function Vn(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Hn(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 M(t)?Fn(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Wn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),qm),t=(+t).toFixed(e),n?t:+t}function Un(t){return t.sort(function(t,e){return t-e}),t}function Gn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Yn(t)}function Yn(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-i)}function jn(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}function Xn(t,e,n){return t[e]?qn(t,n)[e]||0:0}function qn(t,e){var n=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=g(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=g(r,function(t){return Math.floor(t)}),s=y(a,function(t,e){return t+e},0),l=g(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,f=l.length;f>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return g(a,function(t){return t/i})}function Zn(t,e){var n=Math.max(Gn(t),Gn(e)),i=t+e;return n>qm?i:Wn(i,n)}function Kn(t){var e=2*Math.PI;return(t%e+e)%e}function $n(t){return t>-Xm&&Xm>t}function Qn(t){if(t instanceof Date)return t;if(M(t)){var e=Zm.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]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?NaN:Math.round(t))}function Jn(t){return Math.pow(10,ti(t))}function ti(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ei(t,e){var n,i=ti(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function ni(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function ii(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;2>s;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}function ri(t){var e=parseFloat(t);return e==t&&(0!==e||!M(t)||t.indexOf("x")<=0)?e:NaN}function oi(t){return!isNaN(ri(t))}function ai(){return Math.round(9*Math.random())}function si(t,e){return 0===e?t:si(e,t%e)}function li(t,e){return null==t?e:null==e?t:t*e/si(t,e)}function ui(t){throw new Error(t)}function hi(t,e,n){return(e-t)*n+t}function ci(t){return t instanceof Array?t:null==t?[]:[t]}function fi(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function pi(t){return!I(t)||b(t)||t instanceof Date?t:t.value}function di(t){return I(t)&&!(t instanceof Array)}function gi(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Y();d(e,function(t,n){return I(t)?void 0:void(e[n]=null)});var s=yi(t,a,n);return(i||r)&&vi(s,t,a,e),i&&mi(s,e),i||r?_i(s,e,r):o&&xi(s,e),wi(s),s}function yi(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Ci(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function vi(t,e,n,i){d(i,function(r,o){if(r&&null!=r.id){var a=Si(r.id),s=n.get(a);if(null!=s){var l=t[s];V(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}function mi(t,e){d(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Ci(n)&&!Ci(o)&&bi("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}function _i(t,e,n){d(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Ci(i.existing)||i.existing&&null!=e.id&&!bi("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}function xi(t,e){d(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function wi(t){var e=Y();d(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),d(t,function(t){var n=t.newOption;V(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),d(t,function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(I(r)){if(o.name=null!=r.name?Si(r.name):i?i.name:Km+n,i)o.id=Si(i.id);else if(null!=r.id)o.id=Si(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function bi(t,e,n){var i=Mi(e[t],null),r=Mi(n[t],null);return null!=i&&null!=r&&i===r}function Si(t){return Mi(t,"")}function Mi(t,e){return null==t?e:M(t)?t:C(t)||T(t)?t+"":e}function Ti(t){var e=t.name;return!(!e||!e.indexOf(Km))}function Ci(t){return t&&null!=t.id&&0===Si(t.id).indexOf($m)}function Ii(t,e,n){d(t,function(t){var i=t.newOption;I(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Di(e,i,t.existing,n))})}function Di(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}function ki(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?b(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?b(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Ai(){var t="__ec_inner_"+Jm++;return function(e){return e[t]||(e[t]={})}}function Pi(t,e,n){var i=Oi(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,i){var r=Li(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]}),s}function Oi(t,e){var n;if(M(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Y(),o={},a=!1;return d(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=t);var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&h(e.includeMainTypes,s)<0)){a=a||!!s;(r.get(s)||r.set(s,{}))[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function Li(t,e,n,i){i=i||t_;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(V(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(V(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Ri(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Ei(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Ni(t){return"auto"===t?xy.domSupported?"html":"richText":t||"html"}function Bi(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(C(i)){var a=hi(n||0,i,r);return Wn(a,o?Math.max(Gn(n||0),Gn(i)):e)}if(M(i))return 1>r?n:i;for(var s=[],l=n,u=i,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var f=t.getDimensionInfo(c);if(f&&"ordinal"===f.type)s[c]=(1>r&&l?l:u)[c];else{var p=l&&l[c]?l[c]:0,d=u[c],a=hi(p,d,r);s[c]=Wn(a,o?Math.max(Gn(p),Gn(d)):e)}}return s}function zi(t){var e={main:"",sub:""};if(t){var n=t.split(e_);e.main=n[0]||"",e.sub=n[1]||""}return e}function Fi(t){V(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Vi(t){return!(!t||!t[i_])}function Hi(t){t.$constructor=t,t.extend=function(t){var n,i=this;return Wi(i)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},c(n,this)),l(n.prototype,t),n[i_]=!0,n.extend=this.extend,n.superCall=Gi,n.superApply=Yi,n.superClass=i,n}}function Wi(t){return S(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Ui(t,e){t.extend=e.extend}function Gi(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Yi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ji(t){function e(t){var e=n[t.main];return e&&e[n_]||(e=n[t.main]={},e[n_]=!0),e}var n={};t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){Fi(i),t.prototype.type=i;var r=zi(i);if(r.sub){if(r.sub!==n_){var o=e(r);o[r.sub]=t}}else n[r.main]=t}return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[n_]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var e=zi(t),i=[],r=n[e.main];return r&&r[n_]?d(r,function(t,e){e!==n_&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var e=zi(t);return!!n[e.main]},t.getAllClassMainTypes=function(){var t=[];return d(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var e=zi(t),i=n[e.main];return i&&i[n_]}}function Xi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&h(i,s)>=0||r&&h(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function qi(t){if("string"==typeof t){var e=l_.get(t);return e&&e.image}return t}function Zi(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=l_.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!$i(e)&&o.pending.push(a)):(e=Cy.loadImage(t,Ki,Ki),e.__zrImageSrc=t,l_.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Ki(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function $i(t){return t&&t.width&&t.height}function Qi(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=Ji(e,n,i,r);for(var a=0,s=o.length;s>a;a++)o[a]=tr(o[a],r);return o.join("\n")}function Ji(t,e,n,i){i=i||{};var r=l({},i);r.font=e,n=N(n,"..."),r.maxIterations=N(i.maxIterations,2);var o=r.minChar=N(i.minChar,0);r.cnCharWidth=vn("国",e);var a=r.ascCharWidth=vn("a",e);r.placeholder=N(i.placeholder,"");for(var s=t=Math.max(0,t-1),u=0;o>u&&s>=a;u++)s-=a;var h=vn(n,e);return h>s&&(n="",h=0),s=t-h,r.ellipsis=n,r.ellipsisWidth=h,r.contentWidth=s,r.containerWidth=t,r}function tr(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=vn(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?er(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=vn(t,i)}return""===t&&(t=e.placeholder),t}function er(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function nr(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=bn(o),l=N(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?sr(t,e.font,c,"breakAll"===i,0).lines:[];var f=n.length*l,p=N(e.height,f);if(f>p&&h){var d=Math.floor(p/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=Ji(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=tr(n[y],g);for(var v=p,m=0,y=0;y<n.length;y++)m=Math.max(vn(n[y],o),m);null==c&&(c=m);var _=m;return r&&(v+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),u&&(_=c),{lines:n,height:p,outerWidth:_,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:f,width:c}}function ir(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,f+=n,p=Math.max(p,e)}var i=new f_;if(null!=t&&(t+=""),!t)return i;for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=u_.lastIndex=0;null!=(r=u_.exec(t));){var h=r.index;h>u&&rr(i,t.substring(u,h),e,l),rr(i,r[2],e,l,r[1]),u=u_.lastIndex}u<t.length&&rr(i,t.substring(u,t.length),e,l);var c=[],f=0,p=0,d=e.padding,g="truncate"===s,y="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var m=i.lines[v],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},M=b.textPadding=S.padding,T=M?M[1]+M[3]:0,C=b.font=S.font||e.font;b.contentHeight=bn(C);var I=N(S.height,b.contentHeight);if(b.innerHeight=I,M&&(I+=M[0]+M[2]),b.height=I,b.lineHeight=B(S.lineHeight,e.lineHeight,I),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",y&&null!=a&&f+b.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var D=S.width,k=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))b.percentWidth=D,c.push(b),b.contentWidth=vn(b.text,C);else{if(k){var A=S.backgroundColor,P=A&&A.image;P&&(P=qi(P),$i(P)&&(b.width=Math.max(b.width,P.width*I/P.height)))}var O=g&&null!=o?o-x:null;null!=O&&O<b.width?!k||T>O?(b.text="",b.width=b.contentWidth=0):(b.text=Qi(b.text,O-T,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=vn(b.text,C)):b.contentWidth=vn(b.text,C)}b.width+=T,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}n(m,x,_)}i.outerWidth=i.width=N(o,p),i.outerHeight=i.height=N(a,f),i.contentHeight=f,i.contentWidth=p,d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]);for(var v=0;v<c.length;v++){var b=c[v],L=b.percentWidth;b.width=parseInt(L,10)/100*i.width}return i}function rr(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;if(i){var f=l.padding,p=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var d=Sn(l.width,i.width)+p;u.length>0&&d+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=d}else{var g=sr(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new h_;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,m.width="number"==typeof l.width?l.width:a?a[y]:vn(v,h),y||c)u.push(new c_([m]));else{var _=(u[u.length-1]||(u[0]=new c_)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(v||!x||s)&&_.push(m)}}}function or(t){var e=t.charCodeAt(0);return e>=33&&383>=e}function ar(t){return!or(t)||!!p_[t]}function sr(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var f=t.charAt(c);if("\n"!==f){var p=vn(f,e),d=!i&&!ar(f);(o.length?h+p>n:r+h+p>n)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=f,u+=p,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=f,h=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(h+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function lr(t,e,n){return x_.copy(t.getBoundingRect()),t.transform&&x_.applyTransform(t.transform),w_.width=e,w_.height=n,!x_.intersect(w_)}function ur(t,e,n,i,r,o){r[0]=b_(t,n),r[1]=b_(e,i),o[0]=S_(t,n),o[1]=S_(e,i)}function hr(t,e,n,i,r,o,a,s,l,u){var h=he,c=se,f=h(t,n,r,a,A_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;f>p;p++){var d=c(t,n,r,a,A_[p]);l[0]=b_(d,l[0]),u[0]=S_(d,u[0])}f=h(e,i,o,s,P_);for(var p=0;f>p;p++){var g=c(e,i,o,s,P_[p]);l[1]=b_(g,l[1]),u[1]=S_(g,u[1])}l[0]=b_(t,l[0]),u[0]=S_(t,u[0]),l[0]=b_(a,l[0]),u[0]=S_(a,u[0]),l[1]=b_(e,l[1]),u[1]=S_(e,u[1]),l[1]=b_(s,l[1]),u[1]=S_(s,u[1])}function cr(t,e,n,i,r,o,a,s){var l=ve,u=de,h=S_(b_(l(t,n,r),1),0),c=S_(b_(l(e,i,o),1),0),f=u(t,n,r,h),p=u(e,i,o,c);a[0]=b_(t,r,f),a[1]=b_(e,o,p),s[0]=S_(t,r,f),s[1]=S_(e,o,p)}function fr(t,e,n,i,r,o,a,s,l){var u=yt,h=vt,c=Math.abs(r-o);if(1e-4>c%C_&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(I_[0]=T_(r)*n+t,I_[1]=M_(r)*i+e,D_[0]=T_(o)*n+t,D_[1]=M_(o)*i+e,u(s,I_,D_),h(l,I_,D_),r%=C_,0>r&&(r+=C_),o%=C_,0>o&&(o+=C_),r>o&&!a?o+=C_:o>r&&a&&(r+=C_),a){var f=o;o=r,r=f}for(var p=0;o>p;p+=Math.PI/2)p>r&&(k_[0]=T_(p)*n+t,k_[1]=M_(p)*i+e,u(s,k_,s),h(l,k_,l))}function pr(t){return Math.round(t/G_*1e8)/1e8%2*G_}function dr(t,e){var n=pr(t[0]);0>n&&(n+=Y_);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Y_?r=n+Y_:e&&n-r>=Y_?r=n-Y_:!e&&n>r?r=n+(Y_-pr(n-r)):e&&r>n&&(r=n-(Y_-pr(r-n))),t[0]=n,t[1]=r}function gr(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||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)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 h=l*o-a+u;return s/2*s/2>=h*h/(l*l+1)}function yr(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)&&c/2>=fe(t,e,n,i,r,o,a,s,u,h,null)}function vr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)&&u/2>=_e(t,e,n,i,r,o,s,l,null)}function mr(t){return t%=Z_,0>t&&(t+=Z_),t}function _r(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(i-r)%K_<1e-4)return!0;if(o){var c=i;i=mr(r),r=mr(c)}else i=mr(i),r=mr(r);i>r&&(r+=K_);var f=Math.atan2(l,s);return 0>f&&(f+=K_),f>=i&&r>=f||f+K_>=i&&r>=f+K_}function xr(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function wr(t,e){return Math.abs(t-e)<J_}function br(){var t=ex[0];ex[0]=ex[1],ex[1]=t}function Sr(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=ue(e,i,o,s,u,tx);if(0===h)return 0;for(var c=0,f=-1,p=void 0,d=void 0,g=0;h>g;g++){var y=tx[g],v=0===y||1===y?.5:1;l>se(t,n,r,a,y)||(0>f&&(f=he(e,i,o,s,ex),ex[1]<ex[0]&&f>1&&br(),p=se(e,i,o,s,ex[0]),f>1&&(d=se(e,i,o,s,ex[1]))),c+=2===f?y<ex[0]?e>p?v:-v:y<ex[1]?p>d?v:-v:d>s?v:-v:y<ex[0]?e>p?v:-v:p>s?v:-v)}return c}function Mr(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=ye(e,i,o,s,tx);if(0===l)return 0;var u=ve(e,i,o);if(u>=0&&1>=u){for(var h=0,c=de(e,i,o,u),f=0;l>f;f++){var p=0===tx[f]||1===tx[f]?.5:1,d=de(t,n,r,tx[f]);a>d||(h+=tx[f]<u?e>c?p:-p:c>o?p:-p)}return h}var p=0===tx[0]||1===tx[0]?.5:1,d=de(t,n,r,tx[0]);return a>d?0:e>o?p:-p}function Tr(t,e,n,i,r,o,a,s){if((s-=e)>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);tx[0]=-l,tx[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=Q_-1e-4){i=0,r=Q_;var h=o?1:-1;return a>=tx[0]+t&&a<=tx[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=Q_,r+=Q_);for(var f=0,p=0;2>p;p++){var d=tx[p];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=Q_+g),(g>=i&&r>=g||g+Q_>=i&&r>=g+Q_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),f+=h)}}return f}function Cr(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,f=0,p=0,d=0;l>d;){var g=s[d++],y=1===d;switch(g===$_.M&&d>1&&(n||(u+=xr(h,c,f,p,i,r))),y&&(h=s[d],c=s[d+1],f=h,p=c),g){case $_.M:f=s[d++],p=s[d++],h=f,c=p;break;case $_.L:if(n){if(gr(h,c,s[d],s[d+1],e,i,r))return!0}else u+=xr(h,c,s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case $_.C:if(n){if(yr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=Sr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case $_.Q:if(n){if(vr(h,c,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=Mr(h,c,s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case $_.A:var v=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+v,a=Math.sin(w)*x+m,y?(f=o,p=a):u+=xr(h,c,o,a,i,r);var M=(i-v)*x/_+v;if(n){if(_r(v,m,x,w,w+b,S,e,M,r))return!0}else u+=Tr(v,m,x,w,w+b,S,M,r);h=Math.cos(w+b)*_+v,c=Math.sin(w+b)*x+m;break;case $_.R:f=h=s[d++],p=c=s[d++];var T=s[d++],C=s[d++];if(o=f+T,a=p+C,n){if(gr(f,p,o,p,e,i,r)||gr(o,p,o,a,e,i,r)||gr(o,a,f,a,e,i,r)||gr(f,a,f,p,e,i,r))return!0}else u+=xr(o,p,o,a,i,r),u+=xr(f,a,f,p,i,r);break;case $_.Z:if(n){if(gr(h,c,f,p,e,i,r))return!0}else u+=xr(h,c,f,p,i,r);h=f,c=p}}return n||wr(c,p)||(u+=xr(h,c,f,p,i,r)||0),0!==u}function Ir(t,e,n){return Cr(t,0,!1,e,n)}function Dr(t,e,n,i){return Cr(t,e,!0,n,i)}function kr(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Ar(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function Pr(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(cx(2*i)===cx(2*r)&&(t.x1=t.x2=Lr(i,s,!0)),cx(2*o)===cx(2*a)&&(t.y1=t.y2=Lr(o,s,!0)),t):t}}function Or(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Lr(i,s,!0),t.y=Lr(r,s,!0),t.width=Math.max(Lr(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Lr(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Lr(t,e,n){if(!e)return t;var i=cx(2*t);return(i+cx(e))%2==0?i/2:(i+(n?1:-1))/2}function Rr(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?wy+"px":t+"px":t}function Er(t,e){for(var n=0;n<xx.length;n++){var i=xx[n],r=e[i];null!=r&&(t[i]=r)}}function Nr(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Br(t){return zr(t),d(t.rich,zr),t}function zr(t){if(t){t.font=vx.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||mx[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||_x[n]?n:"top";t.padding&&(t.padding=F(t.padding))}}function Fr(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Vr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hr(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Wr(t){var e=t.text;return null!=e&&(e+=""),e}function Ur(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Gr(t){return null!=t&&"none"!==t}function Yr(t){if(M(t)){var e=Vx.get(t);return e||(e=Ee(t,-.1),Vx.put(t,e)),e}if(P(t)){var n=l({},t);return n.colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:Ee(t.color,-.1)}}),n}return t}function jr(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Xr(t){jr(t,"emphasis",Ax)}function qr(t){t.hoverState===Ax&&jr(t,"normal",Dx)}function Zr(t){jr(t,"blur",kx)}function Kr(t){t.hoverState===kx&&jr(t,"normal",Dx)}function $r(t){t.selected=!0}function Qr(t){t.selected=!1}function Jr(t,e,n){e(t,n)}function to(t,e,n){Jr(t,e,n),t.isGroup&&t.traverse(function(t){Jr(t,e,n)})}function eo(t,e){switch(e){case"emphasis":t.hoverState=Ax;break;case"normal":t.hoverState=Dx;break;case"blur":t.hoverState=kx;break;case"select":t.selected=!0}}function no(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function io(t,e,n,i){var r=n&&h(n,"select")>=0,o=!1;if(t instanceof ox){var a=Cx(t),s=r?a.selectFill||a.normalFill:a.normalFill,u=r?a.selectStroke||a.normalStroke:a.normalStroke;if(Gr(s)||Gr(u)){i=i||{};var c=i.style||{};"inherit"===c.fill?(o=!0,i=l({},i),c=l({},c),c.fill=s):!Gr(c.fill)&&Gr(s)?(o=!0,i=l({},i),c=l({},c),c.fill=Yr(s)):!Gr(c.stroke)&&Gr(u)&&(o||(i=l({},i),c=l({},c)),c.stroke=Yr(u)),i.style=c}}if(i&&null==i.z2){o||(i=l({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(null!=f?f:Lx)}return i}function ro(t,e,n){if(n&&null==n.z2){n=l({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Rx)}return n}function oo(t,e,n){var i=h(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:no(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=l({},n),a=l({opacity:i?r:.1*o.opacity},a),n.style=a),n}function ao(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return io(this,t,e,n);if("blur"===t)return oo(this,t,n);if("select"===t)return ro(this,t,n)}return n}function so(t){t.stateProxy=ao;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ao),n&&(n.stateProxy=ao)}function lo(t,e){!vo(t,e)&&!t.__highByOuter&&to(t,Xr)}function uo(t,e){!vo(t,e)&&!t.__highByOuter&&to(t,qr)}function ho(t,e){t.__highByOuter|=1<<(e||0),to(t,Xr)}function co(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&to(t,qr)}function fo(t){to(t,Zr)}function po(t){to(t,Kr)}function go(t){to(t,$r)}function yo(t){to(t,Qr)}function vo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function mo(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Ix(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){Kr(t)}),a&&n.push(r)),o.isBlured=!1}),d(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function _o(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&po(i)}}var o=i.getModel();if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!h||"series"===e&&o)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){Zr(t)}),p(e))r(t.getData(),e);else if(I(e))for(var c=_(e),f=0;f<c.length;f++)r(t.getData(c[f]),e[c[f]]);l.push(t),Ix(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}})}}function xo(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Ix(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Zr(t)})}}}function wo(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=ki(r,e);o=(b(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&s>l;)a=r.getItemGraphicEl(l++);if(a){var u=bx(a);_o(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&_o(i,h,c,n)}}}function bo(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===bx(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function So(t,e,n){var i=bx(t),r=bo(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&xo(i.componentMainType,i.componentIndex,n),d(o,function(t){return lo(t,e)})):(_o(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&xo(i.componentMainType,i.componentIndex,n),lo(t,e))}function Mo(t,e,n){mo(n);var i=bx(t),r=bo(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?d(r,function(t){return uo(t,e)}):uo(t,e)}function To(t,e){if(No(e)){var n=e.dataType,i=t.getData(n),r=ki(i,e);b(r)||(r=[r]),t[e.type===Fx?"toggleSelect":e.type===Bx?"select":"unselect"](r,n)}}function Co(t){d(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?go(e):yo(e)})})}function Io(t){var e=[];return t.eachSeries(function(t){d(t.getAllData(),function(n){var i=(n.data,n.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Do(t,e,n){Lo(t,!0),to(t,so),Po(t,e,n)}function ko(t){Lo(t,!1)}function Ao(t,e,n,i){i?ko(t):Do(t,e,n)}function Po(t,e,n){var i=bx(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}function Oo(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Hx.length;r++){var o=Hx[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Wx[n]]()}}function Lo(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Ro(t){return!(!t||!t.__highDownDispatcher)}function Eo(t){var e=Tx[t];return null==e&&32>=Mx&&(e=Tx[t]=Mx++),e}function No(t){var e=t.type;return e===Bx||e===zx||e===Fx}function Bo(t){var e=t.type;return e===Ex||e===Nx}function zo(t){var e=Cx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function Fo(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=Ux.M,c=Ux.C,f=Ux.L,p=Ux.R,d=Ux.A,g=Ux.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case h:case f:i=1;break;case c:i=3;break;case g:i=2;break;case d:var y=e[4],v=e[5],m=Yx(e[0]*e[0]+e[1]*e[1]),_=Yx(e[2]*e[2]+e[3]*e[3]),x=jx(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=_,l[r++]+=v,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var w=Gx[a];w[0]=l[r++],w[1]=l[r++],gt(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function Vo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ho(t,e){return(t[0]*e[0]+t[1]*e[1])/(Vo(t)*Vo(e))}function Wo(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ho(t,e))}function Uo(t,e,n,i,r,o,a,s,l,u,h){var c=l*(Kx/180),f=Zx(c)*(t-n)/2+qx(c)*(e-i)/2,p=-1*qx(c)*(t-n)/2+Zx(c)*(e-i)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=Xx(d),s*=Xx(d));var g=(r===o?-1:1)*Xx((a*a*s*s-a*a*p*p-s*s*f*f)/(a*a*p*p+s*s*f*f))||0,y=g*a*p/s,v=g*-s*f/a,m=(t+n)/2+Zx(c)*y-qx(c)*v,_=(e+i)/2+qx(c)*y+Zx(c)*v,x=Wo([1,0],[(f-y)/a,(p-v)/s]),w=[(f-y)/a,(p-v)/s],b=[(-1*f-y)/a,(-1*p-v)/s],S=Wo(w,b);if(Ho(w,b)<=-1&&(S=Kx),Ho(w,b)>=1&&(S=0),0>S){var M=Math.round(S/Kx*1e6)/1e6;S=2*Kx+M%2*Kx}h.addData(u,m,_,a,s,x,S,c,o)}function Go(t){var e=new q_;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=q_.CMD,l=t.match($x);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),f=void 0,p=h.match(Qx)||[],d=p.length,g=0;d>g;g++)p[g]=parseFloat(p[g]);for(var y=0;d>y;){var v=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=i,T=r,C=void 0,I=void 0;switch(c){case"l":i+=p[y++],r+=p[y++],f=s.L,e.addData(f,i,r);break;case"L":i=p[y++],r=p[y++],f=s.L,e.addData(f,i,r);break;case"m":i+=p[y++],r+=p[y++],f=s.M,e.addData(f,i,r),o=i,a=r,c="l";break;case"M":i=p[y++],r=p[y++],f=s.M,e.addData(f,i,r),o=i,a=r,c="L";break;case"h":i+=p[y++],f=s.L,e.addData(f,i,r);break;case"H":i=p[y++],f=s.L,e.addData(f,i,r);break;case"v":r+=p[y++],f=s.L,e.addData(f,i,r);break;case"V":r=p[y++],f=s.L,e.addData(f,i,r);break;case"C":f=s.C,e.addData(f,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),i=p[y-2],r=p[y-1];break;case"c":f=s.C,e.addData(f,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r),i+=p[y-2],r+=p[y-1];break;case"S":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),f=s.C,M=p[y++],T=p[y++],i=p[y++],r=p[y++],e.addData(f,v,m,M,T,i,r);break;case"s":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),f=s.C,M=i+p[y++],T=r+p[y++],i+=p[y++],r+=p[y++],e.addData(f,v,m,M,T,i,r);break;case"Q":M=p[y++],T=p[y++],i=p[y++],r=p[y++],f=s.Q,e.addData(f,M,T,i,r);break;case"q":M=p[y++]+i,T=p[y++]+r,i+=p[y++],r+=p[y++],f=s.Q,e.addData(f,M,T,i,r);break;case"T":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i=p[y++],r=p[y++],f=s.Q,e.addData(f,v,m,i,r);break;case"t":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i+=p[y++],r+=p[y++],f=s.Q,e.addData(f,v,m,i,r);break;case"A":_=p[y++],x=p[y++],w=p[y++],b=p[y++],S=p[y++],M=i,T=r,i=p[y++],r=p[y++],f=s.A,Uo(M,T,i,r,b,S,_,x,w,f,e);break;case"a":_=p[y++],x=p[y++],w=p[y++],b=p[y++],S=p[y++],M=i,T=r,i+=p[y++],r+=p[y++],f=s.A,Uo(M,T,i,r,b,S,_,x,w,f,e)}}("z"===c||"Z"===c)&&(f=s.Z,e.addData(f),i=o,r=a),n=f}return e.toStatic(),e}function Yo(t){return null!=t.setData}function jo(t,e){var n=Go(t),i=l({},e);return i.buildPath=function(t){if(Yo(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){Fo(n,t),this.dirtyShape()},i}function Xo(t,e){return new Jx(jo(t,e))}function qo(t,n){var i=jo(t,n);return function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(Jx)}function Zo(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new ox(e);return a.createPathProxy(),a.buildPath=function(t){if(Yo(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Ko(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,f=c*l-h*u;return dw>f*f?void 0:(f=(h*(e-o)-c*(t-r))/f,[t+f*l,e+f*u])}function $o(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/cw(s*s+l*l),h=u*l,c=-u*s,f=t+h,p=e+c,d=n+h,g=i+c,y=(f+d)/2,v=(p+g)/2,m=d-f,_=g-p,x=m*m+_*_,w=r-o,b=f*g-d*p,S=(0>_?-1:1)*cw(fw(0,w*w*x-b*b)),M=(b*_-m*S)/x,T=(-b*m-_*S)/x,C=(b*_+m*S)/x,I=(-b*m+_*S)/x,D=M-y,k=T-v,A=C-y,P=I-v;return D*D+k*k>A*A+P*P&&(M=C,T=I),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/w-1),y1:T*(r/w-1)}}function Qo(t){var e;if(b(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Jo(t,e){var n,i=fw(e.r,0),r=fw(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,f=!!e.clockwise,p=hw(u-l),d=p>ow&&p%ow;if(d>dw&&(p=d),i>dw)if(p>ow-dw)t.moveTo(h+i*sw(l),c+i*aw(l)),t.arc(h,c,i,l,u,!f),r>dw&&(t.moveTo(h+r*sw(u),c+r*aw(u)),t.arc(h,c,r,u,l,f));else{var g=void 0,y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,I=void 0,D=void 0,k=void 0,A=void 0,P=i*sw(l),O=i*aw(l),L=r*sw(u),R=r*aw(u),E=p>dw;if(E){var N=e.cornerRadius;N&&(n=Qo(N),g=n[0],y=n[1],v=n[2],m=n[3]);var B=hw(i-r)/2;if(_=pw(B,v),x=pw(B,m),w=pw(B,g),b=pw(B,y),T=S=fw(_,x),C=M=fw(w,b),(S>dw||M>dw)&&(I=i*sw(u),D=i*aw(u),k=r*sw(l),A=r*aw(l),rw>p)){var z=Ko(P,O,k,A,I,D,L,R);if(z){var F=P-z[0],V=O-z[1],H=I-z[0],W=D-z[1],U=1/aw(lw((F*H+V*W)/(cw(F*F+V*V)*cw(H*H+W*W)))/2),G=cw(z[0]*z[0]+z[1]*z[1]);T=pw(S,(i-G)/(U+1)),C=pw(M,(r-G)/(U-1))}}}if(E)if(T>dw){var Y=pw(v,T),j=pw(m,T),X=$o(k,A,P,O,i,Y,f),q=$o(I,D,L,R,i,j,f);t.moveTo(h+X.cx+X.x0,c+X.cy+X.y0),S>T&&Y===j?t.arc(h+X.cx,c+X.cy,T,uw(X.y0,X.x0),uw(q.y0,q.x0),!f):(Y>0&&t.arc(h+X.cx,c+X.cy,Y,uw(X.y0,X.x0),uw(X.y1,X.x1),!f),t.arc(h,c,i,uw(X.cy+X.y1,X.cx+X.x1),uw(q.cy+q.y1,q.cx+q.x1),!f),j>0&&t.arc(h+q.cx,c+q.cy,j,uw(q.y1,q.x1),uw(q.y0,q.x0),!f))}else t.moveTo(h+P,c+O),t.arc(h,c,i,l,u,!f);else t.moveTo(h+P,c+O);if(r>dw&&E)if(C>dw){var Y=pw(g,C),j=pw(y,C),X=$o(L,R,I,D,r,-j,f),q=$o(P,O,k,A,r,-Y,f);t.lineTo(h+X.cx+X.x0,c+X.cy+X.y0),M>C&&Y===j?t.arc(h+X.cx,c+X.cy,C,uw(X.y0,X.x0),uw(q.y0,q.x0),!f):(j>0&&t.arc(h+X.cx,c+X.cy,j,uw(X.y0,X.x0),uw(X.y1,X.x1),!f),t.arc(h,c,r,uw(X.cy+X.y1,X.cx+X.x1),uw(q.cy+q.y1,q.cx+q.x1),f),Y>0&&t.arc(h+q.cx,c+q.cy,Y,uw(q.y1,q.x1),uw(q.y0,q.x0),!f))}else t.lineTo(h+L,c+R),t.arc(h,c,r,u,l,f);else t.lineTo(h+L,c+R)}else t.moveTo(h,c);t.closePath()}}}function ta(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;p>f;f++)yt(a,a,t[f]),vt(s,s,t[f]);yt(a,a,i[0]),vt(s,s,i[1])}for(var f=0,p=t.length;p>f;f++){var d=t[f];if(n)r=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(J(t[f]));continue}r=t[f-1],o=t[f+1]}it(u,o,r),ut(u,u,e);var g=ct(d,r),y=ct(d,o),v=g+y;0!==v&&(g/=v,y/=v),ut(h,u,-g),ut(c,u,y);var m=et([],d,h),_=et([],d,c);i&&(vt(m,m,a),yt(m,m,s),vt(_,_,a),yt(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function ea(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=ta(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function na(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?le:se)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?le:se)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ge:de)(t.x1,t.cpx1,t.x2,e),(n?ge:de)(t.y1,t.cpy1,t.y2,e)]}function ia(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=N(i.duration,200),h=N(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),S(c)&&(c=c(n,r)),S(u)&&(u=u(n));return{duration:u||0,delay:c,easing:h}}return null}function ra(t,e,n,i,r,o,a){var s,l=!1;S(r)?(a=o,o=r,r=null):I(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=ia(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,f=h.delay,p=h.easing,d={duration:c,delay:f||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function oa(t,e,n,i,r,o){ra("update",t,e,n,i,r,o)}function aa(t,e,n,i,r,o){ra("enter",t,e,n,i,r,o)}function sa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function la(t,e,n,i,r,o){sa(t)||ra("leave",t,e,n,i,r,o)}function ua(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),la(t,{style:{opacity:0}},e,n,i)}function ha(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||ua(t,e,n,i)}):ua(t,e,n,i)}function ca(t){Ww(t).oldStyle=t.style}function fa(t){return ox.extend(t)}function pa(t,e){return jw(t,e)}function da(t,e){Yw[t]=e}function ga(t){return Yw.hasOwnProperty(t)?Yw[t]:void 0}function ya(t,e,n,i){var r=Xo(t,e);return n&&("center"===i&&(n=ma(n,r.getBoundingRect())),_a(r,n)),r}function va(t,e,n){var i=new hx({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(ma(e,r))}}});return i}function ma(t,e){var n,i=e.width/e.height,r=t.height*i;return r<=t.width?n=t.height:(r=t.width,n=r/i),{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}function _a(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function xa(t,e){return Pr(t,t,{lineWidth:e}),t}function wa(t){return Or(t.shape,t.shape,t.style),t}function ba(t,e){for(var n=Nt([]);t&&t!==e;)zt(n,t.getLocalTransform(),n),t=t.parent;return n}function Sa(t,e,n){return e&&!p(e)&&(e=Lm.getLocalTransform(e)),n&&(e=Wt([],e)),gt([],t,e)}function Ma(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=Sa(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ta(t){return!t.isGroup}function Ca(t){return null!=t.shape}function Ia(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ca(t)&&(e.shape=l({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){Ta(t)&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(Ta(t)&&t.anid){var e=r[t.anid];if(e){var o=i(t);t.attr(i(e)),oa(t,o,n,bx(t).dataIndex)}}})}}function Da(t,e){return g(t,function(t){var n=t[0];n=Uw(n,e.x),n=Gw(n,e.x+e.width);var i=t[1];return i=Uw(i,e.y),i=Gw(i,e.y+e.height),[n,i]})}function ka(t,e){var n=Uw(t.x,e.x),i=Gw(t.x+t.width,e.x+e.width),r=Uw(t.y,e.y),o=Gw(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function Aa(t,e,n){var i=l({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),u(r,n),new hx(i)):ya(t.replace("path://",""),i,n,"center"):void 0}function Pa(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Oa(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Oa(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,f=La(h,c,l,u);if(Ra(f))return!1;var p=t-r,d=e-o,g=La(p,d,l,u)/f;if(0>g||g>1)return!1;var y=La(p,d,h,c)/f;return!(0>y||y>1)}function La(t,e,n,i){return t*i-n*e}function Ra(t){return 1e-6>=t&&t>=-1e-6}function Ea(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=M(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&d(_(l),function(t){Z(s,t)||(s[t]=l[t],s.$vars.push(t))});var h=bx(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:i,option:u({content:i,formatterParams:s},r)}}function Na(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ba(t,e){if(t)if(b(t))for(var n=0;n<t.length;n++)Na(t[n],e);else Na(t,e)}function za(t,e){for(var n=0;n<Px.length;n++){var i=Px[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Fa(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=S(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Px.length;u++){var h=Px[u],c=e[h];l[h]=N(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function Va(t,e,n,i){n=n||Kw;for(var r=t instanceof vx,o=!1,a=0;a<Ox.length;a++){var s=e[Ox[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new vx,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Fa(n,e),h=e.normal,c=!!h.getShallow("show"),f=Wa(h,i&&i.normal,n,!1,!r);f.text=u.normal,r||t.setTextConfig(Ua(h,n,!1));for(var a=0;a<Px.length;a++){var p=Px[a],s=e[p];if(s){var d=l.ensureState(p),g=!!N(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Wa(s,i&&i[p],n,!0,!r),d.style.text=u[p],!r){t.ensureState(p).textConfig=Ua(s,n,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!c,l.useStyle(f),l.dirty(),n.enableTextSetter&&(tb(l).setLabelText=function(t){var i=Fa(n,e,t);za(l,i)})}else l&&(l.ignore=!0);t.dirty()}function Ha(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Px.length;i++){var r=Px[i];n[r]=t.getModel([r,e])}return n}function Wa(t,e,n,i,r){var o={};return Ga(o,t,n,i,r),e&&l(o,e),o}function Ua(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=N(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Ga(t,e,n,i,r){n=n||Kw;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Ya(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);ja(o[u]={},h,s,n,i,r,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var f=e.get("minMargin");null!=f&&(t.margin=f),ja(t,e,s,n,i,r,!0,!1)}function Ya(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Kw).rich;if(n){e=e||{};for(var i=_(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}function ja(t,e,n,i,r,o,a,s){n=!r&&n||Kw;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=N(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===h||"auto"===h)&&(h=l||null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var f=N(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var p=N(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var d=N(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=c||s||(c=i&&i.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<$w.length;g++){var y=$w[g],v=N(e.getShallow(y),n[y]);null!=v&&(t[y]=v)}for(var g=0;g<Qw.length;g++){var y=Qw[g],v=e.getShallow(y);null!=v&&(t[y]=v)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<Jw.length;g++){var y=Jw[g],v=e.getShallow(y);null!=v&&(t[y]=v)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Xa(t,e){var n=e&&e.getModel("textStyle");return H([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(" "))}function qa(t,e,n,i,r){function o(i){var o=Bi(n,a.precision,l,u,i);a.interpolatedValue=1===i?null:o;var h=Fa({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);za(t,h)}var a=tb(t);if(a.valueAnimation&&a.prevValue!==a.value){var s=a.defaultInterpolatedText,l=N(a.interpolatedValue,a.prevValue),u=a.value;t.percent=0,(null==a.prevValue?aa:oa)(t,{percent:1},i,e,null,o)}}function Za(t){return[t||"",fb++].join("_")}function Ka(t,e){t=t.toUpperCase(),_b[t]=new cb(e),mb[t]=e}function $a(t){if(M(t)){var e=mb[t.toUpperCase()]||{};return t===gb||t===yb?o(e):a(o(e),o(mb[vb]),!1)}return a(o(t),o(mb[vb]),!1)}function Qa(t){return _b[t]}function Ja(){return _b[vb]}function ts(t,e){return t+="","0000".substr(0,e-t.length)+t}function es(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ns(t){return t===es(t)}function is(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function rs(t,e,n,i){var r=Qn(t),o=r[ls(n)](),a=r[us(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[hs(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[cs(n)](),c=(h-1)%12+1,f=r[fs(n)](),p=r[ps(n)](),d=r[ds(n)](),g=i instanceof cb?i:Qa(i||xb)||Ja(),y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),_=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ts(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ts(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ts(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ts(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ts(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,ts(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ts(d,3)).replace(/{S}/g,d+"")}function os(t,e,n,i,r){var o=null;if(M(n))o=n;else if(S(n))o=n(t.value,e,{level:t.level});else{var a=l({},Cb);if(t.level>0)for(var s=0;s<kb.length;++s)a[kb[s]]="{primary|"+a[kb[s]]+"}";var h=n?!1===n.inherit?n:u(n,a):a,c=as(t.value,r);if(h[c])o=h[c];else if(h.inherit){for(var f=Ab.indexOf(c),s=f-1;s>=0;--s)if(h[c]){o=h[c];break}o=o||a.none}if(b(o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;p=Math.min(p,o.length-1),o=o[p]}}return rs(new Date(t.value),o,r,i)}function as(t,e){var n=Qn(t),i=n[us(e)]()+1,r=n[hs(e)](),o=n[cs(e)](),a=n[fs(e)](),s=n[ps(e)](),l=n[ds(e)](),u=0===l,h=u&&0===s,c=h&&0===a,f=c&&0===o,p=f&&1===r;return p&&1===i?"year":p?"month":f?"day":c?"hour":h?"minute":u?"second":"millisecond"}function ss(t,e,n){var i=C(t)?Qn(t):t;switch(e=e||as(t,n)){case"year":return i[ls(n)]();case"half-year":return i[us(n)]()>=6?1:0;case"quarter":return Math.floor((i[us(n)]()+1)/4);case"month":return i[us(n)]();case"day":return i[hs(n)]();case"half-day":return i[cs(n)]()/24;case"hour":return i[cs(n)]();case"minute":return i[fs(n)]();case"second":return i[ps(n)]();case"millisecond":return i[ds(n)]()}}function ls(t){return t?"getUTCFullYear":"getFullYear"}function us(t){return t?"getUTCMonth":"getMonth"}function hs(t){return t?"getUTCDate":"getDate"}function cs(t){return t?"getUTCHours":"getHours"}function fs(t){return t?"getUTCMinutes":"getMinutes"}function ps(t){return t?"getUTCSeconds":"getSeconds"}function ds(t){return t?"getUTCMilliseconds":"getMilliseconds"}function gs(t){return t?"setUTCFullYear":"setFullYear"}function ys(t){return t?"setUTCMonth":"setMonth"}function vs(t){return t?"setUTCDate":"setDate"}function ms(t){return t?"setUTCHours":"setHours"}function _s(t){return t?"setUTCMinutes":"setMinutes"}function xs(t){return t?"setUTCSeconds":"setSeconds"}function ws(t){return t?"setUTCMilliseconds":"setMilliseconds"}function bs(t,e,n,i,r,o,a,s){return new vx({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function Ss(t){if(!oi(t))return M(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ms(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}function Ts(t,e,n){function i(t){return t&&H(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Qn(t):t;if(!isNaN(+s))return rs(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return T(t)?i(t):C(t)&&r(t)?t+"":"-";var l=ri(t);return r(l)?Ss(l):T(t)?i(t):"boolean"==typeof t?t+"":"-"}function Cs(t,e,n){b(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Ob[o];t=t.replace(Lb(a),Lb(a,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Lb(Ob[l],s),n?Tt(u):u)}return t}function Is(t,e){var n=M(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Tt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Tt(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Ds(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=Qn(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t=t.replace("MM",ts(a,2)).replace("M",a).replace("yyyy",o).replace("yy",ts(o%100+"",2)).replace("dd",ts(s,2)).replace("d",s).replace("hh",ts(l,2)).replace("h",l).replace("mm",ts(u,2)).replace("m",u).replace("ss",ts(h,2)).replace("s",h).replace("SSS",ts(c,3))}function ks(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function As(t,e){return e=e||"transparent",M(t)?t:I(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function Ps(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 h,c,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);h=o+g,h>i||l.newline?(o=0,h=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(d?-d.y+f.y:0);c=a+y,c>r||l.newline?(o+=s+n,a=0,c=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function Os(t,e,n){n=Pb(n||0);var i=e.width,r=e.height,o=Hn(t.left,i),a=Hn(t.top,r),s=Hn(t.right,i),l=Hn(t.bottom,r),u=Hn(t.width,i),h=Hn(t.height,r),c=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-f-o),isNaN(h)&&(h=r-l-c-a),null!=p&&(isNaN(u)&&isNaN(h)&&(p>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(o)&&(o=i-s-u-f),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-f}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-f-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new bv(o+n[3],a+n[0],u,h);return d.margin=n,d}function Ls(t){var e=t.layoutMode||t.constructor.layoutMode;return I(e)?e:e?{type:e}:null}function Rs(t,e,n){function i(n,i){var a={},l=0,u={},h=0;if(Rb(n,function(e){u[e]=t[e]}),Rb(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&l){if(l>=2)return a;for(var c=0;c<n.length;c++){var f=n[c];if(!r(a,f)&&r(t,f)){a[f]=t[f];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){Rb(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize;!b(s)&&(s=[s,s]);var l=i(Nb[0],0),u=i(Nb[1],1);a(Nb[0],t,l),a(Nb[1],t,u)}function Es(t){return Ns({},t)}function Ns(t,e){return e&&t&&Rb(Eb,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Bs(t){var e=[];return d(zb.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return zi(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e}function zs(t){tS(t).datasetMap=Y()}function Fs(t,e,n){function i(t,e,n){for(var i=0;n>i;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Vs(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,f=tS(c).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),d(t,function(e,n){var i=I(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var g=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});return d(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=g.valueWayDim;i(o[n],l,a),i(h,l,a),g.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=g.categoryWayDim;i(o[n],l,a),i(h,l,a),g.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function Vs(t){return t.get("data",!0)?void 0:Li(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},t_).models[0]}function Hs(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Li(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},t_).models:[]}function Ws(t,e){return Us(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Us(t,e,n,i,r,o){function a(t){var e=M(t);return null!=t&&isFinite(t)&&""!==t?e?Jb.Might:Jb.Not:e&&"-"!==t?Jb.Must:void 0}var s;if(k(t))return Jb.Not;var l,u;if(i){var h=i[o];I(h)?(l=h.name,u=h.type):M(h)&&(l=h)}if(null!=u)return"ordinal"===u?Jb.Must:Jb.Not;if(e===jb){var c=t;if(n===Qb){for(var f=c[o],p=0;p<(f||[]).length&&5>p;p++)if(null!=(s=a(f[r+p])))return s}else for(var p=0;p<c.length&&5>p;p++){var d=c[r+p];if(d&&null!=(s=a(d[o])))return s}}else if(e===Xb){var g=t;if(!l)return Jb.Not;for(var p=0;p<g.length&&5>p;p++){var y=g[p];if(y&&null!=(s=a(y[l])))return s}}else if(e===qb){var v=t;if(!l)return Jb.Not;var f=v[l];if(!f||k(f))return Jb.Not;for(var p=0;p<f.length&&5>p;p++)if(null!=(s=a(f[p])))return s}else if(e===Yb)for(var m=t,p=0;p<m.length&&5>p;p++){var y=m[p],_=pi(y);if(!b(_))return Jb.Not;if(null!=(s=a(_[o])))return s}return Jb.Not}function Gs(t,e,n){var i=eS.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function Ys(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function js(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?Ys(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Xs(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function qs(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Zs(t,e){var n=t.color&&!t.colorLayer;d(e,function(e,i){"colorLayer"===i&&n||zb.hasClass(i)||("object"==typeof e?t[i]=t[i]?a(t[i],e,!1):o(e):null==t[i]&&(t[i]=e))})}function Ks(t,e,n){if(b(e)){var i=Y();return d(e,function(t){if(null!=t){null!=Mi(t,null)&&i.set(t,!0)}}),v(n,function(e){return e&&i.get(e[t])})}var r=Mi(e,null);return v(n,function(e){return e&&null!=r&&e[t]===r})}function $s(t,e){return e.hasOwnProperty("subType")?v(t,function(t){return t&&t.subType===e.subType}):t}function Qs(t){var e=Y();return t&&d(ci(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Js(t,e,n){function i(t){d(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,f=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((f||c)&&(t.options=t.media=null),o=t),c&&b(h)&&d(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),d(u,function(t){return i(t)}),d(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function tl(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return d(t,function(t,e){var n=e.match(yS);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();el(i[a],t,o)||(r=!1)}}),r}function el(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function nl(t,e){return t.join(",")===e.join(",")}function il(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=xS.length;i>n;n++){var r=xS[n],o=e.normal,s=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?a(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?a(t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function rl(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,u(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function ol(t){rl(t,"itemStyle"),rl(t,"lineStyle"),rl(t,"areaStyle"),rl(t,"label"),rl(t,"labelLine"),rl(t,"upperLabel"),rl(t,"edgeLabel")}function al(t,e){var n=_S(t)&&t[e],i=_S(n)&&n.textStyle;if(i)for(var r=0,o=Qm.length;o>r;r++){var a=Qm[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function sl(t){t&&(ol(t),al(t,"label"),t.emphasis&&al(t.emphasis,"label"))}function ll(t){if(_S(t)){il(t),ol(t),al(t,"label"),al(t,"upperLabel"),al(t,"edgeLabel"),t.emphasis&&(al(t.emphasis,"label"),al(t.emphasis,"upperLabel"),al(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(il(e),sl(e));var n=t.markLine;n&&(il(n),sl(n));var i=t.markArea;i&&sl(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!k(o))for(var a=0;a<o.length;a++)sl(o[a]);d(t.categories,function(t){ol(t)})}if(r&&!k(r))for(var a=0;a<r.length;a++)sl(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)sl(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)b(l[a])?(sl(l[a][0]),sl(l[a][1])):sl(l[a]);"gauge"===t.type?(al(t,"axisLabel"),al(t,"title"),al(t,"detail")):"treemap"===t.type?(rl(t.breadcrumb,"itemStyle"),d(t.levels,function(t){ol(t)})):"tree"===t.type&&ol(t.leaves)}}function ul(t){return b(t)?t:t?[t]:[]}function hl(t){return(b(t)?t[0]:t)||{}}function cl(t,e){mS(ul(t.series),function(t){_S(t)&&ll(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),mS(n,function(e){mS(ul(t[e]),function(t){t&&(al(t,"axisLabel"),al(t.axisPointer,"label"))})}),mS(ul(t.parallel),function(t){var e=t&&t.parallelAxisDefault;al(e,"axisLabel"),al(e&&e.axisPointer,"label")}),mS(ul(t.calendar),function(t){rl(t,"itemStyle"),al(t,"dayLabel"),al(t,"monthLabel"),al(t,"yearLabel")}),mS(ul(t.radar),function(t){al(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),mS(ul(t.geo),function(t){_S(t)&&(sl(t),mS(ul(t.regions),function(t){sl(t)}))}),mS(ul(t.timeline),function(t){sl(t),rl(t,"label"),rl(t,"itemStyle"),rl(t,"controlStyle",!0);var e=t.data;b(e)&&d(e,function(t){I(t)&&(rl(t,"label"),rl(t,"itemStyle"))})}),mS(ul(t.toolbox),function(t){rl(t,"iconStyle"),mS(t.feature,function(t){rl(t,"iconStyle")})}),al(hl(t.axisPointer),"label"),al(hl(t.tooltip).axisPointer,"label")}function fl(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}function pl(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function dl(t){t&&d(wS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function gl(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<SS.length;n++){var i=SS[n][1],r=SS[n][0];null!=e[i]&&(e[r]=e[i])}}function yl(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function vl(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ml(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function _l(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&_l(t[n].children,e)}function xl(t,e){cl(t,e),t.series=ci(t.series),d(t.series,function(t){if(I(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),yl(t.label);var n=t.data;if(n&&!k(n))for(var i=0;i<n.length;i++)yl(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=fl(t,"pointer.color");null!=r&&pl(t,"itemStyle.color",r)}else if("bar"===e){gl(t),gl(t.backgroundStyle),gl(t.emphasis);var n=t.data;if(n&&!k(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(gl(n[i]),gl(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),vl(t),_l(t.data,vl)}else"graph"===e||"sankey"===e?ml(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&u(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),dl(t)}}),t.dataRange&&(t.visualMap=t.dataRange),d(bS,function(e){var n=t[e];n&&(b(n)||(n=[n]),d(n,function(t){dl(t)}))})}function wl(t){var e=Y();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(bl)}function bl(t){d(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c=a.get(e.stackedDimension,h);if(isNaN(c))return r;var f,p;s?p=a.getRawIndex(h):f=a.get(e.stackedByDimension,h);for(var d=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,f)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&0>v||"samesign"===l&&c>=0&&v>0||"samesign"===l&&0>=c&&0>v){c=Zn(c,v),d=v;break}}}return i[0]=c,i[1]=d,i})})}function Sl(t){return t instanceof MS}function Ml(t,e,n){n=n||Il(t);var i=e.seriesLayoutBy,r=Dl(t,n,i,e.sourceHeader,e.dimensions);return new MS({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:o(e)})}function Tl(t){return new MS({data:t,sourceFormat:k(t)?Zb:Yb})}function Cl(t){return new MS({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:o(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Il(t){var e=Kb;if(k(t))e=Zb;else if(b(t)){0===t.length&&(e=jb);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(b(r)){e=jb;break}if(I(r)){e=Xb;break}}}}else if(I(t))for(var o in t)if(Z(t,o)&&p(t[o])){e=qb;break}return e}function Dl(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Al(r),startIndex:a,dimensionsDetectedCount:o};if(e===jb){var s=t;"auto"===i||null==i?Pl(function(t){null!=t&&"-"!==t&&(M(t)?null==a&&(a=1):a=0)},n,s,10):a=C(i)?i:i?1:0,r||1!==a||(r=[],Pl(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Qb?s.length:s[0]?s[0].length:null}else if(e===Xb)r||(r=kl(t));else if(e===qb)r||(r=[],d(t,function(t,e){r.push(e)}));else if(e===Yb){var l=pi(t[0]);o=b(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Al(r),dimensionsDetectedCount:o}}function kl(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return d(e,function(t,e){i.push(e)}),i}}function Al(t){if(t){var e=Y();return g(t,function(t){t=I(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function Pl(t,e,n,i){if(e===Qb)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&i>r;r++)t(o[r],r)}function Ol(t){var e=t.sourceFormat;return e===Xb||e===qb}function Ll(t,e){return IS[Nl(t,e)]}function Rl(t,e){return kS[Nl(t,e)]}function El(t){return PS[t]}function Nl(t,e){return t===jb?t+"_"+e:t}function Bl(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return El(o)(i,a,s)}var l=i;return o===Yb&&(l=pi(i)),l}}}function zl(t){var e,n;return I(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Fl(t){return new RS(t)}function Vl(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||C(t)||null==t||"-"===t||(t=+Qn(t)),null==t||""===t?NaN:+t)}function Hl(t,e){var n=new zS,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==$b&&ui("");var a=[],s={},l=t.dimensionsDefine;if(l)d(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(a.push(i),null!=n){Z(s,n)&&ui(""),s[n]=i}});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=Ll(r,$b);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,a,t)},n.getRawData=Vy(Wl,null,t)),n.cloneRawData=Vy(Ul,null,t);var c=Rl(r,$b);n.count=Vy(c,null,i,o,a);var f=El(r);n.retrieveValue=function(t,e){var n=h(i,o,a,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=Vy(Gl,null,a,s),n.cloneAllDimensionInfo=Vy(Yl,null,a),n}function Wl(t){Zl(t.sourceFormat)||ui("");return t.data}function Ul(t){var e=t.sourceFormat,n=t.data;if(!Zl(e)){ui("")}if(e===jb){for(var i=[],r=0,o=n.length;o>r;r++)i.push(n[r].slice());return i}if(e===Xb){for(var i=[],r=0,o=n.length;o>r;r++)i.push(l({},n[r]));return i}}function Gl(t,e,n){return null!=n?C(n)||!isNaN(n)&&!Z(e,n)?t[n]:Z(e,n)?e[n]:void 0:void 0}function Yl(t){return o(t)}function jl(t){t=o(t);var e=t.type;e||ui("");var n=e.split(":");2!==n.length&&ui("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,FS.set(e,t)}function Xl(t,e,n){var i=ci(t),r=i.length;r||ui("");for(var o=0,a=r;a>o;o++){e=ql(i[o],e),o!==a-1&&(e.length=Math.max(e.length,1))}return e}function ql(t,e){e.length||ui(""),I(t)||ui("");var n=t.type,i=FS.get(n);i||ui("");var r=g(e,function(t){return Hl(t,i)});return g(ci(i.transform({upstream:r[0],upstreamList:r,config:o(t.config)})),function(t,n){I(t)||ui(""),t.data||ui(""),Zl(Il(t.data))||ui("");var i,r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:$b,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:$b,sourceHeader:0,dimensions:t.dimensions};return Ml(t.data,i,null)})}function Zl(t){return t===jb||t===Xb}function Kl(t){return t>65535?HS:WS}function $l(){return[1/0,-1/0]}function Ql(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jl(t,e,n,i,r){var o=YS[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function tu(t){t.option.transform&&W(t.option.transform)}function eu(t){return"series"===t.mainType}function nu(t){throw new Error(t)}function iu(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Tt(i+"")+"px;color:"+Tt(n)+";font-weight:"+Tt(r+""),valueStyle:"font-size:"+Tt(a+"")+"px;color:"+Tt(o)+";font-weight:"+Tt(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function ru(t,e){return e.type=t,e}function ou(t){return"section"===t.type}function au(t){return ou(t)?lu:uu}function su(t){if(ou(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return d(t.blocks,function(t){var n=su(t);n>=e&&(e=n+ +(i&&(!n||ou(t)&&!t.noHeader)))}),e}return 0}function lu(t,e,n,i){var r=e.noHeader,o=cu(su(e)),a=[],s=e.blocks||[];V(!s||b(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Z(h,u)){var c=new BS(h[u],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&s.reverse()}d(s,function(n,r){var s=e.valueFormatter,u=au(n)(s?l(l({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=u&&a.push(u)});var f="richText"===t.renderMode?a.join(o.richText):fu(a.join(""),r?n:o.html);if(r)return f;var p=Ts(e.header,"ordinal",t.useUTC),g=iu(i,t.renderMode).nameStyle;return"richText"===t.renderMode?gu(t,p,g)+o.richText+f:fu('<div style="'+g+";"+qS+';">'+Tt(p)+"</div>"+f,n)}function uu(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=b(t)?t:[t],g(t,function(t,e){return Ts(t,b(p)?p[e]:p,u)})};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),f=o?"":Ts(l,"ordinal",u),p=e.valueType,d=a?[]:h(e.value),y=!s||!o,v=!s&&o,m=iu(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":gu(t,f,_))+(a?"":yu(t,d,y,v,x)):fu((s?"":c)+(o?"":pu(f,!s,_))+(a?"":du(d,y,v,x)),n)}}function hu(t,e,n,i,r,o){if(t){return au(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}}function cu(t){return{html:ZS[t],richText:KS[t]}}function fu(t,e){return'<div style="margin: '+e+"px 0 0;"+qS+';">'+t+'<div style="clear:both"></div></div>'}function pu(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Tt(t)+"</span>"}function du(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=b(t)?t:[t],'<span style="'+o+";"+i+'">'+g(t,function(t){return Tt(t)}).join("&nbsp;&nbsp;")+"</span>"}function gu(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function yu(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(b(e)?e.join(" "):e,o)}function vu(t,e){return As(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function mu(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}function _u(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),f=b(c),p=vu(o,a);if(h>1||f&&!h){var d=xu(c,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,i=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Bl(l,a,u[0]),n=g.type}else r=e=f?c[0]:c;var y=Ti(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return ru("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[ru("nameValue",{markerType:"item",markerColor:p,name:_,noName:!H(_),value:e,valueType:n})].concat(i||[])})}function xu(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?h.push(ru("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=y(t,function(t,e,n){var i=a.getDimensionInfo(n);return t=t||i&&!1!==i.tooltip&&null!=i.displayName},!1),l=[],u=[],h=[];return i.length?d(i,function(t){o(Bl(a,n,t),t)}):d(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function wu(t,e){return t.getName(e)||t.getId(e)}function bu(t){var e=t.name;Ti(t)||(t.name=Su(t)||e)}function Su(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return d(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function Mu(t){return t.model.getRawData().count()}function Tu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Cu}function Cu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Iu(t,e){d(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,w(Du,e))})}function Du(t,e){var n=ku(t);return n&&n.setOutputEnd((e||this).count()),e}function ku(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function Au(){var t=Ai();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}function Pu(t,e,n){t&&Ro(t)&&("emphasis"===e?ho:co)(t,n)}function Ou(t,e,n){var i=ki(t,e),r=e&&null!=e.highlightKey?Eo(e.highlightKey):null;null!=i?d(ci(i),function(e){Pu(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Pu(t,n,r)})}function Lu(t){return nM(t.model)}function Ru(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&eM(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),oM[l]}function Eu(t,e,n){function i(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),a=this,s=t;var p=l||e,d=l||n;l=null,o=r-(d?u:h)-p,clearTimeout(c),d?c=setTimeout(i,p):o>=0?i():c=setTimeout(i,-o),u=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){l=t},f}function Nu(t,e,n,i){var r=t[e];if(r){var o=r[aM]||r,a=r[lM];if(r[sM]!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=Eu(o,n,"debounce"===i),r[aM]=o,r[lM]=i,r[sM]=n}return r}}function Bu(t,e){var n=t[e];n&&n[aM]&&(n.clear&&n.clear(),t[e]=n[aM])}function zu(t,e){var n=t.visualStyleMapper||hM[e];return n||(console.warn("Unknown style type '"+e+"'."),hM.itemStyle)}function Fu(t,e){var n=t.visualDrawType||cM[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}function Vu(t,e){e=e||{},u(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Wm,i=new dx({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new vx({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new dx({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new Aw({shape:{startAngle:-yM/2,endAngle:-yM/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*yM/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*yM/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Hu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Wu(t){return t.overallProgress&&Uu}function Uu(){this.agent.dirty(),this.getDownstream().dirty()}function Gu(){this.agent&&this.agent.dirty()}function Yu(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ju(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ci(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?g(e,function(t,e){return Xu(e)}):mM}function Xu(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function qu(t){return t.data.count()}function Zu(t){rM=null;try{t(_M,xM)}catch(t){}return rM}function Ku(t,e){for(var n in e.prototype)t[n]=K}function $u(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Qu(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ju(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var u=t.getData(),h=ki(u,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:u.getName(b(h)?h[0]:h),selected:M(i)?i:l({},i)})}})}function th(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Ju("map","selectchanged",e,i,t),Ju("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Ju("map","selected",e,i,t),Ju("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Ju("map","unselected",e,i,t),Ju("pie","unselected",e,i,t))})}function eh(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function nh(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function ih(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?va(t.slice(8),new bv(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?ya(t.slice(7),{},new bv(e,n,i,r),a?"center":"cover"):new UM({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=nh,o&&l.setColor(o),l}function rh(t){return b(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function oh(t,e){return null!=t?(b(t)||(t=[t,t]),[Hn(t[0],e[0])||0,Hn(N(t[1],t[0]),e[1])||0]):void 0}function ah(t){return isFinite(t)}function sh(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),i=ah(i)?i:0,r=ah(r)?r:1,o=ah(o)?o:0,a=ah(a)?a:0,t.createLinearGradient(i,o,r,a)}function lh(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),a=ah(a)?a:.5,s=ah(s)?s:.5,l=l>=0&&ah(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}function uh(t,e,n){for(var i="radial"===e.type?lh(t,e,n):sh(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function hh(t,e){if(t===e||!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;return!1}function ch(t){return parseInt(t,10)}function fh(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||ch(s[i])||ch(t.style[i]))-(ch(s[o])||0)-(ch(s[a])||0)|0}function ph(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:C(t)?[t]:b(t)?t:null:null}function dh(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&ph(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=g(n,function(t){return t/r}),i/=r)}return[n,i]}function gh(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function yh(t){return"string"==typeof t&&"none"!==t}function vh(t){var e=t.fill;return null!=e&&"none"!==e}function mh(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _h(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function xh(t,e,n){var i=Zi(e.image,e.__image,n);if($i(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Yy),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function wh(t,e,n,i){var r,o=gh(n),a=vh(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||GM,c=e.__dirty;if(!i){var f=n.fill,p=n.stroke,d=a&&!!f.colorStops,g=o&&!!p.colorStops,y=a&&!!f.image,v=o&&!!p.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getBoundingRect()),d&&(m=c?uh(t,f,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?uh(t,p,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(x=c||!e.__canvasFillPattern?xh(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),v&&(w=c||!e.__canvasStrokePattern?xh(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:y&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:v&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,T;t.setLineDash&&n.lineDash&&(r=dh(e),M=r[0],T=r[1]);var C=!0;(u||c&Lv)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=T),i||(n.strokeFirst?(o&&_h(t,n),a&&mh(t,n)):(a&&mh(t,n),o&&_h(t,n))),M&&t.setLineDash([])}function bh(t,e,n){var i=e.__image=Zi(n.image,e.__image,e,e.onload);if(i&&$i(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,f=s-h;t.drawImage(i,u,h,c,f,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Sh(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||by,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=dh(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(gh(n)&&t.strokeText(r,n.x,n.y),vh(n)&&t.fillText(r,n.x,n.y)):(vh(n)&&t.fillText(r,n.x,n.y),gh(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}function Mh(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){Ph(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?g_.opacity:a}(i||e.blend!==n.blend)&&(o||(Ph(t,r),o=!0),t.globalCompositeOperation=e.blend||g_.blend);for(var s=0;s<YM.length;s++){var l=YM[s];(i||e[l]!==n[l])&&(o||(Ph(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Ph(t,r),o=!0),t.shadowColor=e.shadowColor||g_.shadowColor),o}function Th(t,e,n,i,r){var o=Oh(e,r.inHover),a=i?null:n&&Oh(n,r.inHover)||{};if(o===a)return!1;var s=Mh(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Ph(t,r),s=!0),yh(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Ph(t,r),s=!0),yh(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Ph(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ph(t,r),s=!0),t.lineWidth=u)}for(var h=0;h<jM.length;h++){var c=jM[h],f=c[0];(i||o[f]!==a[f])&&(s||(Ph(t,r),s=!0),t[f]=o[f]||c[1])}return s}function Ch(t,e,n,i,r){return Mh(t,Oh(e,r.inHover),n&&Oh(n,r.inHover),i,r)}function Ih(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Dh(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Ih(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}function kh(t,e){return t&&e?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&&!e)}function Ah(t){var e=vh(t),n=gh(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ph(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Oh(t,e){return e?t.__hoverStyle||t.style:t.style}function Lh(t,e){Rh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Rh(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Ov,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||hh(o,a))&&(a&&a.length&&(Ph(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Ph(t,n),t.save(),Dh(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var h=e instanceof ox&&e.autoBatch&&Ah(e.style);s||kh(r,u.transform)?(Ph(t,n),Ih(t,e)):h||Ph(t,n);var c=Oh(e,n.inHover);e instanceof ox?(n.lastDrawType!==XM&&(l=!0,n.lastDrawType=XM),Th(t,e,u,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),wh(t,e,c,h),h&&(n.batchFill=c.fill||"",n.batchStroke=c.stroke||"")):e instanceof sx?(n.lastDrawType!==ZM&&(l=!0,n.lastDrawType=ZM),Th(t,e,u,l,n),Sh(t,e,c)):e instanceof hx?(n.lastDrawType!==qM&&(l=!0,n.lastDrawType=qM),Ch(t,e,u,l,n),bh(t,e,c)):e.getTemporalDisplayables&&(n.lastDrawType!==KM&&(l=!0,n.lastDrawType=KM),Eh(t,e,n)),h&&i&&Ph(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Eh(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;a>o;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rh(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rh(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Nh(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&$M.delete(t);var o=$M.get(t);if(o)return o;var a=u(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[n],o=!0,s=0;s<JM.length;++s){var l=a[JM[s]];if(null!=l&&!b(l)&&!M(l)&&!C(l)&&"boolean"!=typeof l){o=!1;break}e.push(l)}var u;if(o){u=e.join(",")+(r?"-svg":"");var h=QM.get(u);h&&(r?t.svgElement=h:t.image=h)}var c,f=zh(a.dashArrayX),p=Fh(a.dashArrayY),d=Bh(a.symbol),g=Vh(f),y=Hh(p),v=!r&&Cy.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;n>e;++e)t=li(t,g[e]);for(var i=1,e=0,n=d.length;n>e;++e)i=li(i,d[e].length);t*=i;var r=y*g.length*d.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();v&&(v.width=_.width*n,v.height=_.height*n,c=v.getContext("2d")),function(){c&&(c.clearRect(0,0,v.width,v.height),a.backgroundColor&&(c.fillStyle=a.backgroundColor,c.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(0>=t))for(var o=-y,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var h=l/2%d.length,g=0,x=0,w=0;g<2*_.width;){for(var b=0,e=0;e<f[u].length;++e)b+=f[u][e];if(0>=b)break;if(x%2==0){var S=.5*(1-a.symbolSize),M=g+f[u][x]*S,T=o+p[s]*S,C=f[u][x]*a.symbolSize,I=p[s]*a.symbolSize,D=w/2%d[h].length;!function(t,e,o,s,l){var u=r?1:n,h=ih(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var f=i.painter.renderOneToVNode(h);f&&m.children.push(f)}else Lh(c,h)}(M,T,C,I,d[h][D])}g+=f[u][x],++w,++x===f[u].length&&(x=0)}++u===f.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}}(),o&&QM.put(u,v||m),t.image=v,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,$M.set(t,s),t.dirty=!1,s}function Bh(t){if(!t||0===t.length)return[["rect"]];if(M(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!M(t[n])){e=!1;break}if(e)return Bh([t]);for(var i=[],n=0;n<t.length;++n)i.push(M(t[n])?[t[n]]:t[n]);return i}function zh(t){if(!t||0===t.length)return[[0,0]];if(C(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!C(t[i])){n=!1;break}if(n)return zh([t]);for(var r=[],i=0;i<t.length;++i)if(C(t[i])){var e=Math.ceil(t[i]);r.push([e,e])}else{var e=g(t[i],function(t){return Math.ceil(t)});r.push(e.length%2==1?e.concat(e):e)}return r}function Fh(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t)){var e=Math.ceil(t);return[e,e]}var n=g(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}function Vh(t){return g(t,function(t){return Hh(t)})}function Hh(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function Wh(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");if(n){i.ensureUniqueItemVisual(t,"style").decal=Nh(n,e)}});var r=i.getVisual("decal");if(r){i.getVisual("style").decal=Nh(r,e)}}})}function Uh(t,e){eT[t]=e}function Gh(t){return eT[t]}function Yh(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:Xh(this,t,e)}}function jh(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xh(this,t,e)}}function Xh(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),tv.prototype[e].apply(t,n)}function qh(t,e,n){var i=!(n&&n.ssr);if(i){var r=Qh(t);if(r)return r}var o=new OT(t,e,n);return o.id="ec_"+GT++,WT[o.id]=o,i&&Ri(t,jT,o.id),kT(o),tT.trigger("afterinit",o),o}function Zh(t){if(b(t)){var e=t;t=null,d(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+YT++,d(e,function(e){e.group=t})}return UT[t]=!0,t}function Kh(t){UT[t]=!1}function $h(t){M(t)?t=WT[t]:t instanceof OT||(t=Qh(t)),t instanceof OT&&!t.isDisposed()&&t.dispose()}function Qh(t){return WT[Ei(t,jT)]}function Jh(t){return WT[t]}function tc(t,e){VT[t]=e}function ec(t){h(zT,t)<0&&zT.push(t)}function nc(t,e){cc(BT,t,e,iT)}function ic(t){oc("afterinit",t)}function rc(t){oc("afterupdate",t)}function oc(t,e){tT.on(t,e)}function ac(t,e,n){S(e)&&(n=e,e="");var i=I(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,NT[e]||(V(hT.test(i)&&hT.test(e)),ET[i]||(ET[i]={action:n,actionInfo:t}),NT[e]=i)}function sc(t,e){gS.register(t,e)}function lc(t){var e=gS.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function uc(t,e){cc(FT,t,e,rT,"layout")}function hc(t,e){cc(FT,t,e,oT,"visual")}function cc(t,e,n,i,r){if((S(e)||I(e))&&(n=e,e=i),!(h(qT,n)>=0)){qT.push(n);var o=vM.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function fc(t,e){HT[t]=e}function pc(t){n({createCanvas:t})}function dc(t,e,n){var i=Gh("registerMap");i&&i(t,e,n)}function gc(t){var e=Gh("getMap");return e&&e(t)}function yc(t){return null==t?0:t.length||1}function vc(t){return t}function mc(t,e){var n={},i=n.encode={},r=Y(),o=[],a=[],s={};d(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;_c(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),wc(n.type)&&(o[0]=e),_c(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}Gb.each(function(t,e){var r=_c(i,e),o=n.otherDims[e];null!=o&&!1!==o&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new oC(s,e),n}function _c(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function xc(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function wc(t){return!("ordinal"===t||"time"===t)}function bc(t){return t instanceof uC}function Sc(t){for(var e=Y(),n=0;n<(t||[]).length;n++){var i=t[n],r=I(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Mc(t){var e=sC(t);return e.dimNameMap||(e.dimNameMap=Sc(t.dimensionsDefine))}function Tc(t){return t>30}function Cc(t,e){return Ic(t,e).dimensions}function Ic(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=I(n)?n:{name:n},r=new aC,o=i.name;null!=o&&null!=g.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=h.length;return m[t]=s,r.storeDimIndex=t,h.push(r),r}return h[e]}function i(t,e,n){null!=Gb.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Sl(t)||(t=Tl(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Y(),h=[],c=kc(t,o,a,e.dimensionsCount),f=e.canOmitUnusedDimensions&&Tc(c),p=a===t.dimensionsDefine,g=p?Mc(t):Sc(a),y=e.encodeDefine;!y&&e.encodeDefaulter&&(y=e.encodeDefaulter(t,c));for(var v=Y(y),m=new US(c),_=0;_<m.length;_++)m[_]=-1;if(!f)for(var _=0;c>_;_++)n(_);v.each(function(t,e){var r=ci(t).slice();if(1===r.length&&!M(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);d(r,function(t,r){var a=M(t)?g.get(t):t;null!=a&&c>a&&(o[r]=a,i(n(a),e,r))})});var x=0;d(o,function(t){var e,r,o,a;if(M(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=l({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var h=v.get(e);if(!1!==h){if(h=ci(h),!h.length)for(var f=0;f<(r&&r.length||1);f++){for(;c>x&&null!=n(x).coordDim;)x++;c>x&&h.push(x++)}d(h,function(t,s){var l=n(t);if(p&&null!=a.type&&(l.type=a.type),i(u(l,a),e,s),null==l.name&&r){var h=r[s];!I(h)&&(h={name:h}),l.name=l.displayName=h.name,l.defaultTooltip=h.defaultTooltip}o&&u(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var T=w||"value";if(f)d(h,function(t){r(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;c>C;C++){var D=n(C),k=D.coordDim;null==k&&(D.coordDim=Ac(T,s,S),D.coordDimIndex=0,(!w||0>=b)&&(D.isExtraCoord=!0),b--),r(D),null!=D.type||Ws(t,C)!==Jb.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}return Dc(h),new uC({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:f})}function Dc(t){for(var e=Y(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function kc(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return d(e,function(t){var e;I(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Ac(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function Pc(t){var e=t.get("coordinateSystem"),n=new yC(e),i=vC[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function Oc(t){return"category"===t.get("type")}function Lc(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;Rc(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,f=!(!t||!t.get("stack"));if(d(i,function(t,e){M(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,g=u.type,y=0;d(i,function(t){t.coordDim===p&&y++});var v={name:h,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,g),m.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Rc(t){return!bc(t.schema)}function Ec(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Nc(t,e){return Ec(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Bc(t,e){var n,i=t.get("coordinateSystem"),r=gS.get(i);return e&&e.coordSysDims&&(n=g(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=xc(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function zc(t,e,n){var i,r;return n&&d(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}function Fc(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Tl(t)):(i=r.getSource(),o=i.sourceFormat===Yb);var a=Pc(e),s=Bc(e,a),l=n.useEncodeDefaulter,u=S(l)?l:l?w(Fs,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Ic(i,h),f=zc(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),d=Lc(e,{schema:c,store:p}),g=new gC(c,e);g.setCalculationInfo(d);var y=null!=f&&Vc(i)?function(t,e,n,i){return i===f?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:p,null,y),g}function Vc(t){if(t.sourceFormat===Yb){return!b(pi(Hc(t.data||[])))}}function Hc(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Wc(t){return I(t)&&null!=t.value?t.value:t+""}function Uc(t){return"interval"===t.type||"log"===t.type}function Gc(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=ei(o/e,!0);null!=n&&n>a&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=jc(a);return qc(r.niceTickExtent=[Wn(Math.ceil(t[0]/a)*a,s),Wn(Math.floor(t[1]/a)*a,s)],t),r}function Yc(t){var e=Math.pow(10,ti(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Wn(n*e)}function jc(t){return Gn(t)+2}function Xc(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function qc(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Xc(t,0,e),Xc(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Zc(t,e){return t>=e[0]&&t<=e[1]}function Kc(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function $c(t,e){return t*(e[1]-e[0])+e[0]}function Qc(t){return b(t)?MC?new Float32Array(t):t:new TC(t)}function Jc(t){return t.get("stack")||CC+t.seriesIndex}function tf(t){return t.dim+t.index}function ef(t,e){var n=[];return e.eachSeriesByType(t,function(t){sf(t)&&n.push(t)}),n}function nf(t){var e={};d(t,function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function rf(t){var e=nf(t),n=[];return d(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var f=t.getData();i=Math.abs(a[1]-a[0])/f.count()}var p=Hn(t.get("barWidth"),i),d=Hn(t.get("barMaxWidth"),i),g=Hn(t.get("barMinWidth")||(lf(t)?.5:1),i),y=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:tf(o),stackId:Jc(t)})}),of(n)}function of(t){var e={};d(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return d(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=_(i).length;o=Math.max(35-4*a,15)+"%"}var s=Hn(o,r),l=Hn(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),d(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var f,p=0;d(i,function(t){t.width||(t.width=c),f=t,p+=t.width*(1+l)}),f&&(p-=f.width*l);var g=-p/2;d(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+l)})}),n}function af(t,e,n){if(t&&e){var i=t[tf(e)];return null!=i&&null!=n?i[Jc(n)]:i}}function sf(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function lf(t){return t.pipelineContext&&t.pipelineContext.large}function uf(t,e,n,i){var r=Qn(e),o=Qn(n),a=function(t){return ss(r,t,i)===ss(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},f=function(){return c()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return f();case"millisecond":return function(){return f()&&a("millisecond")}()}}function hf(t){return t/=Mb,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cf(t){return t/=30*Mb,t>6?6:t>3?3:t>2?2:1}function ff(t){return t/=Sb,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function pf(t,e){return t/=e?bb:wb,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function df(t){return ei(t,!0)}function gf(t,e,n){var i=new Date(t);switch(es(e)){case"year":case"month":i[ys(n)](0);case"day":i[vs(n)](1);case"hour":i[ms(n)](0);case"minute":i[_s(n)](0);case"second":i[xs(n)](0),i[ws(n)](0)}return i.getTime()}function yf(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();n>u&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}for(var o=Ab,a=0,s=[],l=[],u=0,h=0,c=0;c<o.length&&a++<1e4;++c){var f=es(o[c]);if(ns(o[c])){!function(t,o,a){var s=[],l=!o.length;if(!uf(es(t),i[0],i[1],n)){l&&(o=[{value:gf(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){var f=void 0,p=void 0,d=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/Mb/365)),p=ls(n),d=gs(n);break;case"half-year":case"quarter":case"month":f=cf(e),p=us(n),d=ys(n);break;case"week":case"half-week":case"day":f=hf(e,31),p=hs(n),d=vs(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=ff(e),p=cs(n),d=ms(n);break;case"minute":f=pf(e,!0),p=fs(n),d=_s(n);break;case"second":f=pf(e,!1),p=ps(n),d=xs(n);break;case"millisecond":f=df(e),p=ds(n),d=ws(n)}r(f,h,c,p,d,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-f})}}for(var u=0;u<s.length;u++)a.push(s[u])}}(o[c],s[s.length-1]||[],l);if(f!==(o[c+1]?es(o[c+1]):null)){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<l.length;++d){var y=l[d].value;(0===d||l[d-1].value!==y)&&(p.push(l[d]),y>=i[0]&&y<=i[1]&&u++)}var m=(i[1]-i[0])/e;if(u>1.5*m&&h>m/1.5)break;if(s.push(p),u>m||t===o[c])break}l=[]}}}for(var _=v(g(s,function(t){return v(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],w=_.length-1,c=0;c<_.length;++c)for(var b=_[c],S=0;S<b.length;++S)x.push({value:b[S].value,level:w-c});x.sort(function(t,e){return t.value-e.value});for(var M=[],c=0;c<x.length;++c)(0===c||x[c].value!==x[c-1].value)&&M.push(x[c]);return M}function vf(t,e){return OC(t,Gn(e))}function mf(t,e,n){var i=t.rawExtentInfo;return i||(i=new FC(t,e,n),t.rawExtentInfo=i,i)}function _f(t,e){return null==e?null:R(e)?NaN:t.parse(e)}function xf(t,e){var n=t.type,i=mf(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=ef("bar",a),l=!1;if(d(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=rf(s),h=wf(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function wf(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=af(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;d(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;d(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/o,f=h/c-h;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function bf(t,e){var n=e,i=xf(t,n),r=i.extent,o=n.get("splitNumber");t instanceof BC&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Sf(t,e){if(e=e||t.get("type"))switch(e){case"category":return new wC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new DC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(mC.getClass(e)||SC)}}function Mf(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}function Tf(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):M(e)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(e):S(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(Cf(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Cf(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function If(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof wC?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=Tf(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=i?i[h]:{value:o[0]+h},f=l(c,h),p=s.getTextRect(f),d=Df(p,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Df(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new bv(t.x,t.y,o,a)}function kf(t){var e=t.get("interval");return null==e?"auto":e}function Af(t){return"category"===t.type&&0===kf(t.getLabelModel())}function Pf(t,e){var n={};return d(t.mapDimensionsAll(e),function(e){n[Nc(t,e)]=!0}),_(n)}function Of(t){return Fc(null,t)}function Lf(t,e){var n=e;e instanceof cb||(n=new cb(e));var i=Sf(n);return i.setExtent(t[0],t[1]),bf(i,n),i}function Rf(t){f(t,WC)}function Ef(t,e){return e=e||{},Wa(t,null,null,"normal"!==e.state)}function Nf(t){return b(t)?void d(t,function(t){Nf(t)}):void(h(YC,t)>=0||(YC.push(t),S(t)&&(t={install:t}),t.install(jC)))}function Bf(t,e){return Math.abs(t-e)<XC}function zf(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=xr(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Bf(r[0],s[0])&&Bf(r[1],s[1])||(i+=xr(r[0],r[1],s[0],s[1],e,n)),0!==i}function Ff(t,e){for(var n=0;n<t.length;n++)gt(t[n],t[n],e)}function Vf(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(yt(e,e,o),vt(n,n,o))}}function Hf(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;r>s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Wf(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),d(e.features,function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Gf(r,i,n);break;case"Polygon":case"MultiLineString":Uf(r,i,n);break;case"MultiPolygon":d(r,function(t,e){return Uf(t,i[e],n)})}}),e.UTF8Encoding=!1,e}function Uf(t,e,n){for(var i=0;i<t.length;i++)t[i]=Gf(t[i],e[i],n)}function Gf(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}function Yf(t,e){return t=Wf(t),g(v(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new KC(o[0],o.slice(1)));break;case"MultiPolygon":d(i.coordinates,function(t){t[0]&&r.push(new KC(t[0],t.slice(1)))});break;case"LineString":r.push(new $C([i.coordinates]));break;case"MultiLineString":r.push(new $C(i.coordinates))}var a=new QC(n[e||"name"],r,n.cp);return a.properties=n,a})}function jf(t){return"category"===t.type?qf(t):$f(t)}function Xf(t,e){return"category"===t.type?Kf(t,e):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function qf(t){var e=t.getLabelModel(),n=Zf(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Zf(t,e){var n=Qf(t,"labels"),i=kf(e),r=Jf(n,i);if(r)return r;var o,a;return S(i)?o=op(t,i):(a="auto"===i?ep(t):i,o=rp(t,a)),tp(n,i,{labels:o,labelCategoryInterval:a})}function Kf(t,e){var n=Qf(t,"ticks"),i=kf(e),r=Jf(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),S(i))o=op(t,i,!0);else if("auto"===i){var s=Zf(t,t.getLabelModel());a=s.labelCategoryInterval,o=g(s.labels,function(t){return t.tickValue})}else a=i,o=rp(t,a,!0);return tp(n,i,{ticks:o,tickCategoryInterval:a})}function $f(t){var e=t.scale.getTicks(),n=Tf(t);return{labels:g(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Qf(t,e){return rI(t)[e]||(rI(t)[e]=[])}function Jf(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function tp(t,e,n){return t.push({key:e,value:n}),n}function ep(t){var e=rI(t).autoInterval;return null!=e?e:rI(t).autoInterval=t.calculateCategoryInterval()}function np(t){var e=ip(t),n=Tf(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,y=_n(n({value:l}),e.font,"center","top");d=1.3*y.width,g=1.3*y.height,f=Math.max(f,d,7),p=Math.max(p,g,7)}var v=f/h,m=p/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(v,m))),x=rI(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function ip(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rp(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=Tf(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var f=Af(t),p=s.get("showMinLabel")||f,d=s.get("showMaxLabel")||f;p&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return d&&g-u!==a[1]&&i(a[1]),l}function op(t,e,n){var i=t.scale,r=Tf(t),o=[];return d(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function ap(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function sp(t,e,n,i){function r(t,e){return t=Wn(t),e=Wn(e),c?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;d(e,function(t){t.coord-=h/2});s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var c=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function lp(t){var e=zb.extend(t);return zb.registerClass(e),e}function up(t){var e=tM.extend(t);return tM.registerClass(e),e}function hp(t){var e=JS.extend(t);return JS.registerClass(e),e}function cp(t){var e=iM.extend(t);return iM.registerClass(e),e}function fp(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function pp(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(i-r)%sI<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var f=i;i=mr(r),r=mr(f)}else i=mr(i),r=mr(r);i>r&&(r+=sI);var p=Math.atan2(s,a);if(0>p&&(p+=sI),p>=i&&r>=p||p+sI>=i&&r>=p+sI)return l[0]=h,l[1]=c,u-n;var d=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(_))}function dp(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,f=Math.sqrt(h*h+c*c);h/=f,c/=f;var p=l*h+u*c,d=p/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var g=a[0]=t+d*h,y=a[1]=e+d*c;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function gp(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function yp(t,e,n){var i=gp(e.x,e.y,e.width,e.height,t.x,t.y,hI);return n.set(hI[0],hI[1]),i}function vp(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,f=t.y,p=0;p<h.length;){var d=h[p++];1===p&&(o=h[p],a=h[p+1],s=o,l=a);var g=u;switch(d){case lI.M:s=h[p++],l=h[p++],o=s,a=l;break;case lI.L:g=dp(o,a,h[p],h[p+1],c,f,hI,!0),o=h[p++],a=h[p++];break;case lI.C:g=fe(o,a,h[p++],h[p++],h[p++],h[p++],h[p],h[p+1],c,f,hI),o=h[p++],a=h[p++];break;case lI.Q:g=_e(o,a,h[p++],h[p++],h[p],h[p+1],c,f,hI),o=h[p++],a=h[p++];break;case lI.A:var y=h[p++],v=h[p++],m=h[p++],_=h[p++],x=h[p++],w=h[p++];p+=1;var b=!!(1-h[p++]);i=Math.cos(x)*m+y,r=Math.sin(x)*_+v,1>=p&&(s=i,l=r);g=pp(y,v,_,x,x+w,b,(c-y)*_/m+y,f,hI),o=Math.cos(x+w)*m+y,a=Math.sin(x+w)*_+v;break;case lI.R:s=o=h[p++],l=a=h[p++];g=gp(s,l,h[p++],h[p++],c,f,hI);break;case lI.Z:g=dp(o,a,s,l,c,f,hI,!0),o=s,a=l}u>g&&(u=g,n.set(hI[0],hI[1]))}return u}function mp(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||uI,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Wt([],h),f=e.get("length2")||0;u&&pI.copy(u);for(var p=0;p<a.length;p++){fp(a[p],0,s,cI,dI),pv.scaleAndAdd(fI,cI,dI,f),fI.transform(c);var d=t.getBoundingRect(),g=u?u.distance(fI):t instanceof ox?vp(fI,t.path,pI):yp(fI,d,pI);l>g&&(l=g,fI.transform(h),pI.transform(h),pI.toArray(o[0]),fI.toArray(o[1]),cI.toArray(o[2]))}_p(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function _p(t,e){if(180>=e&&e>0){e=e/180*Math.PI,cI.fromArray(t[0]),fI.fromArray(t[1]),pI.fromArray(t[2]),pv.sub(dI,cI,fI),pv.sub(gI,pI,fI);var n=dI.len(),i=gI.len();if(!(.001>n||.001>i)){dI.scale(1/n),gI.scale(1/i);if(dI.dot(gI)>Math.cos(e)){var r=dp(fI.x,fI.y,pI.x,pI.y,cI.x,cI.y,yI,!1);vI.fromArray(yI),vI.scaleAndAdd(gI,r/Math.tan(Math.PI-e));var o=pI.x!==fI.x?(vI.x-fI.x)/(pI.x-fI.x):(vI.y-fI.y)/(pI.y-fI.y);if(isNaN(o))return;0>o?pv.copy(vI,fI):o>1&&pv.copy(vI,pI),vI.toArray(t[1])}}}}function xp(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function wp(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Zy(i[0],i[1]),o=Zy(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=dt([],i[1],i[0],a/r),l=dt([],i[1],i[2],a/o),u=dt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)t.lineTo(i[h][0],i[h][1])}function bp(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(i&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Ox.length;l++){var h=Ox[l],c=e[h],f="normal"===h;if(c){var p=c.get("show");if((f?s:N(r.states[h]&&r.states[h].ignore,s))||!N(p,a)){var d=f?i:i&&i.states[h];d&&(d.ignore=!0);continue}i||(i=new bw,t.setTextGuideLine(i),f||!s&&a||xp(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),xp(i,!1,h,c)}}if(i){u(i.style,n),i.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,i.buildPath=wp}}function Sp(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Px.length;i++){var r=Px[i];n[r]=t.getModel([r,e])}return n}function Mp(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new Fw(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Tp(t,e,n,i,r,o){function a(){w=S.rect[e]-i,b=r-M.rect[e]-M.rect[n]}function s(t,e,n){if(0>t){var i=Math.min(e,-t);if(i>0){l(i*n,0,c);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(d=!0);for(var o=i;r>o;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var f=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;c-1>s;s++){var p=o[s]*f;l(p,0,s+1)}else for(var s=c-1;s>0;s--){var p=o[s-1]*f;l(-p,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),i=0;c-1>i;i++)if(e>0?l(n,0,i+1):l(-n,c-i-1,c),0>=(t-=n))return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var f,p=0,d=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],_=m.rect;0>(f=_[e]-p)&&(_[e]-=f,m.label[e]-=f,d=!0);var x=Math.max(-f,0);g.push(x),y+=x,p=_[e]+_[n]}y>0&&o&&l(-y/c,0,c);var w,b,S=t[0],M=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function Cp(t,e,n,i){return Tp(t,"x","width",e,n,i)}function Ip(t,e,n,i){return Tp(t,"y","height",e,n,i)}function Dp(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new bv(0,0,0,0),r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var c=o.obb,f=!1,p=0;p<n.length;p++){var d=n[p];if(i.intersect(d.rect)){if(a&&d.axisAligned){f=!0;break}if(d.obb||(d.obb=new Fw(d.localRect,d.transform)),c||(c=new Fw(s,l)),c.intersect(d.obb)){f=!0;break}}}f?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function kp(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Ap(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:kp(i&&i.shape.points)}}function Pp(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function Op(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var n=MI(e).labelManager;n||(n=MI(e).labelManager=new SI),n.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=MI(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Lp(t,e,n){var i=Cy.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}function Rp(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Ep(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function Np(t){t.registerPainter("canvas",II)}function Bp(t){t.registerComponentModel(DI),t.registerComponentView(kI)}function zp(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Bl(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Bl(t,e,n[a]));return o.join(" ")}}function Fp(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!b(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}function Vp(t,e){this.parent.drift(t,e)}function Hp(t,e,n,i){return!(!e||isNaN(e[0])||isNaN(e[1])||i.isIgnore&&i.isIgnore(n)||i.clipShape&&!i.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(n,"symbol"))}function Wp(t){return null==t||I(t)||(t={isIgnore:t}),t||{}}function Up(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ha(e),cursorStyle:e.get("cursor")}}function Gp(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=Yp(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=g(t.dimensions,function(t){return e.mapDimension(t)}),f=!1,p=e.getCalculationInfo("stackResultDimension");return Ec(e,c[0])&&(f=!0,c[0]=p),Ec(e,c[1])&&(f=!0,c[1]=p),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Yp(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:C(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function jp(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function Xp(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}function qp(t,e,n,i,r,o,a){for(var s=Xp(t,e),l=[],u=[],h=[],c=[],f=[],p=[],d=[],g=Gp(r,e,a),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,w=void 0,b=void 0;switch(_.cmd){case"=":w=2*_.idx,b=2*_.idx1;var S=y[w],M=y[w+1],T=v[b],C=v[b+1];(isNaN(S)||isNaN(M))&&(S=T,M=C),l.push(S,M),u.push(T,C),h.push(n[w],n[w+1]),c.push(i[b],i[b+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,D=g.dataDimsForPoint,k=r.dataToPoint([e.get(D[0],I),e.get(D[1],I)]);b=2*I,l.push(k[0],k[1]),u.push(v[b],v[b+1]);var A=jp(g,r,e,I);h.push(A[0],A[1]),c.push(i[b],i[b+1]),d.push(e.getRawIndex(I));break;case"-":x=!1}x&&(f.push(_),p.push(p.length))}p.sort(function(t,e){return d[t]-d[e]});for(var P=l.length,O=Qc(P),L=Qc(P),R=Qc(P),E=Qc(P),N=[],m=0;m<p.length;m++){var B=p[m],z=2*m,F=2*B;O[z]=l[F],O[z+1]=l[F+1],L[z]=u[F],L[z+1]=u[F+1],R[z]=h[F],R[z+1]=h[F+1],E[z]=c[F],E[z+1]=c[F+1],N[m]=f[B]}return{current:O,next:L,stackedOnCurrent:R,stackedOnNext:E,status:N}}function Zp(t,e){return isNaN(t)||isNaN(e)}function Kp(t,e,n,i,r,o,a,s,l){for(var u,h,c,f,p,d,g=n,y=0;i>y;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Zp(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,f=m;else{var _=v-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){for(var w=g+o,b=e[2*w],S=e[2*w+1];b===v&&S===m&&i>y;)y++,w+=o,g+=o,b=e[2*w],S=e[2*w+1],v=e[2*g],m=e[2*g+1],_=v-u,x=m-h;var M=y+1;if(l)for(;Zp(b,S)&&i>M;)M++,w+=o,b=e[2*w],S=e[2*w+1];var T=.5,C=0,I=0,D=void 0,k=void 0;if(M>=i||Zp(b,S))p=v,d=m;else{C=b-u,I=S-h;var A=v-u,P=b-v,O=m-h,L=S-m,R=void 0,E=void 0;if("x"===s){R=Math.abs(A),E=Math.abs(P);var N=C>0?1:-1;p=v-N*R*a,d=m,D=v+N*E*a,k=m}else if("y"===s){R=Math.abs(O),E=Math.abs(L);var B=I>0?1:-1;p=v,d=m-B*R*a,D=v,k=m+B*E*a}else R=Math.sqrt(A*A+O*O),E=Math.sqrt(P*P+L*L),T=E/(E+R),p=v-C*a*(1-T),d=m-I*a*(1-T),D=v+C*a*T,k=m+I*a*T,D=LI(D,RI(b,v)),k=LI(k,RI(S,m)),D=RI(D,LI(b,v)),k=RI(k,LI(S,m)),C=D-v,I=k-m,p=v-C*R/E,d=m-I*R/E,p=LI(p,RI(u,v)),d=LI(d,RI(h,m)),p=RI(p,LI(u,v)),d=RI(d,LI(h,m)),C=v-p,I=m-d,D=v+C*E/R,k=m+I*E/R}t.bezierCurveTo(c,f,p,d,v,m),c=D,f=k}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}function $p(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new dx({shape:{x:a,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),p=f.isHorizontal(),d=f.inverse;p?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=S(r)?function(t){r(t,c)}:null;aa(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function Qp(t,e,n){var i=t.getArea(),r=Wn(i.r0,1),o=Wn(i.r,1),a=new yw({shape:{cx:Wn(t.cx,1),cy:Wn(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){"angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,aa(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function Jp(t,e){return t.type===e}function td(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function ed(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function nd(t,e){var n=ed(t),i=n[0],r=n[1],o=ed(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function id(t){return C(t)?t:t?.5:0}function rd(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Qc(2*i),o=0;i>o;o++){var a=jp(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function od(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||c.push(t[s],t[s+1]);t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var f=(u[o]+h[o])/2,p=[];l[o]=p[o]=f,l[1-o]=u[1-o],p[1-o]=h[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function ad(t,e){function n(t,e,n){var i=t.coord;return{coord:n,color:ze((n-i)/(e.coord-i),[t.color,e.color])}}for(var i,r,o=[],a=t.length,s=0;a>s;s++){var l=t[s],u=l.coord;if(0>u)i=l;else{if(u>e){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}function sd(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var f=ad(u,"x"===r?n.getWidth():n.getHeight()),p=f.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var y=f[0].coord-10,v=f[p-1].coord+10,m=v-y;if(.001>m)return"transparent";d(f,function(t){t.offset=(t.coord-y)/m}),f.push({offset:p?f[p-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:c[0]||"transparent"});var _=new Lw(0,0,0,0,f,!0);return _[r]=y,_[r+"2"]=v,_}}}function ld(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!ud(o,e))){var a=e.mapDimension(o.dim),s={};return d(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function ud(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*PI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function hd(t,e){return isNaN(t)||isNaN(e)}function cd(t){for(var e=t.length/2;e>0&&hd(t[2*e-2],t[2*e-1]);e--);return e-1}function fd(t,e){return[t[2*e],t[2*e+1]]}function pd(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function dd(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Px.length;e++)if(t.get([Px[e],"endLabel","show"]))return!0;return!1}function gd(t,e,n,i){if(Jp(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=dd(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=$p(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=h.shape,f=Math.max(c.width,c.height);u?(c.y-=f,c.height+=2*f):(c.x-=f,c.width+=2*f)}return l&&l(1,h),h}return Qp(e,n,i)}function yd(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}function vd(t,e){return{seriesType:t,plan:Au(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=g(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ec(n,a[0])&&(a[0]=l),Ec(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Qc(n*s),a=[],l=[],f=t.start,p=0;f<t.end;f++){var d=void 0;if(1===s){var g=u.get(h,f);d=i.dataToPoint(g,null,l)}else a[0]=u.get(h,f),a[1]=u.get(c,f),d=i.dataToPoint(a,null,l);o?(r[p++]=d[0],r[p++]=d[1]):e.setItemLayout(f,d.slice())}o&&e.setLayout("points",r)}}}}}}function md(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),f=Math.round(a/c);if(isFinite(f)&&f>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/f));var p=void 0;M(r)?p=VI[r]:S(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/f,p,HI))}}}}}function _d(t){t.registerChartView(FI),t.registerSeriesModel(AI),t.registerLayout(vd("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,md("line"))}function xd(t,n,i,r){d(KI,function(o,s){var l=a(a({},ZI[s],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+s,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Ls(this),i=n?Es(t):{};a(t,e.getTheme().get(s+"Axis")),a(t,this.getDefaultOption()),t.type=wd(t),n&&Rs(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=xC.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+s,i.defaultOption=l,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+"Axis",wd)}function wd(t){return t.type||(t.data?"category":"value")}function bd(t){return"interval"===t.type||"time"===t.type}function Sd(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,d="x"===u?[c[2]-p,c[3]+p]:[c[0]-p,c[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[f.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[f[l]]:c[0],"x"===u?d[f[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?d[f[s]]-d[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),E(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Md(t){return"cartesian2d"===t.get("coordinateSystem")}function Td(t){var e={xAxisModel:null,yAxisModel:null};return d(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,t_).models[0];e[i]=o}),e}function Cd(t,e,n){var i=SC.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=xf(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var f=eD(t.base);u=[eD(u[0])/f,eD(u[1])/f]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var p=i.getExtent.call(t);h&&(u[0]=p[0]),c&&(u[1]=p[1]);var d=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)d=(y-g)/a;else if(h)for(y=u[0]+d*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)d=Yc(d),y=u[0]+d*a;else if(c)for(g=u[1]-d*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=Yc(d),g=u[1]-d*a;else{var v=t.getTicks().length-1;v>a&&(d=Yc(d));var m=d*a;y=Math.ceil(u[1]/d)*d,g=Wn(y-m),0>g&&u[0]>=0?(g=0,y=Wn(m)):y>0&&u[1]<=0&&(y=0,g=-Wn(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+d*_,y+d*x),i.setInterval.call(t,d),(_||x)&&i.setNiceExtent.call(t,g+d,y-d)}function Id(t,e){return t.getCoordSysModel()===e}function Dd(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)kd(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&kd(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function kd(t){return t&&"category"!==t.type&&"time"!==t.type&&Mf(t)}function Ad(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 Pd(t,e,n,i){var r,o,a=Kn(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return $n(a-iD/2)?(o=l?"bottom":"top",r="center"):$n(a-1.5*iD)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*iD>a&&a>iD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Od(t,e,n){if(!Af(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],f=n[n.length-2];!1===i?(Ld(o),Ld(u)):Rd(o,a)&&(i?(Ld(a),Ld(h)):(Ld(o),Ld(u))),!1===r?(Ld(s),Ld(c)):Rd(l,s)&&(r?(Ld(l),Ld(f)):(Ld(s),Ld(c)))}}function Ld(t){t&&(t.ignore=!0)}function Rd(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Nt([]);return Vt(r,r,-t.rotation),n.applyTransform(zt([],r,t.getLocalTransform())),i.applyTransform(zt([],r,e.getLocalTransform())),n.intersect(i)}}function Ed(t){return"middle"===t||"center"===t}function Nd(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(gt(a,a,e),gt(s,s,e));var h=new Tw({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});xa(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function Bd(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),h=r.getTicksCoords(),c=Nd(h,e.transform,l,u(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function zd(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),h=u(s.getLineStyle(),u(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=Nd(a[c],e.transform,l,h,"minorticks_"+c),p=0;p<f.length;p++)t.add(f[p])}}function Fd(t,e,n,i){var r=n.axis;if(E(i.axisLabelShow,n.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(E(i.labelRotate,o.get("rotate"))||0)*iD/180,u=rD.innerTextLayout(i.rotation,l,i.labelDirection),h=n.getCategories&&n.getCategories(!0),c=[],f=rD.isLabelSilent(n),p=n.get("triggerEvent");return d(s,function(s,l){var d="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,y=s.rawLabel,v=o;if(h&&h[d]){var m=h[d];I(m)&&m.textStyle&&(v=new cb(m.textStyle,o,n.ecModel))}var _=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),w=new vx({x:x,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:f,z2:10+(s.level||0),style:Wa(v,{text:g,align:v.getShallow("align",!0)||u.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,fill:S(_)?_("category"===r.type?y:"value"===r.type?d+"":d,l):_})});if(w.anid="label_"+d,p){var b=rD.makeAxisEventDataBase(n);b.targetType="axisLabel",b.value=y,b.tickIndex=l,"category"===r.type&&(b.dataIndex=d),bx(w).eventData=b}e.add(w),w.updateTransform(),c.push(w),t.add(w),w.decomposeTransform()}),c}}function Vd(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Hd(n,t,e),n.seriesInvolved&&Ud(n,t),n}function Hd(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];d(n.getCoordinateSystems(),function(n){function s(i,s,l){var h=l.model.getModel("axisPointer",r),f=h.get("show");if(f&&("auto"!==f||i||Zd(h))){null==s&&(s=h.get("triggerTooltip")),h=i?Wd(l,c,r,e,i,s):h;var p=h.get("snap"),d=Kd(l.model),g=s||p||"category"===l.type,y=t.axesInfo[d]={key:d,axis:l,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:p,useHandle:Zd(h),seriesModels:[],linkGroup:null};u[d]=y,t.seriesInvolved=t.seriesInvolved||g;var v=Gd(o,l);if(null!=v){var m=a[v]||(a[v]={axesInfo:{}});m.axesInfo[d]=y,m.mapper=o[v].mapper,y.linkGroup=m}}}if(n.axisPointerEnabled){var l=Kd(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var h=n.model,c=h.getModel("tooltip",i);if(d(n.getAxes(),w(s,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var f="axis"===c.get("trigger"),p="cross"===c.get(["axisPointer","type"]),g=n.getTooltipAxes(c.get(["axisPointer","axis"]));(f||p)&&d(g.baseAxes,w(s,!p||"cross",f)),p&&d(g.otherAxes,w(s,"cross",!1))}}})}function Wd(t,e,n,i,r,a){var s=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],h={};d(l,function(t){h[t]=o(s.get(t))}),h.snap="category"!==t.type&&!!a,"cross"===s.get("type")&&(h.type="line");var c=h.label||(h.label={});if(null==c.show&&(c.show=!1),"cross"===r){var f=s.get(["label","show"]);if(c.show=null==f||f,!a){var p=h.lineStyle=s.get("crossStyle");p&&u(c,p.textStyle)}}return t.model.getModel("axisPointer",new cb(h,n,i))}function Ud(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)&&d(t.coordSysAxesInfo[Kd(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())})})}function Gd(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Yd(o[i+"AxisId"],n.id)||Yd(o[i+"AxisIndex"],n.componentIndex)||Yd(o[i+"AxisName"],n.name))return r}}function Yd(t,e){return"all"===t||b(t)&&h(t,e)>=0||t===e}function jd(t){var e=Xd(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=Zd(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Xd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Kd(t)]}function qd(t){var e=Xd(t);return e&&e.axisPointerModel}function Zd(t){return!!t.get(["handle","show"])}function Kd(t){return t.type+"||"+t.id}function $d(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var c=s.length,f=lD(t).splitAreaColors,p=Y(),d=0;if(f)for(var g=0;g<h.length;g++){var y=f.get(h[g].tickValue);if(null!=y){d=(y+(c-1)*g)%c;break}}var v=r.toGlobalCoord(h[0].coord),m=a.getAreaStyle();s=b(s)?s:[s];for(var g=1;g<h.length;g++){var _=r.toGlobalCoord(h[g].coord),x=void 0,w=void 0,S=void 0,M=void 0;r.isHorizontal()?(x=v,w=l.y,S=_-x,M=l.height,v=x+S):(x=l.x,w=v,S=l.width,M=_-w,v=w+M);var T=h[g-1].tickValue;null!=T&&p.set(T,d),e.add(new dx({anid:null!=T?"area_"+T:null,shape:{x:x,y:w,width:S,height:M},style:u({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}lD(t).splitAreaColors=p}}}function Qd(t){lD(t).splitAreaColors=null}function Jd(t){t.registerComponentView(gD),t.registerComponentModel(WI),t.registerCoordinateSystem("cartesian2d",nD),xd(t,"x",UI,yD),xd(t,"y",UI,yD),t.registerComponentView(pD),t.registerComponentView(dD),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function tg(t,e,n,i){eg(vD(n).lastProp,i)||(vD(n).lastProp=i,e?oa(n,i,t):(n.stopAnimation(),n.attr(i)))}function eg(t,e){if(I(t)&&I(e)){var n=!0;return d(e,function(e,i){n=n&&eg(t[i],e)}),!!n}return t===e}function ng(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ig(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function rg(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)})}function og(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}function ag(t,e,n,i,r){var o=n.get("value"),a=lg(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Pb(s.get("padding")||0),u=s.getFont(),h=_n(a,u),c=r.position,f=h.width+l[1]+l[3],p=h.height+l[0]+l[2],d=r.align;"right"===d&&(c[0]-=f),"center"===d&&(c[0]-=f/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=p),"middle"===g&&(c[1]-=p/2),sg(c,f,p,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Wa(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function sg(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)}function lg(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Cf(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};d(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),M(a)?o=a.replace("{value}",o):S(a)&&(o=a(s))}return o}function ug(t,e,n){var i=Et();return Vt(i,i,n.rotation),Ft(i,i,n.position),Sa([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function hg(t,e,n,i,r,o){var a=rD.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),ag(e,i,r,o,{position:ug(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cg(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function fg(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function pg(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function dg(t){return"x"===t.dim?0:1}function gg(t,e,n){if(!xy.node){var i=e.getZr();MD(i).records||(MD(i).records={}),yg(i,e);(MD(i).records[t]||(MD(i).records[t]={})).handler=n}}function yg(t,e){function n(n,i){t.on(n,function(n){var r=xg(e);TD(MD(t).records,function(t){t&&i(t,n,r.dispatchAction)}),vg(r.pendings,e)})}MD(t).initialized||(MD(t).initialized=!0,n("click",w(_g,"click")),n("mousemove",w(_g,"mousemove")),n("globalout",mg))}function vg(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 mg(t,e,n){t.handler("leave",null,n)}function _g(t,e,n,i){e.handler(t,n,i)}function xg(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}}function wg(t,e){if(!xy.node){var n=e.getZr();(MD(n).records||{})[t]&&(MD(n).records[t]=null)}}function bg(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=ki(o,t);if(null==a||0>a||b(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,f=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(f),y=[];y[p]=o.get(d,a),y[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(y)||[]}else i=l.dataToPoint(o.getValues(g(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}function Sg(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Vy(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lg(r)&&(r=bg({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Lg(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||Lg(r),f={},p={},g={list:[],map:{}},y={showPointer:w(Cg,p),showTooltip:w(Ig,g)};d(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);d(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=Pg(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Mg(t,o,y,!1,f)}})});var v={};return d(h,function(t,e){var n=t.linkGroup;n&&!p[e]&&d(n.axesInfo,function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Og(e),Og(t)))),v[t.key]=o}})}),d(v,function(t,e){Mg(h[e],t,y,!0,f)}),Dg(p,h,f),kg(g,r,t,a),Ag(h,a,n),f}}function Mg(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=Tg(e,t),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==r.seriesIndex&&l(r,s[0]),!i&&t.snap&&o.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,s),n.showTooltip(t,a,u)}}function Tg(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return d(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var f=t-l,p=Math.abs(f);a>=p&&((a>p||f>=0&&0>s)&&(a=p,s=f,r=l,o.length=0),d(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Cg(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Ig(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=Kd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.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 Dg(t,e,n){var i=n.axesInfo=[];d(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 kg(t,e,n,i){if(Lg(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 Ag(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=ID(i)[r]||{},a=ID(i)[r]={};d(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&d(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];d(o,function(t,e){!a[e]&&l.push(t)}),d(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Pg(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 Og(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 Lg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Rg(t){sD.registerAxisPointerClass("CartesianAxisPointer",wD),t.registerComponentModel(SD),t.registerComponentView(CD),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!b(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Vd(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Sg)}function Eg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Ng(t){if(xy.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;i>n;n++)if(t[n]in e)return t[n]}function Bg(t,e){if(!t)return e;e=Ms(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function zg(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function Fg(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Vg(t,e,n){if(!M(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=As(e);var o,a=Fg(n),s=Math.max(1.5*Math.round(r),6),l="",u=OD+":";h(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,f=s+r,p=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c));l+=";"+a+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-f)/2))/100+"px";var d=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"].join("")+'"></div>'}function Hg(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=xy.transformSupported?","+OD+i:",left"+i+",top"+i),PD+":"+r}function Wg(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!xy.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=xy.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+OD+":"+a+";":[["top",0],["left",0],[kD,a]]}function Ug(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),d(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function Gg(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=mu(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+f),e&&r&&i.push(Hg(r,n)),o&&i.push("background-color:"+o),d(["width","color","radius"],function(e){var n="border-"+e,r=Ms(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(Ug(h)),null!=c&&i.push("padding:"+Pb(c).join("px ")+"px"),i.join(";")+";"}function Yg(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&xt(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function jg(t){return Math.max(0,t)}function Xg(t){var e=jg(t.shadowBlur||0),n=jg(t.shadowOffsetX||0),i=jg(t.shadowOffsetY||0);return{left:jg(e-n),right:jg(e+n),top:jg(e-i),bottom:jg(e+i)}}function qg(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Zg(t,e,n){var i,r=e.ecModel;n?(i=new cb(n,r,r),i=new cb(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof cb&&(a=a.get("tooltip",!0)),M(a)&&(a={formatter:a}),a&&(i=new cb(a,i,r)))}return i}function Kg(t,e){return t.dispatchAction||Vy(e.dispatchAction,e)}function $g(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function Qg(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Jg(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function ty(t){return"center"===t||"middle"===t}function ey(t,e,n){var i=Oi(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Li(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s;return n.getViewOfComponentModel(a).group.traverse(function(e){var n=bx(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function ny(t){Nf(Rg),t.registerComponentModel(DD),t.registerComponentView(BD),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},K),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},K)}function iy(t,e){if(!t)return!1;for(var n=b(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function ry(t){fi(t,"label",["show"])}function oy(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function ay(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function sy(t,e,n,i,r,o){var a=[],s=Ec(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=py(e,l,t),h=e.indicesOfNearest(l,u)[0];a[r]=e.get(n,h),a[o]=e.get(l,h);var c=e.get(i,h),f=Gn(e.get(i,h));return f=Math.min(f,20),f>=0&&(a[o]=+a[o].toFixed(f)),[a,c]}function ly(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i.dimensions;if(!ay(e)&&!b(e.coord)&&i){var a=uy(e,n,i,t);if(e=o(e),e.type&&HD[e.type]&&a.baseAxis&&a.valueAxis){var s=h(r,a.baseAxis.dim),l=h(r,a.valueAxis.dim),u=HD[e.type](n,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null==e.coord)e.coord=[];else for(var c=e.coord,f=0;2>f;f++)HD[c[f]]&&(c[f]=py(n,n.mapDimension(r[f]),c[f]));return e}}function uy(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(hy(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function hy(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function cy(t,e){return!(t&&t.containData&&e.coord&&!oy(e))||t.containData(e.coord)}function fy(t,e){return t?function(t,n,i,r){return Vl(2>r?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Vl(t.value,e[r])}}function py(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t){isNaN(t)||(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}function dy(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=Hn(a.get("x"),n.getWidth()),l=Hn(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function gy(t,e,n){var i;i=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new gC(i,n),o=g(n.get("data"),w(ly,e));t&&(o=v(o,w(cy,t)));var a=fy(!!t,i);return r.initData(o,null,a),r}function yy(t){t.registerComponentModel(VD),t.registerComponentView(GD),t.registerPreprocessor(function(t){iy(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var vy=function(t,e){return(vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},my=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),_y=function(){function t(){this.browser=new my,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}return t}(),xy=new _y;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(xy.wxa=!0,xy.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?xy.worker=!0:"undefined"==typeof navigator?(xy.node=!0,xy.svgSupported=!0):function(t,e){var n=e.browser,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);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,xy);var wy=12,by=wy+"px sans-serif",Sy=20,My=100,Ty=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-Sy)/My;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Cy={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var r=Cy.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||by),t.measureText(n);n=n||"",i=i||by;var o=/(\d+)px/.exec(i),a=o&&+o[1]||wy,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Ty[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},Iy=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Dy=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ky=Object.prototype.toString,Ay=Array.prototype,Py=Ay.forEach,Oy=Ay.filter,Ly=Ay.slice,Ry=Ay.map,Ey=function(){}.constructor,Ny=Ey?Ey.prototype:null,By="__proto__",zy=2311,Fy=Cy.createCanvas,Vy=Ny&&S(Ny.bind)?Ny.call.bind(Ny.bind):x,Hy="__ec_primitive__",Wy=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return _(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),Uy="function"==typeof Map,Gy=function(){function t(e){function n(t,e){i?r.set(t,e):r.set(e,t)}var i=b(e);this.data=G();var r=this;e instanceof t?e.each(n):e&&d(e,n)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return Uy?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}(),Yy=180/Math.PI,jy=(Object.freeze||Object)({guid:i,logError:r,clone:o,merge:a,mergeAll:s,extend:l,defaults:u,createCanvas:Fy,indexOf:h,inherits:c,mixin:f,isArrayLike:p,each:d,map:g,reduce:y,filter:v,find:m,keys:_,bind:Vy,curry:w,isArray:b,isFunction:S,isString:M,isStringSafe:T,isNumber:C,isObject:I,isBuiltInObject:D,isTypedArray:k,isDom:A,isGradientObject:P,isImagePatternObject:O,isRegExp:L,eqNaN:R,retrieve:E,retrieve2:N,retrieve3:B,slice:z,normalizeCssArray:F,assert:V,trim:H,setAsPrimitive:W,isPrimitive:U,HashMap:Gy,createHashMap:Y,concatArray:j,createObject:X,disableUserSelect:q,hasOwn:Z,noop:K,RADIAN_TO_DEGREE:Yy}),Xy=rt,qy=ot,Zy=ct,Ky=ft,$y=(Object.freeze||Object)({create:$,copy:Q,clone:J,set:tt,add:et,scaleAndAdd:nt,sub:it,len:rt,length:Xy,lenSquare:ot,lengthSquare:qy,mul:at,div:st,dot:lt,scale:ut,normalize:ht,distance:ct,dist:Zy,distanceSquare:ft,distSquare:Ky,negate:pt,lerp:dt,applyTransform:gt,min:yt,max:vt}),Qy=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Jy=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Qy(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Qy(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Qy(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Qy(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Qy(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Qy(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),tv=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;o>r;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},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;a>s;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;s>l;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ev=Math.log(2),nv="___zrEVENTSAVED",iv=[],rv=/([&<>"'])/g,ov={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},av=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,sv=[],lv=xy.browser.firefox&&+xy.browser.version.split(".")[0]<39,uv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},hv=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=Ct(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in cv)if(cv.hasOwnProperty(e)){var n=cv[e](this._track,t);if(n)return n}},t}(),cv={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Lt(i)/Lt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Rt(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},fv=(Object.freeze||Object)({create:Et,identity:Nt,copy:Bt,mul:zt,translate:Ft,rotate:Vt,scale:Ht,invert:Wt,clone:Ut}),pv=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),dv=Math.min,gv=Math.max,yv=new pv,vv=new pv,mv=new pv,_v=new pv,xv=new pv,wv=new pv,bv=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=dv(t.x,this.x),n=dv(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gv(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?gv(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=Et();return Ft(r,r,[-e.x,-e.y]),Ht(r,r,[n,i]),Ft(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,f=!(l>o||r>u||h>s||a>c);if(n){var p=1/0,d=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,y),x=Math.min(v,m);l>o||r>u?_>d&&(d=_,y>g?pv.set(wv,-g,0):pv.set(wv,y,0)):p>_&&(p=_,y>g?pv.set(xv,g,0):pv.set(xv,-y,0)),h>s||a>c?x>d&&(d=x,m>v?pv.set(wv,0,-v):pv.set(wv,0,m)):p>_&&(p=_,m>v?pv.set(xv,0,v):pv.set(xv,0,-m))}return n&&pv.copy(n,f?xv:wv),f},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}yv.x=mv.x=n.x,yv.y=_v.y=n.y,vv.x=_v.x=n.x+n.width,vv.y=mv.y=n.y+n.height,yv.transform(i),_v.transform(i),vv.transform(i),mv.transform(i),e.x=dv(yv.x,vv.x,mv.x,_v.x),e.y=dv(yv.y,vv.y,mv.y,_v.y);var l=gv(yv.x,vv.x,mv.x,_v.x),u=gv(yv.y,vv.y,mv.y,_v.y);e.width=l-e.x,e.height=u-e.y},t}(),Sv="silent",Mv=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(tv),Tv=function(){function t(t,e){this.x=t,this.y=e}return t}(),Cv=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Iv=new bv(0,0,0,0),Dv=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Tv(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Mv,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Jy(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(d(Cv,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=qt(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Tv(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new Tv(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=Gt(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Tv(t,e);if(Xt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new bv(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Iv.copy(h.getBoundingRect()),h.transform&&Iv.applyTransform(h.transform),Iv.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,f=2*Math.PI,p=0;s>p;p+=4)for(var d=0;f>d;d+=c){var g=t+p*Math.cos(d),y=e+p*Math.sin(d);if(Xt(o,r,g,y,n),r.target)return r}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new hv);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Tv;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(tv);d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Dv.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=qt(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Zy(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var kv,Av=32,Pv=7,Ov=1,Lv=4,Rv=!1,Ev=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=re}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,ne(n,re)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else 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.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Ov),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ie(),u.z=0),isNaN(u.z2)&&(ie(),u.z2=0),isNaN(u.zlevel)&&(ie(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=h(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();kv=xy.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Nv=kv,Bv={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||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*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?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Bv.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Bv.bounceIn(2*t):.5*Bv.bounceOut(2*t-1)+.5}},zv=Math.pow,Fv=Math.sqrt,Vv=1e-8,Hv=1e-4,Wv=Fv(3),Uv=1/3,Gv=$(),Yv=$(),jv=$(),Xv=/cubic-bezier\(([0-9,\.e ]+)\)/,qv=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||K,this.ondestroy=t.ondestroy||K,this.onrestart=t.onrestart||K,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=S(t)?t:Bv[t]||we(t)},t}(),Zv=function(){function t(t){this.value=t}return t}(),Kv=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Zv(t);return this.insertEntry(e),e},t.prototype.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++},t.prototype.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--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),$v=function(){function t(t){this._list=new Kv,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Zv(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Qv={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]},Jv=new $v(20),tm=null,em=Be,nm=ze,im=(Object.freeze||Object)({parse:Oe,lift:Ee,toHex:Ne,fastLerp:Be,fastMapToColor:em,lerp:ze,mapToColor:nm,modifyHSL:Fe,modifyAlpha:Ve,stringify:He,lum:We,random:Ue}),rm=(function(){xy.hasGlobalWindow&&S(window.btoa)}(),Array.prototype.slice),om=1,am=2,sm=4,lm=5,um=[0,0,0,0],hm=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(p(e)){var u=en(e);a=u,(1===u&&!C(e[0])||2===u&&!C(e[0][0]))&&(o=!0)}else if(C(e)&&!R(e))a=0;else if(M(e))if(isNaN(+e)){var h=Oe(e);h&&(s=h,a=3)}else a=0;else if(P(e)){var c=l({},s);c.colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:Oe(t.color)}}),Ge(e)?a=sm:Ye(e)&&(a=lm),s=c}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:s,rawValue:e,percent:0};return n&&(f.easing=n,f.easingFunc=S(n)?n:Bv[n]||we(n)),i.push(f),f},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=rn(i),l=nn(i),u=0;r>u;u++){var h=n[u],c=h.value,f=o.value;h.percent=h.time/t,a||(s&&u!==r-1?Qe(c,f,i):l&&$e(c.colorStops,f.colorStops))}if(!a&&i!==lm&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var p=n[0].value,u=0;r>u;u++)0===i?n[u].additiveValue=n[u].value-p:3===i?n[u].additiveValue=Ze([],n[u].value,p,-1):rn(i)&&(n[u].additiveValue=i===om?Ze([],n[u].value,p,-1):Ke([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,f=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(0>e)n=0;else if(e<this._lastFrP){var d=p(f+1,u-1);for(n=d;n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=f;u>n&&!(l[n].percent>e);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var y=r.percent-i.percent,v=0===y?1:p((e-i.percent)/y,1);r.easingFunc&&(v=r.easingFunc(v));var m=o?this._additiveValue:c?um:t[h];if(!rn(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>v?i.rawValue:r.rawValue;else if(rn(s))s===om?Xe(m,i[a],r[a],v):qe(m,i[a],r[a],v);else if(nn(s)){var _=i[a],x=r[a],w=s===sm;t[h]={type:w?"linear":"radial",x:je(_.x,x.x,v),y:je(_.y,x.y,v),colorStops:g(_.colorStops,function(t,e){var n=x.colorStops[e];return{offset:je(t.offset,n.offset,v),color:tn(Xe([],t.color,n.color,v))}}),global:x.global},w?(t[h].x2=je(_.x2,x.x2,v),t[h].y2=je(_.y2,x.y2,v)):t[h].r=je(_.r,x.r,v)}else if(c)Xe(m,i[a],r[a],v),o||(t[h]=tn(m));else{var b=je(i[a],r[a],v);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(Oe(t[n],um),Ze(um,um,i,1),t[n]=tn(um)):e===om?Ze(t[n],t[n],i,1):e===am&&Ke(t[n],t[n],i,1)},t}(),cm=function(){function t(t,e,n,i){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void r("Can' use additive animation on looped animation."):(this._additiveAnimators=i,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,_(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new hm(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=tn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Je(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Je(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new qv({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Je(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||_(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),fm=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=on()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(Nv(t),!e._paused&&e.update())}var e=this;this._running=!0,Nv(t)},n.prototype.start=function(){this._running||(this._time=on(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=on(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=on()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new cm(t,e.loop);return this.addAnimator(n),n},n}(tv),pm=xy.domSupported,dm=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:g(t,function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t})}}(),gm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ym=!1,vm=function(){function t(t,e){this.stopPropagation=K,this.stopImmediatePropagation=K,this.preventDefault=K,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),mm={mousedown:function(t){t=kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=kt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=kt(this.dom,t),hn(this,t.toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ym=!0,t=kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ym||(t=kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=kt(this.dom,t),ln(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),mm.mousemove.call(this,t),mm.mousedown.call(this,t)},touchmove:function(t){t=kt(this.dom,t),ln(t),this.handler.processGesture(t,"change"),mm.mousemove.call(this,t)},touchend:function(t){t=kt(this.dom,t),ln(t),this.handler.processGesture(t,"end"),mm.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&mm.click.call(this,t)},pointerdown:function(t){mm.mousedown.call(this,t)},pointermove:function(t){an(t)||mm.mousemove.call(this,t)},pointerup:function(t){mm.mouseup.call(this,t)},pointerout:function(t){an(t)||mm.mouseout.call(this,t)}};d(["click","dblclick","contextmenu"],function(t){mm[t]=function(e){e=kt(this.dom,e),this.trigger(t,e)}});var _m={pointermove:function(t){an(t)||_m.mousemove.call(this,t)},pointerup:function(t){_m.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},xm=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),wm=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new xm(e,mm),pm&&(i._globalHandlerScope=new xm(document,_m)),cn(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){dn(this._localHandlerScope),pm&&dn(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,pm&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?fn(this,e):dn(e)}},n}(tv),bm=1;xy.hasGlobalWindow&&(bm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sm=bm,Mm=.4,Tm="#333",Cm="#ccc",Im=Nt,Dm=5e-5,km=[],Am=[],Pm=Et(),Om=Math.abs,Lm=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return gn(this.rotation)||gn(this.x)||gn(this.y)||gn(this.scaleX-1)||gn(this.scaleY-1)||gn(this.skewX)||gn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;return e||t?(n=n||Et(),e?this.getLocalTransform(n):Im(n),t&&(e?zt(n,t,n):Bt(n,t)),this.transform=n,void this._resolveGlobalScaleRatio(n)):void(n&&Im(n))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(km);var n=km[0]<0?-1:1,i=km[1]<0?-1:1,r=((km[0]-n)*e+n)/km[0]||0,o=((km[1]-i)*e+i)/km[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Et(),Wt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(zt(Am,t.invTransform,e),e=Am);var n=this.originX,i=this.originY;(n||i)&&(Pm[4]=n,Pm[5]=i,zt(Am,e,Pm),Am[4]-=n,Am[5]-=i,e=Am),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&gt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&gt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Om(t[0]-1)>1e-10&&Om(t[3]-1)>1e-10?Math.sqrt(Om(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){yn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,d=i+s;e[4]=-p*r-c*d*o,e[5]=-d*o-f*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=f*r,e[2]=c*o,l&&Vt(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Rm=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Em={},Nm="__zr_normal__",Bm=Rm.concat(["ignore"]),zm=y(Rm,function(t,e){return t[e]=!0,t},{ignore:!1}),Fm={},Vm=new bv(0,0,0,0),Hm=function(){function t(t){this.id=i(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.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.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=Vm;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fm,n,u):Mn(Fm,n,u),r.x=Fm.x,r.y=Fm.y,o=Fm.align,a=Fm.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,f=void 0;"center"===h?(c=.5*u.width,f=.5*u.height):(c=Sn(h[0],u.width),f=Sn(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+f+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;d&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==v||"auto"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,(null==y||"auto"===y)&&(y=this.getOutsideFill()),(null==v||"auto"===v)&&(v=this.getOutsideStroke(y),m=!0)),y=y||"#000",(y!==g.fill||v!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Ov,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cm:Tm},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Oe(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,He(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},l(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(I(t))for(var n=t,i=_(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Nm)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Bm)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Nm,!1,t)},t.prototype.useState=function(t,e,n,i){var o=t===Nm;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(h(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!o)return void r("State "+t+" not exists.");o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,f=this._textGuide;return c&&c.useState(t,e,n,u),f&&f.useState(t,e,n,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ov),l}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ov)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=h(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=h(i,t),o=h(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];l(n,r),r.textConfig&&(e=e||{},l(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=l({},i?this.textConfig:n.textConfig),l(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,h=0;h<Bm.length;h++){var c=Bm[h],f=r&&zm[c];e&&null!=e[c]?f?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(f?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(var h=0;h<this.animators.length;h++){var p=this.animators[h],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Lm,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ov;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==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),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){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),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new cm(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=h(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Tn(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Tn(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Tn(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){function e(t,e,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(n,t,{get:function(){if(!this[e]){o(this,this[e]=[])}return this[e]},set:function(t){this[i]=t[0],this[r]=t[1],this[e]=t,o(this,t)}})}var n=t.prototype;n.type="element",n.name="",n.ignore=n.silent=n.isGroup=n.draggable=n.dragging=n.ignoreClip=n.__inHover=!1,n.__dirty=Ov,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),t}();f(Hm,tv),f(Hm,Lm);var Wm=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},n.prototype.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},n.prototype.replace=function(t,e){var n=h(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=h(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},n.prototype.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},n.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new bv(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(bv.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},n}(Hm);Wm.prototype.type="group";var Um={},Gm={},Ym=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new Ev,o=n.renderer||"canvas";Um[o]||(o=_(Um)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Um[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=xy.node||xy.worker||s?null:new wm(a.getViewportRoot(),a.root),h=n.useCoarsePointer;(null==h||"auto"===h?xy.touchEventsSupported:!!h)&&(l=N(n.pointerSize,44)),this.handler=new Dv(r,a,u,a.root,l),this.animation=new fm({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Ln(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=on();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=on();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Wm&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.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,On(this.id)},t}(),jm=(Object.freeze||Object)({init:Rn,dispose:En,disposeAll:Nn,getInstance:Bn,registerPainter:zn,version:"5.4.1"}),Xm=1e-4,qm=20,Zm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Km=("undefined"!=typeof console&&console.warn&&console.log,"series\0"),$m="\0_ec_\0",Qm=["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"],Jm=ai(),t_={useDefault:!0,enableAll:!1,enableNone:!1},e_=".",n_="___EC__COMPONENT__CONTAINER___",i_="___EC__EXTENDED_CLASS___",r_=Math.round(10*Math.random()),o_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],a_=Xi(o_),s_=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return a_(this,t,e)},t}(),l_=new $v(50),u_=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,h_=function(){function t(){}return t}(),c_=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),f_=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),p_=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),d_="__zr_style_"+Math.round(10*Math.random()),g_={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},y_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};g_[d_]=!0;var v_=["z","z2","invisible"],m_=["invisible"],__=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype._init=function(e){for(var n=_(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&lr(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new bv(0,0,0,0)),e?bv.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new bv(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return X(g_,t)},n.prototype.useStyle=function(t){t[d_]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[d_]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,v_)},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=_(u),c=0;c<h.length;c++){var f=h[c];f in s&&(s[f]=s[f],this.style[f]=u[f])}for(var p=_(s),c=0;c<p.length;c++){var f=p[c];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?m_:v_,c=0;c<d.length;c++){var f=d[c];n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return l(t,e),t},n.prototype.getAnimationStyleProps=function(){return y_},n.initDefaultProps=function(){var t=n.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=2|Ov}(),n}(Hm),x_=new bv(0,0,0,0),w_=new bv(0,0,0,0),b_=Math.min,S_=Math.max,M_=Math.sin,T_=Math.cos,C_=2*Math.PI,I_=$(),D_=$(),k_=$(),A_=[],P_=[],O_={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},L_=[],R_=[],E_=[],N_=[],B_=[],z_=[],F_=Math.min,V_=Math.max,H_=Math.cos,W_=Math.sin,U_=Math.abs,G_=Math.PI,Y_=2*G_,j_="undefined"!=typeof Float32Array,X_=[],q_=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=U_(n/Sm/t)||0,this._uy=U_(n/Sm/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(O_.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=U_(t-this._xi),i=U_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(O_.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(O_.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(O_.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),X_[0]=i,X_[1]=r,dr(X_,o),i=X_[0],r=X_[1];var a=r-i;return this.addData(O_.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=H_(r)*n+t,this._yi=W_(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(O_.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(O_.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!j_||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();j_&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,j_&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){E_[0]=E_[1]=B_[0]=B_[1]=Number.MAX_VALUE,N_[0]=N_[1]=z_[0]=z_[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case O_.M:n=r=e[t++],i=o=e[t++],B_[0]=r,B_[1]=o,z_[0]=r,z_[1]=o;break;case O_.L:ur(n,i,e[t],e[t+1],B_,z_),n=e[t++],i=e[t++];break;case O_.C:hr(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],B_,z_),n=e[t++],i=e[t++];break;case O_.Q:cr(n,i,e[t++],e[t++],e[t],e[t+1],B_,z_),n=e[t++],i=e[t++];break;case O_.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(r=H_(f)*h+l,o=W_(f)*c+u),fr(l,u,h,c,f,p,d,B_,z_),n=H_(p)*h+l,i=W_(p)*c+u;break;case O_.R:r=n=e[t++],o=i=e[t++];ur(r,o,r+e[t++],o+e[t++],B_,z_);break;case O_.Z:n=r,i=o}yt(E_,E_,B_),vt(N_,N_,z_)}return 0===t&&(E_[0]=E_[1]=N_[0]=N_[1]=0),new bv(E_[0],E_[1],N_[0]-E_[0],N_[1]-E_[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var f=t[c++],p=1===c;p&&(r=t[c],o=t[c+1],a=r,s=o);var d=-1;switch(f){case O_.M:r=a=t[c++],o=s=t[c++];break;case O_.L:var g=t[c++],y=t[c++],v=g-r,m=y-o;(U_(v)>n||U_(m)>i||c===e-1)&&(d=Math.sqrt(v*v+m*m),r=g,o=y);break;case O_.C:var _=t[c++],x=t[c++],g=t[c++],y=t[c++],w=t[c++],b=t[c++];d=pe(r,o,_,x,g,y,w,b,10),r=w,o=b;break;case O_.Q:var _=t[c++],x=t[c++],g=t[c++],y=t[c++];d=xe(r,o,_,x,g,y,10),r=g,o=y;break;case O_.A:var S=t[c++],M=t[c++],T=t[c++],C=t[c++],I=t[c++],D=t[c++],k=D+I;c+=1,t[c++],p&&(a=H_(I)*T+S,s=W_(I)*C+M),d=V_(T,C)*F_(Y_,Math.abs(D)),r=H_(k)*T+S,o=W_(k)*C+M;break;case O_.R:a=r=t[c++],s=o=t[c++];d=2*t[c++]+2*t[c++];break;case O_.Z:var v=a-r,m=s-o;d=Math.sqrt(v*v+m*m),r=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,f,p=this.data,d=this._ux,g=this._uy,y=this._len,v=1>e,m=0,_=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var w=0;y>w;){var b=p[w++],S=1===w;switch(S&&(r=p[w],o=p[w+1],n=r,i=o),b!==O_.L&&x>0&&(t.lineTo(c,f),x=0),b){case O_.M:n=r=p[w++],i=o=p[w++],t.moveTo(r,o);break;case O_.L:a=p[w++],s=p[w++];var M=U_(a-r),T=U_(s-o);if(M>d||T>g){if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=C}t.lineTo(a,s),r=a,o=s,x=0}else{var D=M*M+T*T;D>x&&(c=a,f=s,x=D)}break;case O_.C:var k=p[w++],A=p[w++],P=p[w++],O=p[w++],L=p[w++],R=p[w++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;ce(r,k,P,L,I,L_),ce(o,A,O,R,I,R_),t.bezierCurveTo(L_[1],R_[1],L_[2],R_[2],L_[3],R_[3]);break t}m+=C}t.bezierCurveTo(k,A,P,O,L,R),r=L,o=R;break;case O_.Q:var k=p[w++],A=p[w++],P=p[w++],O=p[w++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;me(r,k,P,I,L_),me(o,A,O,I,R_),t.quadraticCurveTo(L_[1],R_[1],L_[2],R_[2]);break t}m+=C}t.quadraticCurveTo(k,A,P,O),r=P,o=O;break;case O_.A:var E=p[w++],N=p[w++],B=p[w++],z=p[w++],F=p[w++],V=p[w++],H=p[w++],W=!p[w++],U=B>z?B:z,G=U_(B-z)>.001,Y=F+V,j=!1;if(v){var C=l[_++];m+C>h&&(Y=F+V*(h-m)/C,j=!0),m+=C}if(G&&t.ellipse?t.ellipse(E,N,B,z,H,F,Y,W):t.arc(E,N,U,F,Y,W),j)break t;S&&(n=H_(F)*B+E,i=W_(F)*z+N),r=H_(Y)*B+E,o=W_(Y)*z+N;break;case O_.R:n=r=p[w],i=o=p[w+1],a=p[w++],s=p[w++];var X=p[w++],q=p[w++];if(v){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+F_(Z,X),s),Z-=X,Z>0&&t.lineTo(a+X,s+F_(Z,q)),Z-=q,Z>0&&t.lineTo(a+V_(X-Z,0),s+q),(Z-=X)>0&&t.lineTo(a,s+V_(q-Z,0));break t}m+=C}t.rect(a,s,X,q);break;case O_.Z:if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=C}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=O_,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Z_=2*Math.PI,K_=2*Math.PI,$_=q_.CMD,Q_=2*Math.PI,J_=1e-4,tx=[-1,-1,-1],ex=[-1,-1],nx=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},g_),ix={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},y_.style)},rx=Rm.concat(["invisible","culling","z","z2","zlevel","parent"]),ox=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<rx.length;++s)r[rx[s]]=this[rx[s]];r.__dirty|=Ov}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=_(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?l(this.style,a):this.useStyle(a):"shape"===o?l(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(M(t)){var e=We(t,0);return e>.5?Tm:e>.2?"#eee":Cm}if(t)return Cm}return Tm},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(M(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===We(t,0)<Mm)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~Lv},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new q_(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Lv)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.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;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Dr(o,a/s,t,e)))return!0}if(this.hasFill())return Ir(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=Lv,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:l(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&Lv)},n.prototype.createStyle=function(t){return X(nx,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=l({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,u=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=l({},i.shape),l(s,n.shape)):(s=l({},r?this.shape:i.shape),l(s,n.shape)):u&&(s=i.shape),s)if(o){this.shape=l({},this.shape);for(var h={},c=_(s),f=0;f<c.length;f++){var p=c[f];"object"==typeof s[p]?this.shape[p]=s[p]:h[p]=s[p]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return ix},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var i=function(n){function i(e){var i=n.call(this,e)||this;return t.init&&t.init.call(i,e),i}return e(i,n),i.prototype.getDefaultStyle=function(){return o(t.style)},i.prototype.getDefaultShape=function(){return o(t.shape)},i}(n);for(var r in t)"function"==typeof t[r]&&(i.prototype[r]=t[r]);return i},n.initDefaultProps=function(){var t=n.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|Ov|Lv}(),n}(__),ax=u({strokeFirst:!0,font:by,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},nx),sx=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return X(ax,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=_n(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.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},n.initDefaultProps=function(){n.prototype.dirtyRectTolerance=10}(),n}(__);sx.prototype.type="tspan";var lx=u({x:0,y:0},g_),ux={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},y_.style)},hx=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return X(lx,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=kr(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return ux},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new bv(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(__);hx.prototype.type="image";var cx=Math.round,fx=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),px={},dx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new fx},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Or(px,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Ar(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(ox);dx.prototype.type="rect";var gx={fill:"#000"},yx={style:u({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},y_.style)},vx=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=gx,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},n.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},n.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},n.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},n.prototype._updateSubTexts=function(){this._childCursor=0,Br(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},n.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new bv(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||a.clone(),i.union(a))}this._rect=i||t}return this._rect},n.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||gx},n.prototype.setTextContent=function(){},n.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return l(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},n.prototype._mergeRich=function(t,e){for(var n=_(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},l(t[r],e[r])}},n.prototype.getAnimationStyleProps=function(){return yx},n.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},n.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||by,n=t.padding,i=Wr(t),r=nr(i,t),o=Ur(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,f=this._defaultStyle,p=t.x||0,d=t.y||0,g=t.align||f.align||"left",y=t.verticalAlign||f.verticalAlign||"top",v=p,m=wn(d,r.contentHeight,y);if(o||n){var _=xn(p,l,g),x=wn(d,s,y);o&&this._renderBackground(t,t,_,x,l,s)}m+=c/2,n&&(v=Hr(p,g,n),"top"===y?m+=n[0]:"bottom"===y&&(m-=n[2]));for(var w=0,b=!1,S=(Vr("fill"in t?t.fill:(b=!0,f.fill))),M=(Fr("stroke"in t?t.stroke:a||f.autoStroke&&!b?null:(w=2,f.stroke))),T=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,D=0;D<h.length;D++){var k=this._getOrCreateChild(sx),A=k.createStyle();k.useStyle(A),A.text=h[D],A.x=v,A.y=m,g&&(A.textAlign=g),A.textBaseline="middle",A.opacity=t.opacity,A.strokeFirst=!0,T&&(A.shadowBlur=t.textShadowBlur||0,A.shadowColor=t.textShadowColor||"transparent",A.shadowOffsetX=t.textShadowOffsetX||0,A.shadowOffsetY=t.textShadowOffsetY||0),A.stroke=M,A.fill=S,M&&(A.lineWidth=t.lineWidth||w,A.lineDash=t.lineDash,A.lineDashOffset=t.lineDashOffset||0),A.font=e,Er(A,t),m+=c,C&&k.setBoundingRect(new bv(xn(A.x,t.width,A.textAlign),wn(A.y,I,A.textBaseline),u,I))}},n.prototype._updateRichTexts=function(){var t=this.style,e=Wr(t),n=ir(e,t),i=n.width,r=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,f=xn(s,r,h),p=wn(l,o,c),d=f,g=p;a&&(d+=a[3],g+=a[0]);var y=d+i;Ur(t)&&this._renderBackground(t,t,f,p,r,o);for(var v=!!t.backgroundColor,m=0;m<n.lines.length;m++){for(var _=n.lines[m],x=_.tokens,w=x.length,b=_.lineHeight,S=_.width,M=0,T=d,C=y,I=w-1,D=void 0;w>M&&(D=x[M],!D.align||"left"===D.align);)this._placeToken(D,t,b,g,T,"left",v),S-=D.width,T+=D.width,M++;for(;I>=0&&(D=x[I],"right"===D.align);)this._placeToken(D,t,b,g,C,"right",v),S-=D.width,C-=D.width,I--;for(T+=(i-(T-d)-(y-C)-S)/2;I>=M;)D=x[M],this._placeToken(D,t,b,g,T+D.width/2,"center",v),T+=D.width,M++;g+=b}},n.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Ur(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=Hr(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var f=this._getOrCreateChild(sx),p=f.createStyle();f.useStyle(p);var d=this._defaultStyle,g=!1,y=0,v=Vr("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=Fr("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||d.autoStroke&&!g?null:(y=2,d.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||by,p.opacity=B(s.opacity,e.opacity,1),Er(p,s),m&&(p.lineWidth=B(s.lineWidth,e.lineWidth,y),p.lineDash=N(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=m),v&&(p.fill=v);var x=t.contentWidth,w=t.contentHeight;f.setBoundingRect(new bv(xn(p.x,x,p.textAlign),wn(p.y,w,p.textBaseline),x,w))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,f=l&&!c,p=t.borderRadius,d=this;if(f||t.lineHeight||u&&h){a=this._getOrCreateChild(dx),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(f){var y=a.style;y.fill=l||null,y.fillOpacity=N(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(hx),s.onload=function(){d.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=N(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=B(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return Nr(t)&&(e=[t.fontStyle,t.fontWeight,Rr(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&H(e)||t.textFont||t.font},n}(__),mx={left:!0,right:1,center:1},_x={top:1,bottom:1,middle:1},xx=["fontStyle","fontWeight","fontSize","fontFamily"],bx=Ai(),Sx=function(t,e,n,i){if(i){var r=bx(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,"group"===i.type&&i.traverse(function(i){var r=bx(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e})}},Mx=1,Tx={},Cx=Ai(),Ix=Ai(),Dx=0,kx=1,Ax=2,Px=["emphasis","blur","select"],Ox=["normal","emphasis","blur","select"],Lx=10,Rx=9,Ex="highlight",Nx="downplay",Bx="select",zx="unselect",Fx="toggleSelect",Vx=new $v(100),Hx=["emphasis","blur","select"],Wx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Ux=q_.CMD,Gx=[[],[],[]],Yx=Math.sqrt,jx=Math.atan2,Xx=Math.sqrt,qx=Math.sin,Zx=Math.cos,Kx=Math.PI,$x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Qx=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Jx=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(ox),tw=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),ew=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new tw},n.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(ox);ew.prototype.type="circle";var nw=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),iw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new nw},n.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},n}(ox);iw.prototype.type="ellipse";var rw=Math.PI,ow=2*rw,aw=Math.sin,sw=Math.cos,lw=Math.acos,uw=Math.atan2,hw=Math.abs,cw=Math.sqrt,fw=Math.max,pw=Math.min,dw=1e-4,gw=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),yw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new gw},n.prototype.buildPath=function(t,e){Jo(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(ox);yw.prototype.type="sector";var vw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),mw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new vw},n.prototype.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)},n}(ox);mw.prototype.type="ring";var _w=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),xw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new _w},n.prototype.buildPath=function(t,e){ea(t,e,!0)},n}(ox);xw.prototype.type="polygon";var ww=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),bw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new ww},n.prototype.buildPath=function(t,e){ea(t,e,!1)},n}(ox);bw.prototype.type="polyline";var Sw={},Mw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Tw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new Mw},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Pr(Sw,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(ox);Tw.prototype.type="line";var Cw=[],Iw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),Dw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new Iw},n.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(1>h&&(me(n,a,r,h,Cw),a=Cw[1],r=Cw[2],me(i,s,o,h,Cw),s=Cw[1],o=Cw[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(ce(n,a,l,r,h,Cw),a=Cw[1],l=Cw[2],r=Cw[3],ce(i,s,u,o,h,Cw),s=Cw[1],u=Cw[2],o=Cw[3]),t.bezierCurveTo(a,s,l,u,r,o)))},n.prototype.pointAt=function(t){return na(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=na(this.shape,t,!0);return ht(e,e)},n}(ox);Dw.prototype.type="bezier-curve";var kw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Aw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new kw},n.prototype.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)},n}(ox);Aw.prototype.type="arc";var Pw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},n.prototype.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],t[n].segmentIgnoreThreshold)},n.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},n.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},n.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ox.prototype.getBoundingRect.call(this)},n}(ox),Ow=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Lw=function(t){function n(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(n,t),n}(Ow),Rw=function(t){function n(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return e(n,t),n}(Ow),Ew=[0,0],Nw=[0,0],Bw=new pv,zw=new pv,Fw=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;4>n;n++)this._corners[n]=new pv;for(var n=0;2>n;n++)this._axes[n]=new pv;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);pv.sub(i[0],n[1],n[0]),pv.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return Bw.set(1/0,1/0),zw.set(0,0),!this._intersectCheckOneSide(this,t,Bw,zw,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,Bw,zw,i,-1)&&(n=!1,i)?n:(i||pv.copy(e,n?Bw:zw),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Ew),this._getProjMinMaxOnAxis(s,e._corners,Nw),Ew[1]<Nw[0]||Ew[0]>Nw[1]){if(a=!1,r)return a;var u=Math.abs(Nw[0]-Ew[1]),h=Math.abs(Ew[0]-Nw[1]);Math.min(u,h)>i.len()&&(h>u?pv.scale(i,l,-u*o):pv.scale(i,l,h*o))}else if(n){var u=Math.abs(Nw[0]-Ew[1]),h=Math.abs(Ew[0]-Nw[1]);Math.min(u,h)<n.len()&&(h>u?pv.scale(n,l,u*o):pv.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),Vw=[],Hw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(n,t),n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.useStyle=function(){this.style={}},n.prototype.getCursor=function(){return this._cursor},n.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},n.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},n.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},n.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},n.prototype.getDisplayables=function(){return this._displayables},n.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},n.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},n.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},n.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new bv(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Vw)),t.union(i)}this._rect=t}return this._rect},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var r=this._displayables[i];if(r.contain(t,e))return!0}return!1},n}(__),Ww=Ai(),Uw=Math.max,Gw=Math.min,Yw={},jw=qo,Xw=Zo,qw=Lr;da("circle",ew),da("ellipse",iw),da("sector",yw),da("ring",mw),da("polygon",xw),da("polyline",bw),da("rect",dx),da("line",Tw),da("bezierCurve",Dw),da("arc",Aw);var Zw=(Object.freeze||Object)({updateProps:oa,initProps:aa,removeElement:la,removeElementWithFadeOut:ha,isElementRemoved:sa,extendShape:fa,extendPath:pa,registerShape:da,getShapeClass:ga,makePath:ya,makeImage:va,mergePath:Xw,resizePath:_a,subPixelOptimizeLine:xa,subPixelOptimizeRect:wa,subPixelOptimize:qw,getTransform:ba,applyTransform:Sa,transformDirection:Ma,groupTransition:Ia,clipPointsByRect:Da,clipRectByRect:ka,createIcon:Aa,linePolygonIntersect:Pa,lineLineIntersect:Oa,setTooltipConfig:Ea,traverseElements:Ba,Group:Wm,Image:hx,Text:vx,Circle:ew,Ellipse:iw,Sector:yw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Tw,BezierCurve:Dw,Arc:Aw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Rw,BoundingRect:bv,OrientedBoundingRect:Fw,Point:pv,Path:ox}),Kw={},$w=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Qw=["align","lineHeight","width","height","tag","verticalAlign"],Jw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],tb=Ai(),eb=["textStyle","color"],nb=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ib=new vx,rb=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(eb):null)},t.prototype.getFont=function(){return Xa({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<nb.length;n++)e[nb[n]]=this.getShallow(nb[n]);return ib.useStyle(e),ib.update(),ib.getBoundingRect()},t}(),ob=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ab=Xi(ob),sb=function(){function t(){}return t.prototype.getLineStyle=function(t){return ab(this,t)},t}(),lb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ub=Xi(lb),hb=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return ub(this,t,e)},t}(),cb=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){a(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(o(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!xy.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Hi(cb),function(t){var e=["__\0is_clz",r_++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(cb),f(cb,sb),f(cb,hb),f(cb,s_),f(cb,rb);var fb=Math.round(10*Math.random()),pb={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},db={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},gb="ZH",yb="EN",vb=yb,mb={},_b={},xb=xy.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(gb)>-1?gb:vb}():vb;Ka(yb,pb),Ka(gb,db);var wb=1e3,bb=60*wb,Sb=60*bb,Mb=24*Sb,Tb=365*Mb,Cb={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ib="{yyyy}-{MM}-{dd}",Db={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ib,hour:Ib+" "+Cb.hour,minute:Ib+" "+Cb.minute,second:Ib+" "+Cb.second,millisecond:Cb.none},kb=["year","month","day","hour","minute","second","millisecond"],Ab=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Pb=F,Ob=["a","b","c","d","e","f","g"],Lb=function(t,e){return"{"+t+(null==e?"":e)+"}"},Rb=d,Eb=["left","right","top","bottom","width","height"],Nb=[["width","left","right"],["height","top","bottom"]],Bb=(w(Ps,"vertical"),w(Ps,"horizontal"),Ai()),zb=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Za("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Ls(this),i=n?Es(t):{};a(t,e.getTheme().get(this.mainType)),a(t,this.getDefaultOption()),n&&Rs(t,i,n)},n.prototype.mergeOption=function(t){a(this.option,t,!0);var e=Ls(this);e&&Rs(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!Vi(t))return t.defaultOption;var e=Bb(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},s=n.length-1;s>=0;s--)o=a(o,n[s],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Li(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(cb);Ui(zb,cb),ji(zb),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=zi(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=zi(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(zb),function(t,e){function n(t){var n={},o=[];return d(t,function(a){var s=i(n,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),d(u,function(t){h(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);h(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return d(t,function(t){h(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){0===--l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(d(t,function(t){h[t]=!0});u.length;){var c=u.pop(),f=l[c],p=!!h[c];p&&(i.call(r,c,f.originalDeps.slice()),delete h[c]),d(f.successor,p?a:o)}d(h,function(){throw new Error("")})}}}(zb,Bs);var Fb="";"undefined"!=typeof navigator&&(Fb=navigator.platform||"");var Vb,Hb,Wb="rgba(0, 0, 0, 0.2)",Ub={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fb.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Gb=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Yb="original",jb="arrayRows",Xb="objectRows",qb="keyedColumns",Zb="typedArray",Kb="unknown",$b="column",Qb="row",Jb={Must:1,Might:2,Not:3},tS=Ai(),eS=Y(),nS=Ai(),iS=(Ai(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=ci(this.get("color",!0)),r=this.get("colorLayer",!0);return js(this,nS,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Xs(this,nS)},t}()),rS="\0_ec_inner",oS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new cb(i),this._locale=new cb(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=Qs(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,Qs(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Hb(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&d(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=Gs(this,e,ci(t[e])),o=r.get(e),a=o?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=gi(o,n,a);Ii(u,e,zb),i[e]=null,r.set(e,null),s.set(e,0);var h,f=[],p=[],g=0;d(u,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=zb.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=l({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),l(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),p.push(i),g++):(f.push(void 0),p.push(void 0))},this),i[e]=f,r.set(e,p),s.set(e,g),"series"===e&&Vb(this)}var i=this.option,r=this._componentsMap,s=this._componentsCount,u=[],h=Y(),c=e&&e.replaceMergeMainTypeMap;zs(this),d(t,function(t,e){null!=t&&(zb.hasClass(e)?e&&(u.push(e),h.set(e,!0)):i[e]=null==i[e]?o(t):a(i[e],t,!0))}),c&&c.each(function(t,e){zb.hasClass(e)&&!h.get(e)&&(u.push(e),h.set(e,!0))}),zb.topologicalTravel(u,zb.getAllClassMainTypes(),n,this),this._seriesIndices||Vb(this)},n.prototype.getOption=function(){var t=o(this.option);return d(t,function(e,n){if(zb.hasClass(n)){for(var i=ci(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Ci(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[rS],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},n.prototype.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;return null!=n?(a=[],d(ci(n),function(t){o[t]&&a.push(o[t])})):a=null!=i?Ks("id",i,o):null!=r?Ks("name",r,o):v(o,function(t){return!!t}),$s(a,t)},n.prototype.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):v(this._componentsMap.get(n),function(t){return!!t});return function(e){return t.filter?v(e,t.filter):e}($s(r,t))},n.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(S(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=M(t)?i.get(t):I(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},n.prototype.getSeriesByName=function(t){var e=Mi(t,null);return v(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},n.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},n.prototype.getSeriesByType=function(t){return v(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},n.prototype.getSeries=function(){return v(this._componentsMap.get("series"),function(t){return!!t})},n.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},n.prototype.eachSeries=function(t,e){d(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},n.prototype.eachRawSeries=function(t,e){d(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},n.prototype.eachSeriesByType=function(t,e,n){d(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},n.prototype.eachRawSeriesByType=function(t,e,n){return d(this.getSeriesByType(t),e,n)},n.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},n.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},n.prototype.filterSeries=function(t,e){var n=[];d(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},n.prototype.restoreData=function(t){Vb(this);var e=this._componentsMap,n=[];e.each(function(t,e){zb.hasClass(e)&&n.push(e)}),zb.topologicalTravel(n,zb.getAllClassMainTypes(),function(n){d(e.get(n),function(e){!e||"series"===n&&qs(e,t)||e.restoreData()})})},n.internalField=function(){Vb=function(t){var e=t._seriesIndices=[];d(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Y(e)},Hb=function(t,e){t.option={},t.option[rS]=1,t._componentsMap=Y({series:[]}),t._componentsCount=Y();var n=e.aria;I(n)&&null==n.enabled&&(n.enabled=!0),Zs(e,t._theme.option),a(e,Ub,!1),t._mergeOption(e,null)}}(),n}(cb);f(oS,iS);var aS,sS,lS,uS,hS,cS,fS=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],pS=function(){function t(t){d(fS,function(e){this[e]=Vy(t[e],t)},this)}return t}(),dS={},gS=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];d(dS,function(i){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){d(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){dS[t]=e},t.get=function(t){return dS[t]},t}(),yS=/^(min|max)?(.+)$/,vS=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(d(ci(t.series),function(t){t&&t.data&&k(t.data)&&W(t.data)}),d(ci(t.dataset),function(t){t&&t.source&&k(t.source)&&W(t.source)})),t=o(t);var n=this._optionBackup,i=Js(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],o(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=o(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],a=[];if(!n.length&&!i)return a;for(var s=0,l=n.length;l>s;s++)tl(n[s].query,t,e)&&r.push(s);return!r.length&&i&&(r=[-1]),r.length&&!nl(r,this._currentMediaIndices)&&(a=g(r,function(t){return o(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,a},t}(),mS=d,_S=I,xS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],wS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],SS=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],MS=function(){function t(t){this.data=t.data||(t.sourceFormat===qb?{}:[]),this.sourceFormat=t.sourceFormat||Kb,this.seriesLayoutBy=t.seriesLayoutBy||$b,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Ws(this,n)===Jb.Must&&(i.type="ordinal")}}return t}(),TS=function(){function t(t,e){var n=Sl(t)?t:Tl(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Zb&&(this._offset=0,this._dimSize=e,this._data=i),hS(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;hS=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,h=o.dimensionsDefine;if(l(t,uS[Nl(a,s)]),a===Zb)t.getItem=n,t.count=r,t.fillStorage=i;else{var c=Ll(a,s);t.getItem=Vy(c,null,e,u,h);var f=Rl(a,s);t.count=Vy(f,null,e,u,h)}};var n=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;i>o;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],f=0;h>f;f++){var p=r[f*o+a];c[t+f]=p,l>p&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[jb+"_"+$b]={pure:!0,appendData:t},e[jb+"_"+Qb]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Xb]={pure:!0,appendData:t},e[qb]={pure:!0,appendData:function(t){var e=this._data;d(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[Yb]={appendData:t},e[Zb]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},uS=e}(),t}(),CS=function(t,e,n,i){return t[i]},IS=(aS={},aS[jb+"_"+$b]=function(t,e,n,i){return t[i+e]},aS[jb+"_"+Qb]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},aS[Xb]=CS,aS[qb]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=t[s];o[a]=l?l[i]:null}return o},aS[Yb]=CS,aS),DS=function(t){return t.length},kS=(sS={},sS[jb+"_"+$b]=function(t,e){return Math.max(0,t.length-e)},sS[jb+"_"+Qb]=function(t,e){var n=t[0];return n?Math.max(0,n.length-e):0},sS[Xb]=DS,sS[qb]=function(t,e,n){var i=n[0].name,r=t[i];return r?r.length:0},sS[Yb]=DS,sS),AS=function(t,e){return t[e]},PS=(lS={},lS[jb]=AS,lS[Xb]=function(t,e,n){return t[n]},lS[qb]=AS,lS[Yb]=function(t,e){var n=pi(t);return n instanceof Array?n[e]:n},lS[Zb]=AS,lS),OS=/\{@(.+?)\}/g,LS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,f=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=i&&b(s.value)&&(s.value=s.value[i]),!r){r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(S(r))return s.status=e,s.dimensionIndex=i,r(s);if(M(r)){return Cs(r,s).replace(OS,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Bl(a,t,r);if(o&&b(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Bl(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),RS=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||p>f)){var d=this._progress;if(b(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var y=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){ES.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:ES.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),b(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),ES=function(){function t(){return n>i?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,h,c){i=l,n=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),NS=(Y({number:function(t){return parseFloat(t)},time:function(t){return+Qn(t)},trim:function(t){return M(t)?H(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),BS=(function(){function t(t,e){if(!C(e)){ui("")}this._opFn=NS[t],this._rvalFloat=ri(e)}t.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(ri(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=C(t)?t:ri(t),i=C(e)?e:ri(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=M(t),s=M(e);a&&(n=s?t:0),s&&(i=a?e:0)}return i>n?this._resultLT:n>i?-this._resultLT:0},t}()),zS=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ri(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=ri(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return Vl(t,e)},t}()),FS=Y(),VS="undefined",HS=typeof Uint32Array===VS?Array:Uint32Array,WS=typeof Uint16Array===VS?Array:Uint16Array,US=typeof Int32Array===VS?Array:Int32Array,GS=typeof Float64Array===VS?Array:Float64Array,YS={float:GS,int:US,ordinal:Array,number:Array,time:GS},jS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=cS[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],Ol(i),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new YS[e||"float"](this._rawCount),this._rawExtent[r]=$l(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=$l());for(var s=r[t],l=o;a>l;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),i>n&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=i[l];Jl(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var f=c-a,p=0;r>p;p++){var u=i[p],d=cS.arrayRows.call(this,t[f]||h,u.property,f,p);n[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=$l()),Jl(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],f=t;e>f;f++){c=i.getItem(f,c);for(var p=0;a>p;p++){var d=r[p],y=this._dimValueGetter(c,l[p],f,p);d[f]=y;var v=s[p];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;o>r;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();r>i;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;r>=i;){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},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),f=e-r[c],p=Math.abs(f);n>=p&&((a>p||p===a&&f>=0&&0>s)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=Kl(this._rawCount);t=new n(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=Kl(n._rawCount),o=new r(i),a=[],s=t.length,l=0,u=t[0],h=n._chunks,c=0;i>c;c++){var f=void 0,p=n.getRawIndex(c);if(0===s)f=e(c);else if(1===s){var d=h[u][p];f=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][p];a[g]=c,f=e.apply(null,a)}f&&(o[l++]=p)}return i>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=_(t),r=i.length;if(!r)return this;var o=e.count(),a=Kl(e._rawCount),s=new a(o),l=0,u=i[0],h=t[u][0],c=t[u][1],f=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var g=f[i[0]],y=0;n>y;y++){var v=g[y];(v>=h&&c>=v||isNaN(v))&&(s[l++]=d),d++}p=!0}else if(2===r){for(var g=f[i[0]],m=f[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;n>y;y++){var v=g[y],b=m[y];(v>=h&&c>=v||isNaN(v))&&(b>=x&&w>=b||isNaN(b))&&(s[l++]=d),d++}p=!0}}if(!p)if(1===r)for(var y=0;o>y;y++){var S=e.getRawIndex(y),v=f[i[0]][S];(v>=h&&c>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var M=!0,S=e.getRawIndex(y),T=0;r>T;T++){var C=i[T],v=f[C][S];(v<t[C][0]||v>t[C][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(y))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=$l();for(var h=0;a>h;h++){for(var c=t.getRawIndex(h),f=0;o>f;f++)s[f]=i[e[f]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(var u=0;u<p.length;u++){var d=e[u],g=p[u],y=l[d],v=i[d];v&&(v[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),f=new(Kl(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));f[u++]=c;for(var p=1;l-1>p;p+=h){for(var d=Math.min(p+h,l-1),g=Math.min(p+2*h,l),y=(g+d)/2,v=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(v+=x)}v/=g-d;var w=p,b=Math.min(p+h,l),S=p-1,M=s[c];n=-1,r=w;for(var T=-1,C=0,m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)?(C++,0>T&&(T=_)):(i=Math.abs((S-y)*(x-M)-(S-m)*(v-M)))>n&&(n=i,r=_)}C>0&&b-w>C&&(f[u++]=Math.min(T,r),r=Math.max(T,r)),f[u++]=r,c=r}return f[u++]=this.getRawIndex(l-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=$l(),c=new(Kl(this._rawCount))(Math.ceil(u/s)),f=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(p+d);a[d]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(p+i(a,y)||0,u-1));l[v]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[f++]=v}return r._count=f,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];n>s;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=$l();if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var o=i[0],a=i[1],s=0;r>s;s++){var l=this.getRawIndex(s),u=e[l];o>u&&(o=u),u>a&&(a=u)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&y(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?Ql(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=o(this._extent),t._rawExtent=o(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;n>i;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Vl(t[i],this._dimensions[i])}cS={arrayRows:t,objectRows:function(t,e,n,i){return Vl(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Vl(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),XS=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,++this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(eu(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=k(a)?Zb:Yb,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},f=N(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=N(h.sourceHeader,c.sourceHeader),d=N(h.dimensions,c.dimensions);t=f!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d?[Ml(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s)]:[]}else{var g=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else{t=[Ml(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(null!=i){1!==t.length&&nu("")}var r,o=[],a=[];return d(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||nu(""),o.push(e),a.push(t._getVersionSign())}),n?r=Xl(n,o,{datasetIndex:e.componentIndex}):null!=i&&(r=[Cl(o[0])]),{sourceList:r,upstreamSignList:a}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];eu(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new jS,o.initData(new TS(e,t.length),t)),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(eu(t)){var e=Vs(t);return e?[e.getSourceManager()]:[]}return g(Hs(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(eu(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),qS="line-height:1",ZS=[0,10,20,30],KS=["","\n","\n\n","\n\n\n"],$S=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ai()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Is({color:e,type:t,renderMode:n,markerId:i});return M(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};b(e)?d(e,function(t){return l(n,t)}):l(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),QS=Ai(),JS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Fl({count:Mu,reset:Tu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(QS(this).sourceManager=new XS(this)).prepareSource();var i=this.getInitialData(t,n);Iu(i,this),this.dataTask.context.data=i,QS(this).dataBeforeProcessed=i,bu(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Ls(this),i=n?Es(t):{},r=this.subType;zb.hasClass(r)&&(r+="Series"),a(t,e.getTheme().get(this.subType)),a(t,this.getDefaultOption()),fi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Rs(t,i,n)},n.prototype.mergeOption=function(t,e){t=a(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ls(this);n&&Rs(this.option,t,n);var i=QS(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Iu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,QS(this).dataBeforeProcessed=r,bu(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!k(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&fi(t[n],"label",e)},n.prototype.getInitialData=function(){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=ku(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return QS(this).data},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=ku(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}QS(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);return t?Y(t):void 0},n.prototype.getSourceManager=function(){return QS(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return QS(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e){return _u({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(xy.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=iS.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=wu(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=_(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[wu(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){I(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;a>l;l++){var u=e[l],h=wu(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=wu(t,c);r.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(c),i)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return zb.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(zb);f(JS,LS),f(JS,iS),Ui(JS,zb);var tM=function(){function t(){this.group=new Wm,this.uid=Za("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Hi(tM),ji(tM);var eM=Ai(),nM=Au(),iM=function(){function t(){this.group=new Wm,this.uid=Za("viewChart"),this.renderTask=Fl({plan:Lu,reset:Ru}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Ou(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Ou(r,i,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Ba(this.group,t)},t.markUpdateMethod=function(t,e){eM(t).updateMethod=e},t.protoInitialize=function(){t.prototype.type="chart"}(),t}();Hi(iM),ji(iM);var rM,oM={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},aM="\0__throttleOriginMethod",sM="\0__throttleRate",lM="\0__throttleType",uM=Ai(),hM={itemStyle:Xi(lb,!0),lineStyle:Xi(ob,!0)},cM={lineStyle:"stroke",itemStyle:"fill"},fM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=zu(t,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var u=Fu(t,i),h=a[u],c=S(h)?h:null,f="auto"===a.fill||"auto"===a.stroke;if(!a[u]||c||f){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||S(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||S(a.stroke)?p:a.stroke}return n.setVisual("style",a),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&c?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=l({},a);r[u]=c(i),e.setItemVisual(n,"style",r)}}):void 0}},pM=new cb,dM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=zu(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){pM.option=n[i];var a=r(pM);l(t.ensureUniqueItemVisual(e,"style"),a),pM.option.decal&&(t.setItemVisual(e,"decal",pM.option.decal),pM.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},gM={performRawSeries:!0,overallReset:function(t){var e=Y();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),uM(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=uM(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Fu(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}},yM=Math.PI,vM=function(){function t(t,e,n,i){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount;return{step:o,modBy:null!=a?Math.ceil(a/o):null,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Y();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;d(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});V(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;d(t,function(t){if(!i.visualType||i.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var f=a.getPerformArgs(u,i.block);c.each(function(t){t.perform(f)}),u.perform(f)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getPerformArgs(s,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Fl({plan:Yu,reset:ju,count:qu}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):l?n.eachRawSeriesByType(l,r):u&&u(n,i).each(r)},t.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(f=!0,Fl({reset:Wu,onDirty:Gu})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||Fl({reset:Hu});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Y(),u=t.seriesType,h=t.getTargetSeries,c=!0,f=!1;V(!t.createOnAllSeries,""),u?n.eachRawSeriesByType(u,r):h?h(n,i).each(r):(c=!1,d(n.getSeries(),r)),f&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return S(t)&&(t={overallReset:t,seriesType:Zu(t)}),t.uid=Za("stageHandler"),e&&(t.visualType=e),t},t}(),mM=Xu(0),_M={},xM={};Ku(_M,oS),Ku(xM,pS),_M.eachSeriesByType=_M.eachRawSeriesByType=function(t){rM=t},_M.eachComponent=function(t){"series"===t.mainType&&t.subType&&(rM=t.subType)};var wM=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],bM={color:wM,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wM]},SM="#B9B8CE",MM="#100C2A",TM=function(){return{axisLine:{lineStyle:{color:SM}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},CM=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],IM={darkMode:!0,color:CM,backgroundColor:MM,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:SM}},textStyle:{color:SM},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:SM}},dataZoom:{borderColor:"#71708A",textStyle:{color:SM},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:SM}},timeline:{lineStyle:{color:SM},label:{color:SM},controlStyle:{color:SM,borderColor:SM}},calendar:{itemStyle:{color:MM},dayLabel:{color:SM},monthLabel:{color:SM},yearLabel:{color:SM}},timeAxis:TM(),logAxis:TM(),valueAxis:TM(),categoryAxis:TM(),line:{symbol:"circle"},graph:{color:CM},gauge:{title:{color:SM},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:SM},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};IM.categoryAxis.splitLine.show=!1;var DM=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(M(t)){var r=zi(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};d(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),kM=["symbol","symbolSize","symbolRotate","symbolOffset"],AM=kM.concat(["symbolKeepAspect"]),PM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,o[s](i,r))}}var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},o={},a=!1,s=0;s<kM.length;s++){var u=kM[s],h=t.get(u);S(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var c=_(o);return{dataEach:a?n:null}}}}},OM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(t,e){for(var n=t.getItemModel(e),i=0;i<AM.length;i++){var r=AM[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){return{dataEach:t.getData().hasItemOption?n:null}}}},LM=Math.round(9*Math.random()),RM="function"==typeof Object.defineProperty,EM=function(){function t(){this._id="__ec_inner_"+LM++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return RM?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),NM=ox.extend({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()}}),BM=ox.extend({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()}}),zM=ox.extend({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),h=Math.cos(u)*a,c=Math.sin(u),f=Math.cos(u),p=.6*a,d=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*p,l+s+f*p,n,i-d,n,i),t.bezierCurveTo(n,i-d,n-h+c*p,l+s+f*p,n-h,l+s),t.closePath()}}),FM=ox.extend({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()}}),VM={line:Tw,rect:dx,roundRect:dx,square:dx,circle:ew,diamond:BM,pin:zM,arrow:FM,triangle:NM},HM={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}},WM={};d(VM,function(t,e){WM[e]=new t});var UM=ox.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Mn(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=WM[i];r||(i="rect",r=WM[i]),HM[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}}),GM=new q_(!0),YM=["shadowBlur","shadowOffsetX","shadowOffsetY"],jM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],XM=1,qM=2,ZM=3,KM=4,$M=new EM,QM=new $v(100),JM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],tT=new tv,eT={},nT={zrender:"5.4.1"},iT=2e3,rT=1e3,oT=3e3,aT={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:rT,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:oT,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},sT="__flagInMainProcess",lT="__pendingUpdate",uT="__needsUpdateStatus",hT=/^[a-zA-Z0-9_]+$/,cT="__connectUpdateStatus",fT=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(tv),pT=fT.prototype;pT.on=jh("on"),pT.off=jh("off");var dT,gT,yT,vT,mT,_T,xT,wT,bT,ST,MT,TT,CT,IT,DT,kT,AT,PT,OT=function(t){function n(e,n,i){function r(t,e){return t.__prio-e.__prio}var a=t.call(this,new DM)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},M(n)&&(n=VT[n]),a._dom=e;var s=a._zr=Rn(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:N(i.useDirtyRect,!1),useCoarsePointer:N(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Eu(Vy(s.flush,s),17),n=o(n),n&&xl(n,!0),a._theme=n,a._locale=$a(i.locale||xb),a._coordSysMgr=new gS;var l=a._api=DT(a);return ne(FT,r),ne(BT,r),a._scheduler=new vM(a,l,BT,FT),a._messageCenter=new fT,a._initEvents(),a.resize=Vy(a.resize,a),s.animation.on("frame",a._onframe,a),ST(s,a),MT(s,a),W(a),a}return e(n,t),n.prototype._onframe=function(){if(!this._disposed){PT(this);var t=this._scheduler;if(this[lT]){var e=this[lT].silent;this[sT]=!0;try{dT(this),vT.update.call(this,null,this[lT].updateParams)}catch(t){throw this[sT]=!1,this[lT]=null,t}this._zr.flush(),this[sT]=!1,this[lT]=null,wT.call(this,e),bT.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),_T(this,i),t.performVisualTasks(i),IT(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[sT]&&!this._disposed){var i,r,o;if(I(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[sT]=!0,!this._model||e){var a=new vS(this._api),s=this._theme,l=this._model=new oS;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},zT);var u={seriesTransition:o,optionChanged:!0};if(n)this[lT]={silent:i,updateParams:u},this[sT]=!1,this.getZr().wakeUp();else{try{dT(this),vT.update.call(this,null,u)}catch(t){throw this[lT]=null,this[sT]=!1,t}this._ssr||this._zr.flush(),this[lT]=null,this[sT]=!1,wT.call(this,i),bT.call(this,i)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xy.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(xy.svgSupported){var t=this._zr;return d(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;d(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="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return d(i,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,a=1/0;if(UT[n]){var s=a,l=a,u=-a,h=-a,c=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();d(WT,function(a){if(a.group===n){var f=e?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(o(t)),p=a.getDom().getBoundingClientRect();s=i(p.left,s),l=i(p.top,l),u=r(p.right,u),h=r(p.bottom,h),c.push({dom:f,left:p.left,top:p.top})}}),s*=f,l*=f,u*=f,h*=f;var p=u-s,g=h-l,y=Cy.createCanvas(),v=Rn(y,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:g}),e){var m="";return d(c,function(t){var e=t.left-s,n=t.top-l;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new dx({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),d(c,function(t){var e=new hx({style:{x:t.left*f-s,y:t.top*f-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return mT(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return mT(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n;return d(Pi(this._model,t),function(t,i){i.indexOf("Models")>=0&&d(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,i=Pi(n,t,{defaultMainType:"series"}),r=i.seriesModel,o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?$u(o,a,e):Qu(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;d(RT,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&eh(o,function(t){var e=bx(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(i=l({},e.eventData),!0):void 0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var u=a&&null!=s&&r.getComponent(a,s),h=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),d(NT,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),d(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),th(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;this.getDom()&&Ri(this.getDom(),jT,"");var t=this,e=t._api,n=t._model;d(t._componentsViews,function(t){t.dispose(n,e)}),d(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete WT[t.id]}},n.prototype.resize=function(t){if(!this[sT]&&!this._disposed){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[lT]&&(null==i&&(i=this[lT].silent),n=!0,this[lT]=null),this[sT]=!0;try{n&&dT(this),vT.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[sT]=!1,t}this[sT]=!1,wT.call(this,i),bT.call(this,i)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(I(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),HT[t])){var n=HT[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=NT[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(I(e)||(e={silent:!!e}),ET[t.type]&&this._model)){if(this[sT])return void this._pendingActions.push(t);var n=e.silent;xT.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&xy.browser.weChat&&this._throttledZrFlush(),wT.call(this,n),bT.call(this,n)}},n.prototype.updateLabelLayout=function(){tT.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);ne(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),d(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}function i(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Ax&&t.states.emphasis?e.push("emphasis"):t.hoverState===kx&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,i=n.storage,r=0;i.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!xy.node&&!xy.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,n,i,-1/0),!0})}}function s(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),l=0;l<a.length;l++)i=Math.max(s(a[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function h(t,e){e.eachRendered(function(t){if(!sa(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function c(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(sa(t))return;if(t instanceof ox&&zo(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}})}dT=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),gT(t,!0),gT(t,!1),e.plan()},gT=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!n&&a[u];if(!h){var c=zi(t.type);h=new(e?tM.getClass(c.main,c.sub):iM.getClass(c.sub)),h.init(i,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(i,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},yT=function(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(a.setUpdatePayload(n),!i)return void d([].concat(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);var u,h=n.excludeSeriesId;null!=h&&(u=Y(),d(ci(h),function(t){var e=Mi(t,null);null!=e&&u.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!u||null==u.get(e.id))if(Bo(n))if(e instanceof JS)n.type!==Ex||n.notBlur||e.get(["emphasis","disabled"])||wo(e,n,t._api);else{var i=bo(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===Ex&&r&&!n.notBlur&&xo(e.mainType,e.componentIndex,t._api),o&&d(o,function(t){n.type===Ex?ho(t):co(t)})}else No(n)&&e instanceof JS&&(To(e,n,t._api),Co(e),AT(t))},t),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)},vT={prepareAndUpdate:function(t){dT(this),vT.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),_T(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),TT(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),tT.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Y();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),IT(this,i,r,e,{},a),tT.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),iM.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),TT(this,n,this._api,e,{}),tT.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),iM.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),tT.trigger("afterupdate",i,this._api))},updateLayout:function(t){vT.update.call(this,t)}},mT=function(t,e,n,i){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Pi(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},_T=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},xT=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=ET[r],s=a.actionInfo,h=(s.update||"update").split(":"),c=h.pop(),f=null!=h[0]&&zi(h[0]);this[sT]=!0;var p=[t],y=!1;t.batch&&(y=!0,p=g(t.batch,function(e){return e=u(l({},e),t),e.batch=null,e}));var v,m=[],_=No(t),x=Bo(t);if(x&&mo(this._api),d(p,function(e){if(v=a.action(e,n._model,n._api),v=v||l({},e),v.type=s.event||v.type,m.push(v),x){var i=Oi(t),r=i.queryOptionMap,o=i.mainTypeSpecified,u=o?r.keys()[0]:"series";yT(n,c,e,u),AT(n)}else _?(yT(n,c,e,"series"),AT(n)):f&&yT(n,c,e,f.main,f.sub)}),"none"!==c&&!x&&!_&&!f)try{this[lT]?(dT(this),vT.update.call(this,t),this[lT]=null):vT[c].call(this,t)}catch(t){throw this[sT]=!1,t}if(v=y?{type:s.event||r,escapeConnect:o,batch:m}:m[0],this[sT]=!1,!e){var w=this._messageCenter;if(w.trigger(v.type,v),_){var b={type:"selectchanged",escapeConnect:o,selected:Io(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};w.trigger(b.type,b)}}},wT=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();xT.call(this,n,t)}},bT=function(t){!t&&this.trigger("updated")},ST=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[lT]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},MT=function(t,e){t.on("mouseover",function(t){var n=t.target,i=eh(n,Ro);i&&(So(i,t,e._api),AT(e))}).on("mouseout",function(t){var n=t.target,i=eh(n,Ro);i&&(Mo(i,t,e._api),AT(e))}).on("click",function(t){var n=t.target,i=eh(n,function(t){return null!=bx(t).dataIndex},!0);if(i){var r=i.selected?"unselect":"select",o=bx(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},TT=function(t,e,i,r,o){n(e),CT(t,e,i,r,o),d(t._chartsViews,function(t){t.__alive=!1}),IT(t,e,i,r,o),d(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},CT=function(t,e,n,i,r,o){d(o||t._componentsViews,function(t){var r=t.__model;h(r,t),t.render(r,e,n,i),a(r,t),c(r,t)})},IT=function(t,e,n,i,s,u){var f=t._scheduler;s=l(s||{},{updatedSeries:e.getSeries()}),tT.trigger("series:beforeupdate",e,n,s);var p=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;f.updatePayload(r,i),h(e,n),u&&u.get(e.uid)&&r.dirty(),r.perform(f.getPerformArgs(r))&&(p=!0),n.group.silent=!!e.get("silent"),o(e,n),Co(e)}),f.unfinished=p||f.unfinished,tT.trigger("series:layoutlabels",e,n,s),tT.trigger("series:transition",e,n,s),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];a(e,n),c(e,n)}),r(t,e),tT.trigger("series:afterupdate",e,n,s)},AT=function(t){t[uT]=!0,t.getZr().wakeUp()},PT=function(t){t[uT]&&(t.getZr().storage.traverse(function(t){sa(t)||i(t)}),t[uT]=!1)},DT=function(t){return new(function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){ho(e,n),AT(t)},i.prototype.leaveEmphasis=function(e,n){co(e,n),AT(t)},i.prototype.enterBlur=function(e){fo(e),AT(t)},i.prototype.leaveBlur=function(e){po(e),AT(t)},i.prototype.enterSelect=function(e){go(e),AT(t)},i.prototype.leaveSelect=function(e){yo(e),AT(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(pS))(t)},kT=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][cT]=e}}d(NT,function(n,i){t._messageCenter.on(i,function(n){if(UT[t.group]&&0!==t[cT]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];d(WT,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),d(r,function(t){1!==t[cT]&&t.dispatchAction(i)}),e(r,2)}})})}}(),n}(tv),LT=OT.prototype;LT.on=Yh("on"),LT.off=Yh("off"),LT.one=function(t,e,n){function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}var r=this;this.on.call(this,t,i,n)};var RT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],ET={},NT={},BT=[],zT=[],FT=[],VT={},HT={},WT={},UT={},GT=+new Date-0,YT=+new Date-0,jT="_echarts_instance_",XT=Kh,qT=[],ZT=jl;hc(2e3,fM),hc(4500,dM),hc(4500,gM),hc(2e3,PM),hc(4500,OM),hc(7e3,Wh),ec(xl),nc(900,wl),fc("default",Vu),ac({type:Ex,event:Ex,update:Ex},K),ac({type:Nx,event:Nx,update:Nx},K),ac({type:Bx,event:Bx,update:Bx},K),ac({type:zx,event:zx,update:zx},K),ac({type:Fx,event:Fx,update:Fx},K),tc("light",bM),tc("dark",IM);var KT,$T,QT,JT,tC,eC,nC,iC={},rC=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||vc,this._newKeyGetter=i||vc,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=yc(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=yc(l),c=yc(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var f=0;h>f;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=yc(r);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=yc(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),oC=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}(),aC=function(){function t(t){this.otherDims={},null!=t&&l(this,t)}return t}(),sC=Ai(),lC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},uC=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Mc(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return N(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;return e?e[t]:void 0},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Ol(this.source),n=!Tc(t),i="",r=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=lC[l]||"f",u&&(i+=u.uid),i+="$"}var f=this.source;return{dimensions:r,hash:[f.seriesLayoutBy,f.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),hC=I,cC=g,fC="undefined"==typeof Int32Array?Array:Int32Array,pC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dC=["_approximateExtent"],gC=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;bc(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=M(h)?new aC({name:h}):h instanceof aC?h:new aC(h),f=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=f,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(f),r[f]=c,null!=l[f]&&(s=!0),c.createInvertedIndices&&(a[f]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=Y();d(o,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){return C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0)?+t:void 0},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof jS&&(i=t),!i){var o=this.dimensions,a=Sl(t)||p(t)?new TS(t,o.length):t;i=new jS;var s=cC(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=mc(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;r>a;a++){var s=a-i;this._nameList[a]=e[s],o&&nC(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Zb&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(i.getSource().sourceFormat===Yb&&!i.pure)for(var a=[],s=t;e>s;s++){var l=i.getItem(s,a);if(!this.hasItemOption&&di(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=Mi(u,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=Mi(h,null))}}if(this._shouldMakeIdFromName())for(var s=t;e>s;s++)nC(this,s);KT(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){hC(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=QT(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return $T(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.get(i.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.getByRawIndex(i.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return b(t)?i.getValues(cC(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){S(t)&&(n=e,e=t,t=[]);var i=n||this,r=cC(JT(t),this._getStoreDimIndex,this);this._store.each(r,i?Vy(e,i):e)},t.prototype.filterSelf=function(t,e,n){S(t)&&(n=e,e=t,t=[]);var i=n||this,r=cC(JT(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Vy(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=[];return d(_(t),function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){S(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=cC(JT(t),this._getStoreDimIndex,this),a=eC(this);return a._store=this._store.map(o,r?Vy(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=cC(JT(t),this._getStoreDimIndex,this);this._store.modify(o,r?Vy(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=eC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=eC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new cb(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new rC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return $T(t,e)},function(t){return $T(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},hC(t)?l(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),b(r)?r=r.slice():hC(r)&&(r=l({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,hC(e)?l(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){hC(t)?l(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Sx(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:cC(this.dimensions,this._getDimInfo,this),this.hostModel)),tC(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];S(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(z(arguments)))})},t.internalField=function(){KT=function(t){var e=t._invertedIndicesMap;d(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new fC(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},QT=function(t,e,n){return Mi(t._getCategory(e,n),null)},$T=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=QT(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},JT=function(t){return b(t)||(t=null!=t?[t]:[]),t},eC=function(e){var n=new t(e._schema?e._schema:cC(e.dimensions,e._getDimInfo,e),e.hostModel);return tC(n,e),n},tC=function(t,e){d(pC.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,d(dC,function(n){t[n]=o(e[n])}),t._calculationInfo=l({},e._calculationInfo)},nC=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=QT(t,r,e)),null==s&&null!=o&&(i[e]=s=QT(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),yC=function(){function t(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return t}(),vC={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",t_).models[0],o=t.getReferringComponents("yAxis",t_).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Oc(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Oc(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",t_).models[0];e.coordSysDims=["single"],n.set("single",r),Oc(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",t_).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Oc(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Oc(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();d(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Oc(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},mC=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ji(mC);var _C=0,xC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_C}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&g(i,Wc);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!M(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},t}(),wC=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new xC({})),b(i)&&(i=new xC({categories:g(i,function(t){return I(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?NaN:M(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),Zc(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Kc(t,this._extent)},n.prototype.scale=function(t){return t=Math.round($c(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},n.prototype.count=function(){return this._extent[1]-this._extent[0]+1},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(mC);mC.registerClass(wC);var bC=Wn,SC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Zc(t,this._extent)},n.prototype.normalize=function(t){return Kc(t,this._extent)},n.prototype.scale=function(t){return $c(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jc(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&o.push(t?{value:bC(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=bC(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&o.push(t?{value:bC(s+e,r)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,h=u/t;t-1>s;){var c=bC(a.value+(s+1)*h);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},n.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Gn(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Ss(bC(t.value,n,!0))},n.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var o=Gc(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(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.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=bC(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=bC(Math.ceil(e[1]/r)*r))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type="interval",n}(mC);mC.registerClass(SC);var MC="undefined"!=typeof Float32Array,TC=MC?Float32Array:Array,CC="__ec_stack_",IC=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},DC=function(t){function n(e){var n=t.call(this,e)||this;return n.type="time",n}return e(n,t),n.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return rs(t.value,Db[is(es(this._minLevelUnit))]||Db.second,e,this.getSetting("locale"))},n.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return os(t,e,n,this.getSetting("locale"),i)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=yf(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Mb,e[1]+=Mb),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Mb}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},n.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=kC.length,a=Math.min(IC(kC,this._approxInterval,0,o),o-1);this._interval=kC[a][1],this._minLevelUnit=kC[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return C(t)?t:+Qn(t)},n.prototype.contain=function(t){return Zc(this.parse(t),this._extent)},n.prototype.normalize=function(t){return Kc(this.parse(t),this._extent)},n.prototype.scale=function(t){return $c(t,this._extent)},n.type="time",n}(SC),kC=[["second",wb],["minute",bb],["hour",Sb],["quarter-day",6*Sb],["half-day",12*Sb],["day",1.2*Mb],["half-week",3.5*Mb],["week",7*Mb],["month",31*Mb],["quarter",95*Mb],["half-year",Tb/2],["year",Tb]];mC.registerClass(DC);var AC=mC.prototype,PC=SC.prototype,OC=Wn,LC=Math.floor,RC=Math.ceil,EC=Math.pow,NC=Math.log,BC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new SC,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return g(PC.getTicks.call(this,t),function(t){var e=t.value,r=Wn(EC(this.base,e));return r=e===n[0]&&this._fixMin?vf(r,i[0]):r,r=e===n[1]&&this._fixMax?vf(r,i[1]):r,{value:r}},this)},n.prototype.setExtent=function(t,e){var n=NC(this.base);t=NC(Math.max(0,t))/n,e=NC(Math.max(0,e))/n,PC.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=AC.getExtent.call(this);e[0]=EC(t,e[0]),e[1]=EC(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=vf(e[0],i[0])),this._fixMax&&(e[1]=vf(e[1],i[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=NC(t[0])/NC(e),t[1]=NC(t[1])/NC(e),AC.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=Jn(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Wn(RC(e[0]/i)*i),Wn(LC(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){PC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=NC(t)/NC(this.base),Zc(t,this._extent)},n.prototype.normalize=function(t){return t=NC(t)/NC(this.base),Kc(t,this._extent)},n.prototype.scale=function(t){return t=$c(t,this._extent),EC(this.base,t)},n.type="log",n}(mC),zC=BC.prototype;zC.getMinorTicks=PC.getMinorTicks,zC.getLabel=PC.getLabel,mC.registerClass(BC);var FC=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);S(r)?this._modelMinNum=_f(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=_f(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(S(o)?this._modelMaxNum=_f(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=_f(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=b(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[Sn(s[0],1),Sn(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var h=R(a)||R(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,f=this._determinedMax;return null!=c&&(a=c,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[HC[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[VC[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),VC={min:"_determinedMin",max:"_determinedMax"},HC={min:"_dataMin",max:"_dataMax"},WC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),UC={isDimensionStacked:Ec,enableDataStack:Lc,getStackedDimension:Nc},GC=(Object.freeze||Object)({createList:Of,getLayoutRect:Os,dataStack:UC,createScale:Lf,mixinAxisModelCommonMethods:Rf,getECData:bx,createTextStyle:Ef,createDimensions:Cc,createSymbol:ih,enableHoverEmphasis:Do}),YC=[],jC={registerPreprocessor:ec,registerProcessor:nc,registerPostInit:ic,registerPostUpdate:rc,registerUpdateLifecycle:oc,registerAction:ac,registerCoordinateSystem:sc,registerLayout:uc,registerVisual:hc,registerTransform:ZT,registerLoading:fc,registerMap:dc,registerImpl:Uh,PRIORITY:aT,ComponentModel:zb,ComponentView:tM,SeriesModel:JS,ChartView:iM,registerComponentModel:function(t){zb.registerClass(t)},registerComponentView:function(t){tM.registerClass(t)},registerSeriesModel:function(t){JS.registerClass(t)},registerChartView:function(t){iM.registerClass(t)},registerSubTypeDefaulter:function(t,e){zb.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){zn(t,e)}},XC=1e-8,qC=[],ZC=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),KC=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),$C=function(){function t(t){this.type="linestring",this.points=t}return t}(),QC=function(t){function n(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return Hf(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0];return d(this.geometries,function(e){"polygon"===e.type?Vf(e.exterior,n,i,t):d(e.points,function(e){Vf(e,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new bv(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(zf(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(zf(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new bv(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var h=l[u];"polygon"===h.type?(Ff(h.exterior,s),d(h.interiors,function(t){Ff(t,s)})):d(h.points,function(t){Ff(t,s)})}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},n.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new n(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},n}(ZC),JC=(function(t){function n(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}e(n,t),n.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=Nt(qC),r=t;r&&!r.isGeoSVGGraphicRoot;)zt(i,r.getLocalTransform(),i),r=r.parent;return Wt(i,i),gt(n,n,i),n}}(ZC),(Object.freeze||Object)({linearMap:Vn,round:Wn,asc:Un,getPrecision:Gn,getPrecisionSafe:Yn,getPixelPrecision:jn,getPercentWithPrecision:Xn,MAX_SAFE_INTEGER:9007199254740991,remRadian:Kn,isRadianAroundZero:$n,parseDate:Qn,quantity:Jn,quantityExponent:ti,nice:ei,quantile:ni,reformIntervals:ii,isNumeric:oi,numericToNumber:ri})),tI=(Object.freeze||Object)({parse:Qn,format:rs}),eI=(Object.freeze||Object)({extendShape:fa,extendPath:pa,makePath:ya,makeImage:va,mergePath:Xw,resizePath:_a,createIcon:Aa,updateProps:oa,initProps:aa,getTransform:ba,clipPointsByRect:Da,clipRectByRect:ka,registerShape:da,getShapeClass:ga,Group:Wm,Image:hx,Text:vx,Circle:ew,Ellipse:iw,Sector:yw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Tw,BezierCurve:Dw,Arc:Aw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Rw,BoundingRect:bv}),nI=(Object.freeze||Object)({addCommas:Ss,toCamelCase:Ms,normalizeCssArray:Pb,encodeHTML:Tt,formatTpl:Cs,getTooltipMarker:Is,formatTime:Ds,capitalFirst:ks,truncateText:Qi,getTextRect:bs}),iI=(Object.freeze||Object)({map:g,each:d,indexOf:h,inherits:c,reduce:y,filter:v,bind:Vy,curry:w,isArray:b,isString:M,isObject:I,isFunction:S,extend:l,defaults:u,clone:o,merge:a}),rI=Ai(),oI=[0,1],aI=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return jn(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),ap(n,i.count())),Vn(t,oI,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),ap(n,i.count()));var r=Vn(t,n,oI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=Xf(this,e),i=n.ticks,r=g(i,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return sp(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");return e>0&&100>e||(e=5),g(this.scale.getMinorTicks(e),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return jf(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.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},t.prototype.calculateCategoryInterval=function(){return np(this)},t}(),sI=2*Math.PI,lI=q_.CMD,uI=["top","right","bottom","left"],hI=[],cI=new pv,fI=new pv,pI=new pv,dI=new pv,gI=new pv,yI=[],vI=new pv,mI=["align","verticalAlign","width","height","fontSize"],_I=new Lm,xI=Ai(),wI=Ai(),bI=["x","y","rotation"],SI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();bv.applyTransform(u,u,l),l?_I.setLocalTransform(l):(_I.x=_I.y=_I.rotation=_I.originX=_I.originY=0,_I.scaleX=_I.scaleY=1);var h,c=i.__hostTarget;if(c){h=c.getBoundingRect().plain();var f=c.getComputedTransform();bv.applyTransform(h,h,f)}var p=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:_I.x,y:_I.y,scaleX:_I.scaleX,scaleY:_I.scaleY,rotation:_I.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(S(i)||_(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=bx(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l=S(r.layoutOption)?r.layoutOption(Ap(r,a)):r.layoutOption,l=l||{},r.computedLayoutOption=l;var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var h=!1;if(null!=l.x?(o.x=Hn(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Hn(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var c=a.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),h=!1)}xI(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var f=0;f<mI.length;f++){var p=mI[f];o.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(o.draggable=!0,o.cursor="move",a){var d=r.seriesModel;if(null!=r.dataIndex){var g=r.seriesModel.getData(r.dataType);d=g.getItemModel(r.dataIndex)}o.on("drag",function(t,e){return function(){mp(t,e)}}(a,d.getModel("labelLine")))}}else o.off("drag"),o.cursor=s.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=Mp(this._labelList),r=v(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=v(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});Cp(r,0,e),Ip(o,0,n),Dp(v(i,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;d(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=xI(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=bx(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");bp(t,Sp(a),s),mp(t,h)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!sa(t))){var r=xI(n),o=r.oldLayout,a=bx(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(h(c,"select")>=0&&n.attr(r.oldLayoutSelect),h(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),oa(n,l,e,s)}else if(n.attr(l),!tb(n).valueAnimation){var f=N(n.style.opacity,1);n.style.opacity=0,aa(n,{style:{opacity:f}},e,s)}if(r.oldLayout=l,n.states.select){var p=r.oldLayoutSelect={};Pp(p,l,bI),Pp(p,n.states.select,bI)}if(n.states.emphasis){var d=r.oldLayoutEmphasis={};Pp(d,l,bI),Pp(d,n.states.emphasis,bI)}qa(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=wI(i),o=r.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),oa(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,aa(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),MI=Ai();Nf(Op);var TI=function(t){function n(e,n,i){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;i=i||Sm,"string"==typeof e?o=Lp(e,n,i):I(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(q(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=n,r.dpr=i,r}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Lp("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new bv(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new bv(0,0,0,0);c.copy(h),c.union(t),o[u]=c,n=!0;break}if(s){l.copy(t),l.union(h);var f=t.width*t.height,p=h.width*h.height,d=l.width*l.height,g=d-f-p;i>g&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new bv(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new bv(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var h=t[u];if(h){var c=h.shouldBePainted(n,i,!0,!0),f=h.__isRendered&&(h.__dirty&Ov||!c)?h.getPrevPaintRect():null;f&&r(f);var p=c&&(h.__dirty&Ov||!h.__isRendered)?h.getPaintRect():null;p&&r(p)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(n,i,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var f=h.getPrevPaintRect();f&&r(f)}}var d;do{d=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(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))},n.prototype.clear=function(t,e,n){function i(t,n,i,r){if(o.clearRect(t,n,i,r),e&&"transparent"!==e){var a=void 0;if(P(e)){a=(e.global||e.__width===i&&e.__height===r)&&e.__canvasGradient||uh(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a,e.__width=i,e.__height=r}else O(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=xh(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));o.save(),o.fillStyle=a||e,o.fillRect(t,n,i,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(f,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h));var f=this.domBack;!n||l?i(0,0,a,s):n.length&&d(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})},n}(tv),CI=314159,II=function(){function t(t,e,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l({},n||{}),this.dpr=n.devicePixelRatio||Sm,this._singleCanvas=i,this.root=t,t.style&&(q(t),t.innerHTML=""),this.storage=e;var r=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var a=t,s=a.width,u=a.height;null!=n.width&&(s=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,a.width=s*this.dpr,a.height=u*this.dpr,this._width=s,this._height=u;var h=new TI(a,this,this.dpr);h.__builtin__=!0,h.initContext(),o[CI]=h,h.zlevel=CI,r.push(CI),this._domRoot=t}else{this._width=fh(t,0,n),this._height=fh(t,1,n);var c=this._domRoot=Ep(this._width,this._height);t.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx,i.save()),Rh(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){Lh(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;Nv(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(CI).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,h=!1,c=this,f=0;f<r.length;f++)!function(a){var s=r[a],l=s.ctx,f=o&&s.createRepaintRects(t,e,c._width,c._height),p=n?s.__startIndex:s.__drawIndex,d=!n&&s.incremental&&Date.now,g=d&&Date.now(),y=s.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,y,f);else if(p===s.__startIndex){var v=t[p];v.incremental&&v.notClear&&!n||s.clear(!1,y,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=s.__startIndex);var m,_=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(m=p;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(h=!0),i._doPaintEl(r,s,o,e,n,m===s.__endIndex-1),d){if(Date.now()-g>15)break}}n.prevElClipPaths&&l.restore()};if(f)if(0===f.length)m=s.__endIndex;else for(var x=c.dpr,w=0;w<f.length;++w){var b=f[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),_(b),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)}(f);return xy.wxa&&d(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Rh(a,t,r,o),t.setPrevPaintRect(s))}else Rh(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=CI);var n=this._layers[t];return n||(n=new TI("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?a(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&a(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&Rp(e)){if(r>0&&t>i[0]){for(s=0;r-1>s&&!(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 l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o,a,s=null,l=0;for(a=0;a<t.length;a++){var i=t[a],u=i.zlevel,h=void 0;o!==u&&(o=u,l=0),i.incremental?(h=this.getLayer(u+.001,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?.01:0),this._needsManuallyCompositing),h.__builtin__||r("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.__drawIndex=h.incremental?-1:a,e(a),s=h),i.__dirty&Ov&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,d(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?a(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+.01){a(this._layers[r],n[t],!0)}}}},t.prototype.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(h(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=fh(r,0,i),e=fh(r,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(CI).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[CI].dom;var e=new TI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];Rh(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),DI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new XS(this),tu(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),tu(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:$b},n}(zb),kI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(tM);Nf([Np,Bp]),Nf(Op);var AI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Fc(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(t){var e=new Wm,n=ih("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=ih(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},n}(JS),PI=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=ih(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Vp,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){ho(this.childAt(0))},n.prototype.downplay=function(){co(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(f):oa(c,f,a,e),ca(c)}if(this._updateCommon(t,e,s,i,r),l){var c=this.childAt(0);if(!u){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,aa(c,f,a,e)}}u&&this.childAt(0).stopAnimation("leave")},n.prototype._updateCommon=function(t,e,n,i,r){function o(e){return I?t.getName(e):zp(t,e)}var a,s,u,h,c,f,p,d,g,y=this.childAt(0),v=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,u=i.selectItemStyle,h=i.focus,c=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,g=i.cursorStyle,f=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),_=m.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),s=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),c=_.get("blurScope"),f=_.get("disabled"),p=Ha(m),d=_.getShallow("scale"),g=m.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");y.attr("rotation",(x||0)*Math.PI/180||0);var w=oh(t.getItemVisual(e,"symbolOffset"),n);w&&(y.x=w[0],y.y=w[1]),g&&y.attr("cursor",g);var b=t.getItemVisual(e,"style"),S=b.fill;if(y instanceof hx){var M=y.style;y.useStyle(l({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else y.useStyle(y.__isEmptyBrush?l({},b):b),y.style.decal=null,y.setColor(S,r&&r.symbolInnerColor),y.style.strokeNoScale=!0;var T=t.getItemVisual(e,"liftZ"),C=this._z2;null!=T?null==C&&(this._z2=y.z2,y.z2+=T):null!=C&&(y.z2=C,this._z2=null);var I=r&&r.useNameLabel;Va(y,p,{labelFetcher:v,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=y.ensureState("emphasis");D.style=a,y.ensureState("select").style=u,y.ensureState("blur").style=s;var k=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;D.scaleX=this._sizeX*k,D.scaleY=this._sizeY*k,this.setSymbolScale(1),Ao(this,h,c,f)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=bx(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&la(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();la(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return rh(t.getItemVisual(e,"symbolSize"))},n}(Wm),OI=function(){function t(t){this.group=new Wm,this._SymbolCtor=t||PI}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Wp(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Up(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Hp(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var f=r.getItemGraphicEl(c),p=u(h);if(!Hp(t,p,h,e))return void n.remove(f);var d=t.getItemVisual(h,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==d)n.remove(f),f=new o(t,h,s,l),f.setPosition(p);else{f.updateData(t,h,s,l);var y={x:p[0],y:p[1]};a?f.attr(y):oa(f,y,i)}n.add(f),t.setItemGraphicEl(h,f)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Up(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Wp(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Hp(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Ba(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}(),LI=Math.min,RI=Math.max,EI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),NI=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new EI},n.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Zp(n[2*r-2],n[2*r-1]);r--);for(;r>i&&Zp(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=Kp(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=q_.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,f=void 0,p=void 0,d=void 0,g=void 0,y=void 0,v=void 0;switch(h){case a.M:n=o[u++],i=o[u++];break;case a.L:if(c=o[u++],f=o[u++],1>=(v=s?(t-n)/(c-n):(t-i)/(f-i))&&v>=0){var m=s?(f-i)*v+i:(c-n)*v+n;return s?[t,m]:[m,t]}n=c,i=f;break;case a.C:c=o[u++],f=o[u++],p=o[u++],d=o[u++],g=o[u++],y=o[u++];var _=s?ue(n,c,p,g,t,l):ue(i,f,d,y,t,l);if(_>0)for(var x=0;_>x;x++){var w=l[x];if(1>=w&&w>=0){var m=s?se(i,f,d,y,w):se(n,c,p,g,w);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(ox),BI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(EI),zI=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new BI},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Zp(n[2*o-2],n[2*o-1]);o--);for(;o>r&&Zp(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=Kp(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Kp(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},n}(ox),FI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new Wm,e=new OI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],c="polar"===r.type,f=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),_=l.get("origin"),x=Gp(r,a,_),w=m&&rd(r,a,x),b=t.get("showSymbol"),S=t.get("connectNulls"),M=b&&!c&&ld(t,a,r),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),T.setItemGraphicEl(e,null))}),b||p.remove(),o.add(y);var C,I=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(C=r.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var D=sd(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&f.type===r.type&&I===this._step){m&&!g?g=this._newPolygon(h,w):g&&!m&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,As(D));var k=y.getClipPath();if(k){aa(k,{shape:gd(this,r,!1,t).shape},t)}else y.setClipPath(gd(this,r,!0,t));b&&p.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),td(this._stackedOnPoints,w)&&td(this._points,h)||(v?this._doUpdateAnimation(a,w,r,n,I,_,S):(I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:w})))}else b&&p.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,C),I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d=this._newPolyline(h),m?g=this._newPolygon(h,w):g&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,As(D)),y.setClipPath(gd(this,r,!0,t));var A=t.getModel("emphasis"),P=A.get("focus"),O=A.get("blurScope"),L=A.get("disabled");if(d.useStyle(u(s.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Oo(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1}bx(d).seriesIndex=t.seriesIndex,Ao(d,P,O,L);var R=id(t.get("smooth")),E=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:E,connectNulls:S}),g){var N=a.getCalculationInfo("stackedOnSeries"),B=0;g.useStyle(u(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(B=id(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:B,smoothMonotone:E,connectNulls:S}),Oo(g,t,"areaStyle"),bx(g).seriesIndex=t.seriesIndex,Ao(g,P,O,L)}var z=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=h,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},n.prototype.packEventData=function(t,e){bx(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ki(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;s=new PI(r,o),s.x=l,s.y=u,s.setZ(h,c);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=h,f.z=c,f.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else iM.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=ki(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else iM.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;eo(this._polyline,t),e&&eo(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new NI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new zI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");S(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=S(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],f=void 0,p=void 0,d=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(f=g.startAngle,p=g.endAngle,d=-y[1]/180*Math.PI):(f=g.r0,p=g.r,d=y[0])}else{var v=n;i?(f=v.x,p=v.x+v.width,d=t.x):(f=v.y+v.height,p=v.y,d=t.y)}var m=p===f?0:(d-f)/(p-f);a&&(m=1-m);var _=S(u)?u(o):l*m+h,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(dd(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new vx({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=cd(a);l>=0&&(Va(o,Ha(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Fp(r,n):zp(r,t)},enableTextSetter:!0},yd(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),f=o.get("precision"),p=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),y=d.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),w=g?"x":"y",b=pd(u,m,w),S=b.range,M=S[1]-S[0],T=void 0;if(M>=1){if(M>1&&!c){var C=fd(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(T=h.getRawValue(S[0]))}else{var C=l.getPointOn(m,w);C&&s.attr({x:C[0]+_,y:C[1]+x});var I=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(T=Bi(n,f,I,D,b.t))}i.lastFrameIndex=S[0]}else{var k=1===t||i.lastFrameIndex>0?S[0]:0,C=fd(u,k);r&&(T=h.getRawValue(k)),s.attr({x:C[0]+_,y:C[1]+x})}r&&tb(s).setLabelText(T)}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=qp(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin),c=h.current,f=h.stackedOnCurrent,p=h.next,d=h.stackedOnNext;if(r&&(c=od(h.current,n,r,a),f=od(h.stackedOnCurrent,n,r,a),p=od(h.next,n,r,a),d=od(h.stackedOnNext,n,r,a)),nd(c,p)>3e3||l&&nd(f,d)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:p}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),oa(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:f}),l.stopAnimation(),oa(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;m<v.length;m++){if("="===v[m].cmd){var _=t.getItemGraphicEl(v[m].idx1);_&&y.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},n.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(n,i){n.__temp&&(t.remove(n),e.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},n.type="line",n}(iM),VI={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 isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},HI=function(t){return Math.round(t.length/2)};Nf(_d);var WI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(zb),UI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",t_).models[0]},n.type="cartesian2dAxis",n}(zb);f(UI,WC);var GI={show:!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,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},YI=a({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},GI),jI=a({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},GI),XI=a({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jI),qI=u({logBase:10},jI),ZI={category:YI,value:jI,time:XI,log:qI},KI={value:1,category:1,time:1,log:1},$I=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),v(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),QI=["x","y"],JI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=QI,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(bd(t)&&bd(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,f=this._transform=[l,0,0,u,h,c];this._invTransform=Wt([],f)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.prototype.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]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new bv(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return gt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return gt(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new bv(n,i,r,o)},n}($I),tD=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.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},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(aI),eD=Math.log,nD=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=QI,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function n(t){var e,n=_(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;Uc(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(bf(u,l),Uc(u)&&(e=s))}r.length&&(e||(e=r.pop(),bf(e.scale,e.model)),d(r,function(t){Cd(t.scale,t.model,e.scale)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};d(i.x,function(t){Dd(i,"y",t,r)}),d(i.y,function(t){Dd(i,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){d(s,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Ad(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Os(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;i(),o&&(d(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=If(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}}),i()),d(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}I(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]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",t_).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",t_).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,h(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function n(e){return function(n,i){if(Id(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new tD(e,Sf(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void d(a.x,function(e,n){d(a.y,function(r,o){var a="x"+n+"y"+o,s=new JI(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function n(t,e){d(Pf(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}d(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(Md(t)){var i=Td(t),r=i.xAxisModel,o=i.yAxisModel;if(!Id(r,e)||!Id(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return d(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(Md(t)){var e=Td(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=QI,t}(),iD=Math.PI,rD=function(){function t(t,e){this.group=new Wm,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Wm({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!oD[t]},t.prototype.add=function(t){oD[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Kn(e-t);return $n(o)?(r=n>0?"top":"bottom",i="center"):$n(o-iD)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&iD>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),oD={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],u=[o[1],0],h=s[0]>u[0];a&&(gt(s,s,a),gt(u,u,a));var c=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Tw({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});xa(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var p=e.get(["axisLine","symbol"]);if(null!=p){var g=e.get(["axisLine","symbolSize"]);M(p)&&(p=[p,p]),(M(g)||C(g))&&(g=[g,g]);var y=oh(e.get(["axisLine","symbolOffset"])||0,g),v=g[0],m=g[1];d([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=ih(p[i],-v/2,-m/2,v,m,c.stroke,!0),o=e.r+e.offset,a=h?u:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=Bd(n,i,e,t),o=Fd(n,i,e,t);if(Od(e,o,r),zd(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){Dp(Mp(g(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))}},axisName:function(t,e,n,i){var r=E(t.axisName,e.get("name"));if(r){var o,a=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,f=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,Ed(a)?t.labelOffset+s*u:0],p=e.get("nameRotate");null!=p&&(p=p*iD/180);var d;Ed(a)?o=rD.innerTextLayout(t.rotation,null!=p?p:t.rotation,s):(o=Pd(t.rotation,a,p||0,h),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(o.rotation)),!isFinite(d)&&(d=null)));var g=l.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=E(t.nameTruncateMaxWidth,y.maxWidth,d),_=new vx({x:f[0],y:f[1],rotation:o.rotation,silent:rD.isLabelSilent(e),style:Wa(l,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||o.textAlign,verticalAlign:l.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ea({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=rD.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,bx(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}},aD={},sD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axisPointerClass&&jd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,i){var r=n.getAxisPointerClass(this.axisPointerClass);if(r){var o=qd(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,i):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){aD[t]=e},n.getAxisPointerClass=function(t){return t&&aD[t]},n.type="axis",n}(tM),lD=Ai(),uD=["axisLine","axisTickLabel","axisName"],hD=["splitArea","splitLine","minorSplitLine"],cD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="CartesianAxisPointer",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Wm,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Sd(a,e),u=new rD(e,l({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;n<t.length;n++)if(Uc(t[n].getOtherAxis(e.axis).scale))return!0;return!1}},s));d(uD,u.add,u),this._axisGroup.add(u.getGroup()),d(hD,function(t){e.get([t,"show"])&&fD[t](this,this._axisGroup,e,a)},this);r&&"changeAxisOrder"===r.type&&r.isInitSort||Ia(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},n.prototype.remove=function(){Qd(this)},n.type="cartesianAxis",n}(sD),fD={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=b(s)?s:[s];for(var l=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=0,f=r.getTicksCoords({tickModel:o}),p=[],d=[],g=a.getLineStyle(),y=0;y<f.length;y++){var v=r.toGlobalCoord(f[y].coord);h?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var m=c++%s.length,_=f[y].tickValue,x=new Tw({anid:null!=_?"line_"+f[y].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:u({stroke:s[m]},g),silent:!0});xa(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var h=[],c=[],f=a.getLineStyle(),p=0;p<u.length;p++)for(var d=0;d<u[p].length;d++){var g=r.toGlobalCoord(u[p][d].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var y=new Tw({anid:"minor_line_"+u[p][d].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:f,silent:!0});xa(y.shape,f.lineWidth),e.add(y)}},splitArea:function(t,e,n,i){$d(t,e,n,i)}},pD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="xAxis",n}(cD),dD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=pD.type,e}return e(n,t),n.type="yAxis",n}(cD),gD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(n,t),n.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new dx({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},n.type="grid",n}(tM),yD={offset:0};Nf(Jd);var vD=Ai(),mD=o,_D=Vy,xD=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=w(tg,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new Wm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);rg(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.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=Xd(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=vD(t).pointerEl=new Zw[n.type](mD(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=vD(t).labelEl=new vx(mD(e.label));t.add(r),ng(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=vD(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=vD(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),ng(r,i))},t.prototype._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=Aa(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){uv(t.event)},onmousedown:_D(this._onHandleDragMove,this,0,0),drift:_D(this._onHandleDragMove,this),ondragend:_D(this._onHandleDragEnd,this)}),n.add(i)),rg(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");b(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Nu(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){tg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ig(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ig(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ig(i)),vD(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._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}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.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),Bu(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),wD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=pg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=og(i),c=bD[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}hg(e,t,Sd(a.model,n),n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=Sd(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=ug(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=pg(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},n}(xD),bD={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:cg([e,n[0]],[e,n[1]],dg(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:fg([e-i/2,n[0]],[i,r],dg(t))}}},SD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axisPointer",n.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},n}(zb),MD=Ai(),TD=d,CD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";gg("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},n.prototype.remove=function(t,e){wg("axisPointer",e)},n.prototype.dispose=function(t,e){wg("axisPointer",e)},n.type="axisPointer",n}(tM),ID=Ai(),DD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="tooltip",n.dependencies=["axisPointer"],n.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},n}(zb),kD=Ng(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),AD=Ng(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),PD=Bg(AD,"transition"),OD=Bg(kD,"transform"),LD="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xy.transform3dSupported?"will-change:transform;":""),RD=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,xy.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Yg(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;kt(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=zg(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=LD+Gg(t,!this._firstShow,this._longHide)+Wg(r[0],r[1],!0)+"border-color:"+As(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(M(r)&&"item"===n.get("trigger")&&!Eg(n)&&(a=Vg(n,i,r)),M(t))o.innerHTML=t+a;else if(t){o.innerHTML="",b(t)||(t=[t]);for(var s=0;s<t.length;s++)A(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(Yg(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;d(Wg(n[0],n[1]),function(t){i[t[0]]=t[1]})}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",xy.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Vy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),ED=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),qg(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i){var r=this;I(t)&&ui(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new vx({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:mu(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),d(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),d(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=o.get(t)||0}),this._zr.add(this.el);var a=this;this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Xg(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;qg(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=jg(r.borderWidth||0),a=Xg(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Vy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),ND=new dx({shape:{x:-1,y:-1,width:2,height:2}}),BD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){if(!xy.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=Ni(n.get("renderMode"));this._tooltipContent="richText"===i?new ED(e):new RD(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},n.prototype.render=function(t,e,n){if(!xy.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Nu(this,"_updatePosition",50,"fixRate"):Bu(this,"_updatePosition")}},n.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");gg("itemTooltip",this._api,Vy(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!xy.node&&n.getDom()){var r=Kg(i,n);this._ticket="";var o=i.dataByCoordSys,a=ey(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=ND;l.x=i.x,l.y=i.y,l.update(),bx(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=bg(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:i.position,positionDefault:"bottom"},r)}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},r))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Kg(i,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){if("axis"===Zg([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},n.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){this._lastDataByCoordSys=null;var r,o;eh(n,function(t){return null!=bx(t).dataIndex?(r=t,!0):null!=bx(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Vy(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Zg([e.tooltipOption],i),a=this._renderMode,s=[],u=ru("section",{blocks:[],noHeader:!0}),h=[],c=new $S;d(t,function(t){d(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=lg(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),f=ru("section",{header:o,noHeader:!H(o),sortBlocks:!0,blocks:[]});u.blocks.push(f),d(t.seriesDataIndices,function(u){var p=n.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,g=p.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Cf(e.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",As(g.color),a);var y=zl(p.formatTooltip(d,!0,null)),v=y.frag;if(v){var m=Zg([p],i).get("valueFormatter");f.blocks.push(m?l({valueFormatter:m},v):v)}y.text&&h.push(y.text),s.push(g)}})}})}),u.blocks.reverse(),h.reverse();var f=e.position,p=o.get("order"),g=hu(u,c,a,p,n.get("useUTC"),o.get("textStyle"));g&&h.unshift(g);var y="richText"===a?"\n\n":"<br/>",v=h.join(y);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,f,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",r[0],r[1],f,null,c)})},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=bx(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,u=r.dataIndex,h=r.dataType,c=s.getData(h),f=this._renderMode,p=t.positionDefault,d=Zg([c.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(null==g||"item"===g){var y=s.getDataParams(u,h),v=new $S;y.marker=v.makeTooltipMarker("item",As(y.color),f);var m=zl(s.formatTooltip(u,!1,h)),_=d.get("order"),x=d.get("valueFormatter"),w=m.frag,b=w?hu(x?l({valueFormatter:x},w):w,v,f,_,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,b,y,S,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=bx(e),r=i.tooltipConfig,a=r.option||{};if(M(a)){var s=a;a={content:s,formatter:s}}var l=[a],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:a.content});var h=t.positionDefault,c=Zg(l,this._tooltipModel,h?{position:h}:null),f=c.get("content"),p=Math.random()+"",d=new $S;this._showOrMove(c,function(){var n=o(c.get("formatterParams")||{});this._showTooltipContent(c,f,n,p,t.offsetX,t.offsetY,t.position,e,d)}),n({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,f=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),p=f.color;if(h)if(M(h)){var d=t.ecModel.get("useUTC"),g=b(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,y&&(c=rs(g.axisValue,c,d)),c=Cs(c,n,!0)}else if(S(h)){var v=Vy(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||b(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:b(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),S(e)&&(e=e([n,i],o,r.el,f,{viewSize:[s,l],contentSize:u.slice()})),b(e))n=Hn(e[0],s),i=Hn(e[1],l);else if(I(e)){var p=e;p.width=u[0],p.height=u[1];var d=Os(p,{width:s,height:l});n=d.x,i=d.y,h=null,c=null}else if(M(e)&&a){var g=Jg(e,f,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var g=$g(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=ty(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=ty(c)?u[1]/2:"bottom"===c?u[1]:0),Eg(t)){var g=Qg(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&d(n,function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];(r=r&&a.length===l.length)&&d(a,function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&d(a,function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&d(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},n.prototype.dispose=function(t,e){!xy.node&&e.getDom()&&(Bu(this,"_updatePosition"),this._tooltipContent.dispose(),wg("itemTooltip",e))},n.type="tooltip",n}(tM);Nf(ny);var zD=Ai(),FD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.createdBySelf=!1,e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},n.prototype.isAnimationEnabled=function(){if(xy.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},n.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},n.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=zD(t)[r];return n&&n.data?(o?o._mergeOption(n,e,!0):(i&&ry(n),d(n.data,function(t){t instanceof Array?(ry(t[0]),ry(t[1])):ry(t)}),o=this.createMarkerModelFromSeries(n,this,e),l(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(zD(t)[r]=o)):void(zD(t)[r]=null)},this)},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.getRawValue(t),i=e.getName(t);return ru("section",{header:this.name,blocks:[ru("nameValue",{name:i,value:n,noName:!i,noValue:null==n})]})},n.prototype.getData=function(){return this._data},n.prototype.setData=function(t){this._data=t},n.getMarkerModelFromSeries=function(t,e){return zD(t)[e]},n.type="marker",n.dependencies=["series","grid","polar","geo"],n}(zb);f(FD,LS.prototype);var VD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type="markPoint",n.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},n}(FD),HD={min:w(sy,"min"),max:w(sy,"max"),average:w(sy,"average"),median:w(sy,"median")},WD=Ai(),UD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this.markerGroupMap=Y()},n.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){WD(t).keep=!1}),e.eachSeries(function(t){var r=FD.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){!WD(t).keep&&i.group.remove(t.group)})},n.prototype.markKeep=function(t){WD(t).keep=!0},n.prototype.toggleBlurSeries=function(t,e){var n=this;d(t,function(t){var i=FD.getMarkerModelFromSeries(t,n.type);if(i){i.getData().eachItemGraphicEl(function(t){t&&(e?fo(t):po(t))})}})},n.type="marker",n}(tM),GD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=FD.getMarkerModelFromSeries(t,"markPoint");e&&(dy(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new OI),u=gy(r,t,e);e.setData(u),dy(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(S(i)||S(r)||S(o)||S(s)){var h=e.getRawValue(t),c=e.getDataParams(t);S(i)&&(i=i(h,c)),S(r)&&(r=r(h,c)),S(o)&&(o=o(h,c)),S(s)&&(s=s(h,c))}var f=n.getModel("itemStyle").getItemStyle(),p=Qu(a,"color");f.fill||(f.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:f})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){bx(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},n.type="markPoint",n}(UD);Nf(yy),t.version="5.4.1",t.dependencies=nT,t.PRIORITY=aT,t.init=qh,t.connect=Zh,t.disConnect=Kh,t.disconnect=XT,t.dispose=$h,t.getInstanceByDom=Qh,t.getInstanceById=Jh,t.registerTheme=tc,t.registerPreprocessor=ec,t.registerProcessor=nc,t.registerPostInit=ic,t.registerPostUpdate=rc,t.registerUpdateLifecycle=oc,t.registerAction=ac,t.registerCoordinateSystem=sc,t.getCoordinateSystemDimensions=lc,t.registerLayout=uc,t.registerVisual=hc,t.registerLoading=fc,t.setCanvasCreator=pc,t.registerMap=dc,t.getMap=gc,t.registerTransform=ZT,t.dataTool=iC,t.registerLocale=Ka,t.zrender=jm,t.matrix=fv,t.vector=$y,t.zrUtil=jy,t.color=im,t.helper=GC,t.number=JC,t.time=tI,t.graphic=eI,t.format=nI,t.util=iI,t.List=gC,t.ComponentModel=zb,t.ComponentView=tM,t.SeriesModel=JS,t.ChartView=iM,t.extendComponentModel=lp,t.extendComponentView=up,t.extendSeriesModel=hp,t.extendChartView=cp,t.throttle=Eu,t.use=Nf,t.setPlatformAPI=n,t.parseGeoJSON=Yf,t.parseGeoJson=Yf,t.env=xy,t.Model=cb,t.Axis=aI,t.innerDrawElementOnCanvas=Lh})}).call(e,n(944).Buffer)},2015:function(t,e){if(void 0===n){var i=new Error('Cannot find module "@xysfe/actui/es/assets/img/circle1.png"');throw i.code="MODULE_NOT_FOUND",i}t.exports=n},2016:function(t,e){if(void 0===i){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/circle2.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=i},2017:function(t,e){if(void 0===r){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/circle3.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=r},2018:function(t,e,n){function i(t){return n(r(t))}function r(t){var e=o[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var o={"./tag1.png":2019,"./tag2.png":2020,"./tag3.png":2021};i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id=2018},2019:function(t,e){if(void 0===o){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/tag1.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=o},2020:function(t,e){if(void 0===a){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/tag2.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=a},2021:function(t,e){if(void 0===s){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/tag3.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=s},2022:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];i._withStripped=!0},2023:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"act-GoldFinanceChartV2"},[t.isNewVersion?[t.selectedData.length?t.config.productList.length>0?i("div",{staticClass:"price-display"},[i("p",{staticClass:"title"},[t._v("\n "+t._s(t.config.colsXText)+"第"+t._s(t.selectedData[0])+t._s(t.config.colsXUnit)+":\n ")]),t._v(" "),t._l(t.selectedData.slice(1),function(e,n){return i("p",{key:e,staticClass:"data"},[i("span",[t._v("\n "+t._s(t.config.productList[n].productName)+":\n ")]),t._v(" "),i("span",{style:"color:"+t.colorConfig[n]+";font-weight:bold;"},[t._v("\n "+t._s(+e+t.config.colsYUnit)+"\n ")])])})],2):t._e():i("div",{staticClass:"divide"},t._l(t.config.productList,function(e,r){return i("div",{key:e.productName+r,staticClass:"product-name"},[i("img",{staticClass:"prefix",attrs:{src:n(948)("./circle"+(r+1)+".png")}}),t._v(" "),i("span",[t._v("\n "+t._s(e.productName)+"\n ")])])}),0)]:[t.selectedData.length?t.filteredCostTable.length>0?i("div",{staticClass:"price-display"},[i("p",{staticClass:"title"},[t._v("\n 保单年份第"+t._s(t.selectedData[0])+"年:\n ")]),t._v(" "),t._l(t.selectedData.slice(1),function(e,n){return i("p",{key:e,staticClass:"data"},[i("span",[t._v("\n "+t._s(t.filteredCostTable[n].productName)+":\n ")]),t._v(" "),i("span",{style:"color:"+t.colorConfig[n]+";font-weight:bold;"},[t._v("\n "+t._s(t._f("formatPrice")(e))+"\n ")])])})],2):t._e():i("div",{staticClass:"divide"},t._l(t.filteredCostTable,function(e,r){return i("div",{key:e.productName+r,staticClass:"product-name"},[i("img",{staticClass:"prefix",attrs:{src:n(948)("./circle"+(r+1)+".png")}}),t._v(" "),i("span",[t._v("\n "+t._s(e.productName)+"\n ")])])}),0)],t._v(" "),t.hasData?[t.hasData?i("Chart",{attrs:{chartOptions:t.chartOptions},on:{getCurrentData:t.getCurrentData}}):t._e(),t._v(" "),t.isNewVersion?i("p",{staticClass:"chart-title"},[t.config.title?i("span",[t._v("按"+t._s(t.config.title)+"演示")]):t._e()]):i("p",{staticClass:"chart-title"},[t._v("\n 按现金价值演示\n ")])]:t._e()],2)},r=[];i._withStripped=!0},21:function(t,e,n){var i=n(6),r=n(0).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},22:function(e,n){e.exports=t},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},25:function(t,e,n){var i=n(9).f,r=n(8),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},26:function(t,e,n){var i=n(37),r=n(28);t.exports=Object.keys||function(t){return i(t,r)}},27:function(t,e,n){var i=n(2),r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},28:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,e,n){var i=n(16);t.exports=function(t){return Object(i(t))}},3:function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var i=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},31:function(t,e,n){var i=n(15),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},32:function(t,n){t.exports=e},33:function(t,e,n){"use strict";var i=n(18),r=n(10),o=n(47),a=n(5),s=n(11),l=n(54),u=n(25),h=n(56),c=n(1)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,d,g,y,v){l(n,e,d);var m,_,x,w=function(t){if(!f&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},b=e+" Iterator",S="values"==g,M=!1,T=t.prototype,C=T[c]||T["@@iterator"]||g&&T[g],I=C||w(g),D=g?S?w("entries"):I:void 0,k="Array"==e?T.entries||C:C;if(k&&(x=h(k.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),i||"function"==typeof x[c]||a(x,c,p)),S&&C&&"values"!==C.name&&(M=!0,I=function(){return C.call(this)}),i&&!v||!f&&!M&&T[c]||a(T,c,I),s[e]=I,s[b]=p,g)if(m={values:S?I:w("values"),keys:y?I:w("keys"),entries:D},v)for(_ in m)_ in T||o(T,_,m[_]);else r(r.P+r.F*(f||M),e,m);return m}},34:function(t,e,n){var i=n(6);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")}},36:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},37:function(t,e,n){var i=n(8),r=n(12),o=n(40)(!1),a=n(20)("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}},38:function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},4:function(t,e,n){var i=n(6);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},40:function(t,e,n){var i=n(12),r=n(31),o=n(41);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),h=o(a,u);if(t&&n!=n){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===n)return t||h||0;return!t&&-1}}},41:function(t,e,n){var i=n(15),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},42:function(t,e,n){var i=n(14),r=n(1)("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}},44:function(t,e){e.f={}.propertyIsEnumerable},45:function(t,e,n){"use strict";var i=n(53)(!0);n(33)(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})})},46:function(t,e,n){var i=n(4),r=n(55),o=n(28),a=n(20)("IE_PROTO"),s=function(){},l=function(){var t,e=n(21)("iframe"),i=o.length;for(e.style.display="none",n(38).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)}},47:function(t,e,n){t.exports=n(5)},5:function(t,e,n){var i=n(9),r=n(23);t.exports=n(3)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},52:function(t,e){e.f=Object.getOwnPropertySymbols},53:function(t,e,n){var i=n(15),r=n(16);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)}}},54:function(t,e,n){"use strict";var i=n(46),r=n(23),o=n(25),a={};n(5)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},55:function(t,e,n){var i=n(9),r=n(4),o=n(26);t.exports=n(3)?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}},56:function(t,e,n){var i=n(8),r=n(29),o=n(20)("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}},562: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},57:function(t,e,n){var i=n(42),r=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},65:function(t,e,n){t.exports={default:n(69),__esModule:!0}},69:function(t,e,n){n(70),t.exports=n(2).Object.assign},691:function(t,e,n){t.exports={default:n(692),__esModule:!0}},692:function(t,e,n){n(45),n(693),t.exports=n(2).Array.from},693:function(t,e,n){"use strict";var i=n(17),r=n(10),o=n(29),a=n(72),s=n(73),l=n(31),u=n(694),h=n(57);r(r.S+r.F*!n(74)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,c,f=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,y=void 0!==g,v=0,m=h(f);if(y&&(g=i(g,d>2?arguments[2]:void 0,2)),void 0==m||p==Array&&s(m))for(e=l(f.length),n=new p(e);e>v;v++)u(n,v,y?g(f[v],v):f[v]);else for(c=m.call(f),n=new p;!(r=c.next()).done;v++)u(n,v,y?a(c,g,[r.value,v],!0):r.value);return n.length=v,n}})},694:function(t,e,n){"use strict";var i=n(9),r=n(23);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},7:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId=o);var h;if(a?(h=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),h)if(u.functional){u._injectStyles=h;var c=u.render;u.render=function(t,e){return h.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,h):[h]}return{exports:t,options:u}}e.a=i},70:function(t,e,n){var i=n(10);i(i.S+i.F,"Object",{assign:n(71)})},71:function(t,e,n){"use strict";var i=n(3),r=n(26),o=n(52),a=n(44),s=n(29),l=n(30),u=Object.assign;t.exports=!u||n(13)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,h=1,c=o.f,f=a.f;u>h;)for(var p,d=l(arguments[h++]),g=c?r(d).concat(c(d)):r(d),y=g.length,v=0;y>v;)p=g[v++],i&&!f.call(d,p)||(n[p]=d[p]);return n}:u},72:function(t,e,n){var i=n(4);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}}},73:function(t,e,n){var i=n(11),r=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},74:function(t,e,n){var i=n(1)("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}},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},88:function(t,e,n){"use strict";e.__esModule=!0;var i=n(65),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},9:function(t,e,n){var i=n(4),r=n(36),o=n(34),a=Object.defineProperty;e.f=n(3)?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}},92:function(t,e,n){t.exports={default:n(96),__esModule:!0}},944:function(t,e,n){"use strict";(function(t){function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,n,i):"string"==typeof e?h(t,e,n):p(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}function u(t,e){if(s(e),t=r(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|y(e,n);t=r(t,i);var a=t.write(e,n);return a!==i&&(t=t.slice(0,a)),t}function c(t,e){var n=e.length<0?0:0|d(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function p(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return t=r(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?r(t,0):c(t,e);if("Buffer"===e.type&&Q(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(i)return G(t).length;e=(""+e).toLowerCase(),i=!0}}function v(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function m(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function _(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var h=-1;for(u=n;u<s;u++)if(o(t,u)===o(e,-1===h?0:u-h)){if(-1===h&&(h=u),u-h+1===l)return h*a}else-1!==h&&(u-=u-h),h=-1}else for(n+l>s&&(n=s-l),u=n;u>=0;u--){for(var c=!0,f=0;f<l;f++)if(o(t,u+f)!==o(e,f)){c=!1;break}if(c)return u}return-1}function w(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,i){return q(G(e,t.length-n),t,n,i)}function S(t,e,n,i){return q(Y(e),t,n,i)}function M(t,e,n,i){return S(t,e,n,i)}function T(t,e,n,i){return q(X(e),t,n,i)}function C(t,e,n,i){return q(j(e,t.length-n),t,n,i)}function I(t,e,n){return 0===e&&n===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,n))}function D(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,h,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],u=t[r+2],128==(192&l)&&128==(192&u)&&(c=(15&o)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],u=t[r+2],h=t[r+3],128==(192&l)&&128==(192&u)&&128==(192&h)&&(c=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&h)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return k(i)}function k(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=J));return n}function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function P(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function O(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=U(t[o]);return r}function L(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function N(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function B(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function z(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,r){return r||z(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,r){return r||z(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,i,52,8),n+8}function H(t){if(t=W(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function j(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}function X(t){return K.toByteArray(H(t))}function q(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function Z(t){return t!==t}var K=n(945),$=n(946),Q=n(947);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return l(null,t,e,n)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):v.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,s=n-e,l=Math.min(a,s),u=this.slice(i,r),h=t.slice(e,n),c=0;c<l;++c)if(u[c]!==h[c]){a=u[c],s=h[c];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i;if(o.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=o.prototype;else{var r=e-t;i=new o(r,void 0);for(var a=0;a<r;++a)i[a]=this[a+t]}return i},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:G(new o(t,i).toString()),l=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(562))},945:function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function r(t){var e=i(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function o(t,e,n){return 3*(e+n)/4-n}function a(t){var e,n,r=i(t),a=r[0],s=r[1],l=new f(o(t,a,s)),u=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=c[t.charCodeAt(n)]<<18|c[t.charCodeAt(n+1)]<<12|c[t.charCodeAt(n+2)]<<6|c[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=c[t.charCodeAt(n)]<<2|c[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=c[t.charCodeAt(n)]<<10|c[t.charCodeAt(n+1)]<<4|c[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function s(t){return h[t>>18&63]+h[t>>12&63]+h[t>>6&63]+h[63&t]}function l(t,e,n){for(var i,r=[],o=e;o<n;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(i));return r.join("")}function u(t){for(var e,n=t.length,i=n%3,r=[],o=0,a=n-i;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===i?(e=t[n-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),r.join("")}e.byteLength=r,e.toByteArray=a,e.fromByteArray=u;for(var h=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,g=p.length;d<g;++d)h[d]=p[d],c[p.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},946:function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=n?r-1:0,f=n?-1:1,p=t[e+c];for(c+=f,o=p&(1<<-h)-1,p>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=u}return(p?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?f/l:f*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[n+p]=255&s,p+=d,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+p]=255&a,p+=d,a/=256,u-=8);t[n+p-d]|=128*g}},947:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},948:function(t,e,n){function i(t){return n(r(t))}function r(t){var e=o[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var o={"./circle1.png":2015,"./circle2.png":2016,"./circle3.png":2017};i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id=948},96:function(t,e,n){var i=n(2),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}}})});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),function(){try{return require("@xysfe/actui/es/assets/img/circle1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle3.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag3.png")}catch(t){}}()):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/mixins/visible.js","@xysfe/actui/es/assets/img/circle1.png","@xysfe/actui/es/assets/img/circle2.png","@xysfe/actui/es/assets/img/circle3.png","@xysfe/actui/es/assets/img/tag1.png","@xysfe/actui/es/assets/img/tag2.png","@xysfe/actui/es/assets/img/tag3.png"],e):"object"==typeof exports?exports.GoldFinanceChartV2=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),function(){try{return require("@xysfe/actui/es/assets/img/circle1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/circle3.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag1.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag2.png")}catch(t){}}(),function(){try{return require("@xysfe/actui/es/assets/img/tag3.png")}catch(t){}}()):t.GoldFinanceChartV2=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/visible.js"],t["@xysfe/actui/es/assets/img/circle1.png"],t["@xysfe/actui/es/assets/img/circle2.png"],t["@xysfe/actui/es/assets/img/circle3.png"],t["@xysfe/actui/es/assets/img/tag1.png"],t["@xysfe/actui/es/assets/img/tag2.png"],t["@xysfe/actui/es/assets/img/tag3.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,r,o,a,s){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.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="../es",e(e.s=2009)}({0: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)},1:function(t,e,n){var i=n(27)("wks"),r=n(24),o=n(0).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},10:function(t,e,n){var i=n(0),r=n(2),o=n(17),a=n(5),s=n(8),l=function(t,e,n){var u,h,c,f=t&l.F,p=t&l.G,d=t&l.S,g=t&l.P,y=t&l.B,v=t&l.W,m=p?r:r[e]||(r[e]={}),_=m.prototype,x=p?i:d?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(h=!f&&x&&void 0!==x[u])&&s(m,u)||(c=h?x[u]:n[u],m[u]=p&&"function"!=typeof x[u]?n[u]:y&&h?o(c,i):v&&x[u]==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):g&&"function"==typeof c?o(Function.call,c):c,g&&((m.virtual||(m.virtual={}))[u]=c,t&l.R&&_&&!_[u]&&a(_,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},11:function(t,e){t.exports={}},1158:function(t,e,n){"use strict";var i=n(92),r=n.n(i),o=n(88),a=n.n(o),s=n(691),l=n.n(s),u=n(32),h=n.n(u),c=n(2012),f=n(1160);e.a={name:"ActGoldFinanceChartV2",components:{Chart:c.a},mixins:[h.a],data:function(){return{chartOptions:null,source:l()({length:70},function(t,e){return[e+1]}),selectedData:[],colorConfig:f.a,hasData:!1}},props:{costTable:{type:Array,default:function(){return[]}},config:{type:Object,default:function(){return{title:"",colsXText:"",colsYText:"",colsXUnit:"",colsYUnit:"",productList:[],source:[],markPoint:[]}}}},filters:{formatPrice:function(t){var e=t/1e4,n=e.toString().split(".");return n[1]&&(n[1]=n[1].substr(0,2)),n.join(".")+"万元"}},computed:{isNewVersion:function(){return!(this.costTable.length>0)},filteredCostTable:function(){return this.costTable.filter(function(t){return-1!==t.colsType.findIndex(function(t){return 3===Number(t)})}).map(function(t){return t})}},created:function(){this.costTable.length>0?(this.initConfig(),this.generateData()):(this.initConfigV2(),this.generateDataV2())},methods:a()({},function(){return{initConfigV2:function(){var t=this.config;this.chartOptions={config:{xAxis:{labelFormat:function(e){return""+(e+t.colsXUnit)}},yAxis:{labelFormat:function(e){return""+(e+t.colsYUnit)}}},data:{markPoint:[],source:[]}}},generateDataV2:function(){var t=this.config.source||[],e=this.config.markPoint||[];this.chartOptions.data={markPoint:e,source:t},this.hasData=!0}}}(),{initConfig:function(){this.chartOptions={config:{xAxis:{labelFormat:function(t){return t+"年"}},yAxis:{labelFormat:function(t){return Math.floor(Number(t)/1e4)+"万"}}},data:{markPoint:[],source:[]}}},handleOriginData:function(t,e,n,i){var r=t.colsType.findIndex(function(t){return 3===Number(t)}),o=t.colsType.findIndex(function(t){return 6===Number(t)});this.$set(n,e,[]);for(var a=1,s=0;s<t.rows.length&&!(s>=70);s++){var l=t.rows[s],u=Number(l[r]),h=Number(l[o]);i[s].push(l[r]),this.findMultiple(h,u,a)&&(n[e].push({name:1===a?"本":"x"+a,coord:[s+1,u]}),a++)}},getCurrentData:function(t){this.selectedData=t},findMultiple:function(t,e,n){return e>=t*n},generateData:function(){if(!this.filteredCostTable||!this.filteredCostTable.length)return this.$emit("error"),void(this.hasData=!1);this.hasData=!0;for(var t=JSON.parse(r()(this.source)),e=[],n=0;n<this.filteredCostTable.length;n++)this.handleOriginData(this.filteredCostTable[n],n,e,t);this.chartOptions.data={markPoint:e,source:t}}}),watch:{costTable:{handler:function(){this.generateData()}},config:{handler:function(){this.generateDataV2()},deep:!0}}}},1159:function(t,e,n){"use strict";var i=n(65),r=n.n(i),o=n(1160),a=n(2014);e.a={props:{chartOptions:{type:Object,default:function(){return{config:{xAxis:{labelFormat:function(){}},yAxis:{labelFormat:function(){}}},data:{markPoint:[],source:[]}}}}},data:function(){return{chart:null}},computed:{defaultChartOption:function(){return{grid:{height:this.remToPxBased10Px(15),top:this.remToPxBased10Px(2.6),left:this.remToPxBased10Px(4.5),right:this.remToPxBased10Px(2.3),bottom:0,containLabel:!1},tooltip:{trigger:"axis",triggerOn:"mousemove",showContent:!1,axisPointer:{type:"cross",z:1}},xAxis:{type:"category",boundaryGap:!1,axisPointer:{label:{show:!1},lineStyle:{type:"solid",width:2,color:"#eeeeee"},show:!0},axisLabel:{showMaxLabel:!0,formatter:this.chartOptions.config.xAxis.labelFormat,interval:this.getXAxisInterval(),color:"#B3B3B3",fontSize:this.remToPxBased10Px(1),lineHeight:this.remToPxBased10Px(1.5)},axisLine:{lineStyle:{color:"#F5F5F5"}}},yAxis:{axisPointer:{label:{show:!1},lineStyle:{type:"solid",width:2,color:"#eeeeee"},show:!0},axisLine:{lineStyle:{color:"#B3B3B3"}},axisLabel:{formatter:this.chartOptions.config.yAxis.labelFormat,color:"#B3B3B3",fontSize:this.remToPxBased10Px(1),lineHeight:this.remToPxBased10Px(1.5)},splitLine:{lineStyle:{color:"#F5F5F5"}}},series:{type:"line",showSymbol:!1,symbolSize:[this.remToPxBased10Px(1.4),this.remToPxBased10Px(1.4)],smooth:!0,lineStyle:{width:3}}}}},methods:{getXAxisInterval:function(){var t=this.chartOptions.data.source.length;return Math.floor(t/7)},setEcharts:function(){for(var t=this.chartOptions.data.source[0].length-1,e=[],i=0;i<t;i++)e.push(r()({},this.defaultChartOption.series,{symbol:"image://"+n(948)("./circle"+(i+1)+".png"),areaStyle:{color:new a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:o.b[i][0]},{offset:1,color:o.b[i][1]}])},color:o.a[i],markPoint:{symbol:"image://"+n(2018)("./tag"+(i+1)+".png"),symbolSize:[this.remToPxBased10Px(1.6),this.remToPxBased10Px(1.7)],symbolOffset:["-30%","-50%"],silent:!0,label:{show:!0,formatter:"{b}",color:"#fff",fontSize:this.remToPxBased10Px(.7),position:[this.remToPxBased10Px(.5),this.remToPxBased10Px(.4)]},data:this.chartOptions.data.markPoint[i]}}));var s=r()({},this.defaultChartOption,{series:e,dataset:{source:this.chartOptions.data.source}});this.chart.setOption(s)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],n=parseFloat(getComputedStyle(e,null).fontSize);if(n>12)return t*n;var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=i/375*10;return i?t*r:10*t}},mounted:function(){var t=this;this.chart=a.init(this.$refs.chart),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);if(t.chart.containPixel("grid",n)){var r=t.chart.getOption(),o=r.dataset,a=o[0].source,s=a.find(function(t,e){return e===i[0]});s&&t.$emit("getCurrentData",s)}}),this.setEcharts()},watch:{"chartOptions.data":function(t){t&&this.setEcharts()}}}},1160:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=["rgba(255, 90, 110, 1)","rgba(140, 127, 238, 1)","rgba(255, 171, 17, 1)"],r=[["rgba(255, 90, 110, 0.2)","rgba(255, 90, 110, 0)"],["rgba(140, 127, 238, 0.2)","rgba(140, 127, 238, 0)"],["rgba(255, 171, 17, 0.2)","rgba(255, 171, 17, 0)"]]},12:function(t,e,n){var i=n(30),r=n(16);t.exports=function(t){return i(r(t))}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},16:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},17:function(t,e,n){var i=n(19);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)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var i=n(27)("keys"),r=n(24);t.exports=function(t){return i[t]||(i[t]=r(t))}},2009:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),r=n.n(i),o=n(2010);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChartV2=r()(o.a,t)},e.default=o.a},2010:function(t,e,n){"use strict";function i(t){s||n(2011)}var r=n(1158),o=n(2023),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-b2832d64",null);u.options.__file="src\\components\\GoldFinanceChartV2\\src\\index.vue",e.a=u.exports},2011:function(t,e){},2012:function(t,e,n){"use strict";function i(t){s||n(2013)}var r=n(1159),o=n(2022),a=n(7),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-3520b25a",null);u.options.__file="src\\components\\GoldFinanceChartV2\\src\\chart.vue",e.a=u.exports},2013:function(t,e){},2014:function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");vy(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t){for(var e in Cy)t[e]&&(Cy[e]=t[e])}function i(){return zy++}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function o(t){if(null==t||"object"!=typeof t)return t;var e=t,n=ky.call(t);if("[object Array]"===n){if(!U(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=o(t[i])}}else if(Dy[n]){if(!U(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!Iy[n]&&!U(t)&&!A(t)){e={};for(var s in t)t.hasOwnProperty(s)&&s!==By&&(e[s]=o(t[s]))}return e}function a(t,e,n){if(!I(e)||!I(t))return n?o(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==By){var r=t[i],s=e[i];!I(s)||!I(r)||b(s)||b(r)||A(s)||A(r)||D(s)||D(r)||U(s)||U(r)?!n&&i in t||(t[i]=o(e[i])):a(r,s,n)}return t}function s(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=a(n,t[i],e);return n}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==By&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=_(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;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)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else u(t,e,n)}function p(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function d(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Py)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;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 g(t,e,n){if(!t)return[];if(!e)return z(t);if(t.map&&t.map===Ry)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function y(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function v(t,e,n){if(!t)return[];if(!e)return z(t);if(t.filter&&t.filter===Oy)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;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;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function _(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function x(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(Ly.call(arguments)))}}function w(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Ly.call(arguments)))}}function b(t){return Array.isArray?Array.isArray(t):"[object Array]"===ky.call(t)}function S(t){return"function"==typeof t}function M(t){return"string"==typeof t}function T(t){return"[object String]"===ky.call(t)}function C(t){return"number"==typeof t}function I(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function D(t){return!!Iy[ky.call(t)]}function k(t){return!!Dy[ky.call(t)]}function A(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function P(t){return null!=t.colorStops}function O(t){return null!=t.image}function L(t){return"[object RegExp]"===ky.call(t)}function R(t){return t!==t}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;i>n;n++)if(null!=t[n])return t[n]}function N(t,e){return null!=t?t:e}function B(t,e,n){return null!=t?t:null!=e?e:n}function z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Ly.apply(t,e)}function F(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}function V(t,e){if(!t)throw new Error(e)}function H(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function W(t){t[Hy]=!0}function U(t){return t[Hy]}function G(){return Uy?new Map:new Wy}function Y(t){return new Gy(t)}function j(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function X(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&l(n,e),n}function q(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(t,e){return t.hasOwnProperty(e)}function K(){}function $(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Q(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t){return[t[0],t[1]]}function tt(t,e,n){return t[0]=e,t[1]=n,t}function et(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function nt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function it(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function rt(t){return Math.sqrt(ot(t))}function ot(t){return t[0]*t[0]+t[1]*t[1]}function at(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function st(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function lt(t,e){return t[0]*e[0]+t[1]*e[1]}function ut(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ht(t,e){var n=rt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ct(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ft(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function pt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function dt(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function gt(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}function yt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function vt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function mt(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ev);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,f=0,p=0;s>f;f++){var d=1<<f;d&r||(c+=(p%2?-1:1)*t[n][f]*mt(t,e-1,h,u,r|d,o),p++)}return o[a]=c,c}function _t(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=mt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*mt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function xt(t,e,n,i,r){return wt(iv,e,i,r,!0)&&wt(t,n,iv[0],iv[1])}function wt(t,e,n,i,r){if(e.getBoundingClientRect&&xy.domSupported&&!Mt(e)){var o=e[nv]||(e[nv]={}),a=bt(e,o),s=St(a,o,r);if(s)return s(t,n,i),!0}return!1}function bt(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function St(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,f=h.left,p=h.top;a.push(f,p),l=l&&o&&f===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?_t(s,a):_t(a,s))}function Mt(t){return"CANVAS"===t.nodeName.toUpperCase()}function Tt(t){return null==t?"":(t+"").replace(rv,function(t,e){return ov[e]})}function Ct(t,e,n,i){return n=n||{},i?It(t,e,n):lv&&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):It(t,e,n),n}function It(t,e,n){if(xy.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Mt(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(wt(sv,t,i,r))return n.zrX=sv[0],void(n.zrY=sv[1])}n.zrX=n.zrY=0}function Dt(t){return t||window.event}function kt(t,e,n){if(e=Dt(e),null!=e.zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Ct(t,r,e,n)}else{Ct(t,e,e,n);var o=At(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&av.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function At(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*Math.abs(0!==i?i:n)*(i>0?-1:0>i?1:n>0?-1:1)}function Pt(t,e,n,i){t.addEventListener(e,n,i)}function Ot(t,e,n,i){t.removeEventListener(e,n,i)}function Lt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Rt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Et(){return[1,0,0,1,0,0]}function Nt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Bt(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}function zt(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}function Ft(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}function Vt(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),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ht(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}function Wt(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}function Ut(t){var e=Et();return Bt(e,t),e}function Gt(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,which:n.which,stop:Yt}}function Yt(){uv(this.event)}function jt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Sv}return!1}function Xt(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=jt(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Sv)){e.target=a;break}}}function qt(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Zt(t){for(var e=0;t>=Av;)e|=1&t,t>>=1;return t+e}function Kt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;$t(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function $t(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function Qt(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)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 Jt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function te(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function ee(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(n){var i=l[n],r=u[n],o=l[n+1],h=u[n+1];u[n]=r+h,n===c-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),c--;var f=te(t[o],t,i,r,0,e);i+=f,0!==(r-=f)&&0!==(h=Jt(t[i+r-1],t,o,h,h-1,e))&&(h>=r?a(i,r,o,h):s(i,r,o,h))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)f[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!=--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=f[s])}for(var c,p,d,g=h;;){c=0,p=0,d=!1;do{if(e(t[l],f[s])<0){if(t[u++]=t[l++],p++,c=0,0==--o){d=!0;break}}else if(t[u++]=f[s++],c++,p=0,1==--i){d=!0;break}}while(g>(c|p));if(d)break;do{if(0!==(c=te(t[l],f,s,i,0,e))){for(a=0;c>a;a++)t[u+a]=f[s+a];if(u+=c,s+=c,1>=(i-=c)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(p=Jt(f[s],t,l,o,0,e))){for(a=0;p>a;a++)t[u+a]=t[l+a];if(u+=p,l+=p,0===(o-=p)){d=!0;break}}if(t[u++]=f[s++],1==--i){d=!0;break}g--}while(c>=Pv||p>=Pv);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=f[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=f[s+a]}}else for(a=0;i>a;a++)t[u+a]=f[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)f[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,p=0;if(t[u--]=t[s--],0!=--i){if(1===o){for(u-=i,s-=i,p=u+1,c=s+1,a=i-1;a>=0;a--)t[p+a]=t[c+a];return void(t[u]=f[l])}for(var d=h;;){var g=0,y=0,v=!1;do{if(e(f[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0==--i){v=!0;break}}else if(t[u--]=f[l--],y++,g=0,1==--o){v=!0;break}}while(d>(g|y));if(v)break;do{if(0!==(g=i-te(f[l],t,n,i,i-1,e))){for(u-=g,s-=g,i-=g,p=u+1,c=s+1,a=g-1;a>=0;a--)t[p+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=f[l--],1==--o){v=!0;break}if(0!==(y=o-Jt(t[s],f,0,o,o-1,e))){for(u-=y,l-=y,o-=y,p=u+1,c=l+1,a=0;y>a;a++)t[p+a]=f[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0==--i){v=!0;break}d--}while(g>=Pv||y>=Pv);if(v)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=i,s-=i,p=u+1,c=s+1,a=i-1;a>=0;a--)t[p+a]=t[c+a];t[u]=f[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}var l,u,h=Pv,c=0,f=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function ne(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(Av>r)return o=Kt(t,n,i,e),void Qt(t,n,i,n+o,e);var a=ee(t,e),s=Zt(r);do{if(o=Kt(t,n,i,e),s>o){var l=r;l>s&&(l=s),Qt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function ie(){Rv||(Rv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function re(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function oe(t){return t>-Vv&&Vv>t}function ae(t){return t>Vv||-Vv>t}function se(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 le(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ue(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,f=l*l-3*s*u,p=0;if(oe(h)&&oe(c))if(oe(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[p++]=d)}else{var g=c*c-4*h*f;if(oe(g)){var y=c/h,d=-s/a+y,v=-y/2;d>=0&&1>=d&&(o[p++]=d),v>=0&&1>=v&&(o[p++]=v)}else if(g>0){var m=Fv(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-zv(-_,Uv):zv(_,Uv),x=0>x?-zv(-x,Uv):zv(x,Uv);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[p++]=d)}else{var w=(2*h*s-3*a*c)/(2*Fv(h*h*h)),b=Math.acos(w)/3,S=Fv(h),M=Math.cos(b),d=(-s-2*S*M)/(3*a),v=(-s+S*(M+Wv*Math.sin(b)))/(3*a),T=(-s+S*(M-Wv*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[p++]=d),v>=0&&1>=v&&(o[p++]=v),T>=0&&1>=T&&(o[p++]=T)}}return p}function he(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(oe(a)){if(ae(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(oe(h))r[0]=-o/(2*a);else if(h>0){var c=Fv(h),u=(-o+c)/(2*a),f=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),f>=0&&1>=f&&(r[l++]=f)}}return l}function ce(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,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function fe(t,e,n,i,r,o,a,s,l,u,h){var c,f,p,d,g,y=.005,v=1/0;Gv[0]=l,Gv[1]=u;for(var m=0;1>m;m+=.05)Yv[0]=se(t,n,r,a,m),Yv[1]=se(e,i,o,s,m),d=Ky(Gv,Yv),v>d&&(c=m,v=d);v=1/0;for(var _=0;32>_&&!(Hv>y);_++)f=c-y,p=c+y,Yv[0]=se(t,n,r,a,f),Yv[1]=se(e,i,o,s,f),d=Ky(Yv,Gv),f>=0&&v>d?(c=f,v=d):(jv[0]=se(t,n,r,a,p),jv[1]=se(e,i,o,s,p),g=Ky(jv,Gv),1>=p&&v>g?(c=p,v=g):y*=.5);return h&&(h[0]=se(t,n,r,a,c),h[1]=se(e,i,o,s,c)),Fv(v)}function pe(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,f=1/l,p=1;l>=p;p++){var d=p*f,g=se(t,n,r,a,d),y=se(e,i,o,s,d),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function de(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ge(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ye(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(oe(o)){if(ae(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(oe(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=Fv(h),u=(-a+c)/(2*o),f=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),f>=0&&1>=f&&(r[l++]=f)}}return l}function ve(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function me(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 _e(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;Gv[0]=a,Gv[1]=s;for(var f=0;1>f;f+=.05){Yv[0]=de(t,n,r,f),Yv[1]=de(e,i,o,f);var p=Ky(Gv,Yv);c>p&&(u=f,c=p)}c=1/0;for(var d=0;32>d&&!(Hv>h);d++){var g=u-h,y=u+h;Yv[0]=de(t,n,r,g),Yv[1]=de(e,i,o,g);var p=Ky(Yv,Gv);if(g>=0&&c>p)u=g,c=p;else{jv[0]=de(t,n,r,y),jv[1]=de(e,i,o,y);var v=Ky(jv,Gv);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=de(t,n,r,u),l[1]=de(e,i,o,u)),Fv(c)}function xe(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var f=c*h,p=de(t,n,r,f),d=de(e,i,o,f),g=p-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=p,l=d}return u}function we(t){var e=t&&Xv.exec(t);if(e){var n=e[1].split(","),i=+H(n[0]),r=+H(n[1]),o=+H(n[2]),a=+H(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:ue(0,i,o,1,t,s)&&se(0,r,a,1,s[0])}}}function be(t){return t=Math.round(t),0>t?0:t>255?255:t}function Se(t){return t=Math.round(t),0>t?0:t>360?360:t}function Me(t){return 0>t?0:t>1?1:t}function Te(t){var e=t;return be(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Ce(t){var e=t;return Me(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Ie(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function De(t,e,n){return t+(e-t)*n}function ke(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ae(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Pe(t,e){tm&&Ae(tm,e),tm=Jv.put(t,tm||e.slice())}function Oe(t,e){if(t){e=e||[];var n=Jv.get(t);if(n)return Ae(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in Qv)return Ae(e,Qv[i]),Pe(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?ke(e,+l[0],+l[1],+l[2],1):ke(e,0,0,0,1);u=Ce(l.pop());case"rgb":return l.length>=3?(ke(e,Te(l[0]),Te(l[1]),Te(l[2]),3===l.length?u:Ce(l[3])),Pe(t,e),e):void ke(e,0,0,0,1);case"hsla":return 4!==l.length?void ke(e,0,0,0,1):(l[3]=Ce(l[3]),Le(l,e),Pe(t,e),e);case"hsl":return 3!==l.length?void ke(e,0,0,0,1):(Le(l,e),Pe(t,e),e);default:return}}ke(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(i.slice(1,4),16);return h>=0&&4095>=h?(ke(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(i.slice(4),16)/15:1),Pe(t,e),e):void ke(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(i.slice(1,7),16);return h>=0&&16777215>=h?(ke(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(i.slice(7),16)/255:1),Pe(t,e),e):void ke(e,0,0,0,1)}}}}function Le(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Ce(t[1]),r=Ce(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],ke(e,be(255*Ie(a,o,n+1/3)),be(255*Ie(a,o,n)),be(255*Ie(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Re(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=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,f=((s-o)/6+l/2)/l;i===s?e=f-c:r===s?e=1/3+h-f:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function Ee(t,e){var n=Oe(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return He(n,4===n.length?"rgba":"rgb")}}function Ne(t){var e=Oe(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Be(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=be(De(a[0],s[0],l)),n[1]=be(De(a[1],s[1],l)),n[2]=be(De(a[2],s[2],l)),n[3]=Me(De(a[3],s[3],l)),n}}function ze(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Oe(e[r]),s=Oe(e[o]),l=i-r,u=He([be(De(a[0],s[0],l)),be(De(a[1],s[1],l)),be(De(a[2],s[2],l)),Me(De(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Fe(t,e,n,i){var r=Oe(t);return t?(r=Re(r),null!=e&&(r[0]=Se(e)),null!=n&&(r[1]=Ce(n)),null!=i&&(r[2]=Ce(i)),He(Le(r),"rgba")):void 0}function Ve(t,e){var n=Oe(t);return n&&null!=e?(n[3]=Me(e),He(n,"rgba")):void 0}function He(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+")"}}function We(t,e){var n=Oe(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Ue(){return He([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Ge(t){return"linear"===t.type}function Ye(t){return"radial"===t.type}function je(t,e,n){return(e-t)*n+t}function Xe(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=je(e[o],n[o],i);return t}function qe(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=je(e[a][s],n[a][s],i)}return t}function Ze(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function Ke(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function $e(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Qe(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){if(o>a)i.length=a;else for(var s=o;a>s;s++)i.push(1===n?r[s]:rm.call(r[s]))}for(var l=i[0]&&i[0].length,s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;l>u;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Je(t){if(p(t)){var e=t.length;if(p(t[0])){for(var n=[],i=0;e>i;i++)n.push(rm.call(t[i]));return n}return rm.call(t)}return t}function tn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function en(t){return p(t&&t[0])?2:1}function nn(t){return t===sm||t===lm}function rn(t){return t===om||t===am}function on(){return(new Date).getTime()}function an(t){var e=t.pointerType;return"pen"===e||"touch"===e}function sn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function ln(t){t&&(t.zrByTouch=!0)}function un(t,e){return kt(t.dom,new vm(t,e),!0)}function hn(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function cn(t,e){var n=e.domHandlers;xy.pointerEventsSupported?d(dm.pointer,function(i){pn(e,i,function(e){n[i].call(t,e)})}):(xy.touchEventsSupported&&d(dm.touch,function(i){pn(e,i,function(r){n[i].call(t,r),sn(e)})}),d(dm.mouse,function(i){pn(e,i,function(r){r=Dt(r),e.touching||n[i].call(t,r)})}))}function fn(t,e){function n(n){function i(i){i=Dt(i),hn(t,i.target)||(i=un(t,i),e.domHandlers[n].call(t,i))}pn(e,n,i,{capture:!0})}xy.pointerEventsSupported?d(gm.pointer,n):xy.touchEventsSupported||d(gm.mouse,n)}function pn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Pt(t.domTarget,e,n,i)}function dn(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Ot(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function gn(t){return t>Dm||-Dm>t}function yn(t,e){for(var n=0;n<Rm.length;n++){var i=Rm[n];t[i]=e[i]}}function vn(t,e){e=e||by;var n=Em[e];n||(n=Em[e]=new $v(500));var i=n.get(t);return null==i&&(i=Cy.measureText(t,e).width,n.put(t,i)),i}function mn(t,e,n,i){var r=vn(t,e),o=bn(e),a=xn(0,r,n),s=wn(0,o,i);return new bv(a,s,r,o)}function _n(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return mn(r[0],e,n,i);for(var o=new bv(0,0,0,0),a=0;a<r.length;a++){var s=mn(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function xn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function wn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function bn(t){return vn("国",t)}function Sn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Mn(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Sn(i[0],n.width),u+=Sn(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Tn(t,e,n,i,r){n=n||{};var o=[];Pn(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},c=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var f=0;f<o.length;f++){var p=o[f];h&&p.done(h),c&&p.aborted(c),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Cn(t,e,n){for(var i=0;n>i;i++)t[i]=e[i]}function In(t){return p(t[0])}function Dn(t,e,n){if(p(e[n]))if(p(t[n])||(t[n]=[]),k(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Cn(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(In(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Cn(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Cn(o,r,a);o.length=r.length}else t[n]=e[n]}function kn(t,e){return t===e||p(t)&&p(e)&&An(t,e)}function An(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function Pn(t,e,n,i,r,o,a,s){for(var l=_(i),u=r.duration,c=r.delay,f=r.additive,d=r.setToFinal,g=!I(o),y=t.animators,m=[],x=0;x<l.length;x++){var w=l[x],b=i[w];if(null!=b&&null!=n[w]&&(g||o[w]))if(!I(b)||p(b)||P(b))m.push(w);else{if(e){s||(n[w]=b,t.updateDuringAnimation(e));continue}Pn(t,w,n[w],b,r,o&&o[w],a,s)}else s||(n[w]=b,t.updateDuringAnimation(e),m.push(w))}var S=m.length;if(!f&&S)for(var M=0;M<y.length;M++){var T=y[M];if(T.targetName===e){var C=T.stopTracks(m);if(C){var D=h(y,T);y.splice(D,1)}}}if(r.force||(m=v(m,function(t){return!kn(i[t],n[t])}),S=m.length),S>0||r.force&&!a.length){var k=void 0,A=void 0,O=void 0;if(s){A={},d&&(k={});for(var M=0;S>M;M++){var w=m[M];A[w]=n[w],d?k[w]=i[w]:n[w]=i[w]}}else if(d){O={};for(var M=0;S>M;M++){var w=m[M];O[w]=Je(n[w]),Dn(n,i,w)}}var T=new cm(n,!1,!1,f?v(y,function(t){return t.targetName===e}):null);T.targetName=e,r.scope&&(T.scope=r.scope),d&&k&&T.whenWithKeys(0,k,m),O&&T.whenWithKeys(0,O,m),T.whenWithKeys(null==u?500:u,s?A:i,m).delay(c||0),t.addAnimator(T,e),a.push(T)}}function On(t){delete Gm[t]}function Ln(t){if(!t)return!1;if("string"==typeof t)return We(t,1)<Mm;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;i>r;r++)n+=We(e[r].color,1);return n/=i,Mm>n}return!1}function Rn(t,e){var n=new Ym(i(),t,e);return Gm[n.id]=n,n}function En(t){t.dispose()}function Nn(){for(var t in Gm)Gm.hasOwnProperty(t)&&Gm[t].dispose();Gm={}}function Bn(t){return Gm[t]}function zn(t,e){Um[t]=e}function Fn(t){return t.replace(/^\s+|\s+$/g,"")}function Vn(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Hn(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 M(t)?Fn(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Wn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),qm),t=(+t).toFixed(e),n?t:+t}function Un(t){return t.sort(function(t,e){return t-e}),t}function Gn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Yn(t)}function Yn(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-i)}function jn(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}function Xn(t,e,n){return t[e]?qn(t,n)[e]||0:0}function qn(t,e){var n=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=g(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=g(r,function(t){return Math.floor(t)}),s=y(a,function(t,e){return t+e},0),l=g(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,f=l.length;f>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return g(a,function(t){return t/i})}function Zn(t,e){var n=Math.max(Gn(t),Gn(e)),i=t+e;return n>qm?i:Wn(i,n)}function Kn(t){var e=2*Math.PI;return(t%e+e)%e}function $n(t){return t>-Xm&&Xm>t}function Qn(t){if(t instanceof Date)return t;if(M(t)){var e=Zm.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]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?NaN:Math.round(t))}function Jn(t){return Math.pow(10,ti(t))}function ti(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ei(t,e){var n,i=ti(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function ni(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function ii(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;2>s;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}function ri(t){var e=parseFloat(t);return e==t&&(0!==e||!M(t)||t.indexOf("x")<=0)?e:NaN}function oi(t){return!isNaN(ri(t))}function ai(){return Math.round(9*Math.random())}function si(t,e){return 0===e?t:si(e,t%e)}function li(t,e){return null==t?e:null==e?t:t*e/si(t,e)}function ui(t){throw new Error(t)}function hi(t,e,n){return(e-t)*n+t}function ci(t){return t instanceof Array?t:null==t?[]:[t]}function fi(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function pi(t){return!I(t)||b(t)||t instanceof Date?t:t.value}function di(t){return I(t)&&!(t instanceof Array)}function gi(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Y();d(e,function(t,n){return I(t)?void 0:void(e[n]=null)});var s=yi(t,a,n);return(i||r)&&vi(s,t,a,e),i&&mi(s,e),i||r?_i(s,e,r):o&&xi(s,e),wi(s),s}function yi(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Ci(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function vi(t,e,n,i){d(i,function(r,o){if(r&&null!=r.id){var a=Si(r.id),s=n.get(a);if(null!=s){var l=t[s];V(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}function mi(t,e){d(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Ci(n)&&!Ci(o)&&bi("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}function _i(t,e,n){d(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Ci(i.existing)||i.existing&&null!=e.id&&!bi("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}function xi(t,e){d(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function wi(t){var e=Y();d(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),d(t,function(t){var n=t.newOption;V(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),d(t,function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(I(r)){if(o.name=null!=r.name?Si(r.name):i?i.name:Km+n,i)o.id=Si(i.id);else if(null!=r.id)o.id=Si(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function bi(t,e,n){var i=Mi(e[t],null),r=Mi(n[t],null);return null!=i&&null!=r&&i===r}function Si(t){return Mi(t,"")}function Mi(t,e){return null==t?e:M(t)?t:C(t)||T(t)?t+"":e}function Ti(t){var e=t.name;return!(!e||!e.indexOf(Km))}function Ci(t){return t&&null!=t.id&&0===Si(t.id).indexOf($m)}function Ii(t,e,n){d(t,function(t){var i=t.newOption;I(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Di(e,i,t.existing,n))})}function Di(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}function ki(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?b(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?b(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Ai(){var t="__ec_inner_"+Jm++;return function(e){return e[t]||(e[t]={})}}function Pi(t,e,n){var i=Oi(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,i){var r=Li(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]}),s}function Oi(t,e){var n;if(M(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Y(),o={},a=!1;return d(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=t);var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&h(e.includeMainTypes,s)<0)){a=a||!!s;(r.get(s)||r.set(s,{}))[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function Li(t,e,n,i){i=i||t_;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(V(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(V(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Ri(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Ei(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Ni(t){return"auto"===t?xy.domSupported?"html":"richText":t||"html"}function Bi(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(C(i)){var a=hi(n||0,i,r);return Wn(a,o?Math.max(Gn(n||0),Gn(i)):e)}if(M(i))return 1>r?n:i;for(var s=[],l=n,u=i,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var f=t.getDimensionInfo(c);if(f&&"ordinal"===f.type)s[c]=(1>r&&l?l:u)[c];else{var p=l&&l[c]?l[c]:0,d=u[c],a=hi(p,d,r);s[c]=Wn(a,o?Math.max(Gn(p),Gn(d)):e)}}return s}function zi(t){var e={main:"",sub:""};if(t){var n=t.split(e_);e.main=n[0]||"",e.sub=n[1]||""}return e}function Fi(t){V(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Vi(t){return!(!t||!t[i_])}function Hi(t){t.$constructor=t,t.extend=function(t){var n,i=this;return Wi(i)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},c(n,this)),l(n.prototype,t),n[i_]=!0,n.extend=this.extend,n.superCall=Gi,n.superApply=Yi,n.superClass=i,n}}function Wi(t){return S(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Ui(t,e){t.extend=e.extend}function Gi(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Yi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ji(t){function e(t){var e=n[t.main];return e&&e[n_]||(e=n[t.main]={},e[n_]=!0),e}var n={};t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){Fi(i),t.prototype.type=i;var r=zi(i);if(r.sub){if(r.sub!==n_){var o=e(r);o[r.sub]=t}}else n[r.main]=t}return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[n_]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var e=zi(t),i=[],r=n[e.main];return r&&r[n_]?d(r,function(t,e){e!==n_&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var e=zi(t);return!!n[e.main]},t.getAllClassMainTypes=function(){var t=[];return d(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var e=zi(t),i=n[e.main];return i&&i[n_]}}function Xi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&h(i,s)>=0||r&&h(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function qi(t){if("string"==typeof t){var e=l_.get(t);return e&&e.image}return t}function Zi(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=l_.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!$i(e)&&o.pending.push(a)):(e=Cy.loadImage(t,Ki,Ki),e.__zrImageSrc=t,l_.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Ki(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function $i(t){return t&&t.width&&t.height}function Qi(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=Ji(e,n,i,r);for(var a=0,s=o.length;s>a;a++)o[a]=tr(o[a],r);return o.join("\n")}function Ji(t,e,n,i){i=i||{};var r=l({},i);r.font=e,n=N(n,"..."),r.maxIterations=N(i.maxIterations,2);var o=r.minChar=N(i.minChar,0);r.cnCharWidth=vn("国",e);var a=r.ascCharWidth=vn("a",e);r.placeholder=N(i.placeholder,"");for(var s=t=Math.max(0,t-1),u=0;o>u&&s>=a;u++)s-=a;var h=vn(n,e);return h>s&&(n="",h=0),s=t-h,r.ellipsis=n,r.ellipsisWidth=h,r.contentWidth=s,r.containerWidth=t,r}function tr(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=vn(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?er(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=vn(t,i)}return""===t&&(t=e.placeholder),t}function er(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function nr(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=bn(o),l=N(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?sr(t,e.font,c,"breakAll"===i,0).lines:[];var f=n.length*l,p=N(e.height,f);if(f>p&&h){var d=Math.floor(p/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=Ji(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=tr(n[y],g);for(var v=p,m=0,y=0;y<n.length;y++)m=Math.max(vn(n[y],o),m);null==c&&(c=m);var _=m;return r&&(v+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),u&&(_=c),{lines:n,height:p,outerWidth:_,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:f,width:c}}function ir(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,f+=n,p=Math.max(p,e)}var i=new f_;if(null!=t&&(t+=""),!t)return i;for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=u_.lastIndex=0;null!=(r=u_.exec(t));){var h=r.index;h>u&&rr(i,t.substring(u,h),e,l),rr(i,r[2],e,l,r[1]),u=u_.lastIndex}u<t.length&&rr(i,t.substring(u,t.length),e,l);var c=[],f=0,p=0,d=e.padding,g="truncate"===s,y="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var m=i.lines[v],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},M=b.textPadding=S.padding,T=M?M[1]+M[3]:0,C=b.font=S.font||e.font;b.contentHeight=bn(C);var I=N(S.height,b.contentHeight);if(b.innerHeight=I,M&&(I+=M[0]+M[2]),b.height=I,b.lineHeight=B(S.lineHeight,e.lineHeight,I),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",y&&null!=a&&f+b.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var D=S.width,k=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))b.percentWidth=D,c.push(b),b.contentWidth=vn(b.text,C);else{if(k){var A=S.backgroundColor,P=A&&A.image;P&&(P=qi(P),$i(P)&&(b.width=Math.max(b.width,P.width*I/P.height)))}var O=g&&null!=o?o-x:null;null!=O&&O<b.width?!k||T>O?(b.text="",b.width=b.contentWidth=0):(b.text=Qi(b.text,O-T,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=vn(b.text,C)):b.contentWidth=vn(b.text,C)}b.width+=T,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}n(m,x,_)}i.outerWidth=i.width=N(o,p),i.outerHeight=i.height=N(a,f),i.contentHeight=f,i.contentWidth=p,d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]);for(var v=0;v<c.length;v++){var b=c[v],L=b.percentWidth;b.width=parseInt(L,10)/100*i.width}return i}function rr(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;if(i){var f=l.padding,p=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var d=Sn(l.width,i.width)+p;u.length>0&&d+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=d}else{var g=sr(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new h_;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,m.width="number"==typeof l.width?l.width:a?a[y]:vn(v,h),y||c)u.push(new c_([m]));else{var _=(u[u.length-1]||(u[0]=new c_)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(v||!x||s)&&_.push(m)}}}function or(t){var e=t.charCodeAt(0);return e>=33&&383>=e}function ar(t){return!or(t)||!!p_[t]}function sr(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var f=t.charAt(c);if("\n"!==f){var p=vn(f,e),d=!i&&!ar(f);(o.length?h+p>n:r+h+p>n)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=f,u+=p,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=f,h=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(h+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function lr(t,e,n){return x_.copy(t.getBoundingRect()),t.transform&&x_.applyTransform(t.transform),w_.width=e,w_.height=n,!x_.intersect(w_)}function ur(t,e,n,i,r,o){r[0]=b_(t,n),r[1]=b_(e,i),o[0]=S_(t,n),o[1]=S_(e,i)}function hr(t,e,n,i,r,o,a,s,l,u){var h=he,c=se,f=h(t,n,r,a,A_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;f>p;p++){var d=c(t,n,r,a,A_[p]);l[0]=b_(d,l[0]),u[0]=S_(d,u[0])}f=h(e,i,o,s,P_);for(var p=0;f>p;p++){var g=c(e,i,o,s,P_[p]);l[1]=b_(g,l[1]),u[1]=S_(g,u[1])}l[0]=b_(t,l[0]),u[0]=S_(t,u[0]),l[0]=b_(a,l[0]),u[0]=S_(a,u[0]),l[1]=b_(e,l[1]),u[1]=S_(e,u[1]),l[1]=b_(s,l[1]),u[1]=S_(s,u[1])}function cr(t,e,n,i,r,o,a,s){var l=ve,u=de,h=S_(b_(l(t,n,r),1),0),c=S_(b_(l(e,i,o),1),0),f=u(t,n,r,h),p=u(e,i,o,c);a[0]=b_(t,r,f),a[1]=b_(e,o,p),s[0]=S_(t,r,f),s[1]=S_(e,o,p)}function fr(t,e,n,i,r,o,a,s,l){var u=yt,h=vt,c=Math.abs(r-o);if(1e-4>c%C_&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(I_[0]=T_(r)*n+t,I_[1]=M_(r)*i+e,D_[0]=T_(o)*n+t,D_[1]=M_(o)*i+e,u(s,I_,D_),h(l,I_,D_),r%=C_,0>r&&(r+=C_),o%=C_,0>o&&(o+=C_),r>o&&!a?o+=C_:o>r&&a&&(r+=C_),a){var f=o;o=r,r=f}for(var p=0;o>p;p+=Math.PI/2)p>r&&(k_[0]=T_(p)*n+t,k_[1]=M_(p)*i+e,u(s,k_,s),h(l,k_,l))}function pr(t){return Math.round(t/G_*1e8)/1e8%2*G_}function dr(t,e){var n=pr(t[0]);0>n&&(n+=Y_);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Y_?r=n+Y_:e&&n-r>=Y_?r=n-Y_:!e&&n>r?r=n+(Y_-pr(n-r)):e&&r>n&&(r=n-(Y_-pr(r-n))),t[0]=n,t[1]=r}function gr(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||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)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 h=l*o-a+u;return s/2*s/2>=h*h/(l*l+1)}function yr(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)&&c/2>=fe(t,e,n,i,r,o,a,s,u,h,null)}function vr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)&&u/2>=_e(t,e,n,i,r,o,s,l,null)}function mr(t){return t%=Z_,0>t&&(t+=Z_),t}function _r(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(i-r)%K_<1e-4)return!0;if(o){var c=i;i=mr(r),r=mr(c)}else i=mr(i),r=mr(r);i>r&&(r+=K_);var f=Math.atan2(l,s);return 0>f&&(f+=K_),f>=i&&r>=f||f+K_>=i&&r>=f+K_}function xr(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function wr(t,e){return Math.abs(t-e)<J_}function br(){var t=ex[0];ex[0]=ex[1],ex[1]=t}function Sr(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=ue(e,i,o,s,u,tx);if(0===h)return 0;for(var c=0,f=-1,p=void 0,d=void 0,g=0;h>g;g++){var y=tx[g],v=0===y||1===y?.5:1;l>se(t,n,r,a,y)||(0>f&&(f=he(e,i,o,s,ex),ex[1]<ex[0]&&f>1&&br(),p=se(e,i,o,s,ex[0]),f>1&&(d=se(e,i,o,s,ex[1]))),c+=2===f?y<ex[0]?e>p?v:-v:y<ex[1]?p>d?v:-v:d>s?v:-v:y<ex[0]?e>p?v:-v:p>s?v:-v)}return c}function Mr(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=ye(e,i,o,s,tx);if(0===l)return 0;var u=ve(e,i,o);if(u>=0&&1>=u){for(var h=0,c=de(e,i,o,u),f=0;l>f;f++){var p=0===tx[f]||1===tx[f]?.5:1,d=de(t,n,r,tx[f]);a>d||(h+=tx[f]<u?e>c?p:-p:c>o?p:-p)}return h}var p=0===tx[0]||1===tx[0]?.5:1,d=de(t,n,r,tx[0]);return a>d?0:e>o?p:-p}function Tr(t,e,n,i,r,o,a,s){if((s-=e)>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);tx[0]=-l,tx[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=Q_-1e-4){i=0,r=Q_;var h=o?1:-1;return a>=tx[0]+t&&a<=tx[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=Q_,r+=Q_);for(var f=0,p=0;2>p;p++){var d=tx[p];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=Q_+g),(g>=i&&r>=g||g+Q_>=i&&r>=g+Q_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),f+=h)}}return f}function Cr(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,f=0,p=0,d=0;l>d;){var g=s[d++],y=1===d;switch(g===$_.M&&d>1&&(n||(u+=xr(h,c,f,p,i,r))),y&&(h=s[d],c=s[d+1],f=h,p=c),g){case $_.M:f=s[d++],p=s[d++],h=f,c=p;break;case $_.L:if(n){if(gr(h,c,s[d],s[d+1],e,i,r))return!0}else u+=xr(h,c,s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case $_.C:if(n){if(yr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=Sr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case $_.Q:if(n){if(vr(h,c,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=Mr(h,c,s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case $_.A:var v=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+v,a=Math.sin(w)*x+m,y?(f=o,p=a):u+=xr(h,c,o,a,i,r);var M=(i-v)*x/_+v;if(n){if(_r(v,m,x,w,w+b,S,e,M,r))return!0}else u+=Tr(v,m,x,w,w+b,S,M,r);h=Math.cos(w+b)*_+v,c=Math.sin(w+b)*x+m;break;case $_.R:f=h=s[d++],p=c=s[d++];var T=s[d++],C=s[d++];if(o=f+T,a=p+C,n){if(gr(f,p,o,p,e,i,r)||gr(o,p,o,a,e,i,r)||gr(o,a,f,a,e,i,r)||gr(f,a,f,p,e,i,r))return!0}else u+=xr(o,p,o,a,i,r),u+=xr(f,a,f,p,i,r);break;case $_.Z:if(n){if(gr(h,c,f,p,e,i,r))return!0}else u+=xr(h,c,f,p,i,r);h=f,c=p}}return n||wr(c,p)||(u+=xr(h,c,f,p,i,r)||0),0!==u}function Ir(t,e,n){return Cr(t,0,!1,e,n)}function Dr(t,e,n,i){return Cr(t,e,!0,n,i)}function kr(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Ar(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function Pr(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(cx(2*i)===cx(2*r)&&(t.x1=t.x2=Lr(i,s,!0)),cx(2*o)===cx(2*a)&&(t.y1=t.y2=Lr(o,s,!0)),t):t}}function Or(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Lr(i,s,!0),t.y=Lr(r,s,!0),t.width=Math.max(Lr(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Lr(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Lr(t,e,n){if(!e)return t;var i=cx(2*t);return(i+cx(e))%2==0?i/2:(i+(n?1:-1))/2}function Rr(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?wy+"px":t+"px":t}function Er(t,e){for(var n=0;n<xx.length;n++){var i=xx[n],r=e[i];null!=r&&(t[i]=r)}}function Nr(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Br(t){return zr(t),d(t.rich,zr),t}function zr(t){if(t){t.font=vx.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||mx[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||_x[n]?n:"top";t.padding&&(t.padding=F(t.padding))}}function Fr(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Vr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hr(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Wr(t){var e=t.text;return null!=e&&(e+=""),e}function Ur(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Gr(t){return null!=t&&"none"!==t}function Yr(t){if(M(t)){var e=Vx.get(t);return e||(e=Ee(t,-.1),Vx.put(t,e)),e}if(P(t)){var n=l({},t);return n.colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:Ee(t.color,-.1)}}),n}return t}function jr(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Xr(t){jr(t,"emphasis",Ax)}function qr(t){t.hoverState===Ax&&jr(t,"normal",Dx)}function Zr(t){jr(t,"blur",kx)}function Kr(t){t.hoverState===kx&&jr(t,"normal",Dx)}function $r(t){t.selected=!0}function Qr(t){t.selected=!1}function Jr(t,e,n){e(t,n)}function to(t,e,n){Jr(t,e,n),t.isGroup&&t.traverse(function(t){Jr(t,e,n)})}function eo(t,e){switch(e){case"emphasis":t.hoverState=Ax;break;case"normal":t.hoverState=Dx;break;case"blur":t.hoverState=kx;break;case"select":t.selected=!0}}function no(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function io(t,e,n,i){var r=n&&h(n,"select")>=0,o=!1;if(t instanceof ox){var a=Cx(t),s=r?a.selectFill||a.normalFill:a.normalFill,u=r?a.selectStroke||a.normalStroke:a.normalStroke;if(Gr(s)||Gr(u)){i=i||{};var c=i.style||{};"inherit"===c.fill?(o=!0,i=l({},i),c=l({},c),c.fill=s):!Gr(c.fill)&&Gr(s)?(o=!0,i=l({},i),c=l({},c),c.fill=Yr(s)):!Gr(c.stroke)&&Gr(u)&&(o||(i=l({},i),c=l({},c)),c.stroke=Yr(u)),i.style=c}}if(i&&null==i.z2){o||(i=l({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(null!=f?f:Lx)}return i}function ro(t,e,n){if(n&&null==n.z2){n=l({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Rx)}return n}function oo(t,e,n){var i=h(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:no(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=l({},n),a=l({opacity:i?r:.1*o.opacity},a),n.style=a),n}function ao(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return io(this,t,e,n);if("blur"===t)return oo(this,t,n);if("select"===t)return ro(this,t,n)}return n}function so(t){t.stateProxy=ao;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ao),n&&(n.stateProxy=ao)}function lo(t,e){!vo(t,e)&&!t.__highByOuter&&to(t,Xr)}function uo(t,e){!vo(t,e)&&!t.__highByOuter&&to(t,qr)}function ho(t,e){t.__highByOuter|=1<<(e||0),to(t,Xr)}function co(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&to(t,qr)}function fo(t){to(t,Zr)}function po(t){to(t,Kr)}function go(t){to(t,$r)}function yo(t){to(t,Qr)}function vo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function mo(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Ix(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){Kr(t)}),a&&n.push(r)),o.isBlured=!1}),d(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function _o(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&po(i)}}var o=i.getModel();if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!h||"series"===e&&o)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){Zr(t)}),p(e))r(t.getData(),e);else if(I(e))for(var c=_(e),f=0;f<c.length;f++)r(t.getData(c[f]),e[c[f]]);l.push(t),Ix(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}})}}function xo(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Ix(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Zr(t)})}}}function wo(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=ki(r,e);o=(b(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&s>l;)a=r.getItemGraphicEl(l++);if(a){var u=bx(a);_o(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&_o(i,h,c,n)}}}function bo(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===bx(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function So(t,e,n){var i=bx(t),r=bo(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&xo(i.componentMainType,i.componentIndex,n),d(o,function(t){return lo(t,e)})):(_o(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&xo(i.componentMainType,i.componentIndex,n),lo(t,e))}function Mo(t,e,n){mo(n);var i=bx(t),r=bo(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?d(r,function(t){return uo(t,e)}):uo(t,e)}function To(t,e){if(No(e)){var n=e.dataType,i=t.getData(n),r=ki(i,e);b(r)||(r=[r]),t[e.type===Fx?"toggleSelect":e.type===Bx?"select":"unselect"](r,n)}}function Co(t){d(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?go(e):yo(e)})})}function Io(t){var e=[];return t.eachSeries(function(t){d(t.getAllData(),function(n){var i=(n.data,n.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Do(t,e,n){Lo(t,!0),to(t,so),Po(t,e,n)}function ko(t){Lo(t,!1)}function Ao(t,e,n,i){i?ko(t):Do(t,e,n)}function Po(t,e,n){var i=bx(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}function Oo(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Hx.length;r++){var o=Hx[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Wx[n]]()}}function Lo(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Ro(t){return!(!t||!t.__highDownDispatcher)}function Eo(t){var e=Tx[t];return null==e&&32>=Mx&&(e=Tx[t]=Mx++),e}function No(t){var e=t.type;return e===Bx||e===zx||e===Fx}function Bo(t){var e=t.type;return e===Ex||e===Nx}function zo(t){var e=Cx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function Fo(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=Ux.M,c=Ux.C,f=Ux.L,p=Ux.R,d=Ux.A,g=Ux.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case h:case f:i=1;break;case c:i=3;break;case g:i=2;break;case d:var y=e[4],v=e[5],m=Yx(e[0]*e[0]+e[1]*e[1]),_=Yx(e[2]*e[2]+e[3]*e[3]),x=jx(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=_,l[r++]+=v,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var w=Gx[a];w[0]=l[r++],w[1]=l[r++],gt(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function Vo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ho(t,e){return(t[0]*e[0]+t[1]*e[1])/(Vo(t)*Vo(e))}function Wo(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ho(t,e))}function Uo(t,e,n,i,r,o,a,s,l,u,h){var c=l*(Kx/180),f=Zx(c)*(t-n)/2+qx(c)*(e-i)/2,p=-1*qx(c)*(t-n)/2+Zx(c)*(e-i)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=Xx(d),s*=Xx(d));var g=(r===o?-1:1)*Xx((a*a*s*s-a*a*p*p-s*s*f*f)/(a*a*p*p+s*s*f*f))||0,y=g*a*p/s,v=g*-s*f/a,m=(t+n)/2+Zx(c)*y-qx(c)*v,_=(e+i)/2+qx(c)*y+Zx(c)*v,x=Wo([1,0],[(f-y)/a,(p-v)/s]),w=[(f-y)/a,(p-v)/s],b=[(-1*f-y)/a,(-1*p-v)/s],S=Wo(w,b);if(Ho(w,b)<=-1&&(S=Kx),Ho(w,b)>=1&&(S=0),0>S){var M=Math.round(S/Kx*1e6)/1e6;S=2*Kx+M%2*Kx}h.addData(u,m,_,a,s,x,S,c,o)}function Go(t){var e=new q_;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=q_.CMD,l=t.match($x);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),f=void 0,p=h.match(Qx)||[],d=p.length,g=0;d>g;g++)p[g]=parseFloat(p[g]);for(var y=0;d>y;){var v=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=i,T=r,C=void 0,I=void 0;switch(c){case"l":i+=p[y++],r+=p[y++],f=s.L,e.addData(f,i,r);break;case"L":i=p[y++],r=p[y++],f=s.L,e.addData(f,i,r);break;case"m":i+=p[y++],r+=p[y++],f=s.M,e.addData(f,i,r),o=i,a=r,c="l";break;case"M":i=p[y++],r=p[y++],f=s.M,e.addData(f,i,r),o=i,a=r,c="L";break;case"h":i+=p[y++],f=s.L,e.addData(f,i,r);break;case"H":i=p[y++],f=s.L,e.addData(f,i,r);break;case"v":r+=p[y++],f=s.L,e.addData(f,i,r);break;case"V":r=p[y++],f=s.L,e.addData(f,i,r);break;case"C":f=s.C,e.addData(f,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),i=p[y-2],r=p[y-1];break;case"c":f=s.C,e.addData(f,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r),i+=p[y-2],r+=p[y-1];break;case"S":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),f=s.C,M=p[y++],T=p[y++],i=p[y++],r=p[y++],e.addData(f,v,m,M,T,i,r);break;case"s":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),f=s.C,M=i+p[y++],T=r+p[y++],i+=p[y++],r+=p[y++],e.addData(f,v,m,M,T,i,r);break;case"Q":M=p[y++],T=p[y++],i=p[y++],r=p[y++],f=s.Q,e.addData(f,M,T,i,r);break;case"q":M=p[y++]+i,T=p[y++]+r,i+=p[y++],r+=p[y++],f=s.Q,e.addData(f,M,T,i,r);break;case"T":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i=p[y++],r=p[y++],f=s.Q,e.addData(f,v,m,i,r);break;case"t":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i+=p[y++],r+=p[y++],f=s.Q,e.addData(f,v,m,i,r);break;case"A":_=p[y++],x=p[y++],w=p[y++],b=p[y++],S=p[y++],M=i,T=r,i=p[y++],r=p[y++],f=s.A,Uo(M,T,i,r,b,S,_,x,w,f,e);break;case"a":_=p[y++],x=p[y++],w=p[y++],b=p[y++],S=p[y++],M=i,T=r,i+=p[y++],r+=p[y++],f=s.A,Uo(M,T,i,r,b,S,_,x,w,f,e)}}("z"===c||"Z"===c)&&(f=s.Z,e.addData(f),i=o,r=a),n=f}return e.toStatic(),e}function Yo(t){return null!=t.setData}function jo(t,e){var n=Go(t),i=l({},e);return i.buildPath=function(t){if(Yo(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){Fo(n,t),this.dirtyShape()},i}function Xo(t,e){return new Jx(jo(t,e))}function qo(t,n){var i=jo(t,n);return function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(Jx)}function Zo(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new ox(e);return a.createPathProxy(),a.buildPath=function(t){if(Yo(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Ko(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,f=c*l-h*u;return dw>f*f?void 0:(f=(h*(e-o)-c*(t-r))/f,[t+f*l,e+f*u])}function $o(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/cw(s*s+l*l),h=u*l,c=-u*s,f=t+h,p=e+c,d=n+h,g=i+c,y=(f+d)/2,v=(p+g)/2,m=d-f,_=g-p,x=m*m+_*_,w=r-o,b=f*g-d*p,S=(0>_?-1:1)*cw(fw(0,w*w*x-b*b)),M=(b*_-m*S)/x,T=(-b*m-_*S)/x,C=(b*_+m*S)/x,I=(-b*m+_*S)/x,D=M-y,k=T-v,A=C-y,P=I-v;return D*D+k*k>A*A+P*P&&(M=C,T=I),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/w-1),y1:T*(r/w-1)}}function Qo(t){var e;if(b(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Jo(t,e){var n,i=fw(e.r,0),r=fw(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,f=!!e.clockwise,p=hw(u-l),d=p>ow&&p%ow;if(d>dw&&(p=d),i>dw)if(p>ow-dw)t.moveTo(h+i*sw(l),c+i*aw(l)),t.arc(h,c,i,l,u,!f),r>dw&&(t.moveTo(h+r*sw(u),c+r*aw(u)),t.arc(h,c,r,u,l,f));else{var g=void 0,y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,I=void 0,D=void 0,k=void 0,A=void 0,P=i*sw(l),O=i*aw(l),L=r*sw(u),R=r*aw(u),E=p>dw;if(E){var N=e.cornerRadius;N&&(n=Qo(N),g=n[0],y=n[1],v=n[2],m=n[3]);var B=hw(i-r)/2;if(_=pw(B,v),x=pw(B,m),w=pw(B,g),b=pw(B,y),T=S=fw(_,x),C=M=fw(w,b),(S>dw||M>dw)&&(I=i*sw(u),D=i*aw(u),k=r*sw(l),A=r*aw(l),rw>p)){var z=Ko(P,O,k,A,I,D,L,R);if(z){var F=P-z[0],V=O-z[1],H=I-z[0],W=D-z[1],U=1/aw(lw((F*H+V*W)/(cw(F*F+V*V)*cw(H*H+W*W)))/2),G=cw(z[0]*z[0]+z[1]*z[1]);T=pw(S,(i-G)/(U+1)),C=pw(M,(r-G)/(U-1))}}}if(E)if(T>dw){var Y=pw(v,T),j=pw(m,T),X=$o(k,A,P,O,i,Y,f),q=$o(I,D,L,R,i,j,f);t.moveTo(h+X.cx+X.x0,c+X.cy+X.y0),S>T&&Y===j?t.arc(h+X.cx,c+X.cy,T,uw(X.y0,X.x0),uw(q.y0,q.x0),!f):(Y>0&&t.arc(h+X.cx,c+X.cy,Y,uw(X.y0,X.x0),uw(X.y1,X.x1),!f),t.arc(h,c,i,uw(X.cy+X.y1,X.cx+X.x1),uw(q.cy+q.y1,q.cx+q.x1),!f),j>0&&t.arc(h+q.cx,c+q.cy,j,uw(q.y1,q.x1),uw(q.y0,q.x0),!f))}else t.moveTo(h+P,c+O),t.arc(h,c,i,l,u,!f);else t.moveTo(h+P,c+O);if(r>dw&&E)if(C>dw){var Y=pw(g,C),j=pw(y,C),X=$o(L,R,I,D,r,-j,f),q=$o(P,O,k,A,r,-Y,f);t.lineTo(h+X.cx+X.x0,c+X.cy+X.y0),M>C&&Y===j?t.arc(h+X.cx,c+X.cy,C,uw(X.y0,X.x0),uw(q.y0,q.x0),!f):(j>0&&t.arc(h+X.cx,c+X.cy,j,uw(X.y0,X.x0),uw(X.y1,X.x1),!f),t.arc(h,c,r,uw(X.cy+X.y1,X.cx+X.x1),uw(q.cy+q.y1,q.cx+q.x1),f),Y>0&&t.arc(h+q.cx,c+q.cy,Y,uw(q.y1,q.x1),uw(q.y0,q.x0),!f))}else t.lineTo(h+L,c+R),t.arc(h,c,r,u,l,f);else t.lineTo(h+L,c+R)}else t.moveTo(h,c);t.closePath()}}}function ta(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;p>f;f++)yt(a,a,t[f]),vt(s,s,t[f]);yt(a,a,i[0]),vt(s,s,i[1])}for(var f=0,p=t.length;p>f;f++){var d=t[f];if(n)r=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(J(t[f]));continue}r=t[f-1],o=t[f+1]}it(u,o,r),ut(u,u,e);var g=ct(d,r),y=ct(d,o),v=g+y;0!==v&&(g/=v,y/=v),ut(h,u,-g),ut(c,u,y);var m=et([],d,h),_=et([],d,c);i&&(vt(m,m,a),yt(m,m,s),vt(_,_,a),yt(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function ea(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=ta(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function na(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?le:se)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?le:se)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ge:de)(t.x1,t.cpx1,t.x2,e),(n?ge:de)(t.y1,t.cpy1,t.y2,e)]}function ia(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=N(i.duration,200),h=N(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),S(c)&&(c=c(n,r)),S(u)&&(u=u(n));return{duration:u||0,delay:c,easing:h}}return null}function ra(t,e,n,i,r,o,a){var s,l=!1;S(r)?(a=o,o=r,r=null):I(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=ia(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,f=h.delay,p=h.easing,d={duration:c,delay:f||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function oa(t,e,n,i,r,o){ra("update",t,e,n,i,r,o)}function aa(t,e,n,i,r,o){ra("enter",t,e,n,i,r,o)}function sa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function la(t,e,n,i,r,o){sa(t)||ra("leave",t,e,n,i,r,o)}function ua(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),la(t,{style:{opacity:0}},e,n,i)}function ha(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||ua(t,e,n,i)}):ua(t,e,n,i)}function ca(t){Ww(t).oldStyle=t.style}function fa(t){return ox.extend(t)}function pa(t,e){return jw(t,e)}function da(t,e){Yw[t]=e}function ga(t){return Yw.hasOwnProperty(t)?Yw[t]:void 0}function ya(t,e,n,i){var r=Xo(t,e);return n&&("center"===i&&(n=ma(n,r.getBoundingRect())),_a(r,n)),r}function va(t,e,n){var i=new hx({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(ma(e,r))}}});return i}function ma(t,e){var n,i=e.width/e.height,r=t.height*i;return r<=t.width?n=t.height:(r=t.width,n=r/i),{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}function _a(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function xa(t,e){return Pr(t,t,{lineWidth:e}),t}function wa(t){return Or(t.shape,t.shape,t.style),t}function ba(t,e){for(var n=Nt([]);t&&t!==e;)zt(n,t.getLocalTransform(),n),t=t.parent;return n}function Sa(t,e,n){return e&&!p(e)&&(e=Lm.getLocalTransform(e)),n&&(e=Wt([],e)),gt([],t,e)}function Ma(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=Sa(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ta(t){return!t.isGroup}function Ca(t){return null!=t.shape}function Ia(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ca(t)&&(e.shape=l({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){Ta(t)&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(Ta(t)&&t.anid){var e=r[t.anid];if(e){var o=i(t);t.attr(i(e)),oa(t,o,n,bx(t).dataIndex)}}})}}function Da(t,e){return g(t,function(t){var n=t[0];n=Uw(n,e.x),n=Gw(n,e.x+e.width);var i=t[1];return i=Uw(i,e.y),i=Gw(i,e.y+e.height),[n,i]})}function ka(t,e){var n=Uw(t.x,e.x),i=Gw(t.x+t.width,e.x+e.width),r=Uw(t.y,e.y),o=Gw(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function Aa(t,e,n){var i=l({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),u(r,n),new hx(i)):ya(t.replace("path://",""),i,n,"center"):void 0}function Pa(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Oa(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Oa(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,f=La(h,c,l,u);if(Ra(f))return!1;var p=t-r,d=e-o,g=La(p,d,l,u)/f;if(0>g||g>1)return!1;var y=La(p,d,h,c)/f;return!(0>y||y>1)}function La(t,e,n,i){return t*i-n*e}function Ra(t){return 1e-6>=t&&t>=-1e-6}function Ea(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=M(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&d(_(l),function(t){Z(s,t)||(s[t]=l[t],s.$vars.push(t))});var h=bx(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:i,option:u({content:i,formatterParams:s},r)}}function Na(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ba(t,e){if(t)if(b(t))for(var n=0;n<t.length;n++)Na(t[n],e);else Na(t,e)}function za(t,e){for(var n=0;n<Px.length;n++){var i=Px[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Fa(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=S(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Px.length;u++){var h=Px[u],c=e[h];l[h]=N(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function Va(t,e,n,i){n=n||Kw;for(var r=t instanceof vx,o=!1,a=0;a<Ox.length;a++){var s=e[Ox[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new vx,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Fa(n,e),h=e.normal,c=!!h.getShallow("show"),f=Wa(h,i&&i.normal,n,!1,!r);f.text=u.normal,r||t.setTextConfig(Ua(h,n,!1));for(var a=0;a<Px.length;a++){var p=Px[a],s=e[p];if(s){var d=l.ensureState(p),g=!!N(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Wa(s,i&&i[p],n,!0,!r),d.style.text=u[p],!r){t.ensureState(p).textConfig=Ua(s,n,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!c,l.useStyle(f),l.dirty(),n.enableTextSetter&&(tb(l).setLabelText=function(t){var i=Fa(n,e,t);za(l,i)})}else l&&(l.ignore=!0);t.dirty()}function Ha(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Px.length;i++){var r=Px[i];n[r]=t.getModel([r,e])}return n}function Wa(t,e,n,i,r){var o={};return Ga(o,t,n,i,r),e&&l(o,e),o}function Ua(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=N(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Ga(t,e,n,i,r){n=n||Kw;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Ya(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);ja(o[u]={},h,s,n,i,r,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var f=e.get("minMargin");null!=f&&(t.margin=f),ja(t,e,s,n,i,r,!0,!1)}function Ya(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Kw).rich;if(n){e=e||{};for(var i=_(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}function ja(t,e,n,i,r,o,a,s){n=!r&&n||Kw;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=N(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===h||"auto"===h)&&(h=l||null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var f=N(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var p=N(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var d=N(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=c||s||(c=i&&i.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<$w.length;g++){var y=$w[g],v=N(e.getShallow(y),n[y]);null!=v&&(t[y]=v)}for(var g=0;g<Qw.length;g++){var y=Qw[g],v=e.getShallow(y);null!=v&&(t[y]=v)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<Jw.length;g++){var y=Jw[g],v=e.getShallow(y);null!=v&&(t[y]=v)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Xa(t,e){var n=e&&e.getModel("textStyle");return H([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(" "))}function qa(t,e,n,i,r){function o(i){var o=Bi(n,a.precision,l,u,i);a.interpolatedValue=1===i?null:o;var h=Fa({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);za(t,h)}var a=tb(t);if(a.valueAnimation&&a.prevValue!==a.value){var s=a.defaultInterpolatedText,l=N(a.interpolatedValue,a.prevValue),u=a.value;t.percent=0,(null==a.prevValue?aa:oa)(t,{percent:1},i,e,null,o)}}function Za(t){return[t||"",fb++].join("_")}function Ka(t,e){t=t.toUpperCase(),_b[t]=new cb(e),mb[t]=e}function $a(t){if(M(t)){var e=mb[t.toUpperCase()]||{};return t===gb||t===yb?o(e):a(o(e),o(mb[vb]),!1)}return a(o(t),o(mb[vb]),!1)}function Qa(t){return _b[t]}function Ja(){return _b[vb]}function ts(t,e){return t+="","0000".substr(0,e-t.length)+t}function es(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ns(t){return t===es(t)}function is(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function rs(t,e,n,i){var r=Qn(t),o=r[ls(n)](),a=r[us(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[hs(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[cs(n)](),c=(h-1)%12+1,f=r[fs(n)](),p=r[ps(n)](),d=r[ds(n)](),g=i instanceof cb?i:Qa(i||xb)||Ja(),y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),_=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ts(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ts(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ts(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ts(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ts(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,ts(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ts(d,3)).replace(/{S}/g,d+"")}function os(t,e,n,i,r){var o=null;if(M(n))o=n;else if(S(n))o=n(t.value,e,{level:t.level});else{var a=l({},Cb);if(t.level>0)for(var s=0;s<kb.length;++s)a[kb[s]]="{primary|"+a[kb[s]]+"}";var h=n?!1===n.inherit?n:u(n,a):a,c=as(t.value,r);if(h[c])o=h[c];else if(h.inherit){for(var f=Ab.indexOf(c),s=f-1;s>=0;--s)if(h[c]){o=h[c];break}o=o||a.none}if(b(o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;p=Math.min(p,o.length-1),o=o[p]}}return rs(new Date(t.value),o,r,i)}function as(t,e){var n=Qn(t),i=n[us(e)]()+1,r=n[hs(e)](),o=n[cs(e)](),a=n[fs(e)](),s=n[ps(e)](),l=n[ds(e)](),u=0===l,h=u&&0===s,c=h&&0===a,f=c&&0===o,p=f&&1===r;return p&&1===i?"year":p?"month":f?"day":c?"hour":h?"minute":u?"second":"millisecond"}function ss(t,e,n){var i=C(t)?Qn(t):t;switch(e=e||as(t,n)){case"year":return i[ls(n)]();case"half-year":return i[us(n)]()>=6?1:0;case"quarter":return Math.floor((i[us(n)]()+1)/4);case"month":return i[us(n)]();case"day":return i[hs(n)]();case"half-day":return i[cs(n)]()/24;case"hour":return i[cs(n)]();case"minute":return i[fs(n)]();case"second":return i[ps(n)]();case"millisecond":return i[ds(n)]()}}function ls(t){return t?"getUTCFullYear":"getFullYear"}function us(t){return t?"getUTCMonth":"getMonth"}function hs(t){return t?"getUTCDate":"getDate"}function cs(t){return t?"getUTCHours":"getHours"}function fs(t){return t?"getUTCMinutes":"getMinutes"}function ps(t){return t?"getUTCSeconds":"getSeconds"}function ds(t){return t?"getUTCMilliseconds":"getMilliseconds"}function gs(t){return t?"setUTCFullYear":"setFullYear"}function ys(t){return t?"setUTCMonth":"setMonth"}function vs(t){return t?"setUTCDate":"setDate"}function ms(t){return t?"setUTCHours":"setHours"}function _s(t){return t?"setUTCMinutes":"setMinutes"}function xs(t){return t?"setUTCSeconds":"setSeconds"}function ws(t){return t?"setUTCMilliseconds":"setMilliseconds"}function bs(t,e,n,i,r,o,a,s){return new vx({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function Ss(t){if(!oi(t))return M(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ms(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}function Ts(t,e,n){function i(t){return t&&H(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Qn(t):t;if(!isNaN(+s))return rs(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return T(t)?i(t):C(t)&&r(t)?t+"":"-";var l=ri(t);return r(l)?Ss(l):T(t)?i(t):"boolean"==typeof t?t+"":"-"}function Cs(t,e,n){b(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Ob[o];t=t.replace(Lb(a),Lb(a,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Lb(Ob[l],s),n?Tt(u):u)}return t}function Is(t,e){var n=M(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Tt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Tt(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Ds(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=Qn(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t=t.replace("MM",ts(a,2)).replace("M",a).replace("yyyy",o).replace("yy",ts(o%100+"",2)).replace("dd",ts(s,2)).replace("d",s).replace("hh",ts(l,2)).replace("h",l).replace("mm",ts(u,2)).replace("m",u).replace("ss",ts(h,2)).replace("s",h).replace("SSS",ts(c,3))}function ks(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function As(t,e){return e=e||"transparent",M(t)?t:I(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function Ps(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 h,c,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);h=o+g,h>i||l.newline?(o=0,h=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(d?-d.y+f.y:0);c=a+y,c>r||l.newline?(o+=s+n,a=0,c=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function Os(t,e,n){n=Pb(n||0);var i=e.width,r=e.height,o=Hn(t.left,i),a=Hn(t.top,r),s=Hn(t.right,i),l=Hn(t.bottom,r),u=Hn(t.width,i),h=Hn(t.height,r),c=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-f-o),isNaN(h)&&(h=r-l-c-a),null!=p&&(isNaN(u)&&isNaN(h)&&(p>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(o)&&(o=i-s-u-f),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-f}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-f-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new bv(o+n[3],a+n[0],u,h);return d.margin=n,d}function Ls(t){var e=t.layoutMode||t.constructor.layoutMode;return I(e)?e:e?{type:e}:null}function Rs(t,e,n){function i(n,i){var a={},l=0,u={},h=0;if(Rb(n,function(e){u[e]=t[e]}),Rb(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&l){if(l>=2)return a;for(var c=0;c<n.length;c++){var f=n[c];if(!r(a,f)&&r(t,f)){a[f]=t[f];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){Rb(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize;!b(s)&&(s=[s,s]);var l=i(Nb[0],0),u=i(Nb[1],1);a(Nb[0],t,l),a(Nb[1],t,u)}function Es(t){return Ns({},t)}function Ns(t,e){return e&&t&&Rb(Eb,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Bs(t){var e=[];return d(zb.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return zi(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e}function zs(t){tS(t).datasetMap=Y()}function Fs(t,e,n){function i(t,e,n){for(var i=0;n>i;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Vs(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,f=tS(c).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),d(t,function(e,n){var i=I(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var g=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});return d(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=g.valueWayDim;i(o[n],l,a),i(h,l,a),g.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=g.categoryWayDim;i(o[n],l,a),i(h,l,a),g.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function Vs(t){return t.get("data",!0)?void 0:Li(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},t_).models[0]}function Hs(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Li(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},t_).models:[]}function Ws(t,e){return Us(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Us(t,e,n,i,r,o){function a(t){var e=M(t);return null!=t&&isFinite(t)&&""!==t?e?Jb.Might:Jb.Not:e&&"-"!==t?Jb.Must:void 0}var s;if(k(t))return Jb.Not;var l,u;if(i){var h=i[o];I(h)?(l=h.name,u=h.type):M(h)&&(l=h)}if(null!=u)return"ordinal"===u?Jb.Must:Jb.Not;if(e===jb){var c=t;if(n===Qb){for(var f=c[o],p=0;p<(f||[]).length&&5>p;p++)if(null!=(s=a(f[r+p])))return s}else for(var p=0;p<c.length&&5>p;p++){var d=c[r+p];if(d&&null!=(s=a(d[o])))return s}}else if(e===Xb){var g=t;if(!l)return Jb.Not;for(var p=0;p<g.length&&5>p;p++){var y=g[p];if(y&&null!=(s=a(y[l])))return s}}else if(e===qb){var v=t;if(!l)return Jb.Not;var f=v[l];if(!f||k(f))return Jb.Not;for(var p=0;p<f.length&&5>p;p++)if(null!=(s=a(f[p])))return s}else if(e===Yb)for(var m=t,p=0;p<m.length&&5>p;p++){var y=m[p],_=pi(y);if(!b(_))return Jb.Not;if(null!=(s=a(_[o])))return s}return Jb.Not}function Gs(t,e,n){var i=eS.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function Ys(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function js(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?Ys(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Xs(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function qs(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Zs(t,e){var n=t.color&&!t.colorLayer;d(e,function(e,i){"colorLayer"===i&&n||zb.hasClass(i)||("object"==typeof e?t[i]=t[i]?a(t[i],e,!1):o(e):null==t[i]&&(t[i]=e))})}function Ks(t,e,n){if(b(e)){var i=Y();return d(e,function(t){if(null!=t){null!=Mi(t,null)&&i.set(t,!0)}}),v(n,function(e){return e&&i.get(e[t])})}var r=Mi(e,null);return v(n,function(e){return e&&null!=r&&e[t]===r})}function $s(t,e){return e.hasOwnProperty("subType")?v(t,function(t){return t&&t.subType===e.subType}):t}function Qs(t){var e=Y();return t&&d(ci(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Js(t,e,n){function i(t){d(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,f=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((f||c)&&(t.options=t.media=null),o=t),c&&b(h)&&d(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),d(u,function(t){return i(t)}),d(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function tl(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return d(t,function(t,e){var n=e.match(yS);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();el(i[a],t,o)||(r=!1)}}),r}function el(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function nl(t,e){return t.join(",")===e.join(",")}function il(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=xS.length;i>n;n++){var r=xS[n],o=e.normal,s=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?a(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?a(t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function rl(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,u(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function ol(t){rl(t,"itemStyle"),rl(t,"lineStyle"),rl(t,"areaStyle"),rl(t,"label"),rl(t,"labelLine"),rl(t,"upperLabel"),rl(t,"edgeLabel")}function al(t,e){var n=_S(t)&&t[e],i=_S(n)&&n.textStyle;if(i)for(var r=0,o=Qm.length;o>r;r++){var a=Qm[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function sl(t){t&&(ol(t),al(t,"label"),t.emphasis&&al(t.emphasis,"label"))}function ll(t){if(_S(t)){il(t),ol(t),al(t,"label"),al(t,"upperLabel"),al(t,"edgeLabel"),t.emphasis&&(al(t.emphasis,"label"),al(t.emphasis,"upperLabel"),al(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(il(e),sl(e));var n=t.markLine;n&&(il(n),sl(n));var i=t.markArea;i&&sl(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!k(o))for(var a=0;a<o.length;a++)sl(o[a]);d(t.categories,function(t){ol(t)})}if(r&&!k(r))for(var a=0;a<r.length;a++)sl(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)sl(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)b(l[a])?(sl(l[a][0]),sl(l[a][1])):sl(l[a]);"gauge"===t.type?(al(t,"axisLabel"),al(t,"title"),al(t,"detail")):"treemap"===t.type?(rl(t.breadcrumb,"itemStyle"),d(t.levels,function(t){ol(t)})):"tree"===t.type&&ol(t.leaves)}}function ul(t){return b(t)?t:t?[t]:[]}function hl(t){return(b(t)?t[0]:t)||{}}function cl(t,e){mS(ul(t.series),function(t){_S(t)&&ll(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),mS(n,function(e){mS(ul(t[e]),function(t){t&&(al(t,"axisLabel"),al(t.axisPointer,"label"))})}),mS(ul(t.parallel),function(t){var e=t&&t.parallelAxisDefault;al(e,"axisLabel"),al(e&&e.axisPointer,"label")}),mS(ul(t.calendar),function(t){rl(t,"itemStyle"),al(t,"dayLabel"),al(t,"monthLabel"),al(t,"yearLabel")}),mS(ul(t.radar),function(t){al(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),mS(ul(t.geo),function(t){_S(t)&&(sl(t),mS(ul(t.regions),function(t){sl(t)}))}),mS(ul(t.timeline),function(t){sl(t),rl(t,"label"),rl(t,"itemStyle"),rl(t,"controlStyle",!0);var e=t.data;b(e)&&d(e,function(t){I(t)&&(rl(t,"label"),rl(t,"itemStyle"))})}),mS(ul(t.toolbox),function(t){rl(t,"iconStyle"),mS(t.feature,function(t){rl(t,"iconStyle")})}),al(hl(t.axisPointer),"label"),al(hl(t.tooltip).axisPointer,"label")}function fl(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}function pl(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function dl(t){t&&d(wS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function gl(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<SS.length;n++){var i=SS[n][1],r=SS[n][0];null!=e[i]&&(e[r]=e[i])}}function yl(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function vl(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ml(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function _l(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&_l(t[n].children,e)}function xl(t,e){cl(t,e),t.series=ci(t.series),d(t.series,function(t){if(I(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),yl(t.label);var n=t.data;if(n&&!k(n))for(var i=0;i<n.length;i++)yl(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=fl(t,"pointer.color");null!=r&&pl(t,"itemStyle.color",r)}else if("bar"===e){gl(t),gl(t.backgroundStyle),gl(t.emphasis);var n=t.data;if(n&&!k(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(gl(n[i]),gl(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),vl(t),_l(t.data,vl)}else"graph"===e||"sankey"===e?ml(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&u(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),dl(t)}}),t.dataRange&&(t.visualMap=t.dataRange),d(bS,function(e){var n=t[e];n&&(b(n)||(n=[n]),d(n,function(t){dl(t)}))})}function wl(t){var e=Y();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(bl)}function bl(t){d(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c=a.get(e.stackedDimension,h);if(isNaN(c))return r;var f,p;s?p=a.getRawIndex(h):f=a.get(e.stackedByDimension,h);for(var d=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,f)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&0>v||"samesign"===l&&c>=0&&v>0||"samesign"===l&&0>=c&&0>v){c=Zn(c,v),d=v;break}}}return i[0]=c,i[1]=d,i})})}function Sl(t){return t instanceof MS}function Ml(t,e,n){n=n||Il(t);var i=e.seriesLayoutBy,r=Dl(t,n,i,e.sourceHeader,e.dimensions);return new MS({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:o(e)})}function Tl(t){return new MS({data:t,sourceFormat:k(t)?Zb:Yb})}function Cl(t){return new MS({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:o(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Il(t){var e=Kb;if(k(t))e=Zb;else if(b(t)){0===t.length&&(e=jb);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(b(r)){e=jb;break}if(I(r)){e=Xb;break}}}}else if(I(t))for(var o in t)if(Z(t,o)&&p(t[o])){e=qb;break}return e}function Dl(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Al(r),startIndex:a,dimensionsDetectedCount:o};if(e===jb){var s=t;"auto"===i||null==i?Pl(function(t){null!=t&&"-"!==t&&(M(t)?null==a&&(a=1):a=0)},n,s,10):a=C(i)?i:i?1:0,r||1!==a||(r=[],Pl(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Qb?s.length:s[0]?s[0].length:null}else if(e===Xb)r||(r=kl(t));else if(e===qb)r||(r=[],d(t,function(t,e){r.push(e)}));else if(e===Yb){var l=pi(t[0]);o=b(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Al(r),dimensionsDetectedCount:o}}function kl(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return d(e,function(t,e){i.push(e)}),i}}function Al(t){if(t){var e=Y();return g(t,function(t){t=I(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function Pl(t,e,n,i){if(e===Qb)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&i>r;r++)t(o[r],r)}function Ol(t){var e=t.sourceFormat;return e===Xb||e===qb}function Ll(t,e){return IS[Nl(t,e)]}function Rl(t,e){return kS[Nl(t,e)]}function El(t){return PS[t]}function Nl(t,e){return t===jb?t+"_"+e:t}function Bl(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return El(o)(i,a,s)}var l=i;return o===Yb&&(l=pi(i)),l}}}function zl(t){var e,n;return I(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Fl(t){return new RS(t)}function Vl(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||C(t)||null==t||"-"===t||(t=+Qn(t)),null==t||""===t?NaN:+t)}function Hl(t,e){var n=new zS,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==$b&&ui("");var a=[],s={},l=t.dimensionsDefine;if(l)d(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(a.push(i),null!=n){Z(s,n)&&ui(""),s[n]=i}});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=Ll(r,$b);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,a,t)},n.getRawData=Vy(Wl,null,t)),n.cloneRawData=Vy(Ul,null,t);var c=Rl(r,$b);n.count=Vy(c,null,i,o,a);var f=El(r);n.retrieveValue=function(t,e){var n=h(i,o,a,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=Vy(Gl,null,a,s),n.cloneAllDimensionInfo=Vy(Yl,null,a),n}function Wl(t){Zl(t.sourceFormat)||ui("");return t.data}function Ul(t){var e=t.sourceFormat,n=t.data;if(!Zl(e)){ui("")}if(e===jb){for(var i=[],r=0,o=n.length;o>r;r++)i.push(n[r].slice());return i}if(e===Xb){for(var i=[],r=0,o=n.length;o>r;r++)i.push(l({},n[r]));return i}}function Gl(t,e,n){return null!=n?C(n)||!isNaN(n)&&!Z(e,n)?t[n]:Z(e,n)?e[n]:void 0:void 0}function Yl(t){return o(t)}function jl(t){t=o(t);var e=t.type;e||ui("");var n=e.split(":");2!==n.length&&ui("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,FS.set(e,t)}function Xl(t,e,n){var i=ci(t),r=i.length;r||ui("");for(var o=0,a=r;a>o;o++){e=ql(i[o],e),o!==a-1&&(e.length=Math.max(e.length,1))}return e}function ql(t,e){e.length||ui(""),I(t)||ui("");var n=t.type,i=FS.get(n);i||ui("");var r=g(e,function(t){return Hl(t,i)});return g(ci(i.transform({upstream:r[0],upstreamList:r,config:o(t.config)})),function(t,n){I(t)||ui(""),t.data||ui(""),Zl(Il(t.data))||ui("");var i,r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:$b,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:$b,sourceHeader:0,dimensions:t.dimensions};return Ml(t.data,i,null)})}function Zl(t){return t===jb||t===Xb}function Kl(t){return t>65535?HS:WS}function $l(){return[1/0,-1/0]}function Ql(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jl(t,e,n,i,r){var o=YS[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function tu(t){t.option.transform&&W(t.option.transform)}function eu(t){return"series"===t.mainType}function nu(t){throw new Error(t)}function iu(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Tt(i+"")+"px;color:"+Tt(n)+";font-weight:"+Tt(r+""),valueStyle:"font-size:"+Tt(a+"")+"px;color:"+Tt(o)+";font-weight:"+Tt(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function ru(t,e){return e.type=t,e}function ou(t){return"section"===t.type}function au(t){return ou(t)?lu:uu}function su(t){if(ou(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return d(t.blocks,function(t){var n=su(t);n>=e&&(e=n+ +(i&&(!n||ou(t)&&!t.noHeader)))}),e}return 0}function lu(t,e,n,i){var r=e.noHeader,o=cu(su(e)),a=[],s=e.blocks||[];V(!s||b(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Z(h,u)){var c=new BS(h[u],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&s.reverse()}d(s,function(n,r){var s=e.valueFormatter,u=au(n)(s?l(l({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=u&&a.push(u)});var f="richText"===t.renderMode?a.join(o.richText):fu(a.join(""),r?n:o.html);if(r)return f;var p=Ts(e.header,"ordinal",t.useUTC),g=iu(i,t.renderMode).nameStyle;return"richText"===t.renderMode?gu(t,p,g)+o.richText+f:fu('<div style="'+g+";"+qS+';">'+Tt(p)+"</div>"+f,n)}function uu(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=b(t)?t:[t],g(t,function(t,e){return Ts(t,b(p)?p[e]:p,u)})};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),f=o?"":Ts(l,"ordinal",u),p=e.valueType,d=a?[]:h(e.value),y=!s||!o,v=!s&&o,m=iu(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":gu(t,f,_))+(a?"":yu(t,d,y,v,x)):fu((s?"":c)+(o?"":pu(f,!s,_))+(a?"":du(d,y,v,x)),n)}}function hu(t,e,n,i,r,o){if(t){return au(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}}function cu(t){return{html:ZS[t],richText:KS[t]}}function fu(t,e){return'<div style="margin: '+e+"px 0 0;"+qS+';">'+t+'<div style="clear:both"></div></div>'}function pu(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Tt(t)+"</span>"}function du(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=b(t)?t:[t],'<span style="'+o+";"+i+'">'+g(t,function(t){return Tt(t)}).join("&nbsp;&nbsp;")+"</span>"}function gu(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function yu(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(b(e)?e.join(" "):e,o)}function vu(t,e){return As(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function mu(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}function _u(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),f=b(c),p=vu(o,a);if(h>1||f&&!h){var d=xu(c,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,i=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Bl(l,a,u[0]),n=g.type}else r=e=f?c[0]:c;var y=Ti(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return ru("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[ru("nameValue",{markerType:"item",markerColor:p,name:_,noName:!H(_),value:e,valueType:n})].concat(i||[])})}function xu(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?h.push(ru("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=y(t,function(t,e,n){var i=a.getDimensionInfo(n);return t=t||i&&!1!==i.tooltip&&null!=i.displayName},!1),l=[],u=[],h=[];return i.length?d(i,function(t){o(Bl(a,n,t),t)}):d(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function wu(t,e){return t.getName(e)||t.getId(e)}function bu(t){var e=t.name;Ti(t)||(t.name=Su(t)||e)}function Su(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return d(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function Mu(t){return t.model.getRawData().count()}function Tu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Cu}function Cu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Iu(t,e){d(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,w(Du,e))})}function Du(t,e){var n=ku(t);return n&&n.setOutputEnd((e||this).count()),e}function ku(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function Au(){var t=Ai();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}function Pu(t,e,n){t&&Ro(t)&&("emphasis"===e?ho:co)(t,n)}function Ou(t,e,n){var i=ki(t,e),r=e&&null!=e.highlightKey?Eo(e.highlightKey):null;null!=i?d(ci(i),function(e){Pu(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Pu(t,n,r)})}function Lu(t){return nM(t.model)}function Ru(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&eM(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),oM[l]}function Eu(t,e,n){function i(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),a=this,s=t;var p=l||e,d=l||n;l=null,o=r-(d?u:h)-p,clearTimeout(c),d?c=setTimeout(i,p):o>=0?i():c=setTimeout(i,-o),u=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){l=t},f}function Nu(t,e,n,i){var r=t[e];if(r){var o=r[aM]||r,a=r[lM];if(r[sM]!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=Eu(o,n,"debounce"===i),r[aM]=o,r[lM]=i,r[sM]=n}return r}}function Bu(t,e){var n=t[e];n&&n[aM]&&(n.clear&&n.clear(),t[e]=n[aM])}function zu(t,e){var n=t.visualStyleMapper||hM[e];return n||(console.warn("Unknown style type '"+e+"'."),hM.itemStyle)}function Fu(t,e){var n=t.visualDrawType||cM[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}function Vu(t,e){e=e||{},u(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Wm,i=new dx({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new vx({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new dx({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new Aw({shape:{startAngle:-yM/2,endAngle:-yM/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*yM/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*yM/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Hu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Wu(t){return t.overallProgress&&Uu}function Uu(){this.agent.dirty(),this.getDownstream().dirty()}function Gu(){this.agent&&this.agent.dirty()}function Yu(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ju(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ci(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?g(e,function(t,e){return Xu(e)}):mM}function Xu(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function qu(t){return t.data.count()}function Zu(t){rM=null;try{t(_M,xM)}catch(t){}return rM}function Ku(t,e){for(var n in e.prototype)t[n]=K}function $u(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Qu(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ju(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var u=t.getData(),h=ki(u,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:u.getName(b(h)?h[0]:h),selected:M(i)?i:l({},i)})}})}function th(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Ju("map","selectchanged",e,i,t),Ju("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Ju("map","selected",e,i,t),Ju("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Ju("map","unselected",e,i,t),Ju("pie","unselected",e,i,t))})}function eh(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function nh(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function ih(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?va(t.slice(8),new bv(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?ya(t.slice(7),{},new bv(e,n,i,r),a?"center":"cover"):new UM({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=nh,o&&l.setColor(o),l}function rh(t){return b(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function oh(t,e){return null!=t?(b(t)||(t=[t,t]),[Hn(t[0],e[0])||0,Hn(N(t[1],t[0]),e[1])||0]):void 0}function ah(t){return isFinite(t)}function sh(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),i=ah(i)?i:0,r=ah(r)?r:1,o=ah(o)?o:0,a=ah(a)?a:0,t.createLinearGradient(i,o,r,a)}function lh(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),a=ah(a)?a:.5,s=ah(s)?s:.5,l=l>=0&&ah(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}function uh(t,e,n){for(var i="radial"===e.type?lh(t,e,n):sh(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function hh(t,e){if(t===e||!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;return!1}function ch(t){return parseInt(t,10)}function fh(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||ch(s[i])||ch(t.style[i]))-(ch(s[o])||0)-(ch(s[a])||0)|0}function ph(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:C(t)?[t]:b(t)?t:null:null}function dh(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&ph(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=g(n,function(t){return t/r}),i/=r)}return[n,i]}function gh(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function yh(t){return"string"==typeof t&&"none"!==t}function vh(t){var e=t.fill;return null!=e&&"none"!==e}function mh(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _h(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function xh(t,e,n){var i=Zi(e.image,e.__image,n);if($i(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Yy),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function wh(t,e,n,i){var r,o=gh(n),a=vh(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||GM,c=e.__dirty;if(!i){var f=n.fill,p=n.stroke,d=a&&!!f.colorStops,g=o&&!!p.colorStops,y=a&&!!f.image,v=o&&!!p.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getBoundingRect()),d&&(m=c?uh(t,f,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?uh(t,p,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(x=c||!e.__canvasFillPattern?xh(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),v&&(w=c||!e.__canvasStrokePattern?xh(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:y&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:v&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,T;t.setLineDash&&n.lineDash&&(r=dh(e),M=r[0],T=r[1]);var C=!0;(u||c&Lv)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=T),i||(n.strokeFirst?(o&&_h(t,n),a&&mh(t,n)):(a&&mh(t,n),o&&_h(t,n))),M&&t.setLineDash([])}function bh(t,e,n){var i=e.__image=Zi(n.image,e.__image,e,e.onload);if(i&&$i(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,f=s-h;t.drawImage(i,u,h,c,f,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Sh(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||by,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=dh(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(gh(n)&&t.strokeText(r,n.x,n.y),vh(n)&&t.fillText(r,n.x,n.y)):(vh(n)&&t.fillText(r,n.x,n.y),gh(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}function Mh(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){Ph(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?g_.opacity:a}(i||e.blend!==n.blend)&&(o||(Ph(t,r),o=!0),t.globalCompositeOperation=e.blend||g_.blend);for(var s=0;s<YM.length;s++){var l=YM[s];(i||e[l]!==n[l])&&(o||(Ph(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Ph(t,r),o=!0),t.shadowColor=e.shadowColor||g_.shadowColor),o}function Th(t,e,n,i,r){var o=Oh(e,r.inHover),a=i?null:n&&Oh(n,r.inHover)||{};if(o===a)return!1;var s=Mh(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Ph(t,r),s=!0),yh(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Ph(t,r),s=!0),yh(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Ph(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ph(t,r),s=!0),t.lineWidth=u)}for(var h=0;h<jM.length;h++){var c=jM[h],f=c[0];(i||o[f]!==a[f])&&(s||(Ph(t,r),s=!0),t[f]=o[f]||c[1])}return s}function Ch(t,e,n,i,r){return Mh(t,Oh(e,r.inHover),n&&Oh(n,r.inHover),i,r)}function Ih(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Dh(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Ih(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}function kh(t,e){return t&&e?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&&!e)}function Ah(t){var e=vh(t),n=gh(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ph(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Oh(t,e){return e?t.__hoverStyle||t.style:t.style}function Lh(t,e){Rh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Rh(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Ov,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||hh(o,a))&&(a&&a.length&&(Ph(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Ph(t,n),t.save(),Dh(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var h=e instanceof ox&&e.autoBatch&&Ah(e.style);s||kh(r,u.transform)?(Ph(t,n),Ih(t,e)):h||Ph(t,n);var c=Oh(e,n.inHover);e instanceof ox?(n.lastDrawType!==XM&&(l=!0,n.lastDrawType=XM),Th(t,e,u,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),wh(t,e,c,h),h&&(n.batchFill=c.fill||"",n.batchStroke=c.stroke||"")):e instanceof sx?(n.lastDrawType!==ZM&&(l=!0,n.lastDrawType=ZM),Th(t,e,u,l,n),Sh(t,e,c)):e instanceof hx?(n.lastDrawType!==qM&&(l=!0,n.lastDrawType=qM),Ch(t,e,u,l,n),bh(t,e,c)):e.getTemporalDisplayables&&(n.lastDrawType!==KM&&(l=!0,n.lastDrawType=KM),Eh(t,e,n)),h&&i&&Ph(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Eh(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;a>o;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rh(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rh(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Nh(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&$M.delete(t);var o=$M.get(t);if(o)return o;var a=u(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[n],o=!0,s=0;s<JM.length;++s){var l=a[JM[s]];if(null!=l&&!b(l)&&!M(l)&&!C(l)&&"boolean"!=typeof l){o=!1;break}e.push(l)}var u;if(o){u=e.join(",")+(r?"-svg":"");var h=QM.get(u);h&&(r?t.svgElement=h:t.image=h)}var c,f=zh(a.dashArrayX),p=Fh(a.dashArrayY),d=Bh(a.symbol),g=Vh(f),y=Hh(p),v=!r&&Cy.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;n>e;++e)t=li(t,g[e]);for(var i=1,e=0,n=d.length;n>e;++e)i=li(i,d[e].length);t*=i;var r=y*g.length*d.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();v&&(v.width=_.width*n,v.height=_.height*n,c=v.getContext("2d")),function(){c&&(c.clearRect(0,0,v.width,v.height),a.backgroundColor&&(c.fillStyle=a.backgroundColor,c.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(0>=t))for(var o=-y,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var h=l/2%d.length,g=0,x=0,w=0;g<2*_.width;){for(var b=0,e=0;e<f[u].length;++e)b+=f[u][e];if(0>=b)break;if(x%2==0){var S=.5*(1-a.symbolSize),M=g+f[u][x]*S,T=o+p[s]*S,C=f[u][x]*a.symbolSize,I=p[s]*a.symbolSize,D=w/2%d[h].length;!function(t,e,o,s,l){var u=r?1:n,h=ih(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var f=i.painter.renderOneToVNode(h);f&&m.children.push(f)}else Lh(c,h)}(M,T,C,I,d[h][D])}g+=f[u][x],++w,++x===f[u].length&&(x=0)}++u===f.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}}(),o&&QM.put(u,v||m),t.image=v,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,$M.set(t,s),t.dirty=!1,s}function Bh(t){if(!t||0===t.length)return[["rect"]];if(M(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!M(t[n])){e=!1;break}if(e)return Bh([t]);for(var i=[],n=0;n<t.length;++n)i.push(M(t[n])?[t[n]]:t[n]);return i}function zh(t){if(!t||0===t.length)return[[0,0]];if(C(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!C(t[i])){n=!1;break}if(n)return zh([t]);for(var r=[],i=0;i<t.length;++i)if(C(t[i])){var e=Math.ceil(t[i]);r.push([e,e])}else{var e=g(t[i],function(t){return Math.ceil(t)});r.push(e.length%2==1?e.concat(e):e)}return r}function Fh(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t)){var e=Math.ceil(t);return[e,e]}var n=g(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}function Vh(t){return g(t,function(t){return Hh(t)})}function Hh(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function Wh(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");if(n){i.ensureUniqueItemVisual(t,"style").decal=Nh(n,e)}});var r=i.getVisual("decal");if(r){i.getVisual("style").decal=Nh(r,e)}}})}function Uh(t,e){eT[t]=e}function Gh(t){return eT[t]}function Yh(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:Xh(this,t,e)}}function jh(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xh(this,t,e)}}function Xh(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),tv.prototype[e].apply(t,n)}function qh(t,e,n){var i=!(n&&n.ssr);if(i){var r=Qh(t);if(r)return r}var o=new OT(t,e,n);return o.id="ec_"+GT++,WT[o.id]=o,i&&Ri(t,jT,o.id),kT(o),tT.trigger("afterinit",o),o}function Zh(t){if(b(t)){var e=t;t=null,d(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+YT++,d(e,function(e){e.group=t})}return UT[t]=!0,t}function Kh(t){UT[t]=!1}function $h(t){M(t)?t=WT[t]:t instanceof OT||(t=Qh(t)),t instanceof OT&&!t.isDisposed()&&t.dispose()}function Qh(t){return WT[Ei(t,jT)]}function Jh(t){return WT[t]}function tc(t,e){VT[t]=e}function ec(t){h(zT,t)<0&&zT.push(t)}function nc(t,e){cc(BT,t,e,iT)}function ic(t){oc("afterinit",t)}function rc(t){oc("afterupdate",t)}function oc(t,e){tT.on(t,e)}function ac(t,e,n){S(e)&&(n=e,e="");var i=I(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,NT[e]||(V(hT.test(i)&&hT.test(e)),ET[i]||(ET[i]={action:n,actionInfo:t}),NT[e]=i)}function sc(t,e){gS.register(t,e)}function lc(t){var e=gS.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function uc(t,e){cc(FT,t,e,rT,"layout")}function hc(t,e){cc(FT,t,e,oT,"visual")}function cc(t,e,n,i,r){if((S(e)||I(e))&&(n=e,e=i),!(h(qT,n)>=0)){qT.push(n);var o=vM.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function fc(t,e){HT[t]=e}function pc(t){n({createCanvas:t})}function dc(t,e,n){var i=Gh("registerMap");i&&i(t,e,n)}function gc(t){var e=Gh("getMap");return e&&e(t)}function yc(t){return null==t?0:t.length||1}function vc(t){return t}function mc(t,e){var n={},i=n.encode={},r=Y(),o=[],a=[],s={};d(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;_c(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),wc(n.type)&&(o[0]=e),_c(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}Gb.each(function(t,e){var r=_c(i,e),o=n.otherDims[e];null!=o&&!1!==o&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new oC(s,e),n}function _c(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function xc(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function wc(t){return!("ordinal"===t||"time"===t)}function bc(t){return t instanceof uC}function Sc(t){for(var e=Y(),n=0;n<(t||[]).length;n++){var i=t[n],r=I(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Mc(t){var e=sC(t);return e.dimNameMap||(e.dimNameMap=Sc(t.dimensionsDefine))}function Tc(t){return t>30}function Cc(t,e){return Ic(t,e).dimensions}function Ic(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=I(n)?n:{name:n},r=new aC,o=i.name;null!=o&&null!=g.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=h.length;return m[t]=s,r.storeDimIndex=t,h.push(r),r}return h[e]}function i(t,e,n){null!=Gb.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Sl(t)||(t=Tl(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Y(),h=[],c=kc(t,o,a,e.dimensionsCount),f=e.canOmitUnusedDimensions&&Tc(c),p=a===t.dimensionsDefine,g=p?Mc(t):Sc(a),y=e.encodeDefine;!y&&e.encodeDefaulter&&(y=e.encodeDefaulter(t,c));for(var v=Y(y),m=new US(c),_=0;_<m.length;_++)m[_]=-1;if(!f)for(var _=0;c>_;_++)n(_);v.each(function(t,e){var r=ci(t).slice();if(1===r.length&&!M(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);d(r,function(t,r){var a=M(t)?g.get(t):t;null!=a&&c>a&&(o[r]=a,i(n(a),e,r))})});var x=0;d(o,function(t){var e,r,o,a;if(M(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=l({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var h=v.get(e);if(!1!==h){if(h=ci(h),!h.length)for(var f=0;f<(r&&r.length||1);f++){for(;c>x&&null!=n(x).coordDim;)x++;c>x&&h.push(x++)}d(h,function(t,s){var l=n(t);if(p&&null!=a.type&&(l.type=a.type),i(u(l,a),e,s),null==l.name&&r){var h=r[s];!I(h)&&(h={name:h}),l.name=l.displayName=h.name,l.defaultTooltip=h.defaultTooltip}o&&u(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var T=w||"value";if(f)d(h,function(t){r(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;c>C;C++){var D=n(C),k=D.coordDim;null==k&&(D.coordDim=Ac(T,s,S),D.coordDimIndex=0,(!w||0>=b)&&(D.isExtraCoord=!0),b--),r(D),null!=D.type||Ws(t,C)!==Jb.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}return Dc(h),new uC({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:f})}function Dc(t){for(var e=Y(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function kc(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return d(e,function(t){var e;I(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Ac(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function Pc(t){var e=t.get("coordinateSystem"),n=new yC(e),i=vC[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function Oc(t){return"category"===t.get("type")}function Lc(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;Rc(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,f=!(!t||!t.get("stack"));if(d(i,function(t,e){M(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,g=u.type,y=0;d(i,function(t){t.coordDim===p&&y++});var v={name:h,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,g),m.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Rc(t){return!bc(t.schema)}function Ec(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Nc(t,e){return Ec(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Bc(t,e){var n,i=t.get("coordinateSystem"),r=gS.get(i);return e&&e.coordSysDims&&(n=g(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=xc(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function zc(t,e,n){var i,r;return n&&d(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}function Fc(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Tl(t)):(i=r.getSource(),o=i.sourceFormat===Yb);var a=Pc(e),s=Bc(e,a),l=n.useEncodeDefaulter,u=S(l)?l:l?w(Fs,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Ic(i,h),f=zc(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),d=Lc(e,{schema:c,store:p}),g=new gC(c,e);g.setCalculationInfo(d);var y=null!=f&&Vc(i)?function(t,e,n,i){return i===f?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:p,null,y),g}function Vc(t){if(t.sourceFormat===Yb){return!b(pi(Hc(t.data||[])))}}function Hc(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Wc(t){return I(t)&&null!=t.value?t.value:t+""}function Uc(t){return"interval"===t.type||"log"===t.type}function Gc(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=ei(o/e,!0);null!=n&&n>a&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=jc(a);return qc(r.niceTickExtent=[Wn(Math.ceil(t[0]/a)*a,s),Wn(Math.floor(t[1]/a)*a,s)],t),r}function Yc(t){var e=Math.pow(10,ti(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Wn(n*e)}function jc(t){return Gn(t)+2}function Xc(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function qc(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Xc(t,0,e),Xc(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Zc(t,e){return t>=e[0]&&t<=e[1]}function Kc(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function $c(t,e){return t*(e[1]-e[0])+e[0]}function Qc(t){return b(t)?MC?new Float32Array(t):t:new TC(t)}function Jc(t){return t.get("stack")||CC+t.seriesIndex}function tf(t){return t.dim+t.index}function ef(t,e){var n=[];return e.eachSeriesByType(t,function(t){sf(t)&&n.push(t)}),n}function nf(t){var e={};d(t,function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function rf(t){var e=nf(t),n=[];return d(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var f=t.getData();i=Math.abs(a[1]-a[0])/f.count()}var p=Hn(t.get("barWidth"),i),d=Hn(t.get("barMaxWidth"),i),g=Hn(t.get("barMinWidth")||(lf(t)?.5:1),i),y=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:tf(o),stackId:Jc(t)})}),of(n)}function of(t){var e={};d(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return d(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=_(i).length;o=Math.max(35-4*a,15)+"%"}var s=Hn(o,r),l=Hn(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),d(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var f,p=0;d(i,function(t){t.width||(t.width=c),f=t,p+=t.width*(1+l)}),f&&(p-=f.width*l);var g=-p/2;d(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+l)})}),n}function af(t,e,n){if(t&&e){var i=t[tf(e)];return null!=i&&null!=n?i[Jc(n)]:i}}function sf(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function lf(t){return t.pipelineContext&&t.pipelineContext.large}function uf(t,e,n,i){var r=Qn(e),o=Qn(n),a=function(t){return ss(r,t,i)===ss(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},f=function(){return c()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return f();case"millisecond":return function(){return f()&&a("millisecond")}()}}function hf(t){return t/=Mb,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cf(t){return t/=30*Mb,t>6?6:t>3?3:t>2?2:1}function ff(t){return t/=Sb,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function pf(t,e){return t/=e?bb:wb,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function df(t){return ei(t,!0)}function gf(t,e,n){var i=new Date(t);switch(es(e)){case"year":case"month":i[ys(n)](0);case"day":i[vs(n)](1);case"hour":i[ms(n)](0);case"minute":i[_s(n)](0);case"second":i[xs(n)](0),i[ws(n)](0)}return i.getTime()}function yf(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();n>u&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}for(var o=Ab,a=0,s=[],l=[],u=0,h=0,c=0;c<o.length&&a++<1e4;++c){var f=es(o[c]);if(ns(o[c])){!function(t,o,a){var s=[],l=!o.length;if(!uf(es(t),i[0],i[1],n)){l&&(o=[{value:gf(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){var f=void 0,p=void 0,d=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/Mb/365)),p=ls(n),d=gs(n);break;case"half-year":case"quarter":case"month":f=cf(e),p=us(n),d=ys(n);break;case"week":case"half-week":case"day":f=hf(e,31),p=hs(n),d=vs(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=ff(e),p=cs(n),d=ms(n);break;case"minute":f=pf(e,!0),p=fs(n),d=_s(n);break;case"second":f=pf(e,!1),p=ps(n),d=xs(n);break;case"millisecond":f=df(e),p=ds(n),d=ws(n)}r(f,h,c,p,d,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-f})}}for(var u=0;u<s.length;u++)a.push(s[u])}}(o[c],s[s.length-1]||[],l);if(f!==(o[c+1]?es(o[c+1]):null)){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<l.length;++d){var y=l[d].value;(0===d||l[d-1].value!==y)&&(p.push(l[d]),y>=i[0]&&y<=i[1]&&u++)}var m=(i[1]-i[0])/e;if(u>1.5*m&&h>m/1.5)break;if(s.push(p),u>m||t===o[c])break}l=[]}}}for(var _=v(g(s,function(t){return v(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],w=_.length-1,c=0;c<_.length;++c)for(var b=_[c],S=0;S<b.length;++S)x.push({value:b[S].value,level:w-c});x.sort(function(t,e){return t.value-e.value});for(var M=[],c=0;c<x.length;++c)(0===c||x[c].value!==x[c-1].value)&&M.push(x[c]);return M}function vf(t,e){return OC(t,Gn(e))}function mf(t,e,n){var i=t.rawExtentInfo;return i||(i=new FC(t,e,n),t.rawExtentInfo=i,i)}function _f(t,e){return null==e?null:R(e)?NaN:t.parse(e)}function xf(t,e){var n=t.type,i=mf(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=ef("bar",a),l=!1;if(d(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=rf(s),h=wf(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function wf(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=af(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;d(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;d(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/o,f=h/c-h;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function bf(t,e){var n=e,i=xf(t,n),r=i.extent,o=n.get("splitNumber");t instanceof BC&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Sf(t,e){if(e=e||t.get("type"))switch(e){case"category":return new wC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new DC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(mC.getClass(e)||SC)}}function Mf(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}function Tf(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):M(e)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(e):S(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(Cf(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Cf(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function If(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof wC?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=Tf(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=i?i[h]:{value:o[0]+h},f=l(c,h),p=s.getTextRect(f),d=Df(p,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Df(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new bv(t.x,t.y,o,a)}function kf(t){var e=t.get("interval");return null==e?"auto":e}function Af(t){return"category"===t.type&&0===kf(t.getLabelModel())}function Pf(t,e){var n={};return d(t.mapDimensionsAll(e),function(e){n[Nc(t,e)]=!0}),_(n)}function Of(t){return Fc(null,t)}function Lf(t,e){var n=e;e instanceof cb||(n=new cb(e));var i=Sf(n);return i.setExtent(t[0],t[1]),bf(i,n),i}function Rf(t){f(t,WC)}function Ef(t,e){return e=e||{},Wa(t,null,null,"normal"!==e.state)}function Nf(t){return b(t)?void d(t,function(t){Nf(t)}):void(h(YC,t)>=0||(YC.push(t),S(t)&&(t={install:t}),t.install(jC)))}function Bf(t,e){return Math.abs(t-e)<XC}function zf(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=xr(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Bf(r[0],s[0])&&Bf(r[1],s[1])||(i+=xr(r[0],r[1],s[0],s[1],e,n)),0!==i}function Ff(t,e){for(var n=0;n<t.length;n++)gt(t[n],t[n],e)}function Vf(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(yt(e,e,o),vt(n,n,o))}}function Hf(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;r>s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Wf(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),d(e.features,function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Gf(r,i,n);break;case"Polygon":case"MultiLineString":Uf(r,i,n);break;case"MultiPolygon":d(r,function(t,e){return Uf(t,i[e],n)})}}),e.UTF8Encoding=!1,e}function Uf(t,e,n){for(var i=0;i<t.length;i++)t[i]=Gf(t[i],e[i],n)}function Gf(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}function Yf(t,e){return t=Wf(t),g(v(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new KC(o[0],o.slice(1)));break;case"MultiPolygon":d(i.coordinates,function(t){t[0]&&r.push(new KC(t[0],t.slice(1)))});break;case"LineString":r.push(new $C([i.coordinates]));break;case"MultiLineString":r.push(new $C(i.coordinates))}var a=new QC(n[e||"name"],r,n.cp);return a.properties=n,a})}function jf(t){return"category"===t.type?qf(t):$f(t)}function Xf(t,e){return"category"===t.type?Kf(t,e):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function qf(t){var e=t.getLabelModel(),n=Zf(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Zf(t,e){var n=Qf(t,"labels"),i=kf(e),r=Jf(n,i);if(r)return r;var o,a;return S(i)?o=op(t,i):(a="auto"===i?ep(t):i,o=rp(t,a)),tp(n,i,{labels:o,labelCategoryInterval:a})}function Kf(t,e){var n=Qf(t,"ticks"),i=kf(e),r=Jf(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),S(i))o=op(t,i,!0);else if("auto"===i){var s=Zf(t,t.getLabelModel());a=s.labelCategoryInterval,o=g(s.labels,function(t){return t.tickValue})}else a=i,o=rp(t,a,!0);return tp(n,i,{ticks:o,tickCategoryInterval:a})}function $f(t){var e=t.scale.getTicks(),n=Tf(t);return{labels:g(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Qf(t,e){return rI(t)[e]||(rI(t)[e]=[])}function Jf(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function tp(t,e,n){return t.push({key:e,value:n}),n}function ep(t){var e=rI(t).autoInterval;return null!=e?e:rI(t).autoInterval=t.calculateCategoryInterval()}function np(t){var e=ip(t),n=Tf(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,y=_n(n({value:l}),e.font,"center","top");d=1.3*y.width,g=1.3*y.height,f=Math.max(f,d,7),p=Math.max(p,g,7)}var v=f/h,m=p/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(v,m))),x=rI(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function ip(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rp(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=Tf(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var f=Af(t),p=s.get("showMinLabel")||f,d=s.get("showMaxLabel")||f;p&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return d&&g-u!==a[1]&&i(a[1]),l}function op(t,e,n){var i=t.scale,r=Tf(t),o=[];return d(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function ap(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function sp(t,e,n,i){function r(t,e){return t=Wn(t),e=Wn(e),c?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;d(e,function(t){t.coord-=h/2});s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var c=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function lp(t){var e=zb.extend(t);return zb.registerClass(e),e}function up(t){var e=tM.extend(t);return tM.registerClass(e),e}function hp(t){var e=JS.extend(t);return JS.registerClass(e),e}function cp(t){var e=iM.extend(t);return iM.registerClass(e),e}function fp(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function pp(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(i-r)%sI<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var f=i;i=mr(r),r=mr(f)}else i=mr(i),r=mr(r);i>r&&(r+=sI);var p=Math.atan2(s,a);if(0>p&&(p+=sI),p>=i&&r>=p||p+sI>=i&&r>=p+sI)return l[0]=h,l[1]=c,u-n;var d=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(_))}function dp(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,f=Math.sqrt(h*h+c*c);h/=f,c/=f;var p=l*h+u*c,d=p/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var g=a[0]=t+d*h,y=a[1]=e+d*c;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function gp(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function yp(t,e,n){var i=gp(e.x,e.y,e.width,e.height,t.x,t.y,hI);return n.set(hI[0],hI[1]),i}function vp(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,f=t.y,p=0;p<h.length;){var d=h[p++];1===p&&(o=h[p],a=h[p+1],s=o,l=a);var g=u;switch(d){case lI.M:s=h[p++],l=h[p++],o=s,a=l;break;case lI.L:g=dp(o,a,h[p],h[p+1],c,f,hI,!0),o=h[p++],a=h[p++];break;case lI.C:g=fe(o,a,h[p++],h[p++],h[p++],h[p++],h[p],h[p+1],c,f,hI),o=h[p++],a=h[p++];break;case lI.Q:g=_e(o,a,h[p++],h[p++],h[p],h[p+1],c,f,hI),o=h[p++],a=h[p++];break;case lI.A:var y=h[p++],v=h[p++],m=h[p++],_=h[p++],x=h[p++],w=h[p++];p+=1;var b=!!(1-h[p++]);i=Math.cos(x)*m+y,r=Math.sin(x)*_+v,1>=p&&(s=i,l=r);g=pp(y,v,_,x,x+w,b,(c-y)*_/m+y,f,hI),o=Math.cos(x+w)*m+y,a=Math.sin(x+w)*_+v;break;case lI.R:s=o=h[p++],l=a=h[p++];g=gp(s,l,h[p++],h[p++],c,f,hI);break;case lI.Z:g=dp(o,a,s,l,c,f,hI,!0),o=s,a=l}u>g&&(u=g,n.set(hI[0],hI[1]))}return u}function mp(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||uI,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Wt([],h),f=e.get("length2")||0;u&&pI.copy(u);for(var p=0;p<a.length;p++){fp(a[p],0,s,cI,dI),pv.scaleAndAdd(fI,cI,dI,f),fI.transform(c);var d=t.getBoundingRect(),g=u?u.distance(fI):t instanceof ox?vp(fI,t.path,pI):yp(fI,d,pI);l>g&&(l=g,fI.transform(h),pI.transform(h),pI.toArray(o[0]),fI.toArray(o[1]),cI.toArray(o[2]))}_p(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function _p(t,e){if(180>=e&&e>0){e=e/180*Math.PI,cI.fromArray(t[0]),fI.fromArray(t[1]),pI.fromArray(t[2]),pv.sub(dI,cI,fI),pv.sub(gI,pI,fI);var n=dI.len(),i=gI.len();if(!(.001>n||.001>i)){dI.scale(1/n),gI.scale(1/i);if(dI.dot(gI)>Math.cos(e)){var r=dp(fI.x,fI.y,pI.x,pI.y,cI.x,cI.y,yI,!1);vI.fromArray(yI),vI.scaleAndAdd(gI,r/Math.tan(Math.PI-e));var o=pI.x!==fI.x?(vI.x-fI.x)/(pI.x-fI.x):(vI.y-fI.y)/(pI.y-fI.y);if(isNaN(o))return;0>o?pv.copy(vI,fI):o>1&&pv.copy(vI,pI),vI.toArray(t[1])}}}}function xp(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function wp(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Zy(i[0],i[1]),o=Zy(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=dt([],i[1],i[0],a/r),l=dt([],i[1],i[2],a/o),u=dt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)t.lineTo(i[h][0],i[h][1])}function bp(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(i&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Ox.length;l++){var h=Ox[l],c=e[h],f="normal"===h;if(c){var p=c.get("show");if((f?s:N(r.states[h]&&r.states[h].ignore,s))||!N(p,a)){var d=f?i:i&&i.states[h];d&&(d.ignore=!0);continue}i||(i=new bw,t.setTextGuideLine(i),f||!s&&a||xp(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),xp(i,!1,h,c)}}if(i){u(i.style,n),i.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,i.buildPath=wp}}function Sp(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Px.length;i++){var r=Px[i];n[r]=t.getModel([r,e])}return n}function Mp(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new Fw(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Tp(t,e,n,i,r,o){function a(){w=S.rect[e]-i,b=r-M.rect[e]-M.rect[n]}function s(t,e,n){if(0>t){var i=Math.min(e,-t);if(i>0){l(i*n,0,c);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(d=!0);for(var o=i;r>o;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var f=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;c-1>s;s++){var p=o[s]*f;l(p,0,s+1)}else for(var s=c-1;s>0;s--){var p=o[s-1]*f;l(-p,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),i=0;c-1>i;i++)if(e>0?l(n,0,i+1):l(-n,c-i-1,c),0>=(t-=n))return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var f,p=0,d=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],_=m.rect;0>(f=_[e]-p)&&(_[e]-=f,m.label[e]-=f,d=!0);var x=Math.max(-f,0);g.push(x),y+=x,p=_[e]+_[n]}y>0&&o&&l(-y/c,0,c);var w,b,S=t[0],M=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function Cp(t,e,n,i){return Tp(t,"x","width",e,n,i)}function Ip(t,e,n,i){return Tp(t,"y","height",e,n,i)}function Dp(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new bv(0,0,0,0),r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var c=o.obb,f=!1,p=0;p<n.length;p++){var d=n[p];if(i.intersect(d.rect)){if(a&&d.axisAligned){f=!0;break}if(d.obb||(d.obb=new Fw(d.localRect,d.transform)),c||(c=new Fw(s,l)),c.intersect(d.obb)){f=!0;break}}}f?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function kp(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Ap(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:kp(i&&i.shape.points)}}function Pp(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function Op(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var n=MI(e).labelManager;n||(n=MI(e).labelManager=new SI),n.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=MI(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Lp(t,e,n){var i=Cy.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}function Rp(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Ep(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function Np(t){t.registerPainter("canvas",II)}function Bp(t){t.registerComponentModel(DI),t.registerComponentView(kI)}function zp(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Bl(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Bl(t,e,n[a]));return o.join(" ")}}function Fp(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!b(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}function Vp(t,e){this.parent.drift(t,e)}function Hp(t,e,n,i){return!(!e||isNaN(e[0])||isNaN(e[1])||i.isIgnore&&i.isIgnore(n)||i.clipShape&&!i.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(n,"symbol"))}function Wp(t){return null==t||I(t)||(t={isIgnore:t}),t||{}}function Up(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ha(e),cursorStyle:e.get("cursor")}}function Gp(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=Yp(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=g(t.dimensions,function(t){return e.mapDimension(t)}),f=!1,p=e.getCalculationInfo("stackResultDimension");return Ec(e,c[0])&&(f=!0,c[0]=p),Ec(e,c[1])&&(f=!0,c[1]=p),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Yp(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:C(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function jp(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function Xp(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}function qp(t,e,n,i,r,o,a){for(var s=Xp(t,e),l=[],u=[],h=[],c=[],f=[],p=[],d=[],g=Gp(r,e,a),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,w=void 0,b=void 0;switch(_.cmd){case"=":w=2*_.idx,b=2*_.idx1;var S=y[w],M=y[w+1],T=v[b],C=v[b+1];(isNaN(S)||isNaN(M))&&(S=T,M=C),l.push(S,M),u.push(T,C),h.push(n[w],n[w+1]),c.push(i[b],i[b+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,D=g.dataDimsForPoint,k=r.dataToPoint([e.get(D[0],I),e.get(D[1],I)]);b=2*I,l.push(k[0],k[1]),u.push(v[b],v[b+1]);var A=jp(g,r,e,I);h.push(A[0],A[1]),c.push(i[b],i[b+1]),d.push(e.getRawIndex(I));break;case"-":x=!1}x&&(f.push(_),p.push(p.length))}p.sort(function(t,e){return d[t]-d[e]});for(var P=l.length,O=Qc(P),L=Qc(P),R=Qc(P),E=Qc(P),N=[],m=0;m<p.length;m++){var B=p[m],z=2*m,F=2*B;O[z]=l[F],O[z+1]=l[F+1],L[z]=u[F],L[z+1]=u[F+1],R[z]=h[F],R[z+1]=h[F+1],E[z]=c[F],E[z+1]=c[F+1],N[m]=f[B]}return{current:O,next:L,stackedOnCurrent:R,stackedOnNext:E,status:N}}function Zp(t,e){return isNaN(t)||isNaN(e)}function Kp(t,e,n,i,r,o,a,s,l){for(var u,h,c,f,p,d,g=n,y=0;i>y;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Zp(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,f=m;else{var _=v-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){for(var w=g+o,b=e[2*w],S=e[2*w+1];b===v&&S===m&&i>y;)y++,w+=o,g+=o,b=e[2*w],S=e[2*w+1],v=e[2*g],m=e[2*g+1],_=v-u,x=m-h;var M=y+1;if(l)for(;Zp(b,S)&&i>M;)M++,w+=o,b=e[2*w],S=e[2*w+1];var T=.5,C=0,I=0,D=void 0,k=void 0;if(M>=i||Zp(b,S))p=v,d=m;else{C=b-u,I=S-h;var A=v-u,P=b-v,O=m-h,L=S-m,R=void 0,E=void 0;if("x"===s){R=Math.abs(A),E=Math.abs(P);var N=C>0?1:-1;p=v-N*R*a,d=m,D=v+N*E*a,k=m}else if("y"===s){R=Math.abs(O),E=Math.abs(L);var B=I>0?1:-1;p=v,d=m-B*R*a,D=v,k=m+B*E*a}else R=Math.sqrt(A*A+O*O),E=Math.sqrt(P*P+L*L),T=E/(E+R),p=v-C*a*(1-T),d=m-I*a*(1-T),D=v+C*a*T,k=m+I*a*T,D=LI(D,RI(b,v)),k=LI(k,RI(S,m)),D=RI(D,LI(b,v)),k=RI(k,LI(S,m)),C=D-v,I=k-m,p=v-C*R/E,d=m-I*R/E,p=LI(p,RI(u,v)),d=LI(d,RI(h,m)),p=RI(p,LI(u,v)),d=RI(d,LI(h,m)),C=v-p,I=m-d,D=v+C*E/R,k=m+I*E/R}t.bezierCurveTo(c,f,p,d,v,m),c=D,f=k}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}function $p(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new dx({shape:{x:a,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),p=f.isHorizontal(),d=f.inverse;p?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=S(r)?function(t){r(t,c)}:null;aa(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function Qp(t,e,n){var i=t.getArea(),r=Wn(i.r0,1),o=Wn(i.r,1),a=new yw({shape:{cx:Wn(t.cx,1),cy:Wn(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){"angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,aa(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function Jp(t,e){return t.type===e}function td(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function ed(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function nd(t,e){var n=ed(t),i=n[0],r=n[1],o=ed(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function id(t){return C(t)?t:t?.5:0}function rd(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Qc(2*i),o=0;i>o;o++){var a=jp(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function od(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||c.push(t[s],t[s+1]);t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var f=(u[o]+h[o])/2,p=[];l[o]=p[o]=f,l[1-o]=u[1-o],p[1-o]=h[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function ad(t,e){function n(t,e,n){var i=t.coord;return{coord:n,color:ze((n-i)/(e.coord-i),[t.color,e.color])}}for(var i,r,o=[],a=t.length,s=0;a>s;s++){var l=t[s],u=l.coord;if(0>u)i=l;else{if(u>e){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}function sd(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var f=ad(u,"x"===r?n.getWidth():n.getHeight()),p=f.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var y=f[0].coord-10,v=f[p-1].coord+10,m=v-y;if(.001>m)return"transparent";d(f,function(t){t.offset=(t.coord-y)/m}),f.push({offset:p?f[p-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:p?f[0].offset:.5,color:c[0]||"transparent"});var _=new Lw(0,0,0,0,f,!0);return _[r]=y,_[r+"2"]=v,_}}}function ld(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!ud(o,e))){var a=e.mapDimension(o.dim),s={};return d(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function ud(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*PI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function hd(t,e){return isNaN(t)||isNaN(e)}function cd(t){for(var e=t.length/2;e>0&&hd(t[2*e-2],t[2*e-1]);e--);return e-1}function fd(t,e){return[t[2*e],t[2*e+1]]}function pd(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function dd(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Px.length;e++)if(t.get([Px[e],"endLabel","show"]))return!0;return!1}function gd(t,e,n,i){if(Jp(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=dd(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=$p(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=h.shape,f=Math.max(c.width,c.height);u?(c.y-=f,c.height+=2*f):(c.x-=f,c.width+=2*f)}return l&&l(1,h),h}return Qp(e,n,i)}function yd(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}function vd(t,e){return{seriesType:t,plan:Au(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=g(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ec(n,a[0])&&(a[0]=l),Ec(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),c=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Qc(n*s),a=[],l=[],f=t.start,p=0;f<t.end;f++){var d=void 0;if(1===s){var g=u.get(h,f);d=i.dataToPoint(g,null,l)}else a[0]=u.get(h,f),a[1]=u.get(c,f),d=i.dataToPoint(a,null,l);o?(r[p++]=d[0],r[p++]=d[1]):e.setItemLayout(f,d.slice())}o&&e.setLayout("points",r)}}}}}}function md(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),f=Math.round(a/c);if(isFinite(f)&&f>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/f));var p=void 0;M(r)?p=VI[r]:S(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/f,p,HI))}}}}}function _d(t){t.registerChartView(FI),t.registerSeriesModel(AI),t.registerLayout(vd("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,md("line"))}function xd(t,n,i,r){d(KI,function(o,s){var l=a(a({},ZI[s],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+s,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Ls(this),i=n?Es(t):{};a(t,e.getTheme().get(s+"Axis")),a(t,this.getDefaultOption()),t.type=wd(t),n&&Rs(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=xC.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+s,i.defaultOption=l,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+"Axis",wd)}function wd(t){return t.type||(t.data?"category":"value")}function bd(t){return"interval"===t.type||"time"===t.type}function Sd(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,d="x"===u?[c[2]-p,c[3]+p]:[c[0]-p,c[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[f.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[f[l]]:c[0],"x"===u?d[f[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?d[f[s]]-d[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),E(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Md(t){return"cartesian2d"===t.get("coordinateSystem")}function Td(t){var e={xAxisModel:null,yAxisModel:null};return d(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,t_).models[0];e[i]=o}),e}function Cd(t,e,n){var i=SC.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=xf(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var f=eD(t.base);u=[eD(u[0])/f,eD(u[1])/f]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var p=i.getExtent.call(t);h&&(u[0]=p[0]),c&&(u[1]=p[1]);var d=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)d=(y-g)/a;else if(h)for(y=u[0]+d*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)d=Yc(d),y=u[0]+d*a;else if(c)for(g=u[1]-d*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=Yc(d),g=u[1]-d*a;else{var v=t.getTicks().length-1;v>a&&(d=Yc(d));var m=d*a;y=Math.ceil(u[1]/d)*d,g=Wn(y-m),0>g&&u[0]>=0?(g=0,y=Wn(m)):y>0&&u[1]<=0&&(y=0,g=-Wn(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+d*_,y+d*x),i.setInterval.call(t,d),(_||x)&&i.setNiceExtent.call(t,g+d,y-d)}function Id(t,e){return t.getCoordSysModel()===e}function Dd(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)kd(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&kd(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function kd(t){return t&&"category"!==t.type&&"time"!==t.type&&Mf(t)}function Ad(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 Pd(t,e,n,i){var r,o,a=Kn(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return $n(a-iD/2)?(o=l?"bottom":"top",r="center"):$n(a-1.5*iD)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*iD>a&&a>iD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Od(t,e,n){if(!Af(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],f=n[n.length-2];!1===i?(Ld(o),Ld(u)):Rd(o,a)&&(i?(Ld(a),Ld(h)):(Ld(o),Ld(u))),!1===r?(Ld(s),Ld(c)):Rd(l,s)&&(r?(Ld(l),Ld(f)):(Ld(s),Ld(c)))}}function Ld(t){t&&(t.ignore=!0)}function Rd(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Nt([]);return Vt(r,r,-t.rotation),n.applyTransform(zt([],r,t.getLocalTransform())),i.applyTransform(zt([],r,e.getLocalTransform())),n.intersect(i)}}function Ed(t){return"middle"===t||"center"===t}function Nd(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(gt(a,a,e),gt(s,s,e));var h=new Tw({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});xa(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function Bd(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),h=r.getTicksCoords(),c=Nd(h,e.transform,l,u(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function zd(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),h=u(s.getLineStyle(),u(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=Nd(a[c],e.transform,l,h,"minorticks_"+c),p=0;p<f.length;p++)t.add(f[p])}}function Fd(t,e,n,i){var r=n.axis;if(E(i.axisLabelShow,n.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(E(i.labelRotate,o.get("rotate"))||0)*iD/180,u=rD.innerTextLayout(i.rotation,l,i.labelDirection),h=n.getCategories&&n.getCategories(!0),c=[],f=rD.isLabelSilent(n),p=n.get("triggerEvent");return d(s,function(s,l){var d="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,y=s.rawLabel,v=o;if(h&&h[d]){var m=h[d];I(m)&&m.textStyle&&(v=new cb(m.textStyle,o,n.ecModel))}var _=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),w=new vx({x:x,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:f,z2:10+(s.level||0),style:Wa(v,{text:g,align:v.getShallow("align",!0)||u.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,fill:S(_)?_("category"===r.type?y:"value"===r.type?d+"":d,l):_})});if(w.anid="label_"+d,p){var b=rD.makeAxisEventDataBase(n);b.targetType="axisLabel",b.value=y,b.tickIndex=l,"category"===r.type&&(b.dataIndex=d),bx(w).eventData=b}e.add(w),w.updateTransform(),c.push(w),t.add(w),w.decomposeTransform()}),c}}function Vd(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Hd(n,t,e),n.seriesInvolved&&Ud(n,t),n}function Hd(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];d(n.getCoordinateSystems(),function(n){function s(i,s,l){var h=l.model.getModel("axisPointer",r),f=h.get("show");if(f&&("auto"!==f||i||Zd(h))){null==s&&(s=h.get("triggerTooltip")),h=i?Wd(l,c,r,e,i,s):h;var p=h.get("snap"),d=Kd(l.model),g=s||p||"category"===l.type,y=t.axesInfo[d]={key:d,axis:l,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:p,useHandle:Zd(h),seriesModels:[],linkGroup:null};u[d]=y,t.seriesInvolved=t.seriesInvolved||g;var v=Gd(o,l);if(null!=v){var m=a[v]||(a[v]={axesInfo:{}});m.axesInfo[d]=y,m.mapper=o[v].mapper,y.linkGroup=m}}}if(n.axisPointerEnabled){var l=Kd(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var h=n.model,c=h.getModel("tooltip",i);if(d(n.getAxes(),w(s,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var f="axis"===c.get("trigger"),p="cross"===c.get(["axisPointer","type"]),g=n.getTooltipAxes(c.get(["axisPointer","axis"]));(f||p)&&d(g.baseAxes,w(s,!p||"cross",f)),p&&d(g.otherAxes,w(s,"cross",!1))}}})}function Wd(t,e,n,i,r,a){var s=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],h={};d(l,function(t){h[t]=o(s.get(t))}),h.snap="category"!==t.type&&!!a,"cross"===s.get("type")&&(h.type="line");var c=h.label||(h.label={});if(null==c.show&&(c.show=!1),"cross"===r){var f=s.get(["label","show"]);if(c.show=null==f||f,!a){var p=h.lineStyle=s.get("crossStyle");p&&u(c,p.textStyle)}}return t.model.getModel("axisPointer",new cb(h,n,i))}function Ud(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)&&d(t.coordSysAxesInfo[Kd(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())})})}function Gd(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Yd(o[i+"AxisId"],n.id)||Yd(o[i+"AxisIndex"],n.componentIndex)||Yd(o[i+"AxisName"],n.name))return r}}function Yd(t,e){return"all"===t||b(t)&&h(t,e)>=0||t===e}function jd(t){var e=Xd(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=Zd(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Xd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Kd(t)]}function qd(t){var e=Xd(t);return e&&e.axisPointerModel}function Zd(t){return!!t.get(["handle","show"])}function Kd(t){return t.type+"||"+t.id}function $d(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var c=s.length,f=lD(t).splitAreaColors,p=Y(),d=0;if(f)for(var g=0;g<h.length;g++){var y=f.get(h[g].tickValue);if(null!=y){d=(y+(c-1)*g)%c;break}}var v=r.toGlobalCoord(h[0].coord),m=a.getAreaStyle();s=b(s)?s:[s];for(var g=1;g<h.length;g++){var _=r.toGlobalCoord(h[g].coord),x=void 0,w=void 0,S=void 0,M=void 0;r.isHorizontal()?(x=v,w=l.y,S=_-x,M=l.height,v=x+S):(x=l.x,w=v,S=l.width,M=_-w,v=w+M);var T=h[g-1].tickValue;null!=T&&p.set(T,d),e.add(new dx({anid:null!=T?"area_"+T:null,shape:{x:x,y:w,width:S,height:M},style:u({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}lD(t).splitAreaColors=p}}}function Qd(t){lD(t).splitAreaColors=null}function Jd(t){t.registerComponentView(gD),t.registerComponentModel(WI),t.registerCoordinateSystem("cartesian2d",nD),xd(t,"x",UI,yD),xd(t,"y",UI,yD),t.registerComponentView(pD),t.registerComponentView(dD),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function tg(t,e,n,i){eg(vD(n).lastProp,i)||(vD(n).lastProp=i,e?oa(n,i,t):(n.stopAnimation(),n.attr(i)))}function eg(t,e){if(I(t)&&I(e)){var n=!0;return d(e,function(e,i){n=n&&eg(t[i],e)}),!!n}return t===e}function ng(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ig(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function rg(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)})}function og(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}function ag(t,e,n,i,r){var o=n.get("value"),a=lg(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Pb(s.get("padding")||0),u=s.getFont(),h=_n(a,u),c=r.position,f=h.width+l[1]+l[3],p=h.height+l[0]+l[2],d=r.align;"right"===d&&(c[0]-=f),"center"===d&&(c[0]-=f/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=p),"middle"===g&&(c[1]-=p/2),sg(c,f,p,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Wa(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function sg(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)}function lg(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Cf(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};d(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),M(a)?o=a.replace("{value}",o):S(a)&&(o=a(s))}return o}function ug(t,e,n){var i=Et();return Vt(i,i,n.rotation),Ft(i,i,n.position),Sa([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function hg(t,e,n,i,r,o){var a=rD.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),ag(e,i,r,o,{position:ug(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cg(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function fg(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function pg(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function dg(t){return"x"===t.dim?0:1}function gg(t,e,n){if(!xy.node){var i=e.getZr();MD(i).records||(MD(i).records={}),yg(i,e);(MD(i).records[t]||(MD(i).records[t]={})).handler=n}}function yg(t,e){function n(n,i){t.on(n,function(n){var r=xg(e);TD(MD(t).records,function(t){t&&i(t,n,r.dispatchAction)}),vg(r.pendings,e)})}MD(t).initialized||(MD(t).initialized=!0,n("click",w(_g,"click")),n("mousemove",w(_g,"mousemove")),n("globalout",mg))}function vg(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 mg(t,e,n){t.handler("leave",null,n)}function _g(t,e,n,i){e.handler(t,n,i)}function xg(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}}function wg(t,e){if(!xy.node){var n=e.getZr();(MD(n).records||{})[t]&&(MD(n).records[t]=null)}}function bg(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=ki(o,t);if(null==a||0>a||b(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,f=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(f),y=[];y[p]=o.get(d,a),y[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(y)||[]}else i=l.dataToPoint(o.getValues(g(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}function Sg(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Vy(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lg(r)&&(r=bg({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Lg(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||Lg(r),f={},p={},g={list:[],map:{}},y={showPointer:w(Cg,p),showTooltip:w(Ig,g)};d(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);d(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=Pg(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Mg(t,o,y,!1,f)}})});var v={};return d(h,function(t,e){var n=t.linkGroup;n&&!p[e]&&d(n.axesInfo,function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Og(e),Og(t)))),v[t.key]=o}})}),d(v,function(t,e){Mg(h[e],t,y,!0,f)}),Dg(p,h,f),kg(g,r,t,a),Ag(h,a,n),f}}function Mg(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=Tg(e,t),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==r.seriesIndex&&l(r,s[0]),!i&&t.snap&&o.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,s),n.showTooltip(t,a,u)}}function Tg(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return d(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var f=t-l,p=Math.abs(f);a>=p&&((a>p||f>=0&&0>s)&&(a=p,s=f,r=l,o.length=0),d(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Cg(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Ig(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=Kd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.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 Dg(t,e,n){var i=n.axesInfo=[];d(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 kg(t,e,n,i){if(Lg(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 Ag(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=ID(i)[r]||{},a=ID(i)[r]={};d(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&d(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];d(o,function(t,e){!a[e]&&l.push(t)}),d(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Pg(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 Og(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 Lg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Rg(t){sD.registerAxisPointerClass("CartesianAxisPointer",wD),t.registerComponentModel(SD),t.registerComponentView(CD),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!b(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Vd(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Sg)}function Eg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Ng(t){if(xy.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;i>n;n++)if(t[n]in e)return t[n]}function Bg(t,e){if(!t)return e;e=Ms(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function zg(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function Fg(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Vg(t,e,n){if(!M(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=As(e);var o,a=Fg(n),s=Math.max(1.5*Math.round(r),6),l="",u=OD+":";h(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,f=s+r,p=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c));l+=";"+a+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-f)/2))/100+"px";var d=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"].join("")+'"></div>'}function Hg(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=xy.transformSupported?","+OD+i:",left"+i+",top"+i),PD+":"+r}function Wg(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!xy.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=xy.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+OD+":"+a+";":[["top",0],["left",0],[kD,a]]}function Ug(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),d(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function Gg(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=mu(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+f),e&&r&&i.push(Hg(r,n)),o&&i.push("background-color:"+o),d(["width","color","radius"],function(e){var n="border-"+e,r=Ms(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(Ug(h)),null!=c&&i.push("padding:"+Pb(c).join("px ")+"px"),i.join(";")+";"}function Yg(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&xt(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function jg(t){return Math.max(0,t)}function Xg(t){var e=jg(t.shadowBlur||0),n=jg(t.shadowOffsetX||0),i=jg(t.shadowOffsetY||0);return{left:jg(e-n),right:jg(e+n),top:jg(e-i),bottom:jg(e+i)}}function qg(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Zg(t,e,n){var i,r=e.ecModel;n?(i=new cb(n,r,r),i=new cb(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof cb&&(a=a.get("tooltip",!0)),M(a)&&(a={formatter:a}),a&&(i=new cb(a,i,r)))}return i}function Kg(t,e){return t.dispatchAction||Vy(e.dispatchAction,e)}function $g(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function Qg(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Jg(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function ty(t){return"center"===t||"middle"===t}function ey(t,e,n){var i=Oi(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Li(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s;return n.getViewOfComponentModel(a).group.traverse(function(e){var n=bx(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function ny(t){Nf(Rg),t.registerComponentModel(DD),t.registerComponentView(BD),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},K),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},K)}function iy(t,e){if(!t)return!1;for(var n=b(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function ry(t){fi(t,"label",["show"])}function oy(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function ay(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function sy(t,e,n,i,r,o){var a=[],s=Ec(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=py(e,l,t),h=e.indicesOfNearest(l,u)[0];a[r]=e.get(n,h),a[o]=e.get(l,h);var c=e.get(i,h),f=Gn(e.get(i,h));return f=Math.min(f,20),f>=0&&(a[o]=+a[o].toFixed(f)),[a,c]}function ly(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i.dimensions;if(!ay(e)&&!b(e.coord)&&i){var a=uy(e,n,i,t);if(e=o(e),e.type&&HD[e.type]&&a.baseAxis&&a.valueAxis){var s=h(r,a.baseAxis.dim),l=h(r,a.valueAxis.dim),u=HD[e.type](n,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null==e.coord)e.coord=[];else for(var c=e.coord,f=0;2>f;f++)HD[c[f]]&&(c[f]=py(n,n.mapDimension(r[f]),c[f]));return e}}function uy(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(hy(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function hy(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function cy(t,e){return!(t&&t.containData&&e.coord&&!oy(e))||t.containData(e.coord)}function fy(t,e){return t?function(t,n,i,r){return Vl(2>r?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Vl(t.value,e[r])}}function py(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t){isNaN(t)||(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}function dy(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=Hn(a.get("x"),n.getWidth()),l=Hn(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function gy(t,e,n){var i;i=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new gC(i,n),o=g(n.get("data"),w(ly,e));t&&(o=v(o,w(cy,t)));var a=fy(!!t,i);return r.initData(o,null,a),r}function yy(t){t.registerComponentModel(VD),t.registerComponentView(GD),t.registerPreprocessor(function(t){iy(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var vy=function(t,e){return(vy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},my=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),_y=function(){function t(){this.browser=new my,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}return t}(),xy=new _y;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(xy.wxa=!0,xy.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?xy.worker=!0:"undefined"==typeof navigator?(xy.node=!0,xy.svgSupported=!0):function(t,e){var n=e.browser,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);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,xy);var wy=12,by=wy+"px sans-serif",Sy=20,My=100,Ty=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-Sy)/My;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Cy={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var r=Cy.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||by),t.measureText(n);n=n||"",i=i||by;var o=/(\d+)px/.exec(i),a=o&&+o[1]||wy,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Ty[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},Iy=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Dy=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ky=Object.prototype.toString,Ay=Array.prototype,Py=Ay.forEach,Oy=Ay.filter,Ly=Ay.slice,Ry=Ay.map,Ey=function(){}.constructor,Ny=Ey?Ey.prototype:null,By="__proto__",zy=2311,Fy=Cy.createCanvas,Vy=Ny&&S(Ny.bind)?Ny.call.bind(Ny.bind):x,Hy="__ec_primitive__",Wy=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return _(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),Uy="function"==typeof Map,Gy=function(){function t(e){function n(t,e){i?r.set(t,e):r.set(e,t)}var i=b(e);this.data=G();var r=this;e instanceof t?e.each(n):e&&d(e,n)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return Uy?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}(),Yy=180/Math.PI,jy=(Object.freeze||Object)({guid:i,logError:r,clone:o,merge:a,mergeAll:s,extend:l,defaults:u,createCanvas:Fy,indexOf:h,inherits:c,mixin:f,isArrayLike:p,each:d,map:g,reduce:y,filter:v,find:m,keys:_,bind:Vy,curry:w,isArray:b,isFunction:S,isString:M,isStringSafe:T,isNumber:C,isObject:I,isBuiltInObject:D,isTypedArray:k,isDom:A,isGradientObject:P,isImagePatternObject:O,isRegExp:L,eqNaN:R,retrieve:E,retrieve2:N,retrieve3:B,slice:z,normalizeCssArray:F,assert:V,trim:H,setAsPrimitive:W,isPrimitive:U,HashMap:Gy,createHashMap:Y,concatArray:j,createObject:X,disableUserSelect:q,hasOwn:Z,noop:K,RADIAN_TO_DEGREE:Yy}),Xy=rt,qy=ot,Zy=ct,Ky=ft,$y=(Object.freeze||Object)({create:$,copy:Q,clone:J,set:tt,add:et,scaleAndAdd:nt,sub:it,len:rt,length:Xy,lenSquare:ot,lengthSquare:qy,mul:at,div:st,dot:lt,scale:ut,normalize:ht,distance:ct,dist:Zy,distanceSquare:ft,distSquare:Ky,negate:pt,lerp:dt,applyTransform:gt,min:yt,max:vt}),Qy=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Jy=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Qy(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Qy(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Qy(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Qy(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Qy(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Qy(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),tv=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;o>r;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},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;a>s;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;s>l;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ev=Math.log(2),nv="___zrEVENTSAVED",iv=[],rv=/([&<>"'])/g,ov={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},av=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,sv=[],lv=xy.browser.firefox&&+xy.browser.version.split(".")[0]<39,uv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},hv=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=Ct(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in cv)if(cv.hasOwnProperty(e)){var n=cv[e](this._track,t);if(n)return n}},t}(),cv={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Lt(i)/Lt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Rt(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},fv=(Object.freeze||Object)({create:Et,identity:Nt,copy:Bt,mul:zt,translate:Ft,rotate:Vt,scale:Ht,invert:Wt,clone:Ut}),pv=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),dv=Math.min,gv=Math.max,yv=new pv,vv=new pv,mv=new pv,_v=new pv,xv=new pv,wv=new pv,bv=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=dv(t.x,this.x),n=dv(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gv(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?gv(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=Et();return Ft(r,r,[-e.x,-e.y]),Ht(r,r,[n,i]),Ft(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,f=!(l>o||r>u||h>s||a>c);if(n){var p=1/0,d=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,y),x=Math.min(v,m);l>o||r>u?_>d&&(d=_,y>g?pv.set(wv,-g,0):pv.set(wv,y,0)):p>_&&(p=_,y>g?pv.set(xv,g,0):pv.set(xv,-y,0)),h>s||a>c?x>d&&(d=x,m>v?pv.set(wv,0,-v):pv.set(wv,0,m)):p>_&&(p=_,m>v?pv.set(xv,0,v):pv.set(xv,0,-m))}return n&&pv.copy(n,f?xv:wv),f},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}yv.x=mv.x=n.x,yv.y=_v.y=n.y,vv.x=_v.x=n.x+n.width,vv.y=mv.y=n.y+n.height,yv.transform(i),_v.transform(i),vv.transform(i),mv.transform(i),e.x=dv(yv.x,vv.x,mv.x,_v.x),e.y=dv(yv.y,vv.y,mv.y,_v.y);var l=gv(yv.x,vv.x,mv.x,_v.x),u=gv(yv.y,vv.y,mv.y,_v.y);e.width=l-e.x,e.height=u-e.y},t}(),Sv="silent",Mv=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(tv),Tv=function(){function t(t,e){this.x=t,this.y=e}return t}(),Cv=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Iv=new bv(0,0,0,0),Dv=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Tv(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Mv,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Jy(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(d(Cv,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=qt(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Tv(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new Tv(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=Gt(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Tv(t,e);if(Xt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new bv(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Iv.copy(h.getBoundingRect()),h.transform&&Iv.applyTransform(h.transform),Iv.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,f=2*Math.PI,p=0;s>p;p+=4)for(var d=0;f>d;d+=c){var g=t+p*Math.cos(d),y=e+p*Math.sin(d);if(Xt(o,r,g,y,n),r.target)return r}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new hv);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Tv;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(tv);d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Dv.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=qt(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Zy(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var kv,Av=32,Pv=7,Ov=1,Lv=4,Rv=!1,Ev=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=re}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,ne(n,re)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else 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.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Ov),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ie(),u.z=0),isNaN(u.z2)&&(ie(),u.z2=0),isNaN(u.zlevel)&&(ie(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=h(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();kv=xy.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Nv=kv,Bv={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||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*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?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Bv.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Bv.bounceIn(2*t):.5*Bv.bounceOut(2*t-1)+.5}},zv=Math.pow,Fv=Math.sqrt,Vv=1e-8,Hv=1e-4,Wv=Fv(3),Uv=1/3,Gv=$(),Yv=$(),jv=$(),Xv=/cubic-bezier\(([0-9,\.e ]+)\)/,qv=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||K,this.ondestroy=t.ondestroy||K,this.onrestart=t.onrestart||K,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=S(t)?t:Bv[t]||we(t)},t}(),Zv=function(){function t(t){this.value=t}return t}(),Kv=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Zv(t);return this.insertEntry(e),e},t.prototype.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++},t.prototype.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--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),$v=function(){function t(t){this._list=new Kv,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Zv(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Qv={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]},Jv=new $v(20),tm=null,em=Be,nm=ze,im=(Object.freeze||Object)({parse:Oe,lift:Ee,toHex:Ne,fastLerp:Be,fastMapToColor:em,lerp:ze,mapToColor:nm,modifyHSL:Fe,modifyAlpha:Ve,stringify:He,lum:We,random:Ue}),rm=(function(){xy.hasGlobalWindow&&S(window.btoa)}(),Array.prototype.slice),om=1,am=2,sm=4,lm=5,um=[0,0,0,0],hm=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(p(e)){var u=en(e);a=u,(1===u&&!C(e[0])||2===u&&!C(e[0][0]))&&(o=!0)}else if(C(e)&&!R(e))a=0;else if(M(e))if(isNaN(+e)){var h=Oe(e);h&&(s=h,a=3)}else a=0;else if(P(e)){var c=l({},s);c.colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:Oe(t.color)}}),Ge(e)?a=sm:Ye(e)&&(a=lm),s=c}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:s,rawValue:e,percent:0};return n&&(f.easing=n,f.easingFunc=S(n)?n:Bv[n]||we(n)),i.push(f),f},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=rn(i),l=nn(i),u=0;r>u;u++){var h=n[u],c=h.value,f=o.value;h.percent=h.time/t,a||(s&&u!==r-1?Qe(c,f,i):l&&$e(c.colorStops,f.colorStops))}if(!a&&i!==lm&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var p=n[0].value,u=0;r>u;u++)0===i?n[u].additiveValue=n[u].value-p:3===i?n[u].additiveValue=Ze([],n[u].value,p,-1):rn(i)&&(n[u].additiveValue=i===om?Ze([],n[u].value,p,-1):Ke([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,f=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(0>e)n=0;else if(e<this._lastFrP){var d=p(f+1,u-1);for(n=d;n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=f;u>n&&!(l[n].percent>e);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var y=r.percent-i.percent,v=0===y?1:p((e-i.percent)/y,1);r.easingFunc&&(v=r.easingFunc(v));var m=o?this._additiveValue:c?um:t[h];if(!rn(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>v?i.rawValue:r.rawValue;else if(rn(s))s===om?Xe(m,i[a],r[a],v):qe(m,i[a],r[a],v);else if(nn(s)){var _=i[a],x=r[a],w=s===sm;t[h]={type:w?"linear":"radial",x:je(_.x,x.x,v),y:je(_.y,x.y,v),colorStops:g(_.colorStops,function(t,e){var n=x.colorStops[e];return{offset:je(t.offset,n.offset,v),color:tn(Xe([],t.color,n.color,v))}}),global:x.global},w?(t[h].x2=je(_.x2,x.x2,v),t[h].y2=je(_.y2,x.y2,v)):t[h].r=je(_.r,x.r,v)}else if(c)Xe(m,i[a],r[a],v),o||(t[h]=tn(m));else{var b=je(i[a],r[a],v);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(Oe(t[n],um),Ze(um,um,i,1),t[n]=tn(um)):e===om?Ze(t[n],t[n],i,1):e===am&&Ke(t[n],t[n],i,1)},t}(),cm=function(){function t(t,e,n,i){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void r("Can' use additive animation on looped animation."):(this._additiveAnimators=i,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,_(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new hm(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=tn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Je(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Je(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new qv({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Je(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||_(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),fm=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=on()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(Nv(t),!e._paused&&e.update())}var e=this;this._running=!0,Nv(t)},n.prototype.start=function(){this._running||(this._time=on(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=on(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=on()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new cm(t,e.loop);return this.addAnimator(n),n},n}(tv),pm=xy.domSupported,dm=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:g(t,function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t})}}(),gm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ym=!1,vm=function(){function t(t,e){this.stopPropagation=K,this.stopImmediatePropagation=K,this.preventDefault=K,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),mm={mousedown:function(t){t=kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=kt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=kt(this.dom,t),hn(this,t.toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ym=!0,t=kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ym||(t=kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=kt(this.dom,t),ln(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),mm.mousemove.call(this,t),mm.mousedown.call(this,t)},touchmove:function(t){t=kt(this.dom,t),ln(t),this.handler.processGesture(t,"change"),mm.mousemove.call(this,t)},touchend:function(t){t=kt(this.dom,t),ln(t),this.handler.processGesture(t,"end"),mm.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&mm.click.call(this,t)},pointerdown:function(t){mm.mousedown.call(this,t)},pointermove:function(t){an(t)||mm.mousemove.call(this,t)},pointerup:function(t){mm.mouseup.call(this,t)},pointerout:function(t){an(t)||mm.mouseout.call(this,t)}};d(["click","dblclick","contextmenu"],function(t){mm[t]=function(e){e=kt(this.dom,e),this.trigger(t,e)}});var _m={pointermove:function(t){an(t)||_m.mousemove.call(this,t)},pointerup:function(t){_m.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},xm=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),wm=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new xm(e,mm),pm&&(i._globalHandlerScope=new xm(document,_m)),cn(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){dn(this._localHandlerScope),pm&&dn(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,pm&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?fn(this,e):dn(e)}},n}(tv),bm=1;xy.hasGlobalWindow&&(bm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sm=bm,Mm=.4,Tm="#333",Cm="#ccc",Im=Nt,Dm=5e-5,km=[],Am=[],Pm=Et(),Om=Math.abs,Lm=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return gn(this.rotation)||gn(this.x)||gn(this.y)||gn(this.scaleX-1)||gn(this.scaleY-1)||gn(this.skewX)||gn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;return e||t?(n=n||Et(),e?this.getLocalTransform(n):Im(n),t&&(e?zt(n,t,n):Bt(n,t)),this.transform=n,void this._resolveGlobalScaleRatio(n)):void(n&&Im(n))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(km);var n=km[0]<0?-1:1,i=km[1]<0?-1:1,r=((km[0]-n)*e+n)/km[0]||0,o=((km[1]-i)*e+i)/km[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Et(),Wt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(zt(Am,t.invTransform,e),e=Am);var n=this.originX,i=this.originY;(n||i)&&(Pm[4]=n,Pm[5]=i,zt(Am,e,Pm),Am[4]-=n,Am[5]-=i,e=Am),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&gt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&gt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Om(t[0]-1)>1e-10&&Om(t[3]-1)>1e-10?Math.sqrt(Om(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){yn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,d=i+s;e[4]=-p*r-c*d*o,e[5]=-d*o-f*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=f*r,e[2]=c*o,l&&Vt(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Rm=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Em={},Nm="__zr_normal__",Bm=Rm.concat(["ignore"]),zm=y(Rm,function(t,e){return t[e]=!0,t},{ignore:!1}),Fm={},Vm=new bv(0,0,0,0),Hm=function(){function t(t){this.id=i(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.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.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=Vm;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fm,n,u):Mn(Fm,n,u),r.x=Fm.x,r.y=Fm.y,o=Fm.align,a=Fm.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,f=void 0;"center"===h?(c=.5*u.width,f=.5*u.height):(c=Sn(h[0],u.width),f=Sn(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+f+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;d&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==v||"auto"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,(null==y||"auto"===y)&&(y=this.getOutsideFill()),(null==v||"auto"===v)&&(v=this.getOutsideStroke(y),m=!0)),y=y||"#000",(y!==g.fill||v!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Ov,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cm:Tm},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Oe(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,He(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},l(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(I(t))for(var n=t,i=_(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Nm)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Bm)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Nm,!1,t)},t.prototype.useState=function(t,e,n,i){var o=t===Nm;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(h(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!o)return void r("State "+t+" not exists.");o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,f=this._textGuide;return c&&c.useState(t,e,n,u),f&&f.useState(t,e,n,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ov),l}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ov)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=h(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=h(i,t),o=h(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];l(n,r),r.textConfig&&(e=e||{},l(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=l({},i?this.textConfig:n.textConfig),l(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,h=0;h<Bm.length;h++){var c=Bm[h],f=r&&zm[c];e&&null!=e[c]?f?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(f?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(var h=0;h<this.animators.length;h++){var p=this.animators[h],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Lm,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ov;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==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),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){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),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new cm(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=h(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Tn(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Tn(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Tn(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){function e(t,e,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(n,t,{get:function(){if(!this[e]){o(this,this[e]=[])}return this[e]},set:function(t){this[i]=t[0],this[r]=t[1],this[e]=t,o(this,t)}})}var n=t.prototype;n.type="element",n.name="",n.ignore=n.silent=n.isGroup=n.draggable=n.dragging=n.ignoreClip=n.__inHover=!1,n.__dirty=Ov,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),t}();f(Hm,tv),f(Hm,Lm);var Wm=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},n.prototype.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},n.prototype.replace=function(t,e){var n=h(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=h(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},n.prototype.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},n.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new bv(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(bv.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},n}(Hm);Wm.prototype.type="group";var Um={},Gm={},Ym=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new Ev,o=n.renderer||"canvas";Um[o]||(o=_(Um)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Um[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=xy.node||xy.worker||s?null:new wm(a.getViewportRoot(),a.root),h=n.useCoarsePointer;(null==h||"auto"===h?xy.touchEventsSupported:!!h)&&(l=N(n.pointerSize,44)),this.handler=new Dv(r,a,u,a.root,l),this.animation=new fm({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Ln(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=on();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=on();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Wm&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.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,On(this.id)},t}(),jm=(Object.freeze||Object)({init:Rn,dispose:En,disposeAll:Nn,getInstance:Bn,registerPainter:zn,version:"5.4.1"}),Xm=1e-4,qm=20,Zm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Km=("undefined"!=typeof console&&console.warn&&console.log,"series\0"),$m="\0_ec_\0",Qm=["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"],Jm=ai(),t_={useDefault:!0,enableAll:!1,enableNone:!1},e_=".",n_="___EC__COMPONENT__CONTAINER___",i_="___EC__EXTENDED_CLASS___",r_=Math.round(10*Math.random()),o_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],a_=Xi(o_),s_=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return a_(this,t,e)},t}(),l_=new $v(50),u_=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,h_=function(){function t(){}return t}(),c_=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),f_=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),p_=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),d_="__zr_style_"+Math.round(10*Math.random()),g_={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},y_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};g_[d_]=!0;var v_=["z","z2","invisible"],m_=["invisible"],__=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype._init=function(e){for(var n=_(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&lr(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new bv(0,0,0,0)),e?bv.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new bv(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return X(g_,t)},n.prototype.useStyle=function(t){t[d_]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[d_]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,v_)},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=_(u),c=0;c<h.length;c++){var f=h[c];f in s&&(s[f]=s[f],this.style[f]=u[f])}for(var p=_(s),c=0;c<p.length;c++){var f=p[c];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?m_:v_,c=0;c<d.length;c++){var f=d[c];n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return l(t,e),t},n.prototype.getAnimationStyleProps=function(){return y_},n.initDefaultProps=function(){var t=n.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=2|Ov}(),n}(Hm),x_=new bv(0,0,0,0),w_=new bv(0,0,0,0),b_=Math.min,S_=Math.max,M_=Math.sin,T_=Math.cos,C_=2*Math.PI,I_=$(),D_=$(),k_=$(),A_=[],P_=[],O_={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},L_=[],R_=[],E_=[],N_=[],B_=[],z_=[],F_=Math.min,V_=Math.max,H_=Math.cos,W_=Math.sin,U_=Math.abs,G_=Math.PI,Y_=2*G_,j_="undefined"!=typeof Float32Array,X_=[],q_=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=U_(n/Sm/t)||0,this._uy=U_(n/Sm/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(O_.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=U_(t-this._xi),i=U_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(O_.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(O_.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(O_.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),X_[0]=i,X_[1]=r,dr(X_,o),i=X_[0],r=X_[1];var a=r-i;return this.addData(O_.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=H_(r)*n+t,this._yi=W_(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(O_.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(O_.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!j_||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();j_&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,j_&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){E_[0]=E_[1]=B_[0]=B_[1]=Number.MAX_VALUE,N_[0]=N_[1]=z_[0]=z_[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case O_.M:n=r=e[t++],i=o=e[t++],B_[0]=r,B_[1]=o,z_[0]=r,z_[1]=o;break;case O_.L:ur(n,i,e[t],e[t+1],B_,z_),n=e[t++],i=e[t++];break;case O_.C:hr(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],B_,z_),n=e[t++],i=e[t++];break;case O_.Q:cr(n,i,e[t++],e[t++],e[t],e[t+1],B_,z_),n=e[t++],i=e[t++];break;case O_.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(r=H_(f)*h+l,o=W_(f)*c+u),fr(l,u,h,c,f,p,d,B_,z_),n=H_(p)*h+l,i=W_(p)*c+u;break;case O_.R:r=n=e[t++],o=i=e[t++];ur(r,o,r+e[t++],o+e[t++],B_,z_);break;case O_.Z:n=r,i=o}yt(E_,E_,B_),vt(N_,N_,z_)}return 0===t&&(E_[0]=E_[1]=N_[0]=N_[1]=0),new bv(E_[0],E_[1],N_[0]-E_[0],N_[1]-E_[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var f=t[c++],p=1===c;p&&(r=t[c],o=t[c+1],a=r,s=o);var d=-1;switch(f){case O_.M:r=a=t[c++],o=s=t[c++];break;case O_.L:var g=t[c++],y=t[c++],v=g-r,m=y-o;(U_(v)>n||U_(m)>i||c===e-1)&&(d=Math.sqrt(v*v+m*m),r=g,o=y);break;case O_.C:var _=t[c++],x=t[c++],g=t[c++],y=t[c++],w=t[c++],b=t[c++];d=pe(r,o,_,x,g,y,w,b,10),r=w,o=b;break;case O_.Q:var _=t[c++],x=t[c++],g=t[c++],y=t[c++];d=xe(r,o,_,x,g,y,10),r=g,o=y;break;case O_.A:var S=t[c++],M=t[c++],T=t[c++],C=t[c++],I=t[c++],D=t[c++],k=D+I;c+=1,t[c++],p&&(a=H_(I)*T+S,s=W_(I)*C+M),d=V_(T,C)*F_(Y_,Math.abs(D)),r=H_(k)*T+S,o=W_(k)*C+M;break;case O_.R:a=r=t[c++],s=o=t[c++];d=2*t[c++]+2*t[c++];break;case O_.Z:var v=a-r,m=s-o;d=Math.sqrt(v*v+m*m),r=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,f,p=this.data,d=this._ux,g=this._uy,y=this._len,v=1>e,m=0,_=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var w=0;y>w;){var b=p[w++],S=1===w;switch(S&&(r=p[w],o=p[w+1],n=r,i=o),b!==O_.L&&x>0&&(t.lineTo(c,f),x=0),b){case O_.M:n=r=p[w++],i=o=p[w++],t.moveTo(r,o);break;case O_.L:a=p[w++],s=p[w++];var M=U_(a-r),T=U_(s-o);if(M>d||T>g){if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=C}t.lineTo(a,s),r=a,o=s,x=0}else{var D=M*M+T*T;D>x&&(c=a,f=s,x=D)}break;case O_.C:var k=p[w++],A=p[w++],P=p[w++],O=p[w++],L=p[w++],R=p[w++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;ce(r,k,P,L,I,L_),ce(o,A,O,R,I,R_),t.bezierCurveTo(L_[1],R_[1],L_[2],R_[2],L_[3],R_[3]);break t}m+=C}t.bezierCurveTo(k,A,P,O,L,R),r=L,o=R;break;case O_.Q:var k=p[w++],A=p[w++],P=p[w++],O=p[w++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;me(r,k,P,I,L_),me(o,A,O,I,R_),t.quadraticCurveTo(L_[1],R_[1],L_[2],R_[2]);break t}m+=C}t.quadraticCurveTo(k,A,P,O),r=P,o=O;break;case O_.A:var E=p[w++],N=p[w++],B=p[w++],z=p[w++],F=p[w++],V=p[w++],H=p[w++],W=!p[w++],U=B>z?B:z,G=U_(B-z)>.001,Y=F+V,j=!1;if(v){var C=l[_++];m+C>h&&(Y=F+V*(h-m)/C,j=!0),m+=C}if(G&&t.ellipse?t.ellipse(E,N,B,z,H,F,Y,W):t.arc(E,N,U,F,Y,W),j)break t;S&&(n=H_(F)*B+E,i=W_(F)*z+N),r=H_(Y)*B+E,o=W_(Y)*z+N;break;case O_.R:n=r=p[w],i=o=p[w+1],a=p[w++],s=p[w++];var X=p[w++],q=p[w++];if(v){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+F_(Z,X),s),Z-=X,Z>0&&t.lineTo(a+X,s+F_(Z,q)),Z-=q,Z>0&&t.lineTo(a+V_(X-Z,0),s+q),(Z-=X)>0&&t.lineTo(a,s+V_(q-Z,0));break t}m+=C}t.rect(a,s,X,q);break;case O_.Z:if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=C}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=O_,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Z_=2*Math.PI,K_=2*Math.PI,$_=q_.CMD,Q_=2*Math.PI,J_=1e-4,tx=[-1,-1,-1],ex=[-1,-1],nx=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},g_),ix={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},y_.style)},rx=Rm.concat(["invisible","culling","z","z2","zlevel","parent"]),ox=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<rx.length;++s)r[rx[s]]=this[rx[s]];r.__dirty|=Ov}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=_(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?l(this.style,a):this.useStyle(a):"shape"===o?l(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(M(t)){var e=We(t,0);return e>.5?Tm:e>.2?"#eee":Cm}if(t)return Cm}return Tm},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(M(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===We(t,0)<Mm)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~Lv},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new q_(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Lv)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.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;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Dr(o,a/s,t,e)))return!0}if(this.hasFill())return Ir(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=Lv,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:l(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&Lv)},n.prototype.createStyle=function(t){return X(nx,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=l({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,u=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=l({},i.shape),l(s,n.shape)):(s=l({},r?this.shape:i.shape),l(s,n.shape)):u&&(s=i.shape),s)if(o){this.shape=l({},this.shape);for(var h={},c=_(s),f=0;f<c.length;f++){var p=c[f];"object"==typeof s[p]?this.shape[p]=s[p]:h[p]=s[p]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return ix},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var i=function(n){function i(e){var i=n.call(this,e)||this;return t.init&&t.init.call(i,e),i}return e(i,n),i.prototype.getDefaultStyle=function(){return o(t.style)},i.prototype.getDefaultShape=function(){return o(t.shape)},i}(n);for(var r in t)"function"==typeof t[r]&&(i.prototype[r]=t[r]);return i},n.initDefaultProps=function(){var t=n.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|Ov|Lv}(),n}(__),ax=u({strokeFirst:!0,font:by,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},nx),sx=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return X(ax,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=_n(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.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},n.initDefaultProps=function(){n.prototype.dirtyRectTolerance=10}(),n}(__);sx.prototype.type="tspan";var lx=u({x:0,y:0},g_),ux={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},y_.style)},hx=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return X(lx,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=kr(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return ux},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new bv(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(__);hx.prototype.type="image";var cx=Math.round,fx=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),px={},dx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new fx},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Or(px,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Ar(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(ox);dx.prototype.type="rect";var gx={fill:"#000"},yx={style:u({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},y_.style)},vx=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=gx,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},n.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},n.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},n.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},n.prototype._updateSubTexts=function(){this._childCursor=0,Br(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},n.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new bv(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||a.clone(),i.union(a))}this._rect=i||t}return this._rect},n.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||gx},n.prototype.setTextContent=function(){},n.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return l(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},n.prototype._mergeRich=function(t,e){for(var n=_(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},l(t[r],e[r])}},n.prototype.getAnimationStyleProps=function(){return yx},n.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},n.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||by,n=t.padding,i=Wr(t),r=nr(i,t),o=Ur(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,f=this._defaultStyle,p=t.x||0,d=t.y||0,g=t.align||f.align||"left",y=t.verticalAlign||f.verticalAlign||"top",v=p,m=wn(d,r.contentHeight,y);if(o||n){var _=xn(p,l,g),x=wn(d,s,y);o&&this._renderBackground(t,t,_,x,l,s)}m+=c/2,n&&(v=Hr(p,g,n),"top"===y?m+=n[0]:"bottom"===y&&(m-=n[2]));for(var w=0,b=!1,S=(Vr("fill"in t?t.fill:(b=!0,f.fill))),M=(Fr("stroke"in t?t.stroke:a||f.autoStroke&&!b?null:(w=2,f.stroke))),T=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,D=0;D<h.length;D++){var k=this._getOrCreateChild(sx),A=k.createStyle();k.useStyle(A),A.text=h[D],A.x=v,A.y=m,g&&(A.textAlign=g),A.textBaseline="middle",A.opacity=t.opacity,A.strokeFirst=!0,T&&(A.shadowBlur=t.textShadowBlur||0,A.shadowColor=t.textShadowColor||"transparent",A.shadowOffsetX=t.textShadowOffsetX||0,A.shadowOffsetY=t.textShadowOffsetY||0),A.stroke=M,A.fill=S,M&&(A.lineWidth=t.lineWidth||w,A.lineDash=t.lineDash,A.lineDashOffset=t.lineDashOffset||0),A.font=e,Er(A,t),m+=c,C&&k.setBoundingRect(new bv(xn(A.x,t.width,A.textAlign),wn(A.y,I,A.textBaseline),u,I))}},n.prototype._updateRichTexts=function(){var t=this.style,e=Wr(t),n=ir(e,t),i=n.width,r=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,f=xn(s,r,h),p=wn(l,o,c),d=f,g=p;a&&(d+=a[3],g+=a[0]);var y=d+i;Ur(t)&&this._renderBackground(t,t,f,p,r,o);for(var v=!!t.backgroundColor,m=0;m<n.lines.length;m++){for(var _=n.lines[m],x=_.tokens,w=x.length,b=_.lineHeight,S=_.width,M=0,T=d,C=y,I=w-1,D=void 0;w>M&&(D=x[M],!D.align||"left"===D.align);)this._placeToken(D,t,b,g,T,"left",v),S-=D.width,T+=D.width,M++;for(;I>=0&&(D=x[I],"right"===D.align);)this._placeToken(D,t,b,g,C,"right",v),S-=D.width,C-=D.width,I--;for(T+=(i-(T-d)-(y-C)-S)/2;I>=M;)D=x[M],this._placeToken(D,t,b,g,T+D.width/2,"center",v),T+=D.width,M++;g+=b}},n.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Ur(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=Hr(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var f=this._getOrCreateChild(sx),p=f.createStyle();f.useStyle(p);var d=this._defaultStyle,g=!1,y=0,v=Vr("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=Fr("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||d.autoStroke&&!g?null:(y=2,d.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||by,p.opacity=B(s.opacity,e.opacity,1),Er(p,s),m&&(p.lineWidth=B(s.lineWidth,e.lineWidth,y),p.lineDash=N(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=m),v&&(p.fill=v);var x=t.contentWidth,w=t.contentHeight;f.setBoundingRect(new bv(xn(p.x,x,p.textAlign),wn(p.y,w,p.textBaseline),x,w))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,f=l&&!c,p=t.borderRadius,d=this;if(f||t.lineHeight||u&&h){a=this._getOrCreateChild(dx),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(f){var y=a.style;y.fill=l||null,y.fillOpacity=N(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(hx),s.onload=function(){d.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=N(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=B(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return Nr(t)&&(e=[t.fontStyle,t.fontWeight,Rr(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&H(e)||t.textFont||t.font},n}(__),mx={left:!0,right:1,center:1},_x={top:1,bottom:1,middle:1},xx=["fontStyle","fontWeight","fontSize","fontFamily"],bx=Ai(),Sx=function(t,e,n,i){if(i){var r=bx(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,"group"===i.type&&i.traverse(function(i){var r=bx(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e})}},Mx=1,Tx={},Cx=Ai(),Ix=Ai(),Dx=0,kx=1,Ax=2,Px=["emphasis","blur","select"],Ox=["normal","emphasis","blur","select"],Lx=10,Rx=9,Ex="highlight",Nx="downplay",Bx="select",zx="unselect",Fx="toggleSelect",Vx=new $v(100),Hx=["emphasis","blur","select"],Wx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Ux=q_.CMD,Gx=[[],[],[]],Yx=Math.sqrt,jx=Math.atan2,Xx=Math.sqrt,qx=Math.sin,Zx=Math.cos,Kx=Math.PI,$x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Qx=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Jx=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(ox),tw=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),ew=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new tw},n.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(ox);ew.prototype.type="circle";var nw=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),iw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new nw},n.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},n}(ox);iw.prototype.type="ellipse";var rw=Math.PI,ow=2*rw,aw=Math.sin,sw=Math.cos,lw=Math.acos,uw=Math.atan2,hw=Math.abs,cw=Math.sqrt,fw=Math.max,pw=Math.min,dw=1e-4,gw=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),yw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new gw},n.prototype.buildPath=function(t,e){Jo(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(ox);yw.prototype.type="sector";var vw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),mw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new vw},n.prototype.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)},n}(ox);mw.prototype.type="ring";var _w=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),xw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new _w},n.prototype.buildPath=function(t,e){ea(t,e,!0)},n}(ox);xw.prototype.type="polygon";var ww=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),bw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new ww},n.prototype.buildPath=function(t,e){ea(t,e,!1)},n}(ox);bw.prototype.type="polyline";var Sw={},Mw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Tw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new Mw},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Pr(Sw,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(ox);Tw.prototype.type="line";var Cw=[],Iw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),Dw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new Iw},n.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(1>h&&(me(n,a,r,h,Cw),a=Cw[1],r=Cw[2],me(i,s,o,h,Cw),s=Cw[1],o=Cw[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(ce(n,a,l,r,h,Cw),a=Cw[1],l=Cw[2],r=Cw[3],ce(i,s,u,o,h,Cw),s=Cw[1],u=Cw[2],o=Cw[3]),t.bezierCurveTo(a,s,l,u,r,o)))},n.prototype.pointAt=function(t){return na(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=na(this.shape,t,!0);return ht(e,e)},n}(ox);Dw.prototype.type="bezier-curve";var kw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Aw=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new kw},n.prototype.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)},n}(ox);Aw.prototype.type="arc";var Pw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},n.prototype.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],t[n].segmentIgnoreThreshold)},n.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},n.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},n.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ox.prototype.getBoundingRect.call(this)},n}(ox),Ow=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Lw=function(t){function n(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(n,t),n}(Ow),Rw=function(t){function n(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return e(n,t),n}(Ow),Ew=[0,0],Nw=[0,0],Bw=new pv,zw=new pv,Fw=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;4>n;n++)this._corners[n]=new pv;for(var n=0;2>n;n++)this._axes[n]=new pv;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);pv.sub(i[0],n[1],n[0]),pv.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return Bw.set(1/0,1/0),zw.set(0,0),!this._intersectCheckOneSide(this,t,Bw,zw,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,Bw,zw,i,-1)&&(n=!1,i)?n:(i||pv.copy(e,n?Bw:zw),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Ew),this._getProjMinMaxOnAxis(s,e._corners,Nw),Ew[1]<Nw[0]||Ew[0]>Nw[1]){if(a=!1,r)return a;var u=Math.abs(Nw[0]-Ew[1]),h=Math.abs(Ew[0]-Nw[1]);Math.min(u,h)>i.len()&&(h>u?pv.scale(i,l,-u*o):pv.scale(i,l,h*o))}else if(n){var u=Math.abs(Nw[0]-Ew[1]),h=Math.abs(Ew[0]-Nw[1]);Math.min(u,h)<n.len()&&(h>u?pv.scale(n,l,u*o):pv.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),Vw=[],Hw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(n,t),n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.useStyle=function(){this.style={}},n.prototype.getCursor=function(){return this._cursor},n.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},n.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},n.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},n.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},n.prototype.getDisplayables=function(){return this._displayables},n.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},n.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},n.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},n.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new bv(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Vw)),t.union(i)}this._rect=t}return this._rect},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var r=this._displayables[i];if(r.contain(t,e))return!0}return!1},n}(__),Ww=Ai(),Uw=Math.max,Gw=Math.min,Yw={},jw=qo,Xw=Zo,qw=Lr;da("circle",ew),da("ellipse",iw),da("sector",yw),da("ring",mw),da("polygon",xw),da("polyline",bw),da("rect",dx),da("line",Tw),da("bezierCurve",Dw),da("arc",Aw);var Zw=(Object.freeze||Object)({updateProps:oa,initProps:aa,removeElement:la,removeElementWithFadeOut:ha,isElementRemoved:sa,extendShape:fa,extendPath:pa,registerShape:da,getShapeClass:ga,makePath:ya,makeImage:va,mergePath:Xw,resizePath:_a,subPixelOptimizeLine:xa,subPixelOptimizeRect:wa,subPixelOptimize:qw,getTransform:ba,applyTransform:Sa,transformDirection:Ma,groupTransition:Ia,clipPointsByRect:Da,clipRectByRect:ka,createIcon:Aa,linePolygonIntersect:Pa,lineLineIntersect:Oa,setTooltipConfig:Ea,traverseElements:Ba,Group:Wm,Image:hx,Text:vx,Circle:ew,Ellipse:iw,Sector:yw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Tw,BezierCurve:Dw,Arc:Aw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Rw,BoundingRect:bv,OrientedBoundingRect:Fw,Point:pv,Path:ox}),Kw={},$w=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Qw=["align","lineHeight","width","height","tag","verticalAlign"],Jw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],tb=Ai(),eb=["textStyle","color"],nb=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ib=new vx,rb=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(eb):null)},t.prototype.getFont=function(){return Xa({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<nb.length;n++)e[nb[n]]=this.getShallow(nb[n]);return ib.useStyle(e),ib.update(),ib.getBoundingRect()},t}(),ob=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ab=Xi(ob),sb=function(){function t(){}return t.prototype.getLineStyle=function(t){return ab(this,t)},t}(),lb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ub=Xi(lb),hb=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return ub(this,t,e)},t}(),cb=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){a(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(o(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!xy.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Hi(cb),function(t){var e=["__\0is_clz",r_++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(cb),f(cb,sb),f(cb,hb),f(cb,s_),f(cb,rb);var fb=Math.round(10*Math.random()),pb={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},db={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},gb="ZH",yb="EN",vb=yb,mb={},_b={},xb=xy.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(gb)>-1?gb:vb}():vb;Ka(yb,pb),Ka(gb,db);var wb=1e3,bb=60*wb,Sb=60*bb,Mb=24*Sb,Tb=365*Mb,Cb={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ib="{yyyy}-{MM}-{dd}",Db={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ib,hour:Ib+" "+Cb.hour,minute:Ib+" "+Cb.minute,second:Ib+" "+Cb.second,millisecond:Cb.none},kb=["year","month","day","hour","minute","second","millisecond"],Ab=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Pb=F,Ob=["a","b","c","d","e","f","g"],Lb=function(t,e){return"{"+t+(null==e?"":e)+"}"},Rb=d,Eb=["left","right","top","bottom","width","height"],Nb=[["width","left","right"],["height","top","bottom"]],Bb=(w(Ps,"vertical"),w(Ps,"horizontal"),Ai()),zb=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Za("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Ls(this),i=n?Es(t):{};a(t,e.getTheme().get(this.mainType)),a(t,this.getDefaultOption()),n&&Rs(t,i,n)},n.prototype.mergeOption=function(t){a(this.option,t,!0);var e=Ls(this);e&&Rs(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!Vi(t))return t.defaultOption;var e=Bb(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},s=n.length-1;s>=0;s--)o=a(o,n[s],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Li(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(cb);Ui(zb,cb),ji(zb),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=zi(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=zi(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(zb),function(t,e){function n(t){var n={},o=[];return d(t,function(a){var s=i(n,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),d(u,function(t){h(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);h(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return d(t,function(t){h(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){0===--l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(d(t,function(t){h[t]=!0});u.length;){var c=u.pop(),f=l[c],p=!!h[c];p&&(i.call(r,c,f.originalDeps.slice()),delete h[c]),d(f.successor,p?a:o)}d(h,function(){throw new Error("")})}}}(zb,Bs);var Fb="";"undefined"!=typeof navigator&&(Fb=navigator.platform||"");var Vb,Hb,Wb="rgba(0, 0, 0, 0.2)",Ub={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fb.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Gb=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Yb="original",jb="arrayRows",Xb="objectRows",qb="keyedColumns",Zb="typedArray",Kb="unknown",$b="column",Qb="row",Jb={Must:1,Might:2,Not:3},tS=Ai(),eS=Y(),nS=Ai(),iS=(Ai(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=ci(this.get("color",!0)),r=this.get("colorLayer",!0);return js(this,nS,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Xs(this,nS)},t}()),rS="\0_ec_inner",oS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new cb(i),this._locale=new cb(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=Qs(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,Qs(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Hb(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&d(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=Gs(this,e,ci(t[e])),o=r.get(e),a=o?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=gi(o,n,a);Ii(u,e,zb),i[e]=null,r.set(e,null),s.set(e,0);var h,f=[],p=[],g=0;d(u,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=zb.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=l({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),l(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),p.push(i),g++):(f.push(void 0),p.push(void 0))},this),i[e]=f,r.set(e,p),s.set(e,g),"series"===e&&Vb(this)}var i=this.option,r=this._componentsMap,s=this._componentsCount,u=[],h=Y(),c=e&&e.replaceMergeMainTypeMap;zs(this),d(t,function(t,e){null!=t&&(zb.hasClass(e)?e&&(u.push(e),h.set(e,!0)):i[e]=null==i[e]?o(t):a(i[e],t,!0))}),c&&c.each(function(t,e){zb.hasClass(e)&&!h.get(e)&&(u.push(e),h.set(e,!0))}),zb.topologicalTravel(u,zb.getAllClassMainTypes(),n,this),this._seriesIndices||Vb(this)},n.prototype.getOption=function(){var t=o(this.option);return d(t,function(e,n){if(zb.hasClass(n)){for(var i=ci(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Ci(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[rS],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},n.prototype.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;return null!=n?(a=[],d(ci(n),function(t){o[t]&&a.push(o[t])})):a=null!=i?Ks("id",i,o):null!=r?Ks("name",r,o):v(o,function(t){return!!t}),$s(a,t)},n.prototype.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):v(this._componentsMap.get(n),function(t){return!!t});return function(e){return t.filter?v(e,t.filter):e}($s(r,t))},n.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(S(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=M(t)?i.get(t):I(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},n.prototype.getSeriesByName=function(t){var e=Mi(t,null);return v(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},n.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},n.prototype.getSeriesByType=function(t){return v(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},n.prototype.getSeries=function(){return v(this._componentsMap.get("series"),function(t){return!!t})},n.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},n.prototype.eachSeries=function(t,e){d(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},n.prototype.eachRawSeries=function(t,e){d(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},n.prototype.eachSeriesByType=function(t,e,n){d(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},n.prototype.eachRawSeriesByType=function(t,e,n){return d(this.getSeriesByType(t),e,n)},n.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},n.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},n.prototype.filterSeries=function(t,e){var n=[];d(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},n.prototype.restoreData=function(t){Vb(this);var e=this._componentsMap,n=[];e.each(function(t,e){zb.hasClass(e)&&n.push(e)}),zb.topologicalTravel(n,zb.getAllClassMainTypes(),function(n){d(e.get(n),function(e){!e||"series"===n&&qs(e,t)||e.restoreData()})})},n.internalField=function(){Vb=function(t){var e=t._seriesIndices=[];d(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Y(e)},Hb=function(t,e){t.option={},t.option[rS]=1,t._componentsMap=Y({series:[]}),t._componentsCount=Y();var n=e.aria;I(n)&&null==n.enabled&&(n.enabled=!0),Zs(e,t._theme.option),a(e,Ub,!1),t._mergeOption(e,null)}}(),n}(cb);f(oS,iS);var aS,sS,lS,uS,hS,cS,fS=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],pS=function(){function t(t){d(fS,function(e){this[e]=Vy(t[e],t)},this)}return t}(),dS={},gS=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];d(dS,function(i){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){d(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){dS[t]=e},t.get=function(t){return dS[t]},t}(),yS=/^(min|max)?(.+)$/,vS=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(d(ci(t.series),function(t){t&&t.data&&k(t.data)&&W(t.data)}),d(ci(t.dataset),function(t){t&&t.source&&k(t.source)&&W(t.source)})),t=o(t);var n=this._optionBackup,i=Js(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],o(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=o(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],a=[];if(!n.length&&!i)return a;for(var s=0,l=n.length;l>s;s++)tl(n[s].query,t,e)&&r.push(s);return!r.length&&i&&(r=[-1]),r.length&&!nl(r,this._currentMediaIndices)&&(a=g(r,function(t){return o(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,a},t}(),mS=d,_S=I,xS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],wS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],SS=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],MS=function(){function t(t){this.data=t.data||(t.sourceFormat===qb?{}:[]),this.sourceFormat=t.sourceFormat||Kb,this.seriesLayoutBy=t.seriesLayoutBy||$b,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Ws(this,n)===Jb.Must&&(i.type="ordinal")}}return t}(),TS=function(){function t(t,e){var n=Sl(t)?t:Tl(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Zb&&(this._offset=0,this._dimSize=e,this._data=i),hS(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;hS=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,h=o.dimensionsDefine;if(l(t,uS[Nl(a,s)]),a===Zb)t.getItem=n,t.count=r,t.fillStorage=i;else{var c=Ll(a,s);t.getItem=Vy(c,null,e,u,h);var f=Rl(a,s);t.count=Vy(f,null,e,u,h)}};var n=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;i>o;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],f=0;h>f;f++){var p=r[f*o+a];c[t+f]=p,l>p&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[jb+"_"+$b]={pure:!0,appendData:t},e[jb+"_"+Qb]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Xb]={pure:!0,appendData:t},e[qb]={pure:!0,appendData:function(t){var e=this._data;d(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[Yb]={appendData:t},e[Zb]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},uS=e}(),t}(),CS=function(t,e,n,i){return t[i]},IS=(aS={},aS[jb+"_"+$b]=function(t,e,n,i){return t[i+e]},aS[jb+"_"+Qb]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},aS[Xb]=CS,aS[qb]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=t[s];o[a]=l?l[i]:null}return o},aS[Yb]=CS,aS),DS=function(t){return t.length},kS=(sS={},sS[jb+"_"+$b]=function(t,e){return Math.max(0,t.length-e)},sS[jb+"_"+Qb]=function(t,e){var n=t[0];return n?Math.max(0,n.length-e):0},sS[Xb]=DS,sS[qb]=function(t,e,n){var i=n[0].name,r=t[i];return r?r.length:0},sS[Yb]=DS,sS),AS=function(t,e){return t[e]},PS=(lS={},lS[jb]=AS,lS[Xb]=function(t,e,n){return t[n]},lS[qb]=AS,lS[Yb]=function(t,e){var n=pi(t);return n instanceof Array?n[e]:n},lS[Zb]=AS,lS),OS=/\{@(.+?)\}/g,LS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,f=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=i&&b(s.value)&&(s.value=s.value[i]),!r){r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(S(r))return s.status=e,s.dimensionIndex=i,r(s);if(M(r)){return Cs(r,s).replace(OS,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Bl(a,t,r);if(o&&b(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Bl(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),RS=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||p>f)){var d=this._progress;if(b(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var y=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){ES.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:ES.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),b(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),ES=function(){function t(){return n>i?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,h,c){i=l,n=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),NS=(Y({number:function(t){return parseFloat(t)},time:function(t){return+Qn(t)},trim:function(t){return M(t)?H(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),BS=(function(){function t(t,e){if(!C(e)){ui("")}this._opFn=NS[t],this._rvalFloat=ri(e)}t.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(ri(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=C(t)?t:ri(t),i=C(e)?e:ri(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=M(t),s=M(e);a&&(n=s?t:0),s&&(i=a?e:0)}return i>n?this._resultLT:n>i?-this._resultLT:0},t}()),zS=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ri(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=ri(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return Vl(t,e)},t}()),FS=Y(),VS="undefined",HS=typeof Uint32Array===VS?Array:Uint32Array,WS=typeof Uint16Array===VS?Array:Uint16Array,US=typeof Int32Array===VS?Array:Int32Array,GS=typeof Float64Array===VS?Array:Float64Array,YS={float:GS,int:US,ordinal:Array,number:Array,time:GS},jS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=cS[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],Ol(i),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new YS[e||"float"](this._rawCount),this._rawExtent[r]=$l(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=$l());for(var s=r[t],l=o;a>l;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),i>n&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=i[l];Jl(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var f=c-a,p=0;r>p;p++){var u=i[p],d=cS.arrayRows.call(this,t[f]||h,u.property,f,p);n[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=$l()),Jl(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],f=t;e>f;f++){c=i.getItem(f,c);for(var p=0;a>p;p++){var d=r[p],y=this._dimValueGetter(c,l[p],f,p);d[f]=y;var v=s[p];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;o>r;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();r>i;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;r>=i;){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},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),f=e-r[c],p=Math.abs(f);n>=p&&((a>p||p===a&&f>=0&&0>s)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=Kl(this._rawCount);t=new n(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=Kl(n._rawCount),o=new r(i),a=[],s=t.length,l=0,u=t[0],h=n._chunks,c=0;i>c;c++){var f=void 0,p=n.getRawIndex(c);if(0===s)f=e(c);else if(1===s){var d=h[u][p];f=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][p];a[g]=c,f=e.apply(null,a)}f&&(o[l++]=p)}return i>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=_(t),r=i.length;if(!r)return this;var o=e.count(),a=Kl(e._rawCount),s=new a(o),l=0,u=i[0],h=t[u][0],c=t[u][1],f=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var g=f[i[0]],y=0;n>y;y++){var v=g[y];(v>=h&&c>=v||isNaN(v))&&(s[l++]=d),d++}p=!0}else if(2===r){for(var g=f[i[0]],m=f[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;n>y;y++){var v=g[y],b=m[y];(v>=h&&c>=v||isNaN(v))&&(b>=x&&w>=b||isNaN(b))&&(s[l++]=d),d++}p=!0}}if(!p)if(1===r)for(var y=0;o>y;y++){var S=e.getRawIndex(y),v=f[i[0]][S];(v>=h&&c>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var M=!0,S=e.getRawIndex(y),T=0;r>T;T++){var C=i[T],v=f[C][S];(v<t[C][0]||v>t[C][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(y))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=$l();for(var h=0;a>h;h++){for(var c=t.getRawIndex(h),f=0;o>f;f++)s[f]=i[e[f]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(var u=0;u<p.length;u++){var d=e[u],g=p[u],y=l[d],v=i[d];v&&(v[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),f=new(Kl(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));f[u++]=c;for(var p=1;l-1>p;p+=h){for(var d=Math.min(p+h,l-1),g=Math.min(p+2*h,l),y=(g+d)/2,v=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(v+=x)}v/=g-d;var w=p,b=Math.min(p+h,l),S=p-1,M=s[c];n=-1,r=w;for(var T=-1,C=0,m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)?(C++,0>T&&(T=_)):(i=Math.abs((S-y)*(x-M)-(S-m)*(v-M)))>n&&(n=i,r=_)}C>0&&b-w>C&&(f[u++]=Math.min(T,r),r=Math.max(T,r)),f[u++]=r,c=r}return f[u++]=this.getRawIndex(l-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=$l(),c=new(Kl(this._rawCount))(Math.ceil(u/s)),f=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(p+d);a[d]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(p+i(a,y)||0,u-1));l[v]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[f++]=v}return r._count=f,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];n>s;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=$l();if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var o=i[0],a=i[1],s=0;r>s;s++){var l=this.getRawIndex(s),u=e[l];o>u&&(o=u),u>a&&(a=u)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&y(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?Ql(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=o(this._extent),t._rawExtent=o(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;n>i;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Vl(t[i],this._dimensions[i])}cS={arrayRows:t,objectRows:function(t,e,n,i){return Vl(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Vl(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),XS=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,++this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(eu(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=k(a)?Zb:Yb,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},f=N(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=N(h.sourceHeader,c.sourceHeader),d=N(h.dimensions,c.dimensions);t=f!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d?[Ml(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s)]:[]}else{var g=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else{t=[Ml(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(null!=i){1!==t.length&&nu("")}var r,o=[],a=[];return d(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||nu(""),o.push(e),a.push(t._getVersionSign())}),n?r=Xl(n,o,{datasetIndex:e.componentIndex}):null!=i&&(r=[Cl(o[0])]),{sourceList:r,upstreamSignList:a}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];eu(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new jS,o.initData(new TS(e,t.length),t)),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(eu(t)){var e=Vs(t);return e?[e.getSourceManager()]:[]}return g(Hs(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(eu(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),qS="line-height:1",ZS=[0,10,20,30],KS=["","\n","\n\n","\n\n\n"],$S=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ai()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Is({color:e,type:t,renderMode:n,markerId:i});return M(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};b(e)?d(e,function(t){return l(n,t)}):l(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),QS=Ai(),JS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Fl({count:Mu,reset:Tu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(QS(this).sourceManager=new XS(this)).prepareSource();var i=this.getInitialData(t,n);Iu(i,this),this.dataTask.context.data=i,QS(this).dataBeforeProcessed=i,bu(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Ls(this),i=n?Es(t):{},r=this.subType;zb.hasClass(r)&&(r+="Series"),a(t,e.getTheme().get(this.subType)),a(t,this.getDefaultOption()),fi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Rs(t,i,n)},n.prototype.mergeOption=function(t,e){t=a(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ls(this);n&&Rs(this.option,t,n);var i=QS(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Iu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,QS(this).dataBeforeProcessed=r,bu(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!k(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&fi(t[n],"label",e)},n.prototype.getInitialData=function(){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=ku(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return QS(this).data},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=ku(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}QS(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);return t?Y(t):void 0},n.prototype.getSourceManager=function(){return QS(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return QS(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e){return _u({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(xy.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=iS.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=wu(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=_(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[wu(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){I(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;a>l;l++){var u=e[l],h=wu(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=wu(t,c);r.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(c),i)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return zb.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(zb);f(JS,LS),f(JS,iS),Ui(JS,zb);var tM=function(){function t(){this.group=new Wm,this.uid=Za("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Hi(tM),ji(tM);var eM=Ai(),nM=Au(),iM=function(){function t(){this.group=new Wm,this.uid=Za("viewChart"),this.renderTask=Fl({plan:Lu,reset:Ru}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Ou(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Ou(r,i,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Ba(this.group,t)},t.markUpdateMethod=function(t,e){eM(t).updateMethod=e},t.protoInitialize=function(){t.prototype.type="chart"}(),t}();Hi(iM),ji(iM);var rM,oM={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},aM="\0__throttleOriginMethod",sM="\0__throttleRate",lM="\0__throttleType",uM=Ai(),hM={itemStyle:Xi(lb,!0),lineStyle:Xi(ob,!0)},cM={lineStyle:"stroke",itemStyle:"fill"},fM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=zu(t,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var u=Fu(t,i),h=a[u],c=S(h)?h:null,f="auto"===a.fill||"auto"===a.stroke;if(!a[u]||c||f){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||S(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||S(a.stroke)?p:a.stroke}return n.setVisual("style",a),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&c?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=l({},a);r[u]=c(i),e.setItemVisual(n,"style",r)}}):void 0}},pM=new cb,dM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=zu(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){pM.option=n[i];var a=r(pM);l(t.ensureUniqueItemVisual(e,"style"),a),pM.option.decal&&(t.setItemVisual(e,"decal",pM.option.decal),pM.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},gM={performRawSeries:!0,overallReset:function(t){var e=Y();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),uM(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=uM(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Fu(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}},yM=Math.PI,vM=function(){function t(t,e,n,i){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount;return{step:o,modBy:null!=a?Math.ceil(a/o):null,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Y();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;d(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});V(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;d(t,function(t){if(!i.visualType||i.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var f=a.getPerformArgs(u,i.block);c.each(function(t){t.perform(f)}),u.perform(f)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getPerformArgs(s,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Fl({plan:Yu,reset:ju,count:qu}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):l?n.eachRawSeriesByType(l,r):u&&u(n,i).each(r)},t.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(f=!0,Fl({reset:Wu,onDirty:Gu})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||Fl({reset:Hu});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Y(),u=t.seriesType,h=t.getTargetSeries,c=!0,f=!1;V(!t.createOnAllSeries,""),u?n.eachRawSeriesByType(u,r):h?h(n,i).each(r):(c=!1,d(n.getSeries(),r)),f&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return S(t)&&(t={overallReset:t,seriesType:Zu(t)}),t.uid=Za("stageHandler"),e&&(t.visualType=e),t},t}(),mM=Xu(0),_M={},xM={};Ku(_M,oS),Ku(xM,pS),_M.eachSeriesByType=_M.eachRawSeriesByType=function(t){rM=t},_M.eachComponent=function(t){"series"===t.mainType&&t.subType&&(rM=t.subType)};var wM=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],bM={color:wM,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wM]},SM="#B9B8CE",MM="#100C2A",TM=function(){return{axisLine:{lineStyle:{color:SM}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},CM=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],IM={darkMode:!0,color:CM,backgroundColor:MM,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:SM}},textStyle:{color:SM},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:SM}},dataZoom:{borderColor:"#71708A",textStyle:{color:SM},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:SM}},timeline:{lineStyle:{color:SM},label:{color:SM},controlStyle:{color:SM,borderColor:SM}},calendar:{itemStyle:{color:MM},dayLabel:{color:SM},monthLabel:{color:SM},yearLabel:{color:SM}},timeAxis:TM(),logAxis:TM(),valueAxis:TM(),categoryAxis:TM(),line:{symbol:"circle"},graph:{color:CM},gauge:{title:{color:SM},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:SM},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};IM.categoryAxis.splitLine.show=!1;var DM=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(M(t)){var r=zi(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};d(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),kM=["symbol","symbolSize","symbolRotate","symbolOffset"],AM=kM.concat(["symbolKeepAspect"]),PM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,o[s](i,r))}}var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},o={},a=!1,s=0;s<kM.length;s++){var u=kM[s],h=t.get(u);S(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var c=_(o);return{dataEach:a?n:null}}}}},OM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(t,e){for(var n=t.getItemModel(e),i=0;i<AM.length;i++){var r=AM[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){return{dataEach:t.getData().hasItemOption?n:null}}}},LM=Math.round(9*Math.random()),RM="function"==typeof Object.defineProperty,EM=function(){function t(){this._id="__ec_inner_"+LM++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return RM?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),NM=ox.extend({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()}}),BM=ox.extend({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()}}),zM=ox.extend({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),h=Math.cos(u)*a,c=Math.sin(u),f=Math.cos(u),p=.6*a,d=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*p,l+s+f*p,n,i-d,n,i),t.bezierCurveTo(n,i-d,n-h+c*p,l+s+f*p,n-h,l+s),t.closePath()}}),FM=ox.extend({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()}}),VM={line:Tw,rect:dx,roundRect:dx,square:dx,circle:ew,diamond:BM,pin:zM,arrow:FM,triangle:NM},HM={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}},WM={};d(VM,function(t,e){WM[e]=new t});var UM=ox.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Mn(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=WM[i];r||(i="rect",r=WM[i]),HM[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}}),GM=new q_(!0),YM=["shadowBlur","shadowOffsetX","shadowOffsetY"],jM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],XM=1,qM=2,ZM=3,KM=4,$M=new EM,QM=new $v(100),JM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],tT=new tv,eT={},nT={zrender:"5.4.1"},iT=2e3,rT=1e3,oT=3e3,aT={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:rT,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:oT,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},sT="__flagInMainProcess",lT="__pendingUpdate",uT="__needsUpdateStatus",hT=/^[a-zA-Z0-9_]+$/,cT="__connectUpdateStatus",fT=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(tv),pT=fT.prototype;pT.on=jh("on"),pT.off=jh("off");var dT,gT,yT,vT,mT,_T,xT,wT,bT,ST,MT,TT,CT,IT,DT,kT,AT,PT,OT=function(t){function n(e,n,i){function r(t,e){return t.__prio-e.__prio}var a=t.call(this,new DM)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},M(n)&&(n=VT[n]),a._dom=e;var s=a._zr=Rn(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:N(i.useDirtyRect,!1),useCoarsePointer:N(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Eu(Vy(s.flush,s),17),n=o(n),n&&xl(n,!0),a._theme=n,a._locale=$a(i.locale||xb),a._coordSysMgr=new gS;var l=a._api=DT(a);return ne(FT,r),ne(BT,r),a._scheduler=new vM(a,l,BT,FT),a._messageCenter=new fT,a._initEvents(),a.resize=Vy(a.resize,a),s.animation.on("frame",a._onframe,a),ST(s,a),MT(s,a),W(a),a}return e(n,t),n.prototype._onframe=function(){if(!this._disposed){PT(this);var t=this._scheduler;if(this[lT]){var e=this[lT].silent;this[sT]=!0;try{dT(this),vT.update.call(this,null,this[lT].updateParams)}catch(t){throw this[sT]=!1,this[lT]=null,t}this._zr.flush(),this[sT]=!1,this[lT]=null,wT.call(this,e),bT.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),_T(this,i),t.performVisualTasks(i),IT(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[sT]&&!this._disposed){var i,r,o;if(I(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[sT]=!0,!this._model||e){var a=new vS(this._api),s=this._theme,l=this._model=new oS;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},zT);var u={seriesTransition:o,optionChanged:!0};if(n)this[lT]={silent:i,updateParams:u},this[sT]=!1,this.getZr().wakeUp();else{try{dT(this),vT.update.call(this,null,u)}catch(t){throw this[lT]=null,this[sT]=!1,t}this._ssr||this._zr.flush(),this[lT]=null,this[sT]=!1,wT.call(this,i),bT.call(this,i)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xy.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(xy.svgSupported){var t=this._zr;return d(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;d(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="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return d(i,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,a=1/0;if(UT[n]){var s=a,l=a,u=-a,h=-a,c=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();d(WT,function(a){if(a.group===n){var f=e?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(o(t)),p=a.getDom().getBoundingClientRect();s=i(p.left,s),l=i(p.top,l),u=r(p.right,u),h=r(p.bottom,h),c.push({dom:f,left:p.left,top:p.top})}}),s*=f,l*=f,u*=f,h*=f;var p=u-s,g=h-l,y=Cy.createCanvas(),v=Rn(y,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:g}),e){var m="";return d(c,function(t){var e=t.left-s,n=t.top-l;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new dx({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),d(c,function(t){var e=new hx({style:{x:t.left*f-s,y:t.top*f-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return mT(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return mT(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n;return d(Pi(this._model,t),function(t,i){i.indexOf("Models")>=0&&d(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,i=Pi(n,t,{defaultMainType:"series"}),r=i.seriesModel,o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?$u(o,a,e):Qu(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;d(RT,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&eh(o,function(t){var e=bx(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(i=l({},e.eventData),!0):void 0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var u=a&&null!=s&&r.getComponent(a,s),h=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),d(NT,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),d(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),th(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;this.getDom()&&Ri(this.getDom(),jT,"");var t=this,e=t._api,n=t._model;d(t._componentsViews,function(t){t.dispose(n,e)}),d(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete WT[t.id]}},n.prototype.resize=function(t){if(!this[sT]&&!this._disposed){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[lT]&&(null==i&&(i=this[lT].silent),n=!0,this[lT]=null),this[sT]=!0;try{n&&dT(this),vT.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[sT]=!1,t}this[sT]=!1,wT.call(this,i),bT.call(this,i)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(I(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),HT[t])){var n=HT[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=NT[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(I(e)||(e={silent:!!e}),ET[t.type]&&this._model)){if(this[sT])return void this._pendingActions.push(t);var n=e.silent;xT.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&xy.browser.weChat&&this._throttledZrFlush(),wT.call(this,n),bT.call(this,n)}},n.prototype.updateLabelLayout=function(){tT.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);ne(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),d(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}function i(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Ax&&t.states.emphasis?e.push("emphasis"):t.hoverState===kx&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,i=n.storage,r=0;i.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!xy.node&&!xy.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,n,i,-1/0),!0})}}function s(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),l=0;l<a.length;l++)i=Math.max(s(a[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function h(t,e){e.eachRendered(function(t){if(!sa(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function c(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(sa(t))return;if(t instanceof ox&&zo(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}})}dT=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),gT(t,!0),gT(t,!1),e.plan()},gT=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!n&&a[u];if(!h){var c=zi(t.type);h=new(e?tM.getClass(c.main,c.sub):iM.getClass(c.sub)),h.init(i,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(i,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},yT=function(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(a.setUpdatePayload(n),!i)return void d([].concat(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);var u,h=n.excludeSeriesId;null!=h&&(u=Y(),d(ci(h),function(t){var e=Mi(t,null);null!=e&&u.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!u||null==u.get(e.id))if(Bo(n))if(e instanceof JS)n.type!==Ex||n.notBlur||e.get(["emphasis","disabled"])||wo(e,n,t._api);else{var i=bo(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===Ex&&r&&!n.notBlur&&xo(e.mainType,e.componentIndex,t._api),o&&d(o,function(t){n.type===Ex?ho(t):co(t)})}else No(n)&&e instanceof JS&&(To(e,n,t._api),Co(e),AT(t))},t),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)},vT={prepareAndUpdate:function(t){dT(this),vT.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),_T(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),TT(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),tT.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Y();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),IT(this,i,r,e,{},a),tT.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),iM.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),TT(this,n,this._api,e,{}),tT.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),iM.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),tT.trigger("afterupdate",i,this._api))},updateLayout:function(t){vT.update.call(this,t)}},mT=function(t,e,n,i){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Pi(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},_T=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},xT=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=ET[r],s=a.actionInfo,h=(s.update||"update").split(":"),c=h.pop(),f=null!=h[0]&&zi(h[0]);this[sT]=!0;var p=[t],y=!1;t.batch&&(y=!0,p=g(t.batch,function(e){return e=u(l({},e),t),e.batch=null,e}));var v,m=[],_=No(t),x=Bo(t);if(x&&mo(this._api),d(p,function(e){if(v=a.action(e,n._model,n._api),v=v||l({},e),v.type=s.event||v.type,m.push(v),x){var i=Oi(t),r=i.queryOptionMap,o=i.mainTypeSpecified,u=o?r.keys()[0]:"series";yT(n,c,e,u),AT(n)}else _?(yT(n,c,e,"series"),AT(n)):f&&yT(n,c,e,f.main,f.sub)}),"none"!==c&&!x&&!_&&!f)try{this[lT]?(dT(this),vT.update.call(this,t),this[lT]=null):vT[c].call(this,t)}catch(t){throw this[sT]=!1,t}if(v=y?{type:s.event||r,escapeConnect:o,batch:m}:m[0],this[sT]=!1,!e){var w=this._messageCenter;if(w.trigger(v.type,v),_){var b={type:"selectchanged",escapeConnect:o,selected:Io(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};w.trigger(b.type,b)}}},wT=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();xT.call(this,n,t)}},bT=function(t){!t&&this.trigger("updated")},ST=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[lT]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},MT=function(t,e){t.on("mouseover",function(t){var n=t.target,i=eh(n,Ro);i&&(So(i,t,e._api),AT(e))}).on("mouseout",function(t){var n=t.target,i=eh(n,Ro);i&&(Mo(i,t,e._api),AT(e))}).on("click",function(t){var n=t.target,i=eh(n,function(t){return null!=bx(t).dataIndex},!0);if(i){var r=i.selected?"unselect":"select",o=bx(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},TT=function(t,e,i,r,o){n(e),CT(t,e,i,r,o),d(t._chartsViews,function(t){t.__alive=!1}),IT(t,e,i,r,o),d(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},CT=function(t,e,n,i,r,o){d(o||t._componentsViews,function(t){var r=t.__model;h(r,t),t.render(r,e,n,i),a(r,t),c(r,t)})},IT=function(t,e,n,i,s,u){var f=t._scheduler;s=l(s||{},{updatedSeries:e.getSeries()}),tT.trigger("series:beforeupdate",e,n,s);var p=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;f.updatePayload(r,i),h(e,n),u&&u.get(e.uid)&&r.dirty(),r.perform(f.getPerformArgs(r))&&(p=!0),n.group.silent=!!e.get("silent"),o(e,n),Co(e)}),f.unfinished=p||f.unfinished,tT.trigger("series:layoutlabels",e,n,s),tT.trigger("series:transition",e,n,s),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];a(e,n),c(e,n)}),r(t,e),tT.trigger("series:afterupdate",e,n,s)},AT=function(t){t[uT]=!0,t.getZr().wakeUp()},PT=function(t){t[uT]&&(t.getZr().storage.traverse(function(t){sa(t)||i(t)}),t[uT]=!1)},DT=function(t){return new(function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){ho(e,n),AT(t)},i.prototype.leaveEmphasis=function(e,n){co(e,n),AT(t)},i.prototype.enterBlur=function(e){fo(e),AT(t)},i.prototype.leaveBlur=function(e){po(e),AT(t)},i.prototype.enterSelect=function(e){go(e),AT(t)},i.prototype.leaveSelect=function(e){yo(e),AT(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(pS))(t)},kT=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][cT]=e}}d(NT,function(n,i){t._messageCenter.on(i,function(n){if(UT[t.group]&&0!==t[cT]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];d(WT,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),d(r,function(t){1!==t[cT]&&t.dispatchAction(i)}),e(r,2)}})})}}(),n}(tv),LT=OT.prototype;LT.on=Yh("on"),LT.off=Yh("off"),LT.one=function(t,e,n){function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}var r=this;this.on.call(this,t,i,n)};var RT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],ET={},NT={},BT=[],zT=[],FT=[],VT={},HT={},WT={},UT={},GT=+new Date-0,YT=+new Date-0,jT="_echarts_instance_",XT=Kh,qT=[],ZT=jl;hc(2e3,fM),hc(4500,dM),hc(4500,gM),hc(2e3,PM),hc(4500,OM),hc(7e3,Wh),ec(xl),nc(900,wl),fc("default",Vu),ac({type:Ex,event:Ex,update:Ex},K),ac({type:Nx,event:Nx,update:Nx},K),ac({type:Bx,event:Bx,update:Bx},K),ac({type:zx,event:zx,update:zx},K),ac({type:Fx,event:Fx,update:Fx},K),tc("light",bM),tc("dark",IM);var KT,$T,QT,JT,tC,eC,nC,iC={},rC=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||vc,this._newKeyGetter=i||vc,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=yc(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=yc(l),c=yc(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var f=0;h>f;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=yc(r);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=yc(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),oC=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}(),aC=function(){function t(t){this.otherDims={},null!=t&&l(this,t)}return t}(),sC=Ai(),lC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},uC=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Mc(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return N(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;return e?e[t]:void 0},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Ol(this.source),n=!Tc(t),i="",r=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=lC[l]||"f",u&&(i+=u.uid),i+="$"}var f=this.source;return{dimensions:r,hash:[f.seriesLayoutBy,f.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),hC=I,cC=g,fC="undefined"==typeof Int32Array?Array:Int32Array,pC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dC=["_approximateExtent"],gC=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;bc(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var h=n[u],c=M(h)?new aC({name:h}):h instanceof aC?h:new aC(h),f=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=f,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(f),r[f]=c,null!=l[f]&&(s=!0),c.createInvertedIndices&&(a[f]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=Y();d(o,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){return C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0)?+t:void 0},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof jS&&(i=t),!i){var o=this.dimensions,a=Sl(t)||p(t)?new TS(t,o.length):t;i=new jS;var s=cC(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=mc(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;r>a;a++){var s=a-i;this._nameList[a]=e[s],o&&nC(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Zb&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(i.getSource().sourceFormat===Yb&&!i.pure)for(var a=[],s=t;e>s;s++){var l=i.getItem(s,a);if(!this.hasItemOption&&di(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=Mi(u,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=Mi(h,null))}}if(this._shouldMakeIdFromName())for(var s=t;e>s;s++)nC(this,s);KT(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){hC(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=QT(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return $T(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.get(i.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.getByRawIndex(i.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return b(t)?i.getValues(cC(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){S(t)&&(n=e,e=t,t=[]);var i=n||this,r=cC(JT(t),this._getStoreDimIndex,this);this._store.each(r,i?Vy(e,i):e)},t.prototype.filterSelf=function(t,e,n){S(t)&&(n=e,e=t,t=[]);var i=n||this,r=cC(JT(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Vy(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=[];return d(_(t),function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){S(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=cC(JT(t),this._getStoreDimIndex,this),a=eC(this);return a._store=this._store.map(o,r?Vy(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=cC(JT(t),this._getStoreDimIndex,this);this._store.modify(o,r?Vy(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=eC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=eC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new cb(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new rC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return $T(t,e)},function(t){return $T(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},hC(t)?l(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),b(r)?r=r.slice():hC(r)&&(r=l({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,hC(e)?l(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){hC(t)?l(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Sx(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:cC(this.dimensions,this._getDimInfo,this),this.hostModel)),tC(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];S(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(z(arguments)))})},t.internalField=function(){KT=function(t){var e=t._invertedIndicesMap;d(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new fC(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},QT=function(t,e,n){return Mi(t._getCategory(e,n),null)},$T=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=QT(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},JT=function(t){return b(t)||(t=null!=t?[t]:[]),t},eC=function(e){var n=new t(e._schema?e._schema:cC(e.dimensions,e._getDimInfo,e),e.hostModel);return tC(n,e),n},tC=function(t,e){d(pC.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,d(dC,function(n){t[n]=o(e[n])}),t._calculationInfo=l({},e._calculationInfo)},nC=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=QT(t,r,e)),null==s&&null!=o&&(i[e]=s=QT(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),yC=function(){function t(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return t}(),vC={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",t_).models[0],o=t.getReferringComponents("yAxis",t_).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Oc(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Oc(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",t_).models[0];e.coordSysDims=["single"],n.set("single",r),Oc(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",t_).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Oc(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Oc(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();d(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Oc(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},mC=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ji(mC);var _C=0,xC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_C}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&g(i,Wc);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!M(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},t}(),wC=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new xC({})),b(i)&&(i=new xC({categories:g(i,function(t){return I(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?NaN:M(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),Zc(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Kc(t,this._extent)},n.prototype.scale=function(t){return t=Math.round($c(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},n.prototype.count=function(){return this._extent[1]-this._extent[0]+1},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(mC);mC.registerClass(wC);var bC=Wn,SC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Zc(t,this._extent)},n.prototype.normalize=function(t){return Kc(t,this._extent)},n.prototype.scale=function(t){return $c(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jc(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&o.push(t?{value:bC(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=bC(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&o.push(t?{value:bC(s+e,r)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,h=u/t;t-1>s;){var c=bC(a.value+(s+1)*h);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},n.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Gn(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Ss(bC(t.value,n,!0))},n.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var o=Gc(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(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.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=bC(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=bC(Math.ceil(e[1]/r)*r))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type="interval",n}(mC);mC.registerClass(SC);var MC="undefined"!=typeof Float32Array,TC=MC?Float32Array:Array,CC="__ec_stack_",IC=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},DC=function(t){function n(e){var n=t.call(this,e)||this;return n.type="time",n}return e(n,t),n.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return rs(t.value,Db[is(es(this._minLevelUnit))]||Db.second,e,this.getSetting("locale"))},n.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return os(t,e,n,this.getSetting("locale"),i)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=yf(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Mb,e[1]+=Mb),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Mb}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},n.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=kC.length,a=Math.min(IC(kC,this._approxInterval,0,o),o-1);this._interval=kC[a][1],this._minLevelUnit=kC[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return C(t)?t:+Qn(t)},n.prototype.contain=function(t){return Zc(this.parse(t),this._extent)},n.prototype.normalize=function(t){return Kc(this.parse(t),this._extent)},n.prototype.scale=function(t){return $c(t,this._extent)},n.type="time",n}(SC),kC=[["second",wb],["minute",bb],["hour",Sb],["quarter-day",6*Sb],["half-day",12*Sb],["day",1.2*Mb],["half-week",3.5*Mb],["week",7*Mb],["month",31*Mb],["quarter",95*Mb],["half-year",Tb/2],["year",Tb]];mC.registerClass(DC);var AC=mC.prototype,PC=SC.prototype,OC=Wn,LC=Math.floor,RC=Math.ceil,EC=Math.pow,NC=Math.log,BC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new SC,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return g(PC.getTicks.call(this,t),function(t){var e=t.value,r=Wn(EC(this.base,e));return r=e===n[0]&&this._fixMin?vf(r,i[0]):r,r=e===n[1]&&this._fixMax?vf(r,i[1]):r,{value:r}},this)},n.prototype.setExtent=function(t,e){var n=NC(this.base);t=NC(Math.max(0,t))/n,e=NC(Math.max(0,e))/n,PC.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=AC.getExtent.call(this);e[0]=EC(t,e[0]),e[1]=EC(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=vf(e[0],i[0])),this._fixMax&&(e[1]=vf(e[1],i[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=NC(t[0])/NC(e),t[1]=NC(t[1])/NC(e),AC.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=Jn(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Wn(RC(e[0]/i)*i),Wn(LC(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){PC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=NC(t)/NC(this.base),Zc(t,this._extent)},n.prototype.normalize=function(t){return t=NC(t)/NC(this.base),Kc(t,this._extent)},n.prototype.scale=function(t){return t=$c(t,this._extent),EC(this.base,t)},n.type="log",n}(mC),zC=BC.prototype;zC.getMinorTicks=PC.getMinorTicks,zC.getLabel=PC.getLabel,mC.registerClass(BC);var FC=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);S(r)?this._modelMinNum=_f(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=_f(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(S(o)?this._modelMaxNum=_f(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=_f(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=b(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[Sn(s[0],1),Sn(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var h=R(a)||R(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,f=this._determinedMax;return null!=c&&(a=c,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[HC[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[VC[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),VC={min:"_determinedMin",max:"_determinedMax"},HC={min:"_dataMin",max:"_dataMax"},WC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),UC={isDimensionStacked:Ec,enableDataStack:Lc,getStackedDimension:Nc},GC=(Object.freeze||Object)({createList:Of,getLayoutRect:Os,dataStack:UC,createScale:Lf,mixinAxisModelCommonMethods:Rf,getECData:bx,createTextStyle:Ef,createDimensions:Cc,createSymbol:ih,enableHoverEmphasis:Do}),YC=[],jC={registerPreprocessor:ec,registerProcessor:nc,registerPostInit:ic,registerPostUpdate:rc,registerUpdateLifecycle:oc,registerAction:ac,registerCoordinateSystem:sc,registerLayout:uc,registerVisual:hc,registerTransform:ZT,registerLoading:fc,registerMap:dc,registerImpl:Uh,PRIORITY:aT,ComponentModel:zb,ComponentView:tM,SeriesModel:JS,ChartView:iM,registerComponentModel:function(t){zb.registerClass(t)},registerComponentView:function(t){tM.registerClass(t)},registerSeriesModel:function(t){JS.registerClass(t)},registerChartView:function(t){iM.registerClass(t)},registerSubTypeDefaulter:function(t,e){zb.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){zn(t,e)}},XC=1e-8,qC=[],ZC=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),KC=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),$C=function(){function t(t){this.type="linestring",this.points=t}return t}(),QC=function(t){function n(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return Hf(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0];return d(this.geometries,function(e){"polygon"===e.type?Vf(e.exterior,n,i,t):d(e.points,function(e){Vf(e,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new bv(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(zf(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(zf(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new bv(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var h=l[u];"polygon"===h.type?(Ff(h.exterior,s),d(h.interiors,function(t){Ff(t,s)})):d(h.points,function(t){Ff(t,s)})}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},n.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new n(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},n}(ZC),JC=(function(t){function n(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}e(n,t),n.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=Nt(qC),r=t;r&&!r.isGeoSVGGraphicRoot;)zt(i,r.getLocalTransform(),i),r=r.parent;return Wt(i,i),gt(n,n,i),n}}(ZC),(Object.freeze||Object)({linearMap:Vn,round:Wn,asc:Un,getPrecision:Gn,getPrecisionSafe:Yn,getPixelPrecision:jn,getPercentWithPrecision:Xn,MAX_SAFE_INTEGER:9007199254740991,remRadian:Kn,isRadianAroundZero:$n,parseDate:Qn,quantity:Jn,quantityExponent:ti,nice:ei,quantile:ni,reformIntervals:ii,isNumeric:oi,numericToNumber:ri})),tI=(Object.freeze||Object)({parse:Qn,format:rs}),eI=(Object.freeze||Object)({extendShape:fa,extendPath:pa,makePath:ya,makeImage:va,mergePath:Xw,resizePath:_a,createIcon:Aa,updateProps:oa,initProps:aa,getTransform:ba,clipPointsByRect:Da,clipRectByRect:ka,registerShape:da,getShapeClass:ga,Group:Wm,Image:hx,Text:vx,Circle:ew,Ellipse:iw,Sector:yw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Tw,BezierCurve:Dw,Arc:Aw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Rw,BoundingRect:bv}),nI=(Object.freeze||Object)({addCommas:Ss,toCamelCase:Ms,normalizeCssArray:Pb,encodeHTML:Tt,formatTpl:Cs,getTooltipMarker:Is,formatTime:Ds,capitalFirst:ks,truncateText:Qi,getTextRect:bs}),iI=(Object.freeze||Object)({map:g,each:d,indexOf:h,inherits:c,reduce:y,filter:v,bind:Vy,curry:w,isArray:b,isString:M,isObject:I,isFunction:S,extend:l,defaults:u,clone:o,merge:a}),rI=Ai(),oI=[0,1],aI=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return jn(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),ap(n,i.count())),Vn(t,oI,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),ap(n,i.count()));var r=Vn(t,n,oI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=Xf(this,e),i=n.ticks,r=g(i,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return sp(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");return e>0&&100>e||(e=5),g(this.scale.getMinorTicks(e),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return jf(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.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},t.prototype.calculateCategoryInterval=function(){return np(this)},t}(),sI=2*Math.PI,lI=q_.CMD,uI=["top","right","bottom","left"],hI=[],cI=new pv,fI=new pv,pI=new pv,dI=new pv,gI=new pv,yI=[],vI=new pv,mI=["align","verticalAlign","width","height","fontSize"],_I=new Lm,xI=Ai(),wI=Ai(),bI=["x","y","rotation"],SI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();bv.applyTransform(u,u,l),l?_I.setLocalTransform(l):(_I.x=_I.y=_I.rotation=_I.originX=_I.originY=0,_I.scaleX=_I.scaleY=1);var h,c=i.__hostTarget;if(c){h=c.getBoundingRect().plain();var f=c.getComputedTransform();bv.applyTransform(h,h,f)}var p=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:_I.x,y:_I.y,scaleX:_I.scaleX,scaleY:_I.scaleY,rotation:_I.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(S(i)||_(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=bx(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l=S(r.layoutOption)?r.layoutOption(Ap(r,a)):r.layoutOption,l=l||{},r.computedLayoutOption=l;var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var h=!1;if(null!=l.x?(o.x=Hn(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Hn(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var c=a.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),h=!1)}xI(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var f=0;f<mI.length;f++){var p=mI[f];o.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(o.draggable=!0,o.cursor="move",a){var d=r.seriesModel;if(null!=r.dataIndex){var g=r.seriesModel.getData(r.dataType);d=g.getItemModel(r.dataIndex)}o.on("drag",function(t,e){return function(){mp(t,e)}}(a,d.getModel("labelLine")))}}else o.off("drag"),o.cursor=s.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=Mp(this._labelList),r=v(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=v(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});Cp(r,0,e),Ip(o,0,n),Dp(v(i,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;d(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=xI(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=bx(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");bp(t,Sp(a),s),mp(t,h)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!sa(t))){var r=xI(n),o=r.oldLayout,a=bx(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(h(c,"select")>=0&&n.attr(r.oldLayoutSelect),h(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),oa(n,l,e,s)}else if(n.attr(l),!tb(n).valueAnimation){var f=N(n.style.opacity,1);n.style.opacity=0,aa(n,{style:{opacity:f}},e,s)}if(r.oldLayout=l,n.states.select){var p=r.oldLayoutSelect={};Pp(p,l,bI),Pp(p,n.states.select,bI)}if(n.states.emphasis){var d=r.oldLayoutEmphasis={};Pp(d,l,bI),Pp(d,n.states.emphasis,bI)}qa(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=wI(i),o=r.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),oa(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,aa(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),MI=Ai();Nf(Op);var TI=function(t){function n(e,n,i){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;i=i||Sm,"string"==typeof e?o=Lp(e,n,i):I(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(q(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=n,r.dpr=i,r}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Lp("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new bv(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new bv(0,0,0,0);c.copy(h),c.union(t),o[u]=c,n=!0;break}if(s){l.copy(t),l.union(h);var f=t.width*t.height,p=h.width*h.height,d=l.width*l.height,g=d-f-p;i>g&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new bv(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new bv(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var h=t[u];if(h){var c=h.shouldBePainted(n,i,!0,!0),f=h.__isRendered&&(h.__dirty&Ov||!c)?h.getPrevPaintRect():null;f&&r(f);var p=c&&(h.__dirty&Ov||!h.__isRendered)?h.getPaintRect():null;p&&r(p)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(n,i,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var f=h.getPrevPaintRect();f&&r(f)}}var d;do{d=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(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))},n.prototype.clear=function(t,e,n){function i(t,n,i,r){if(o.clearRect(t,n,i,r),e&&"transparent"!==e){var a=void 0;if(P(e)){a=(e.global||e.__width===i&&e.__height===r)&&e.__canvasGradient||uh(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a,e.__width=i,e.__height=r}else O(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=xh(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));o.save(),o.fillStyle=a||e,o.fillRect(t,n,i,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(f,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h));var f=this.domBack;!n||l?i(0,0,a,s):n.length&&d(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})},n}(tv),CI=314159,II=function(){function t(t,e,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l({},n||{}),this.dpr=n.devicePixelRatio||Sm,this._singleCanvas=i,this.root=t,t.style&&(q(t),t.innerHTML=""),this.storage=e;var r=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var a=t,s=a.width,u=a.height;null!=n.width&&(s=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,a.width=s*this.dpr,a.height=u*this.dpr,this._width=s,this._height=u;var h=new TI(a,this,this.dpr);h.__builtin__=!0,h.initContext(),o[CI]=h,h.zlevel=CI,r.push(CI),this._domRoot=t}else{this._width=fh(t,0,n),this._height=fh(t,1,n);var c=this._domRoot=Ep(this._width,this._height);t.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx,i.save()),Rh(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){Lh(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;Nv(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(CI).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,h=!1,c=this,f=0;f<r.length;f++)!function(a){var s=r[a],l=s.ctx,f=o&&s.createRepaintRects(t,e,c._width,c._height),p=n?s.__startIndex:s.__drawIndex,d=!n&&s.incremental&&Date.now,g=d&&Date.now(),y=s.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,y,f);else if(p===s.__startIndex){var v=t[p];v.incremental&&v.notClear&&!n||s.clear(!1,y,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=s.__startIndex);var m,_=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(m=p;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(h=!0),i._doPaintEl(r,s,o,e,n,m===s.__endIndex-1),d){if(Date.now()-g>15)break}}n.prevElClipPaths&&l.restore()};if(f)if(0===f.length)m=s.__endIndex;else for(var x=c.dpr,w=0;w<f.length;++w){var b=f[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),_(b),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)}(f);return xy.wxa&&d(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Rh(a,t,r,o),t.setPrevPaintRect(s))}else Rh(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=CI);var n=this._layers[t];return n||(n=new TI("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?a(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&a(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&Rp(e)){if(r>0&&t>i[0]){for(s=0;r-1>s&&!(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 l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o,a,s=null,l=0;for(a=0;a<t.length;a++){var i=t[a],u=i.zlevel,h=void 0;o!==u&&(o=u,l=0),i.incremental?(h=this.getLayer(u+.001,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?.01:0),this._needsManuallyCompositing),h.__builtin__||r("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.__drawIndex=h.incremental?-1:a,e(a),s=h),i.__dirty&Ov&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,d(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?a(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+.01){a(this._layers[r],n[t],!0)}}}},t.prototype.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(h(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=fh(r,0,i),e=fh(r,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(CI).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[CI].dom;var e=new TI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];Rh(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),DI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new XS(this),tu(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),tu(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:$b},n}(zb),kI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(tM);Nf([Np,Bp]),Nf(Op);var AI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Fc(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(t){var e=new Wm,n=ih("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=ih(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},n}(JS),PI=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=ih(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Vp,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){ho(this.childAt(0))},n.prototype.downplay=function(){co(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(f):oa(c,f,a,e),ca(c)}if(this._updateCommon(t,e,s,i,r),l){var c=this.childAt(0);if(!u){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,aa(c,f,a,e)}}u&&this.childAt(0).stopAnimation("leave")},n.prototype._updateCommon=function(t,e,n,i,r){function o(e){return I?t.getName(e):zp(t,e)}var a,s,u,h,c,f,p,d,g,y=this.childAt(0),v=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,u=i.selectItemStyle,h=i.focus,c=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,g=i.cursorStyle,f=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),_=m.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),s=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),c=_.get("blurScope"),f=_.get("disabled"),p=Ha(m),d=_.getShallow("scale"),g=m.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");y.attr("rotation",(x||0)*Math.PI/180||0);var w=oh(t.getItemVisual(e,"symbolOffset"),n);w&&(y.x=w[0],y.y=w[1]),g&&y.attr("cursor",g);var b=t.getItemVisual(e,"style"),S=b.fill;if(y instanceof hx){var M=y.style;y.useStyle(l({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else y.useStyle(y.__isEmptyBrush?l({},b):b),y.style.decal=null,y.setColor(S,r&&r.symbolInnerColor),y.style.strokeNoScale=!0;var T=t.getItemVisual(e,"liftZ"),C=this._z2;null!=T?null==C&&(this._z2=y.z2,y.z2+=T):null!=C&&(y.z2=C,this._z2=null);var I=r&&r.useNameLabel;Va(y,p,{labelFetcher:v,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=y.ensureState("emphasis");D.style=a,y.ensureState("select").style=u,y.ensureState("blur").style=s;var k=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;D.scaleX=this._sizeX*k,D.scaleY=this._sizeY*k,this.setSymbolScale(1),Ao(this,h,c,f)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=bx(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&la(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();la(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return rh(t.getItemVisual(e,"symbolSize"))},n}(Wm),OI=function(){function t(t){this.group=new Wm,this._SymbolCtor=t||PI}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Wp(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Up(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Hp(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var f=r.getItemGraphicEl(c),p=u(h);if(!Hp(t,p,h,e))return void n.remove(f);var d=t.getItemVisual(h,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==d)n.remove(f),f=new o(t,h,s,l),f.setPosition(p);else{f.updateData(t,h,s,l);var y={x:p[0],y:p[1]};a?f.attr(y):oa(f,y,i)}n.add(f),t.setItemGraphicEl(h,f)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Up(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Wp(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Hp(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Ba(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}(),LI=Math.min,RI=Math.max,EI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),NI=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new EI},n.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Zp(n[2*r-2],n[2*r-1]);r--);for(;r>i&&Zp(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=Kp(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=q_.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,f=void 0,p=void 0,d=void 0,g=void 0,y=void 0,v=void 0;switch(h){case a.M:n=o[u++],i=o[u++];break;case a.L:if(c=o[u++],f=o[u++],1>=(v=s?(t-n)/(c-n):(t-i)/(f-i))&&v>=0){var m=s?(f-i)*v+i:(c-n)*v+n;return s?[t,m]:[m,t]}n=c,i=f;break;case a.C:c=o[u++],f=o[u++],p=o[u++],d=o[u++],g=o[u++],y=o[u++];var _=s?ue(n,c,p,g,t,l):ue(i,f,d,y,t,l);if(_>0)for(var x=0;_>x;x++){var w=l[x];if(1>=w&&w>=0){var m=s?se(i,f,d,y,w):se(n,c,p,g,w);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(ox),BI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(EI),zI=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new BI},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Zp(n[2*o-2],n[2*o-1]);o--);for(;o>r&&Zp(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=Kp(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Kp(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},n}(ox),FI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new Wm,e=new OI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],c="polar"===r.type,f=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),_=l.get("origin"),x=Gp(r,a,_),w=m&&rd(r,a,x),b=t.get("showSymbol"),S=t.get("connectNulls"),M=b&&!c&&ld(t,a,r),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),T.setItemGraphicEl(e,null))}),b||p.remove(),o.add(y);var C,I=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(C=r.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var D=sd(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&f.type===r.type&&I===this._step){m&&!g?g=this._newPolygon(h,w):g&&!m&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,As(D));var k=y.getClipPath();if(k){aa(k,{shape:gd(this,r,!1,t).shape},t)}else y.setClipPath(gd(this,r,!0,t));b&&p.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),td(this._stackedOnPoints,w)&&td(this._points,h)||(v?this._doUpdateAnimation(a,w,r,n,I,_,S):(I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:w})))}else b&&p.updateData(a,{isIgnore:M,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,C),I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d=this._newPolyline(h),m?g=this._newPolygon(h,w):g&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,As(D)),y.setClipPath(gd(this,r,!0,t));var A=t.getModel("emphasis"),P=A.get("focus"),O=A.get("blurScope"),L=A.get("disabled");if(d.useStyle(u(s.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Oo(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1}bx(d).seriesIndex=t.seriesIndex,Ao(d,P,O,L);var R=id(t.get("smooth")),E=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:E,connectNulls:S}),g){var N=a.getCalculationInfo("stackedOnSeries"),B=0;g.useStyle(u(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(B=id(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:B,smoothMonotone:E,connectNulls:S}),Oo(g,t,"areaStyle"),bx(g).seriesIndex=t.seriesIndex,Ao(g,P,O,L)}var z=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=h,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},n.prototype.packEventData=function(t,e){bx(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ki(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;s=new PI(r,o),s.x=l,s.y=u,s.setZ(h,c);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=h,f.z=c,f.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else iM.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=ki(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else iM.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;eo(this._polyline,t),e&&eo(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new NI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new zI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");S(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=S(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],f=void 0,p=void 0,d=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(f=g.startAngle,p=g.endAngle,d=-y[1]/180*Math.PI):(f=g.r0,p=g.r,d=y[0])}else{var v=n;i?(f=v.x,p=v.x+v.width,d=t.x):(f=v.y+v.height,p=v.y,d=t.y)}var m=p===f?0:(d-f)/(p-f);a&&(m=1-m);var _=S(u)?u(o):l*m+h,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(dd(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new vx({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=cd(a);l>=0&&(Va(o,Ha(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Fp(r,n):zp(r,t)},enableTextSetter:!0},yd(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),f=o.get("precision"),p=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),y=d.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),w=g?"x":"y",b=pd(u,m,w),S=b.range,M=S[1]-S[0],T=void 0;if(M>=1){if(M>1&&!c){var C=fd(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(T=h.getRawValue(S[0]))}else{var C=l.getPointOn(m,w);C&&s.attr({x:C[0]+_,y:C[1]+x});var I=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(T=Bi(n,f,I,D,b.t))}i.lastFrameIndex=S[0]}else{var k=1===t||i.lastFrameIndex>0?S[0]:0,C=fd(u,k);r&&(T=h.getRawValue(k)),s.attr({x:C[0]+_,y:C[1]+x})}r&&tb(s).setLabelText(T)}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=qp(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin),c=h.current,f=h.stackedOnCurrent,p=h.next,d=h.stackedOnNext;if(r&&(c=od(h.current,n,r,a),f=od(h.stackedOnCurrent,n,r,a),p=od(h.next,n,r,a),d=od(h.stackedOnNext,n,r,a)),nd(c,p)>3e3||l&&nd(f,d)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:p}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),oa(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:f}),l.stopAnimation(),oa(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;m<v.length;m++){if("="===v[m].cmd){var _=t.getItemGraphicEl(v[m].idx1);_&&y.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},n.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(n,i){n.__temp&&(t.remove(n),e.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},n.type="line",n}(iM),VI={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 isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},HI=function(t){return Math.round(t.length/2)};Nf(_d);var WI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(zb),UI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",t_).models[0]},n.type="cartesian2dAxis",n}(zb);f(UI,WC);var GI={show:!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,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},YI=a({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},GI),jI=a({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},GI),XI=a({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jI),qI=u({logBase:10},jI),ZI={category:YI,value:jI,time:XI,log:qI},KI={value:1,category:1,time:1,log:1},$I=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),v(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),QI=["x","y"],JI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=QI,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(bd(t)&&bd(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,f=this._transform=[l,0,0,u,h,c];this._invTransform=Wt([],f)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.prototype.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]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new bv(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return gt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return gt(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new bv(n,i,r,o)},n}($I),tD=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.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},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(aI),eD=Math.log,nD=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=QI,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function n(t){var e,n=_(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;Uc(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(bf(u,l),Uc(u)&&(e=s))}r.length&&(e||(e=r.pop(),bf(e.scale,e.model)),d(r,function(t){Cd(t.scale,t.model,e.scale)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};d(i.x,function(t){Dd(i,"y",t,r)}),d(i.y,function(t){Dd(i,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){d(s,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Ad(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Os(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;i(),o&&(d(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=If(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}}),i()),d(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}I(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]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",t_).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",t_).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,h(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function n(e){return function(n,i){if(Id(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new tD(e,Sf(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void d(a.x,function(e,n){d(a.y,function(r,o){var a="x"+n+"y"+o,s=new JI(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function n(t,e){d(Pf(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}d(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(Md(t)){var i=Td(t),r=i.xAxisModel,o=i.yAxisModel;if(!Id(r,e)||!Id(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return d(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(Md(t)){var e=Td(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=QI,t}(),iD=Math.PI,rD=function(){function t(t,e){this.group=new Wm,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Wm({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!oD[t]},t.prototype.add=function(t){oD[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Kn(e-t);return $n(o)?(r=n>0?"top":"bottom",i="center"):$n(o-iD)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&iD>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),oD={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],u=[o[1],0],h=s[0]>u[0];a&&(gt(s,s,a),gt(u,u,a));var c=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Tw({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});xa(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var p=e.get(["axisLine","symbol"]);if(null!=p){var g=e.get(["axisLine","symbolSize"]);M(p)&&(p=[p,p]),(M(g)||C(g))&&(g=[g,g]);var y=oh(e.get(["axisLine","symbolOffset"])||0,g),v=g[0],m=g[1];d([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=ih(p[i],-v/2,-m/2,v,m,c.stroke,!0),o=e.r+e.offset,a=h?u:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=Bd(n,i,e,t),o=Fd(n,i,e,t);if(Od(e,o,r),zd(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){Dp(Mp(g(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))}},axisName:function(t,e,n,i){var r=E(t.axisName,e.get("name"));if(r){var o,a=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,f=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,Ed(a)?t.labelOffset+s*u:0],p=e.get("nameRotate");null!=p&&(p=p*iD/180);var d;Ed(a)?o=rD.innerTextLayout(t.rotation,null!=p?p:t.rotation,s):(o=Pd(t.rotation,a,p||0,h),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(o.rotation)),!isFinite(d)&&(d=null)));var g=l.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=E(t.nameTruncateMaxWidth,y.maxWidth,d),_=new vx({x:f[0],y:f[1],rotation:o.rotation,silent:rD.isLabelSilent(e),style:Wa(l,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||o.textAlign,verticalAlign:l.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ea({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=rD.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,bx(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}},aD={},sD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axisPointerClass&&jd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,i){var r=n.getAxisPointerClass(this.axisPointerClass);if(r){var o=qd(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,i):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){aD[t]=e},n.getAxisPointerClass=function(t){return t&&aD[t]},n.type="axis",n}(tM),lD=Ai(),uD=["axisLine","axisTickLabel","axisName"],hD=["splitArea","splitLine","minorSplitLine"],cD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="CartesianAxisPointer",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Wm,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Sd(a,e),u=new rD(e,l({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;n<t.length;n++)if(Uc(t[n].getOtherAxis(e.axis).scale))return!0;return!1}},s));d(uD,u.add,u),this._axisGroup.add(u.getGroup()),d(hD,function(t){e.get([t,"show"])&&fD[t](this,this._axisGroup,e,a)},this);r&&"changeAxisOrder"===r.type&&r.isInitSort||Ia(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},n.prototype.remove=function(){Qd(this)},n.type="cartesianAxis",n}(sD),fD={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=b(s)?s:[s];for(var l=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=0,f=r.getTicksCoords({tickModel:o}),p=[],d=[],g=a.getLineStyle(),y=0;y<f.length;y++){var v=r.toGlobalCoord(f[y].coord);h?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var m=c++%s.length,_=f[y].tickValue,x=new Tw({anid:null!=_?"line_"+f[y].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:u({stroke:s[m]},g),silent:!0});xa(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var h=[],c=[],f=a.getLineStyle(),p=0;p<u.length;p++)for(var d=0;d<u[p].length;d++){var g=r.toGlobalCoord(u[p][d].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var y=new Tw({anid:"minor_line_"+u[p][d].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:f,silent:!0});xa(y.shape,f.lineWidth),e.add(y)}},splitArea:function(t,e,n,i){$d(t,e,n,i)}},pD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="xAxis",n}(cD),dD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=pD.type,e}return e(n,t),n.type="yAxis",n}(cD),gD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(n,t),n.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new dx({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},n.type="grid",n}(tM),yD={offset:0};Nf(Jd);var vD=Ai(),mD=o,_D=Vy,xD=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=w(tg,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new Wm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);rg(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.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=Xd(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=vD(t).pointerEl=new Zw[n.type](mD(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=vD(t).labelEl=new vx(mD(e.label));t.add(r),ng(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=vD(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=vD(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),ng(r,i))},t.prototype._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=Aa(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){uv(t.event)},onmousedown:_D(this._onHandleDragMove,this,0,0),drift:_D(this._onHandleDragMove,this),ondragend:_D(this._onHandleDragEnd,this)}),n.add(i)),rg(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");b(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Nu(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){tg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ig(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ig(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ig(i)),vD(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._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}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.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),Bu(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),wD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=pg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=og(i),c=bD[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}hg(e,t,Sd(a.model,n),n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=Sd(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=ug(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=pg(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},n}(xD),bD={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:cg([e,n[0]],[e,n[1]],dg(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:fg([e-i/2,n[0]],[i,r],dg(t))}}},SD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axisPointer",n.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},n}(zb),MD=Ai(),TD=d,CD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";gg("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},n.prototype.remove=function(t,e){wg("axisPointer",e)},n.prototype.dispose=function(t,e){wg("axisPointer",e)},n.type="axisPointer",n}(tM),ID=Ai(),DD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="tooltip",n.dependencies=["axisPointer"],n.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},n}(zb),kD=Ng(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),AD=Ng(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),PD=Bg(AD,"transition"),OD=Bg(kD,"transform"),LD="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xy.transform3dSupported?"will-change:transform;":""),RD=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,xy.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Yg(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;kt(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=zg(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=LD+Gg(t,!this._firstShow,this._longHide)+Wg(r[0],r[1],!0)+"border-color:"+As(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(M(r)&&"item"===n.get("trigger")&&!Eg(n)&&(a=Vg(n,i,r)),M(t))o.innerHTML=t+a;else if(t){o.innerHTML="",b(t)||(t=[t]);for(var s=0;s<t.length;s++)A(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(Yg(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;d(Wg(n[0],n[1]),function(t){i[t[0]]=t[1]})}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",xy.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Vy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),ED=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),qg(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i){var r=this;I(t)&&ui(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new vx({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:mu(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),d(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),d(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=o.get(t)||0}),this._zr.add(this.el);var a=this;this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Xg(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;qg(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=jg(r.borderWidth||0),a=Xg(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Vy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),ND=new dx({shape:{x:-1,y:-1,width:2,height:2}}),BD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){if(!xy.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=Ni(n.get("renderMode"));this._tooltipContent="richText"===i?new ED(e):new RD(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},n.prototype.render=function(t,e,n){if(!xy.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Nu(this,"_updatePosition",50,"fixRate"):Bu(this,"_updatePosition")}},n.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");gg("itemTooltip",this._api,Vy(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!xy.node&&n.getDom()){var r=Kg(i,n);this._ticket="";var o=i.dataByCoordSys,a=ey(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=ND;l.x=i.x,l.y=i.y,l.update(),bx(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=bg(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:i.position,positionDefault:"bottom"},r)}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},r))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Kg(i,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){if("axis"===Zg([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},n.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){this._lastDataByCoordSys=null;var r,o;eh(n,function(t){return null!=bx(t).dataIndex?(r=t,!0):null!=bx(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Vy(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Zg([e.tooltipOption],i),a=this._renderMode,s=[],u=ru("section",{blocks:[],noHeader:!0}),h=[],c=new $S;d(t,function(t){d(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=lg(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),f=ru("section",{header:o,noHeader:!H(o),sortBlocks:!0,blocks:[]});u.blocks.push(f),d(t.seriesDataIndices,function(u){var p=n.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,g=p.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Cf(e.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",As(g.color),a);var y=zl(p.formatTooltip(d,!0,null)),v=y.frag;if(v){var m=Zg([p],i).get("valueFormatter");f.blocks.push(m?l({valueFormatter:m},v):v)}y.text&&h.push(y.text),s.push(g)}})}})}),u.blocks.reverse(),h.reverse();var f=e.position,p=o.get("order"),g=hu(u,c,a,p,n.get("useUTC"),o.get("textStyle"));g&&h.unshift(g);var y="richText"===a?"\n\n":"<br/>",v=h.join(y);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,f,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",r[0],r[1],f,null,c)})},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=bx(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,u=r.dataIndex,h=r.dataType,c=s.getData(h),f=this._renderMode,p=t.positionDefault,d=Zg([c.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(null==g||"item"===g){var y=s.getDataParams(u,h),v=new $S;y.marker=v.makeTooltipMarker("item",As(y.color),f);var m=zl(s.formatTooltip(u,!1,h)),_=d.get("order"),x=d.get("valueFormatter"),w=m.frag,b=w?hu(x?l({valueFormatter:x},w):w,v,f,_,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,b,y,S,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=bx(e),r=i.tooltipConfig,a=r.option||{};if(M(a)){var s=a;a={content:s,formatter:s}}var l=[a],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:a.content});var h=t.positionDefault,c=Zg(l,this._tooltipModel,h?{position:h}:null),f=c.get("content"),p=Math.random()+"",d=new $S;this._showOrMove(c,function(){var n=o(c.get("formatterParams")||{});this._showTooltipContent(c,f,n,p,t.offsetX,t.offsetY,t.position,e,d)}),n({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,f=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),p=f.color;if(h)if(M(h)){var d=t.ecModel.get("useUTC"),g=b(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,y&&(c=rs(g.axisValue,c,d)),c=Cs(c,n,!0)}else if(S(h)){var v=Vy(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||b(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:b(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),S(e)&&(e=e([n,i],o,r.el,f,{viewSize:[s,l],contentSize:u.slice()})),b(e))n=Hn(e[0],s),i=Hn(e[1],l);else if(I(e)){var p=e;p.width=u[0],p.height=u[1];var d=Os(p,{width:s,height:l});n=d.x,i=d.y,h=null,c=null}else if(M(e)&&a){var g=Jg(e,f,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var g=$g(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=ty(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=ty(c)?u[1]/2:"bottom"===c?u[1]:0),Eg(t)){var g=Qg(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&d(n,function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];(r=r&&a.length===l.length)&&d(a,function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&d(a,function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&d(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},n.prototype.dispose=function(t,e){!xy.node&&e.getDom()&&(Bu(this,"_updatePosition"),this._tooltipContent.dispose(),wg("itemTooltip",e))},n.type="tooltip",n}(tM);Nf(ny);var zD=Ai(),FD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.createdBySelf=!1,e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},n.prototype.isAnimationEnabled=function(){if(xy.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},n.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},n.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=zD(t)[r];return n&&n.data?(o?o._mergeOption(n,e,!0):(i&&ry(n),d(n.data,function(t){t instanceof Array?(ry(t[0]),ry(t[1])):ry(t)}),o=this.createMarkerModelFromSeries(n,this,e),l(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(zD(t)[r]=o)):void(zD(t)[r]=null)},this)},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.getRawValue(t),i=e.getName(t);return ru("section",{header:this.name,blocks:[ru("nameValue",{name:i,value:n,noName:!i,noValue:null==n})]})},n.prototype.getData=function(){return this._data},n.prototype.setData=function(t){this._data=t},n.getMarkerModelFromSeries=function(t,e){return zD(t)[e]},n.type="marker",n.dependencies=["series","grid","polar","geo"],n}(zb);f(FD,LS.prototype);var VD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type="markPoint",n.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},n}(FD),HD={min:w(sy,"min"),max:w(sy,"max"),average:w(sy,"average"),median:w(sy,"median")},WD=Ai(),UD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this.markerGroupMap=Y()},n.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){WD(t).keep=!1}),e.eachSeries(function(t){var r=FD.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){!WD(t).keep&&i.group.remove(t.group)})},n.prototype.markKeep=function(t){WD(t).keep=!0},n.prototype.toggleBlurSeries=function(t,e){var n=this;d(t,function(t){var i=FD.getMarkerModelFromSeries(t,n.type);if(i){i.getData().eachItemGraphicEl(function(t){t&&(e?fo(t):po(t))})}})},n.type="marker",n}(tM),GD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=FD.getMarkerModelFromSeries(t,"markPoint");e&&(dy(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new OI),u=gy(r,t,e);e.setData(u),dy(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(S(i)||S(r)||S(o)||S(s)){var h=e.getRawValue(t),c=e.getDataParams(t);S(i)&&(i=i(h,c)),S(r)&&(r=r(h,c)),S(o)&&(o=o(h,c)),S(s)&&(s=s(h,c))}var f=n.getModel("itemStyle").getItemStyle(),p=Qu(a,"color");f.fill||(f.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:f})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){bx(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},n.type="markPoint",n}(UD);Nf(yy),t.version="5.4.1",t.dependencies=nT,t.PRIORITY=aT,t.init=qh,t.connect=Zh,t.disConnect=Kh,t.disconnect=XT,t.dispose=$h,t.getInstanceByDom=Qh,t.getInstanceById=Jh,t.registerTheme=tc,t.registerPreprocessor=ec,t.registerProcessor=nc,t.registerPostInit=ic,t.registerPostUpdate=rc,t.registerUpdateLifecycle=oc,t.registerAction=ac,t.registerCoordinateSystem=sc,t.getCoordinateSystemDimensions=lc,t.registerLayout=uc,t.registerVisual=hc,t.registerLoading=fc,t.setCanvasCreator=pc,t.registerMap=dc,t.getMap=gc,t.registerTransform=ZT,t.dataTool=iC,t.registerLocale=Ka,t.zrender=jm,t.matrix=fv,t.vector=$y,t.zrUtil=jy,t.color=im,t.helper=GC,t.number=JC,t.time=tI,t.graphic=eI,t.format=nI,t.util=iI,t.List=gC,t.ComponentModel=zb,t.ComponentView=tM,t.SeriesModel=JS,t.ChartView=iM,t.extendComponentModel=lp,t.extendComponentView=up,t.extendSeriesModel=hp,t.extendChartView=cp,t.throttle=Eu,t.use=Nf,t.setPlatformAPI=n,t.parseGeoJSON=Yf,t.parseGeoJson=Yf,t.env=xy,t.Model=cb,t.Axis=aI,t.innerDrawElementOnCanvas=Lh})}).call(e,n(944).Buffer)},2015:function(t,e){if(void 0===n){var i=new Error('Cannot find module "@xysfe/actui/es/assets/img/circle1.png"');throw i.code="MODULE_NOT_FOUND",i}t.exports=n},2016:function(t,e){if(void 0===i){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/circle2.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=i},2017:function(t,e){if(void 0===r){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/circle3.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=r},2018:function(t,e,n){function i(t){return n(r(t))}function r(t){var e=o[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var o={"./tag1.png":2019,"./tag2.png":2020,"./tag3.png":2021};i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id=2018},2019:function(t,e){if(void 0===o){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/tag1.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=o},2020:function(t,e){if(void 0===a){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/tag2.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=a},2021:function(t,e){if(void 0===s){var n=new Error('Cannot find module "@xysfe/actui/es/assets/img/tag3.png"');throw n.code="MODULE_NOT_FOUND",n}t.exports=s},2022:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];i._withStripped=!0},2023:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"act-GoldFinanceChartV2"},[t.isNewVersion?[t.selectedData.length?(t.config.productList||[]).length>0?i("div",{staticClass:"price-display"},[i("p",{staticClass:"title"},[t._v("\n "+t._s(t.config.colsXText)+"第"+t._s(t.selectedData[0])+t._s(t.config.colsXUnit)+":\n ")]),t._v(" "),t._l(t.selectedData.slice(1),function(e,n){return i("p",{key:e,staticClass:"data"},[i("span",[t._v("\n "+t._s(t.config.productList[n].productName)+":\n ")]),t._v(" "),i("span",{style:"color:"+t.colorConfig[n]+";font-weight:bold;"},[t._v("\n "+t._s(+e+t.config.colsYUnit)+"\n ")])])})],2):t._e():i("div",{staticClass:"divide"},t._l(t.config.productList||[],function(e,r){return i("div",{key:e.productName+r,staticClass:"product-name"},[i("img",{staticClass:"prefix",attrs:{src:n(948)("./circle"+(r+1)+".png")}}),t._v(" "),i("span",[t._v("\n "+t._s(e.productName)+"\n ")])])}),0)]:[t.selectedData.length?t.filteredCostTable.length>0?i("div",{staticClass:"price-display"},[i("p",{staticClass:"title"},[t._v("\n 保单年份第"+t._s(t.selectedData[0])+"年:\n ")]),t._v(" "),t._l(t.selectedData.slice(1),function(e,n){return i("p",{key:e,staticClass:"data"},[i("span",[t._v("\n "+t._s(t.filteredCostTable[n].productName)+":\n ")]),t._v(" "),i("span",{style:"color:"+t.colorConfig[n]+";font-weight:bold;"},[t._v("\n "+t._s(t._f("formatPrice")(e))+"\n ")])])})],2):t._e():i("div",{staticClass:"divide"},t._l(t.filteredCostTable,function(e,r){return i("div",{key:e.productName+r,staticClass:"product-name"},[i("img",{staticClass:"prefix",attrs:{src:n(948)("./circle"+(r+1)+".png")}}),t._v(" "),i("span",[t._v("\n "+t._s(e.productName)+"\n ")])])}),0)],t._v(" "),t.hasData?[t.hasData?i("Chart",{attrs:{chartOptions:t.chartOptions},on:{getCurrentData:t.getCurrentData}}):t._e(),t._v(" "),t.isNewVersion?i("p",{staticClass:"chart-title"},[t.config.title?i("span",[t._v("按"+t._s(t.config.title)+"演示")]):t._e()]):i("p",{staticClass:"chart-title"},[t._v("\n 按现金价值演示\n ")])]:t._e()],2)},r=[];i._withStripped=!0},21:function(t,e,n){var i=n(6),r=n(0).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},22:function(e,n){e.exports=t},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},25:function(t,e,n){var i=n(9).f,r=n(8),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},26:function(t,e,n){var i=n(37),r=n(28);t.exports=Object.keys||function(t){return i(t,r)}},27:function(t,e,n){var i=n(2),r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},28:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,e,n){var i=n(16);t.exports=function(t){return Object(i(t))}},3:function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var i=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},31:function(t,e,n){var i=n(15),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},32:function(t,n){t.exports=e},33:function(t,e,n){"use strict";var i=n(18),r=n(10),o=n(47),a=n(5),s=n(11),l=n(54),u=n(25),h=n(56),c=n(1)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,d,g,y,v){l(n,e,d);var m,_,x,w=function(t){if(!f&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},b=e+" Iterator",S="values"==g,M=!1,T=t.prototype,C=T[c]||T["@@iterator"]||g&&T[g],I=C||w(g),D=g?S?w("entries"):I:void 0,k="Array"==e?T.entries||C:C;if(k&&(x=h(k.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),i||"function"==typeof x[c]||a(x,c,p)),S&&C&&"values"!==C.name&&(M=!0,I=function(){return C.call(this)}),i&&!v||!f&&!M&&T[c]||a(T,c,I),s[e]=I,s[b]=p,g)if(m={values:S?I:w("values"),keys:y?I:w("keys"),entries:D},v)for(_ in m)_ in T||o(T,_,m[_]);else r(r.P+r.F*(f||M),e,m);return m}},34:function(t,e,n){var i=n(6);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")}},36:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},37:function(t,e,n){var i=n(8),r=n(12),o=n(40)(!1),a=n(20)("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}},38:function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},4:function(t,e,n){var i=n(6);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},40:function(t,e,n){var i=n(12),r=n(31),o=n(41);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),h=o(a,u);if(t&&n!=n){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===n)return t||h||0;return!t&&-1}}},41:function(t,e,n){var i=n(15),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},42:function(t,e,n){var i=n(14),r=n(1)("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}},44:function(t,e){e.f={}.propertyIsEnumerable},45:function(t,e,n){"use strict";var i=n(53)(!0);n(33)(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})})},46:function(t,e,n){var i=n(4),r=n(55),o=n(28),a=n(20)("IE_PROTO"),s=function(){},l=function(){var t,e=n(21)("iframe"),i=o.length;for(e.style.display="none",n(38).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)}},47:function(t,e,n){t.exports=n(5)},5:function(t,e,n){var i=n(9),r=n(23);t.exports=n(3)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},52:function(t,e){e.f=Object.getOwnPropertySymbols},53:function(t,e,n){var i=n(15),r=n(16);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)}}},54:function(t,e,n){"use strict";var i=n(46),r=n(23),o=n(25),a={};n(5)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},55:function(t,e,n){var i=n(9),r=n(4),o=n(26);t.exports=n(3)?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}},56:function(t,e,n){var i=n(8),r=n(29),o=n(20)("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}},562: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},57:function(t,e,n){var i=n(42),r=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},65:function(t,e,n){t.exports={default:n(69),__esModule:!0}},69:function(t,e,n){n(70),t.exports=n(2).Object.assign},691:function(t,e,n){t.exports={default:n(692),__esModule:!0}},692:function(t,e,n){n(45),n(693),t.exports=n(2).Array.from},693:function(t,e,n){"use strict";var i=n(17),r=n(10),o=n(29),a=n(72),s=n(73),l=n(31),u=n(694),h=n(57);r(r.S+r.F*!n(74)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,c,f=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,y=void 0!==g,v=0,m=h(f);if(y&&(g=i(g,d>2?arguments[2]:void 0,2)),void 0==m||p==Array&&s(m))for(e=l(f.length),n=new p(e);e>v;v++)u(n,v,y?g(f[v],v):f[v]);else for(c=m.call(f),n=new p;!(r=c.next()).done;v++)u(n,v,y?a(c,g,[r.value,v],!0):r.value);return n.length=v,n}})},694:function(t,e,n){"use strict";var i=n(9),r=n(23);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},7:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId=o);var h;if(a?(h=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),h)if(u.functional){u._injectStyles=h;var c=u.render;u.render=function(t,e){return h.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,h):[h]}return{exports:t,options:u}}e.a=i},70:function(t,e,n){var i=n(10);i(i.S+i.F,"Object",{assign:n(71)})},71:function(t,e,n){"use strict";var i=n(3),r=n(26),o=n(52),a=n(44),s=n(29),l=n(30),u=Object.assign;t.exports=!u||n(13)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,h=1,c=o.f,f=a.f;u>h;)for(var p,d=l(arguments[h++]),g=c?r(d).concat(c(d)):r(d),y=g.length,v=0;y>v;)p=g[v++],i&&!f.call(d,p)||(n[p]=d[p]);return n}:u},72:function(t,e,n){var i=n(4);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}}},73:function(t,e,n){var i=n(11),r=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},74:function(t,e,n){var i=n(1)("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}},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},88:function(t,e,n){"use strict";e.__esModule=!0;var i=n(65),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},9:function(t,e,n){var i=n(4),r=n(36),o=n(34),a=Object.defineProperty;e.f=n(3)?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}},92:function(t,e,n){t.exports={default:n(96),__esModule:!0}},944:function(t,e,n){"use strict";(function(t){function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,n,i):"string"==typeof e?h(t,e,n):p(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,n,i){return s(e),e<=0?r(t,e):void 0!==n?"string"==typeof i?r(t,e).fill(n,i):r(t,e).fill(n):r(t,e)}function u(t,e){if(s(e),t=r(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|y(e,n);t=r(t,i);var a=t.write(e,n);return a!==i&&(t=t.slice(0,a)),t}function c(t,e){var n=e.length<0?0:0|d(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function p(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return t=r(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?r(t,0):c(t,e);if("Buffer"===e.type&&Q(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(i)return G(t).length;e=(""+e).toLowerCase(),i=!0}}function v(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function m(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function _(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:x(t,e,n,i,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,i,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var h=-1;for(u=n;u<s;u++)if(o(t,u)===o(e,-1===h?0:u-h)){if(-1===h&&(h=u),u-h+1===l)return h*a}else-1!==h&&(u-=u-h),h=-1}else for(n+l>s&&(n=s-l),u=n;u>=0;u--){for(var c=!0,f=0;f<l;f++)if(o(t,u+f)!==o(e,f)){c=!1;break}if(c)return u}return-1}function w(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,i){return q(G(e,t.length-n),t,n,i)}function S(t,e,n,i){return q(Y(e),t,n,i)}function M(t,e,n,i){return S(t,e,n,i)}function T(t,e,n,i){return q(X(e),t,n,i)}function C(t,e,n,i){return q(j(e,t.length-n),t,n,i)}function I(t,e,n){return 0===e&&n===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,n))}function D(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,h,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],u=t[r+2],128==(192&l)&&128==(192&u)&&(c=(15&o)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],u=t[r+2],h=t[r+3],128==(192&l)&&128==(192&u)&&128==(192&h)&&(c=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&h)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return k(i)}function k(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=J));return n}function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function P(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function O(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=U(t[o]);return r}function L(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,n,i,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function N(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function B(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function z(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,r){return r||z(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,r){return r||z(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,i,52,8),n+8}function H(t){if(t=W(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function j(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}function X(t){return K.toByteArray(H(t))}function q(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function Z(t){return t!==t}var K=n(945),$=n(946),Q=n(947);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return l(null,t,e,n)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=o.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):v.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,i,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,s=n-e,l=Math.min(a,s),u=this.slice(i,r),h=t.slice(e,n),c=0;c<l;++c)if(u[c]!==h[c]){a=u[c],s=h[c];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},o.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i;if(o.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=o.prototype;else{var r=e-t;i=new o(r,void 0);for(var a=0;a<r;++a)i[a]=this[a+t]}return i},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},o.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),$.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),$.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){E(this,t,e,n,Math.pow(2,8*n)-1,0)}var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:G(new o(t,i).toString()),l=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(562))},945:function(t,e,n){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function r(t){var e=i(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function o(t,e,n){return 3*(e+n)/4-n}function a(t){var e,n,r=i(t),a=r[0],s=r[1],l=new f(o(t,a,s)),u=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=c[t.charCodeAt(n)]<<18|c[t.charCodeAt(n+1)]<<12|c[t.charCodeAt(n+2)]<<6|c[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=c[t.charCodeAt(n)]<<2|c[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=c[t.charCodeAt(n)]<<10|c[t.charCodeAt(n+1)]<<4|c[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function s(t){return h[t>>18&63]+h[t>>12&63]+h[t>>6&63]+h[63&t]}function l(t,e,n){for(var i,r=[],o=e;o<n;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(i));return r.join("")}function u(t){for(var e,n=t.length,i=n%3,r=[],o=0,a=n-i;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===i?(e=t[n-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),r.join("")}e.byteLength=r,e.toByteArray=a,e.fromByteArray=u;for(var h=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,g=p.length;d<g;++d)h[d]=p[d],c[p.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},946:function(t,e){e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=n?r-1:0,f=n?-1:1,p=t[e+c];for(c+=f,o=p&(1<<-h)-1,p>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=u}return(p?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,f=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?f/l:f*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[n+p]=255&s,p+=d,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+p]=255&a,p+=d,a/=256,u-=8);t[n+p-d]|=128*g}},947:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},948:function(t,e,n){function i(t){return n(r(t))}function r(t){var e=o[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var o={"./circle1.png":2015,"./circle2.png":2016,"./circle3.png":2017};i.keys=function(){return Object.keys(o)},i.resolve=r,t.exports=i,i.id=948},96:function(t,e,n){var i=n(2),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}}})});