@xysfe/actui 1.7.15 → 1.7.16

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/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/BScroll/index.js","@xysfe/actui/es/Picker/index.js","@xysfe/actui/es/assets/img/redCircle.png","@xysfe/actui/es/assets/img/purpleCircle.png","@xysfe/actui/es/assets/img/grayCircle.png","@xysfe/actui/es/assets/img/cps-orangeCircle.png","@xysfe/actui/es/assets/img/cps-redCircle.png","@xysfe/actui/es/assets/img/cps-grayCircle.png"],e):"object"==typeof exports?exports.GoldFinanceChart=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):t.GoldFinanceChart=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/BScroll/index.js"],t["@xysfe/actui/es/Picker/index.js"],t["@xysfe/actui/es/assets/img/redCircle.png"],t["@xysfe/actui/es/assets/img/purpleCircle.png"],t["@xysfe/actui/es/assets/img/grayCircle.png"],t["@xysfe/actui/es/assets/img/cps-orangeCircle.png"],t["@xysfe/actui/es/assets/img/cps-redCircle.png"],t["@xysfe/actui/es/assets/img/cps-grayCircle.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,r,o,a,s,l){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=1949)}({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(7),l=function(t,e,n){var u,h,c,p=t&l.F,d=t&l.G,f=t&l.S,g=t&l.P,y=t&l.B,m=t&l.W,v=d?r:r[e]||(r[e]={}),_=v.prototype,x=d?i:f?i[e]:(i[e]||{}).prototype;d&&(n=e);for(u in n)(h=!p&&x&&void 0!==x[u])&&s(v,u)||(c=h?x[u]:n[u],v[u]=d&&"function"!=typeof x[u]?n[u]:y&&h?o(c,i):m&&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&&((v.virtual||(v.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},101: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)}},11:function(t,e){t.exports={}},112:function(t,e,n){t.exports={default:n(118),__esModule:!0}},1165:function(t,e,n){"use strict";var i=n(162),r=n.n(i),o=n(112),a=n.n(o),s=n(216),l=n(1951),u=n(1958),h=n(1965),c=n(873),p=n.n(c);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},selectIndex:10,agePickerData:[]}},components:{benefit:u.a,GoldCostTable:h.a,goldPicker:p.a},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean},unit:{default:"岁",type:String},note:{default:"",type:String}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.e)(this.chartConfig)))return!1;for(var t=0,e=0,n=0,i=0;i<this.chartConfig.length;i++){var r=this.chartConfig[i];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(n+=1))}return 1===t&&e>=1&&1===n},findTablesIndex:function(t,e){if(Object(s.e)(e))for(var n=0;n<e.length;n++)if(Number(e[n])===Number(t))return n},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,n=void 0,i=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,n=a,i=o}),{firstParamColsType:e,secondParamColsType:n,operator:i}},getExpressionData:function(t,e,n){var i=this.analysisExpression(t),r=i.firstParamColsType,o=i.secondParamColsType,a=i.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(n.colsType.forEach(function(t,e){Number(t)===Number(r)&&(s=e),Number(t)===Number(o)&&(l=e)}),void 0!==s&&void 0!==l)return n.rows.forEach(function(t,e){var n=void 0;switch(a){case"+":n=t[s]+t[l];break;case"-":n=t[s]-t[l];break;case"/":n=t[s]/t[l];break;case"*":n=t[s]*t[l]}u.push(Number(n).toFixed(1))}),u}},initConfig:function(t,e){if(t&&e){for(var n=[],i=[],r=[],o=this.isCps?Object(s.b)(l.b):Object(s.b)(l.a),u=Object(s.b)(o.showType2),h=Object(s.b)(o.showType3),c=t,p=Array.isArray(c),d=0,c=p?c:a()(c);;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if(d=c.next(),d.done)break;f=d.value}var g=f,y=void 0,m=g.colsType,v=this.findTablesIndex(m,e.colsType);if(v){var _=Number(g.showType),x=g.name||l.c[m],w=g.titleName||g.name||l.c[m],b=this.getExpressionData(g.tipsExpression,t,e),S=g.lineStyle,C=g.boxConfig;if(!(2!==_||S&&C)){u.length||(u=Object(s.b)(o.showType2));var T=u.shift();S=T.lineStyle,C=T.boxConfig}if(3===_&&!S){h.length||(h=Object(s.b)(o.showType3));S=h.shift().lineStyle}r.push(x),y={showType:_,colsType:m,name:x,titleName:w,problemText:g.problemText,tableRowIndex:v,lineStyle:S,boxConfig:C,tipsText:g.tipsText},b&&(y.expressionData=b),n.push(y)}}var M=e.rows.map(function(t){for(var e=[],r=n,o=Array.isArray(r),s=0,r=o?r:a()(r);;){var l;if(o){if(s>=r.length)break;l=r[s++]}else{if(s=r.next(),s.done)break;l=s.value}var u=l;1===u.showType&&i.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return M.unshift(r),{chartConfig:n,dataSource:M,xAxisData:i}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){this.validateData()?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1166:function(t,e,n){"use strict";var i=n(162),r=n.n(i),o=n(1960),a=n(216);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},unit:{default:"岁",type:String},note:{default:"",type:String}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(t){this.dialog?this.dialog.setData("",t):this.dialog=this.$createGoldDialog({content:t,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var n=this.$refs.num[e],i=this.$refs.colorBlock[e];for(n.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(n).width)>parseInt(getComputedStyle(i).width)+30))break;var r=parseInt(getComputedStyle(n).fontSize);if(r<=12)break;n.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,n=t.dataSource,i=t.xAxisData;this.chartConfig=e,this.dataSource=n,this.xAxisData=i,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1167:function(t,e,n){"use strict";var i=n(162),r=n.n(i),o=n(112),a=n.n(o),s=n(216),l=n(1962);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},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},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=[],e=[],n=this.getXAxisName(),i=this.getTooltipName(),r=0;r<this.chartConfig.length;r++){var o=this.chartConfig[r];if([2,3].includes(o.showType)){var u={};Object(s.e)(o.lineStyle.areaStyleColor)?u.color=new l.graphic.LinearGradient(0,0,0,1,o.lineStyle.areaStyleColor):Object(s.i)(o.lineStyle.areaStyleColor)&&(u.color=o.lineStyle.areaStyleColor),t.push({name:o.name,type:"line",smooth:!0,symbol:o.lineStyle.legendImg?"image://"+o.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:o.name},lineStyle:{width:1,color:o.lineStyle.lineColor},emphasis:{lineStyle:{color:o.lineStyle.lineColor}},zlevel:o.lineStyle.zIndex,z:o.lineStyle.zIndex,areaStyle:u.color?u:void 0}),e.push({name:o.name,icon:o.lineStyle.legendImg?"image://"+o.lineStyle.legendImg:"circle"})}}var h={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:e,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,n,i,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,n=Array.isArray(e),r=0,e=n?e:a()(e);;){var o;if(n){if(r>=e.length)break;o=e[r++]}else{if(r=e.next(),r.done)break;o=r.value}var s=o;if(s.seriesName===i){var l=s.encode.y[0],u=s.value[l];return i+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:t};this.chart.setOption(h),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=l.init(this.$refs.chart,null,{renderer:"svg"}),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);t.chart.containPixel("grid",n)&&t.index!==Math.round(i[0])&&t.setIndex(Math.round(i[0]))})},watch:{dataSource:{handler:function(t){var e=this;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1168:function(t,e,n){"use strict";var i=n(164),r=n.n(i);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var n=document.querySelector(".cost-scroll");n&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new r.a(n,{})})}}}}},118:function(t,e,n){n(50),n(47),t.exports=n(119)},119:function(t,e,n){var i=n(4),r=n(52);t.exports=n(2).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},12:function(t,e,n){var i=n(30),r=n(15);t.exports=function(t){return i(r(t))}},120:function(t,e,n){e.f=n(1)},121:function(t,e,n){var i=n(0),r=n(2),o=n(18),a=n(120),s=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},139:function(t,e,n){var i=n(38),r=n(28).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},151:function(t,e,n){var i=n(24)("meta"),r=n(6),o=n(7),a=n(9).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(13)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[i].i},p=function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[i].w},d=function(t){return u&&f.NEED&&l(t)&&!o(t,i)&&h(t),t},f=t.exports={KEY:i,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},16:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},162:function(t,e,n){t.exports={default:n(183),__esModule:!0}},164:function(t,n){t.exports=e},165:function(t,e,n){var i=n(10),r=n(2),o=n(13);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},166:function(t,e,n){var i=n(14);t.exports=Array.isArray||function(t){return"Array"==i(t)}},17:function(t,e,n){var i=n(20);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},183:function(t,e,n){n(184),t.exports=n(2).Object.keys},184:function(t,e,n){var i=n(29),r=n(26);n(165)("keys",function(){return function(t){return r(i(t))}})},187:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(188),o=i(r),a=n(190),s=i(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},188:function(t,e,n){t.exports={default:n(189),__esModule:!0}},189:function(t,e,n){n(47),n(50),t.exports=n(120).f("iterator")},19:function(t,e,n){var i=n(27)("keys"),r=n(24);t.exports=function(t){return i[t]||(i[t]=r(t))}},190:function(t,e,n){t.exports={default:n(191),__esModule:!0}},191:function(t,e,n){n(192),n(71),n(196),n(197),t.exports=n(2).Symbol},192:function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(3),a=n(10),s=n(51),l=n(151).KEY,u=n(13),h=n(27),c=n(25),p=n(24),d=n(1),f=n(120),g=n(121),y=n(193),m=n(166),v=n(4),_=n(6),x=n(29),w=n(12),b=n(34),S=n(23),C=n(49),T=n(194),M=n(195),I=n(53),k=n(9),D=n(26),A=M.f,P=k.f,O=T.f,L=i.Symbol,R=i.JSON,E=R&&R.stringify,N=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=h("symbol-registry"),V=h("symbols"),H=h("op-symbols"),G=Object.prototype,W="function"==typeof L&&!!I.f,U=i.QObject,j=!U||!U.prototype||!U.prototype.findChild,Y=o&&u(function(){return 7!=C(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=A(G,e);i&&delete G[e],P(t,e,n),i&&t!==G&&P(G,e,i)}:P,X=function(t){var e=V[t]=C(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,n){return t===G&&Z(H,e,n),v(t),e=b(e,!0),v(n),r(V,e)?(n.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),Y(t,e,n)):P(t,e,n)},K=function(t,e){v(t);for(var n,i=y(e=w(e)),r=0,o=i.length;o>r;)Z(t,n=i[r++],e[n]);return t},$=function(t,e){return void 0===e?C(t):K(C(t),e)},Q=function(t){var e=z.call(this,t=b(t,!0));return!(this===G&&r(V,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==G||!r(V,e)||r(H,e)){var n=A(t,e);return!n||!r(V,e)||r(t,N)&&t[N][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=O(w(t)),i=[],o=0;n.length>o;)r(V,e=n[o++])||e==N||e==l||i.push(e);return i},et=function(t){for(var e,n=t===G,i=O(n?H:w(t)),o=[],a=0;i.length>a;)!r(V,e=i[a++])||n&&!r(G,e)||o.push(V[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(H,n),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),Y(this,t,S(1,n))};return o&&j&&Y(G,t,{configurable:!0,set:e}),X(t)},s(L.prototype,"toString",function(){return this._k}),M.f=J,k.f=Z,n(139).f=T.f=tt,n(48).f=Q,I.f=et,o&&!n(18)&&s(G,"propertyIsEnumerable",Q,!0),f.f=function(t){return X(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)d(nt[it++]);for(var rt=D(d.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){j=!0},useSimple:function(){j=!1}}),a(a.S+a.F*!W,"Object",{create:$,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),R&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,E.apply(R,i)}}),L.prototype[B]||n(5)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(i.JSON,"JSON",!0)},193:function(t,e,n){var i=n(26),r=n(53),o=n(48);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},194:function(t,e,n){var i=n(12),r=n(139).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},1949:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),r=n.n(i),o=n(1950);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=r()(o.a,t)},e.default=o.a},195:function(t,e,n){var i=n(48),r=n(23),o=n(12),a=n(34),s=n(7),l=n(37),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},1950:function(t,e,n){"use strict";var i=n(1165),r=n(1968),o=n(8),a=Object(o.a)(i.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},1951:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o});var i={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:n(1952),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:n(1953),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1954),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:n(1955),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:n(1956),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1957),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},1952:function(t,e){t.exports=i},1953:function(t,e){t.exports=r},1954:function(t,e){t.exports=o},1955:function(t,e){t.exports=a},1956:function(t,e){t.exports=s},1957:function(t,e){t.exports=l},1958:function(t,e,n){"use strict";function i(t){s||n(1959)}var r=n(1166),o=n(1964),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},1959:function(t,e){},196:function(t,e,n){n(121)("asyncIterator")},1960:function(t,e,n){"use strict";function i(t){s||n(1961)}var r=n(1167),o=n(1963),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},1961:function(t,e){},1962:function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(e){"use strict";function n(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");rf(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t){for(var e in df)t[e]&&(df[e]=t[e])}function r(){return Tf++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,n=yf.call(t);if("[object Array]"===n){if(!H(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=a(t[i])}else if(gf[n]){if(!H(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!ff[n]&&!H(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Cf&&(e[s]=a(t[s]));return e}function s(t,e,n){if(!T(e)||!T(t))return n?a(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==Cf&&(r=t[i],!T(o=e[i])||!T(r)||x(o)||x(r)||k(o)||k(r)||M(o)||M(r)||H(o)||H(r)?!n&&i in t||(t[i]=a(e[i])):s(r,o,n))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Cf&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=v(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;n<i;n++)if(t[n]===e)return n}return-1}function c(t,e){function n(){}var i,r=t.prototype;for(i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);(t.prototype.constructor=t).superClass=e}function p(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 d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===vf)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function g(t,e,n){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===wf)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function y(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function m(t,e,n){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===_f)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(xf.call(arguments)))}}function x(t){return Array.isArray?Array.isArray(t):"[object Array]"===yf.call(t)}function w(t){return"function"==typeof t}function b(t){return"string"==typeof t}function S(t){return"[object String]"===yf.call(t)}function C(t){return"number"==typeof t}function T(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function M(t){return!!ff[yf.call(t)]}function I(t){return!!gf[yf.call(t)]}function k(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function D(t){return null!=t.colorStops}function A(t){return null!=t.image}function P(t){return"[object RegExp]"===yf.call(t)}function O(t){return t!=t}function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function R(t,e){return null!=t?t:e}function E(t,e,n){return null!=t?t:null!=e?e:n}function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return xf.apply(t,e)}function B(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function z(t,e){if(!t)throw new Error(e)}function F(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[kf]=!0}function H(t){return t[kf]}function G(t){function e(t,e){n?i.set(t,e):i.set(e,t)}this.data={};var n=x(t),i=(this.data={},this);t instanceof G?t.each(e):t&&f(t,e)}function W(t){return new Df(t)}function U(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 j(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&l(t,e),t}function Y(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function X(t,e){return t.hasOwnProperty(e)}function q(){}function Z(t,e){return[t=null==t?0:t,e=null==e?0:e]}function K(t){return[t[0],t[1]]}function $(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Q(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function J(t){return Math.sqrt(tt(t))}function tt(t){return t[0]*t[0]+t[1]*t[1]}function et(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function nt(t,e){var n=J(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function it(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function rt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ot(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 at(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function st(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function lt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function ut(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function ht(t){t&&(this._$eventProcessor=t)}function ct(t,e,n,i,r,o){var a,s=i+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/zf),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*ct(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function pt(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=ct(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ct(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 dt(t,e,n,i,r){if(e.getBoundingClientRect&&af.domSupported&&!ft(e)){var o=e[Ff]||(e[Ff]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&o&&p===o[c]&&h===o[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?pt(s,a):pt(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;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}(e,o),o,r);if(e)return e(t,n,i),!0}return!1}function ft(t){return"CANVAS"===t.nodeName.toUpperCase()}function gt(t,e,n,i){return n=n||{},i?yt(t,e,n):Wf&&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):yt(t,e,n),n}function yt(t,e,n){if(af.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(ft(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(dt(Gf,t,r,e))return n.zrX=Gf[0],void(n.zrY=Gf[1])}n.zrX=n.zrY=0}function mt(t){return t||window.event}function vt(t,e,n){var i;return null==(e=mt(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&gt(t,i,e,n):(gt(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&Hf.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function _t(){this._track=[]}function xt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function wt(){Uf(this.event)}function bt(){var t=null!==Xf&&Xf.apply(this,arguments)||this;return t.handler=null,t}function St(t,e,n,i){var r=qf.call(this)||this;return r._hovered=new Kf(0,0),r.storage=t,r.painter=e,r.painterRoot=i,n=n||new Zf,r.proxy=null,r.setHandlerProxy(n),r._draggingMgr=new Nf(r),r}function Ct(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}function Tt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&0<=i(t[r],t[r-1]);)r++;return r-e}function Mt(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;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(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function It(t,e,n,i,r,o){var a=0,s=0,l=1;if(0<o(t,e[n+r])){for(s=i-r;l<s&&0<o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function kt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Dt(t,e){function n(n){var l=i[n],u=r[n],h=i[n+1],c=r[n+1],n=(r[n]=u+c,n===a-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),a--,kt(t[h],t,l,u,0,e));if(l+=n,0!=(u-=n)&&0!==(c=It(t[l+u-1],t,h,c,c-1,e)))if(u<=c){var p=l,d=u,n=h,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=n,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=s[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{for(var _,x,w,b=o;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=kt(t[m],s,y,d,0,e))){for(g=0;g<_;g++)t[v+g]=s[y+g];if(v+=_,y+=_,(d-=_)<=1){w=!0;break}}if(t[v++]=t[m++],0==--f){w=!0;break}if(0!==(x=It(s[y],t,m,f,0,e))){for(g=0;g<x;g++)t[v+g]=t[m+g];if(v+=x,m+=x,0==(f-=x)){w=!0;break}}if(t[v++]=s[y++],1==--d){w=!0;break}}while(b--,tg<=_||tg<=x);if(w)break;b<0&&(b=0),b+=2}if((o=b)<1&&(o=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,C=u,T=h,M=c,I=0;for(I=0;I<M;I++)s[I]=t[T+I];var k=S+C-1,D=M-1,A=T+M-1,P=0,O=0;if(t[A--]=t[k--],0==--C)for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I];else if(1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{for(var L=o;;){var R=0,E=0,N=!1;do{if(e(s[D],t[k])<0){if(t[A--]=t[k--],R++,(E=0)==--C){N=!0;break}}else if(t[A--]=s[D--],E++,R=0,1==--M){N=!0;break}}while((R|E)<L);if(N)break;do{if(0!=(R=C-kt(s[D],t,S,C,C-1,e))){for(C-=R,O=1+(A-=R),P=1+(k-=R),I=R-1;0<=I;I--)t[O+I]=t[P+I];if(0===C){N=!0;break}}if(t[A--]=s[D--],1==--M){N=!0;break}if(0!=(E=M-It(t[k],s,0,M,M-1,e))){for(M-=E,O=1+(A-=E),P=1+(D-=E),I=0;I<E;I++)t[O+I]=s[P+I];if(M<=1){N=!0;break}}if(t[A--]=t[k--],0==--C){N=!0;break}}while(L--,tg<=R||tg<=E);if(N)break;L<0&&(L=0),L+=2}if((o=L)<1&&(o=1),1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{if(0===M)throw new Error;for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I]}}}}var i,r,o=tg,a=0,s=(t.length,[]);return i=[],r=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&r[t-1]<=r[t]+r[t+1]||2<=t&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;n(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&r[t-1]<r[t+1]&&t--,n(t)}},pushRun:function(t,e){i[a]=t,r[a]=e,a+=1}}}function At(t,e,n,i){var r=(i=i||t.length)-(n=n||0);if(!(r<2)){var o=0;if(r<Jf)Mt(t,n,i,n+(o=Tt(t,n,i,e)),e);else{var a,s=Dt(t,e),l=function(t){for(var e=0;Jf<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((o=Tt(t,n,i,e))<l&&(Mt(t,n,n+(a=l<(a=r)?l:r),n+o,e),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!=(r-=o));s.forceMergeRuns()}}}function Pt(){ig||(ig=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ot(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Lt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ot}function Rt(t){return-ug<t&&t<ug}function Et(t){return ug<t||t<-ug}function Nt(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 Bt(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function zt(t,e,n,i,r,o){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-r,r=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return Rt(r)&&Rt(l)?Rt(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):Rt(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-n/i+t)&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s)):0<e?(e=r*n+1.5*i*(-l-(t=lg(e))),0<=(a=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-sg(-t,cg):sg(t,cg))+(e=e<0?-sg(-e,cg):sg(e,cg))))/(3*i))&&a<=1&&(o[u++]=a)):(t=(2*r*n-3*i*l)/(2*lg(r*r*r)),e=Math.acos(t)/3,a=(-n-2*(l=lg(r))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+hg*Math.sin(e)))/(3*i),r=(-n+l*(t-hg*Math.sin(e)))/(3*i),0<=a&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s),0<=r&&r<=1&&(o[u++]=r)),u}function Ft(t,e,n,i,r){var o,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Rt(i)?Et(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):Rt(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=lg(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Vt(t,e,n,i,r,o){var a=(e-t)*r+t,e=(n-e)*r+e,n=(i-n)*r+n,s=(e-a)*r+a,e=(n-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=n,o[7]=i}function Ht(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;pg[0]=l,pg[1]=u;for(var m=0;m<1;m+=.05)dg[0]=Nt(t,n,r,a,m),dg[1]=Nt(e,i,o,s,m),(d=Lf(pg,dg))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,dg[0]=Nt(t,n,r,a,f=c-g),dg[1]=Nt(e,i,o,s,f),d=Lf(dg,pg),0<=f&&d<y?(c=f,y=d):(fg[0]=Nt(t,n,r,a,p),fg[1]=Nt(e,i,o,s,p),f=Lf(fg,pg),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Nt(t,n,r,a,c),h[1]=Nt(e,i,o,s,c)),lg(y)}function Gt(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Wt(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Ut(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function jt(t,e,n,i,r){var o=(e-t)*i+t,e=(n-e)*i+e,i=(e-o)*i+o;r[0]=t,r[1]=o,r[2]=i,r[3]=i,r[4]=e,r[5]=n}function Yt(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;pg[0]=a,pg[1]=s;for(var p=0;p<1;p+=.05)dg[0]=Gt(t,n,r,p),dg[1]=Gt(e,i,o,p),(y=Lf(pg,dg))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(dg[0]=Gt(t,n,r,f),dg[1]=Gt(e,i,o,f),Lf(dg,pg));0<=f&&y<c?(u=f,c=y):(fg[0]=Gt(t,n,r,g),fg[1]=Gt(e,i,o,g),f=Lf(fg,pg),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=Gt(t,n,r,u),l[1]=Gt(e,i,o,u)),lg(c)}function Xt(t){if(t=t&&gg.exec(t)){var e,t=t[1].split(","),n=+F(t[0]),i=+F(t[1]),r=+F(t[2]),o=+F(t[3]);if(!isNaN(n+i+r+o))return e=[],function(t){return t<=0?0:1<=t?1:zt(0,n,r,1,t,e)&&Nt(0,i,o,1,e[0])}}}function qt(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||q,this.ondestroy=t.ondestroy||q,this.onrestart=t.onrestart||q,t.easing&&this.setEasing(t.easing)}function Zt(){this._len=0}function Kt(t){this._list=new vg,this._maxSize=10,this._map={},this._maxSize=t}function $t(t){return(t=Math.round(t))<0?0:255<t?255:t}function Qt(t){return t<0?0:1<t?1:t}function Jt(t){return $t(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function te(t){return Qt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function ee(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ne(t,e,n){return t+(e-t)*n}function ie(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function re(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function oe(t,e){bg&&re(bg,e),bg=wg.put(t,bg||e.slice())}function ae(t,e){if(t){e=e||[];var n=wg.get(t);if(n)return re(e,n);if((n=(t+="").replace(/ /g,"").toLowerCase())in xg)return re(e,xg[n]),oe(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(ie(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),oe(t,e),e):void ie(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(ie(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),oe(t,e),e):void ie(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?ie(e,+a[0],+a[1],+a[2],1):ie(e,0,0,0,1);s=te(a.pop());case"rgb":return 3!==a.length?void ie(e,0,0,0,1):(ie(e,Jt(a[0]),Jt(a[1]),Jt(a[2]),s),oe(t,e),e);case"hsla":return 4!==a.length?void ie(e,0,0,0,1):(a[3]=te(a[3]),se(a,e),oe(t,e),e);case"hsl":return 3!==a.length?void ie(e,0,0,0,1):(se(a,e),oe(t,e),e);default:return}}ie(e,0,0,0,1)}}function se(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=te(t[1]),r=te(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return ie(e=e||[],$t(255*ee(r,i,n+1/3)),$t(255*ee(r,i,n)),$t(255*ee(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function le(t,e){var n=ae(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return ce(n,4===n.length?"rgba":"rgb")}}function ue(t,e,n){var i,r,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,i=Math.floor(t),o=Math.ceil(t),r=e[i],e=e[o],n[0]=$t(ne(r[0],e[0],o=t-i)),n[1]=$t(ne(r[1],e[1],o)),n[2]=$t(ne(r[2],e[2],o)),n[3]=Qt(ne(r[3],e[3],o)),n}function he(t,e,n){var i,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,i=Math.floor(t),r=Math.ceil(t),a=ae(e[i]),e=ae(e[r]),a=ce([$t(ne(a[0],e[0],o=t-i)),$t(ne(a[1],e[1],o)),$t(ne(a[2],e[2],o)),Qt(ne(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}function ce(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function pe(t,e){return t=ae(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function de(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=ae(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function fe(t){return t<1e-4&&-1e-4<t}function ge(t){return Cg(1e3*t)/1e3}function ye(t){return Cg(1e4*t)/1e4}function me(t){return t&&!!t.image}function ve(t){return"linear"===t.type}function _e(t){return"radial"===t.type}function xe(t){return"url(#"+t+")"}function we(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function be(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Af,r=R(t.scaleX,1),o=R(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||n)&&s.push("translate("+e+"px,"+n+"px)"),i&&s.push("rotate("+i+")"),1===r&&1===o||s.push("scale("+r+","+o+")"),(a||t)&&s.push("skew("+Cg(a*Af)+"deg, "+Cg(t*Af)+"deg)"),s.join(" ")}function Se(t,e,n){return(e-t)*n+t}function Ce(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Se(e[o],n[o],i);return t}function Te(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Me(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ie(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ig.call(t[i]));return n}return Ig.call(t)}return t}function ke(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 De(t){return 4===t||5===t}function Ae(t){return 1===t||2===t}function Pe(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function Oe(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?o("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function Le(){return(new Date).getTime()}function Re(t){var e=Pg.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}function Ee(t){return"pen"===(t=t.pointerType)||"touch"===t}function Ne(t){t&&(t.zrByTouch=!0)}function Be(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 ze(t,e){var n=e.domHandlers;af.pointerEventsSupported?f(Ng.pointer,function(i){Ve(e,i,function(e){n[i].call(t,e)})}):(af.touchEventsSupported&&f(Ng.touch,function(i){Ve(e,i,function(r){var o;n[i].call(t,r),(o=e).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)})}),f(Ng.mouse,function(i){Ve(e,i,function(r){r=mt(r),e.touching||n[i].call(t,r)})}))}function Fe(t,e){function n(n){Ve(e,n,function(i){var r;i=mt(i),Be(t,i.target)||(r=i,i=vt(t.dom,new Vg(t,r),!0),e.domHandlers[n].call(t,i))},{capture:!0})}af.pointerEventsSupported?f(zg,n):af.touchEventsSupported||f(Bg,n)}function Ve(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function He(t){var e,n,i,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,r=a[i=e],o=t.listenerOpts[e],n.removeEventListener(i,r,o));t.mounted={}}function Ge(t,e){var n=Lg.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Wg(t,Hg),Eg&&(n._globalHandlerScope=new Wg(document,Gg)),ze(n,n._localHandlerScope),n}function We(){return[1,0,0,1,0,0]}function Ue(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function je(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 Ye(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],n=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]=n,t}function Xe(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 qe(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=r*n+s*l,t[3]=-r*l+n*s,t[4]=n*o+l*e,t[5]=n*e-l*o,t}function Ze(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Ke(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],e=e[5],s=n*a-o*i;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*r)*s,t[5]=(o*r-n*e)*s,t):null}function $e(t){return 5e-5<t||t<-5e-5}function Qe(){}function Je(t,e){for(var n=0;n<ey.length;n++){var i=ey[n];t[i]=e[i]}}function tn(t,e){this.x=t||0,this.y=e||0}function en(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function nn(t,e){var n=dy[e=e||cf],i=(n=n||(dy[e]=new _g(500))).get(t);return null==i&&(i=df.measureText(t,e).width,n.put(t,i)),i}function rn(t,e,n,i){return t=nn(t,e),e=ln(e),n=an(0,t,n),i=sn(0,e,i),new py(n,i,t,e)}function on(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return rn(r[0],e,n,i);for(var o=new py(0,0,0,0),a=0;a<r.length;a++){var s=rn(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function an(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function sn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ln(t){return nn("国",t)}function un(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function hn(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+=un(i[0],n.width),u+=un(i[1],n.height),c=h=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||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function cn(t){this.id=Tf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function pn(t,e,n,i){function r(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(ny,t,{get:function(){var t;return this[e]||(t=this[e]=[],r(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,r(this,t)}})}function dn(t,e,n,i,r){function o(){u=!0,--l<=0&&(u?c&&c():p&&p())}function a(){--l<=0&&(u?c&&c():p&&p())}var s=[],l=(function t(e,n,i,r,o,a,s,l){for(var u=v(r),c=o.duration,p=o.delay,f=o.additive,g=o.setToFinal,y=!T(a),_=e.animators,x=[],w=0;w<u.length;w++){var b=u[w],S=r[b];null!=S&&null!=i[b]&&(y||a[b])?!T(S)||d(S)||D(S)?x.push(b):n?l||(i[b]=S,e.updateDuringAnimation(n)):t(e,b,i[b],S,o,a&&a[b],s,l):l||(i[b]=S,e.updateDuringAnimation(n),x.push(b))}var C=x.length;if(!f&&C)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===n&&k.stopTracks(x)&&(M=h(_,k),_.splice(M,1));if(o.force||(x=m(x,function(t){return!yn(r[t],i[t])}),C=x.length),0<C||o.force&&!s.length){var k,A=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(A={}),I=0;I<C;I++)b=x[I],P[b]=i[b],g?A[b]=r[b]:i[b]=r[b];else if(g)for(O={},I=0;I<C;I++)b=x[I],O[b]=Ie(i[b]),gn(i,r,b);(k=new Ag(i,!1,!1,f?m(_,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(k.scope=o.scope),g&&A&&k.whenWithKeys(0,A,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:r,x).delay(p||0),e.addAnimator(k,n),s.push(k)}}(t,"",t,e,n=n||{},i,s,r),s.length),u=!1,c=n.done,p=n.aborted;l||c&&c(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(o),g.aborted(a),n.force&&g.duration(n.duration),g.start(n.easing)}return s}function fn(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function gn(t,e,n){if(d(e[n]))if(d(t[n])||(t[n]=[]),I(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),fn(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(d(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?fn(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else fn(o,r,a);o.length=r.length}else t[n]=e[n]}function yn(t,e){return t===e||d(t)&&d(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}function mn(t){var e=xy.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function vn(t,e,n){var i=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new rg),o=n.renderer||"canvas",o=(by[o]||(o=v(by)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new by[o](e,r,n,t)),e=n.ssr||o.ssrOnly,t=(this.storage=r,this.painter=o,af.node||af.worker||e?null:new Ug(o.getViewportRoot(),o.root));this.handler=new Qf(r,o,t,o.root),this.animation=new Rg({stage:{update:e?null:function(){return i._flush(!0)}}}),e||this.animation.start()}function _n(t,e){return t=new Ty(Tf++,t,e),Sy[t.id]=t}function xn(t,e){by[t]=e}function wn(t,e,n,i){var r=e[0],e=e[1],o=n[0],n=n[1],a=e-r,s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(i)if(0<a){if(t<=r)return o;if(e<=t)return n}else{if(r<=t)return o;if(t<=e)return n}else{if(t===r)return o;if(t===e)return n}return(t-r)/a*s+o}function bn(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 b(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Sn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Iy),t=(+t).toFixed(e),n?t:+t}function Cn(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Tn(t)}function Tn(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Mn(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function In(t){var e=2*Math.PI;return(t%e+e)%e}function kn(t){return-1e-4<t&&t<1e-4}function Dn(t){var e,n;return t instanceof Date?t:b(t)?(e=ky.exec(t))?e[8]?(n=+e[4]||0,"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))):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):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function An(t){return Math.pow(10,Pn(t))}function Pn(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function On(t,e){var n=Pn(t),i=Math.pow(10,n),r=t/i,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Ln(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Rn(t){return!isNaN(Ln(t))}function En(){return Math.round(9*Math.random())}function Nn(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function Bn(t){throw new Error(t)}function zn(t,e,n){return(e-t)*n+t}function Fn(t){return t instanceof Array?t:null==t?[]:[t]}function Vn(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;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Hn(t){return!T(t)||x(t)||t instanceof Date?t:t.value}function Gn(t,e,n){var i,r,o,a,s,l,u,h,c,p,d="normalMerge"===n,g="replaceMerge"===n,y="replaceAll"===n,m=(t=t||[],e=(e||[]).slice(),W()),n=(f(e,function(t,n){T(t)||(e[n]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)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||Xn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,m,n));return(d||g)&&(i=n,r=t,o=m,f(a=e,function(t,e){var n,s,l;t&&null!=t.id&&(n=Un(t.id),null!=(s=o.get(n)))&&(z(!(l=i[s]).newOption,'Duplicated option on id "'+n+'".'),l.newOption=t,l.existing=r[s],a[e]=null)})),d&&(s=n,f(l=e,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!Xn(t)&&!Xn(i)&&Wn("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),d||g?(h=n,c=g,f(e,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||Xn(e.existing)||e.existing&&null!=t.id&&!Wn("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):y&&(u=n,f(e,function(t){u.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=n,p=W(),f(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),f(t,function(t){var e=t.newOption;z(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),f(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(T(i)){if(r.name=null!=i.name?Un(i.name):n?n.name:Dy+e,n)r.id=Un(n.id);else if(null!=i.id)r.id=Un(i.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.id,t)}}),n}function Wn(t,e,n){return e=jn(e[t],null),n=jn(n[t],null),null!=e&&null!=n&&e===n}function Un(t){return jn(t,"")}function jn(t,e){return null==t?e:b(t)?t:C(t)||S(t)?t+"":e}function Yn(t){return!(!(t=t.name)||!t.indexOf(Dy))}function Xn(t){return t&&null!=t.id&&0===Un(t.id).indexOf("\0_ec_\0")}function qn(t,e,n){f(t,function(t){var i,r,o=t.newOption;T(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,o=o,t=t.existing,r=n,o.type||(t?t.subType:r.determineSubType(i,o))))})}function Zn(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?x(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?x(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Kn(){var t="__ec_inner_"+Py++;return function(e){return e[t]||(e[t]={})}}function $n(t,e,n){var e=Qn(e,n),i=e.mainTypeSpecified,r=e.queryOptionMap,o=e.others,a=n?n.defaultMainType:null;return!i&&a&&r.set(a,{}),r.each(function(e,i){e=Jn(t,i,e,{useDefault:a===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),o[i+"Models"]=e.models,o[i+"Model"]=e.models[0]}),o}function Qn(t,e){var n=b(t)?((n={})[t+"Index"]=0,n):t,i=W(),r={},o=!1;return f(n,function(t,n){var a;"dataIndex"===n||"dataIndexInside"===n?r[n]=t:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||e&&e.includeMainTypes&&h(e.includeMainTypes,a)<0||(o=o||!!a,(i.get(a)||i.set(a,{}))[n]=t))}),{mainTypeSpecified:o,queryOptionMap:i,others:r}}function Jn(t,e,n,i){i=i||Oy;var r=n.index,o=n.id,n=n.name,a={models:null,specified:null!=r||null!=o||null!=n};return a.specified?"none"===r||!1===r?(z(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===r&&(z(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=n=null),a.models=t.queryComponents({mainType:e,index:r,id:o,name:n})):(r=void 0,a.models=i.useDefault&&(r=t.getComponent(e))?[r]:[]),a}function ti(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ei(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(C(i))return Sn(p=zn(n||0,i,r),o?Math.max(Cn(n||0),Cn(i)):e);if(b(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(r<1&&s?s:l)[h]:(p=zn(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=Sn(p,o?Math.max(Cn(d),Cn(c)):e))}return a}function ni(t){var e={main:"",sub:""};return t&&(t=t.split(Ly),e.main=t[0]||"",e.sub=t[1]||""),e}function ii(t){(t.$constructor=t).extend=function(t){function e(){return r.apply(this,arguments)||this}var i,r,o,a=this;return w(o=a)&&/^class\s/.test(Function.prototype.toString.call(o))?(n(e,r=a),i=e):c(i=function(){(t.$constructor||a).apply(this,arguments)},this),l(i.prototype,t),i[Ey]=!0,i.extend=this.extend,i.superCall=oi,i.superApply=ai,i.superClass=a,i}}function ri(t,e){t.extend=e.extend}function oi(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 ai(t,e,n){return this.superClass.prototype[e].apply(t,n)}function si(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;return i&&(z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),(n=ni(t.prototype.type=i)).sub?n.sub!==Ry&&((function(t){var n=e[t.main];return n&&n[Ry]||(n=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Ry]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var t=ni(t),n=[],t=e[t.main];return t&&t[Ry]?f(t,function(t,e){e!==Ry&&n.push(t)}):n.push(t),n},t.hasClass=function(t){return t=ni(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){return t=ni(t),(t=e[t.main])&&t[Ry]}}function li(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];i&&0<=h(i,s)||r&&h(r,s)<0||null!=(s=n.getShallow(s,e))&&(o[t[a][0]]=s)}return o}}function ui(){}function hi(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=Fy.get(t))?pi(e=i.image)||i.pending.push(n):((r=df.loadImage(t,ci,ci)).__zrImageSrc=t,Fy.put(t,r.__cachedImgObj={image:r,pending:[n]}))),e):t:e}function ci(){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 pi(t){return t&&t.width&&t.height}function di(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=fi(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=gi(o[a],r);return o.join("\n")}function fi(t,e,n,i){for(var r=l({},i=i||{}),o=(r.font=e,n=R(n,"..."),r.maxIterations=R(i.maxIterations,2),r.minChar=R(i.minChar,0)),a=(r.cnCharWidth=nn("国",e),r.ascCharWidth=nn("a",e)),s=(r.placeholder=R(i.placeholder,""),t=Math.max(0,t-1)),u=0;u<o&&a<=s;u++)s-=a;return i=nn(n,e),s<i&&(n="",i=0),s=t-i,r.ellipsis=n,r.ellipsisWidth=i,r.contentWidth=s,r.containerWidth=t,r}function gi(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=nn(t,i);if(!(o<=n)){for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(t,r,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*r/o):0,o=nn(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function yi(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,d+=n,f=Math.max(f,e)}var i=new Wy;if(null!=t&&(t+=""),t){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=Vy.lastIndex=0;null!=(r=Vy.exec(t));){var h=r.index;u<h&&mi(i,t.substring(u,h),e,l),mi(i,r[2],e,l,r[1]),u=Vy.lastIndex}u<t.length&&mi(i,t.substring(u,t.length),e,l);var c,p=[],d=0,f=0,g=e.padding,y="truncate"===s,m="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var _=i.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(A=_.tokens[b]).styleName&&e.rich[A.styleName]||{},C=A.textPadding=S.padding,T=C?C[1]+C[3]:0,M=A.font=S.font||e.font,I=(A.contentHeight=ln(M),R(S.height,A.contentHeight));if(A.innerHeight=I,C&&(I+=C[0]+C[2]),A.height=I,A.lineHeight=E(S.lineHeight,e.lineHeight,I),A.align=S&&S.align||e.align,A.verticalAlign=S&&S.verticalAlign||"middle",m&&null!=a&&d+A.lineHeight>a){0<b?(_.tokens=_.tokens.slice(0,b),n(_,w,x),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var k,C=S.width,D=null==C||"auto"===C;"string"==typeof C&&"%"===C.charAt(C.length-1)?(A.percentWidth=C,p.push(A),A.contentWidth=nn(A.text,M)):(D&&(C=(C=S.backgroundColor)&&C.image)&&(k=void 0,pi(C="string"==typeof(c=C)?(k=Fy.get(c))&&k.image:c))&&(A.width=Math.max(A.width,C.width*I/C.height)),null!=(k=y&&null!=o?o-w:null)&&k<A.width?!D||k<T?(A.text="",A.width=A.contentWidth=0):(A.text=di(A.text,k-T,M,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=nn(A.text,M)):A.contentWidth=nn(A.text,M)),A.width+=T,w+=A.width,S&&(x=Math.max(x,A.lineHeight))}n(_,w,x)}for(i.outerWidth=i.width=R(o,f),i.outerHeight=i.height=R(a,d),i.contentHeight=d,i.contentWidth=f,g&&(i.outerWidth+=g[1]+g[3],i.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var A,P=(A=p[v]).percentWidth;A.width=parseInt(P,10)/100*i.width}}return i}function mi(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;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=un(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=t):(t=vi(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var d,f,g=o[p],y=new Hy;y.styleName=r,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:nn(g,h),p||c?u.push(new Gy([y])):1===(f=(d=(u[u.length-1]||(u[0]=new Gy)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function vi(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=nn(g,e),f=!(i||(f=void 0,!(33<=(f=(f=o=g).charCodeAt(0))&&f<=383)||Uy[o])),(a.length?n<c+d:n<r+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}function _i(t){return Cy.call(this,t)||this}function xi(t,e,n,i,r,o){r[0]=Qy(t,n),r[1]=Qy(e,i),o[0]=Jy(t,n),o[1]=Jy(e,i)}function wi(t){return Math.round(t/xm*1e8)/1e8%2*xm}function bi(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=[])}function Si(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&i+r<a||a<e-r&&a<i-r||t+r<o&&n+r<o||o<t-r&&o<n-r)&&(t===n?Math.abs(o-t)<=r/2:(o=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n))*o/(s*s+1)<=r/2*r/2)}function Ci(t){return(t%=Im)<0&&(t+=Im),t}function Ti(t,e,n,i,r,o){return e<o&&i<o||o<e&&o<i||i===e?0:(n=(o=(o-e)/(i-e))*(n-t)+t)===r?1/0:r<n?1!=o&&0!=o?i<e?1:-1:i<e?.5:-.5:0}function Mi(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h=zt(e,i,o,s,u,Om);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=Om[y],v=0===m||1===m?.5:1;Nt(t,n,r,a,m)<l||(d<0&&(d=Ft(e,i,o,s,Lm),Lm[1]<Lm[0]&&1<d&&(c=void 0,c=Lm[0],Lm[0]=Lm[1],Lm[1]=c),f=Nt(e,i,o,s,Lm[0]),1<d)&&(g=Nt(e,i,o,s,Lm[1])),2===d?m<Lm[0]?p+=f<e?v:-v:m<Lm[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Lm[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Ii(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=Om,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,Rt(h)?Et(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Rt(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=lg(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=Ut(e,i,o);if(0<=g&&g<=1){for(var y=0,m=Gt(e,i,o,g),v=0;v<f;v++){var _=0===Om[v]||1===Om[v]?.5:1;Gt(t,n,r,Om[v])<a||(Om[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===Om[0]||1===Om[0]?.5:1,Gt(t,n,r,Om[0])<a?0:o<e?_:-_}function ki(t,e,n,i,r){for(var o,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Dm.M&&1<d&&(n||(l+=Ti(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case Dm.M:u=c=a[d++],h=p=a[d++];break;case Dm.L:if(n){if(Si(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Ti(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Dm.C:if(n){if(function(t,e,n,i,r,o,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&o+l<h&&s+l<h||h<e-l&&h<i-l&&h<o-l&&h<s-l||t+l<u&&n+l<u&&r+l<u&&a+l<u||u<t-l&&u<n-l&&u<r-l&&u<a-l)&&Ht(t,e,n,i,r,o,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Mi(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Dm.Q:if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&o+a<l||l<e-a&&l<i-a&&l<o-a||t+a<s&&n+a<s&&r+a<s||s<t-a&&s<n-a&&s<r-a)&&Yt(t,e,n,i,r,o,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ii(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Dm.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++],b=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,C=Math.sin(x)*_+m,T=(g?(c=S,p=C):l+=Ti(u,h,S,C,i,r),(i-y)*_/v+y);if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-r)%km<1e-4||((r=o?(e=i,i=Ci(r),Ci(e)):(i=Ci(i),Ci(r)))<i&&(r+=km),(t=Math.atan2(l,s))<0&&(t+=km),i<=t&&t<=r)||i<=t+km&&t+km<=r)}(y,m,_,x,x+w,b,e,T,r))return!0}else l+=function(t,e,n,i,r,o,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(Om[0]=-e,Om[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(Am-1e-4<=n)return r=Am,h=o?1:-1,a>=Om[i=0]+t&&a<=Om[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=Am,r+=Am);for(var l=0,u=0;u<2;u++){var h,c=Om[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?Am+c:c)&&c<=r||i<=c+Am&&c+Am<=r)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case Dm.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],C=p+a[d++],n){if(Si(c,p,S,p,e,i,r)||Si(S,p,S,C,e,i,r)||Si(S,C,c,C,e,i,r)||Si(c,C,c,p,e,i,r))return!0}else l=(l+=Ti(S,p,S,C,i,r))+Ti(c,C,c,p,i,r);break;case Dm.Z:if(n){if(Si(u,h,c,p,e,i,r))return!0}else l+=Ti(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<Pm)||(l+=Ti(u,h,c,p,i,r)||0),0!==l}function Di(t){return Cm.call(this,t)||this}function Ai(){return null!==Tm&&Tm.apply(this,arguments)||this}function Pi(){return null!==Gm&&Gm.apply(this,arguments)||this}function Oi(t,e,n){var i,r,o;if(e)return i=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=i,t.x2=r,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(jm(2*i)===jm(2*r)&&(t.x1=t.x2=Ri(i,n,!0)),jm(2*o)===jm(2*e))&&(t.y1=t.y2=Ri(o,n,!0)),t}function Li(t,e,n){var i,r,o;if(e)return i=e.x,r=e.y,o=e.width,e=e.height,t.x=i,t.y=r,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=Ri(i,n,!0),t.y=Ri(r,n,!0),t.width=Math.max(Ri(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(Ri(r+e,n,!1)-t.y,0===e?0:1)),t}function Ri(t,e,n){var i;return e?((i=jm(2*t))+jm(e))%2==0?i/2:(i+(n?1:-1))/2:t}function Ei(t){return Um.call(this,t)||this}function Ni(t){var e=Zm.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Km,e.attr(t),e}function Bi(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?uf+"px":t+"px":t}function zi(t,e){for(var n=0;n<ev.length;n++){var i=ev[n],r=e[i];null!=r&&(t[i]=r)}}function Fi(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Vi(t){var e;t&&(t.font=Qm.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Jm[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||tv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Hi(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Gi(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Wi(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ui(t){return t=t.text,null!=t&&(t+=""),t}function ji(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Yi(t){return null!=t&&"none"!==t}function Xi(t){var e;return b(t)?((e=mv.get(t))||(e=le(t,-.1),mv.put(t,e)),e):D(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:le(t.color,-.1)}}),e):t}function qi(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Zi(t){qi(t,"emphasis",uv)}function Ki(t){t.hoverState===uv&&qi(t,"normal",sv)}function $i(t){qi(t,"blur",lv)}function Qi(t){t.hoverState===lv&&qi(t,"normal",sv)}function Ji(t){t.selected=!0}function tr(t){t.selected=!1}function er(t,e,n){e(t,n)}function nr(t,e,n){er(t,e,n),t.isGroup&&t.traverse(function(t){er(t,e,n)})}function ir(t,e){switch(e){case"emphasis":t.hoverState=uv;break;case"normal":t.hoverState=sv;break;case"blur":t.hoverState=lv;break;case"select":t.selected=!0}}function rr(t,e,n){var i=0<=h(t.currentStates,e),r=t.style.opacity,t=i?null:function(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(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}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=l({},n),e=l({opacity:i?r:.1*t.opacity},e),n.style=e),n}function or(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=h(e,"select"),a=!1,n instanceof Bm&&(r=ov(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,Yi(o)||Yi(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=l({},i),(r=l({},r)).fill=o):!Yi(r.fill)&&Yi(o)?(a=!0,i=l({},i),(r=l({},r)).fill=Xi(o)):!Yi(r.stroke)&&Yi(e)&&(a||(i=l({},i),r=l({},r)),r.stroke=Xi(e)),i.style=r),i&&null==i.z2&&(a||(i=l({},i)),o=n.z2EmphasisLift,i.z2=n.z2+(null!=o?o:10)),i;if("blur"===t)return rr(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=l({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function ar(t){t.stateProxy=or;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=or),t&&(t.stateProxy=or)}function sr(t,e){fr(t,e)||t.__highByOuter||nr(t,Zi)}function lr(t,e){fr(t,e)||t.__highByOuter||nr(t,Ki)}function ur(t,e){t.__highByOuter|=1<<(e||0),nr(t,Zi)}function hr(t,e){(t.__highByOuter&=~(1<<(e||0)))||nr(t,Ki)}function cr(t){nr(t,Qi)}function pr(t){nr(t,Ji)}function dr(t){nr(t,tr)}function fr(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gr(t){t.getModel().eachComponent(function(e,n){var i=av(n);i.isBlured&&("series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n)).group.traverse(function(t){Qi(t)}),i.isBlured=!1})}function yr(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&cr(i)}}var o,a,s,l=i.getModel();n=n||"coordinateSystem",null!=t&&e&&"none"!==e&&(o=l.getSeriesByIndex(t),(a=o.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=o===t,u=t.coordinateSystem,u=(u=u&&u.master?u.master:u)&&a?u===a:l;if(!("series"===n&&!l||"coordinateSystem"===n&&!u||"series"===e&&l)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){$i(t)}),d(e))r(t.getData(),e);else if(T(e))for(var h=v(e),c=0;c<h.length;c++)r(t.getData(h[c]),e[h[c]]);s.push(t),av(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.blurSeries&&t.blurSeries(s,l)}))}function mr(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(av(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){$i(t)})}function vr(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;if(!(t=i.getModel().getComponent(t,e)))return r;if(!(e=i.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===nv(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function _r(t){f(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){(t.isSelected(n,i)?pr:dr)(e)})})}function xr(t,e,n){Sr(t,!0),nr(t,ar),t=nv(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function wr(t,e,n,i){i?Sr(t,!1):xr(t,e,n)}function br(t,e,n,i){n=n||"itemStyle";for(var r=0;r<vv.length;r++){var o=vv[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[_v[n]]()}}function Sr(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Cr(t){return!(!t||!t.__highDownDispatcher)}function Tr(t){return(t=t.type)===fv||t===gv||t===yv}function Mr(t){return(t=t.type)===pv||t===dv}function Ir(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function kr(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ir(t)*Ir(e))}function Dr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(kr(t,e))}function Ar(t,e,n,i,r,o,a,s,l,u,h){var l=l*(Iv/180),c=Mv(l)*(t-n)/2+Tv(l)*(e-i)/2,p=-1*Tv(l)*(t-n)/2+Mv(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Cv(d),s*=Cv(d)),(r===o?-1:1)*Cv((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+Mv(l)*r-Tv(l)*d,n=(e+i)/2+Tv(l)*r+Mv(l)*d,e=Dr([1,0],[(c-r)/a,(p-d)/s]),i=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Dr(i,c);kr(i,c)<=-1&&(r=Iv),(r=1<=kr(i,c)?0:r)<0&&(p=Math.round(r/Iv*1e6)/1e6,r=2*Iv+p%2*Iv),h.addData(u,t,n,a,s,e,r,l,o)}function Pr(){return null!==Av&&Av.apply(this,arguments)||this}function Or(t){return null!=t.setData}function Lr(t,e){var n=function(t){var e=new Mm;if(t){var n,i=0,r=0,o=i,a=r,s=Mm.CMD,l=t.match(kv);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(Dv)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,C=i,T=r,M=void 0,I=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,m,v,C,T,i,r);break;case"s":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,m,v,C,T,i,r);break;case"Q":C=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"q":C=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"T":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Ar(C=i,T=r,i=d[y++],r=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Ar(C=i,T=r,i+=d[y++],r+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=o,r=a),n=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Or(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=n,i=t;if(i){for(var r,o,a,s,l=e.data,u=e.len(),h=xv.M,c=xv.C,p=xv.L,d=xv.R,f=xv.A,g=xv.Q,y=0,m=0;y<u;){switch(r=l[y++],m=y,o=0,r){case h:case p:o=1;break;case c:o=3;break;case g:o=2;break;case f:var v=i[4],_=i[5],x=bv(i[0]*i[0]+i[1]*i[1]),w=bv(i[2]*i[2]+i[3]*i[3]),b=Sv(-i[1]/w,i[0]/x);l[y]*=x,l[y++]+=v,l[y]*=w,l[y++]+=_,l[y++]*=x,l[y++]*=w,l[y++]+=b,l[y++]+=b,m=y+=2;break;case d:s[0]=l[y++],s[1]=l[y++],at(s,s,i),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],at(s,s,i),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<o;a++){var S=wv[a];S[0]=l[y++],S[1]=l[y++],at(S,S,i),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Rr(t){return Pv.call(this,t)||this}function Er(t){return Ev.call(this,t)||this}function Nr(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/Yv(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,o=r-o,s=s*n-e*t,n=(c<0?-1:1)*Yv(Xv(0,o*o*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(r/o-1),y1:t*(r/o-1)}}function Br(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,w,b,S,C,T,M,I,k,D,A,P,O,L=Xv(e.r,0),R=Xv(e.r0||0,0),E=0<L;(E||0<R)&&(E||(L=R,R=0),L<R&&(E=L,L=R,R=E),E=e.startAngle,n=e.endAngle,isNaN(E)||isNaN(n)||(i=e.cx,r=e.cy,o=!!e.clockwise,m=jv(n-E),Zv<(a=Vv<m&&m%Vv)&&(m=a),Zv<L?Vv-Zv<m?(t.moveTo(i+L*Gv(E),r+L*Hv(E)),t.arc(i,r,L,E,n,!o),Zv<R&&(t.moveTo(i+R*Gv(n),r+R*Hv(n)),t.arc(i,r,R,n,E,o))):(C=S=b=w=_=v=c=h=k=I=M=T=u=l=s=a=void 0,p=L*Gv(E),d=L*Hv(E),f=R*Gv(n),g=R*Hv(n),(y=Zv<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(x(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=jv(L-R)/2,T=qv(e,l),M=qv(e,u),I=qv(e,a),k=qv(e,s),v=h=Xv(T,M),_=c=Xv(I,k),Zv<h||Zv<c)&&(w=L*Gv(n),b=L*Hv(n),S=R*Gv(E),C=R*Hv(E),m<Fv)&&(e=function(t,e,n,i,r,o,a,s){var l=(s-=o)*(n-=t)-(a-=r)*(i-=e);if(!(l*l<Zv))return[t+(l=(a*(e-o)-s*(t-r))/l)*n,e+l*i]}(p,d,S,C,w,b,f,g))&&(T=p-e[0],M=d-e[1],I=w-e[0],k=b-e[1],m=1/Hv(Wv((T*I+M*k)/(Yv(T*T+M*M)*Yv(I*I+k*k)))/2),T=Yv(e[0]*e[0]+e[1]*e[1]),v=qv(h,(L-T)/(1+m)),_=qv(c,(R-T)/(m-1))),y?Zv<v?(D=qv(l,v),A=qv(u,v),P=Nr(S,C,p,d,L,D,o),O=Nr(w,b,f,g,L,A,o),t.moveTo(i+P.cx+P.x0,r+P.cy+P.y0),v<h&&D===A?t.arc(i+P.cx,r+P.cy,v,Uv(P.y0,P.x0),Uv(O.y0,O.x0),!o):(0<D&&t.arc(i+P.cx,r+P.cy,D,Uv(P.y0,P.x0),Uv(P.y1,P.x1),!o),t.arc(i,r,L,Uv(P.cy+P.y1,P.cx+P.x1),Uv(O.cy+O.y1,O.cx+O.x1),!o),0<A&&t.arc(i+O.cx,r+O.cy,A,Uv(O.y1,O.x1),Uv(O.y0,O.x0),!o))):(t.moveTo(i+p,r+d),t.arc(i,r,L,E,n,!o)):t.moveTo(i+p,r+d),Zv<R&&y?Zv<_?(D=qv(a,_),P=Nr(f,g,w,b,R,-(A=qv(s,_)),o),O=Nr(p,d,S,C,R,-D,o),t.lineTo(i+P.cx+P.x0,r+P.cy+P.y0),_<c&&D===A?t.arc(i+P.cx,r+P.cy,_,Uv(P.y0,P.x0),Uv(O.y0,O.x0),!o):(0<A&&t.arc(i+P.cx,r+P.cy,A,Uv(P.y0,P.x0),Uv(P.y1,P.x1),!o),t.arc(i,r,R,Uv(P.cy+P.y1,P.cx+P.x1),Uv(O.cy+O.y1,O.cx+O.x1),o),0<D&&t.arc(i+O.cx,r+O.cy,D,Uv(O.y1,O.x1),Uv(O.y0,O.x0),!o))):(t.lineTo(i+f,r+g),t.arc(i,r,R,n,E,o)):t.lineTo(i+f,r+g)):t.moveTo(i,r),t.closePath()))}function zr(t){return zv.call(this,t)||this}function Fr(t){return Qv.call(this,t)||this}function Vr(t,e,n){var i=e.smooth,r=e.points;if(r&&2<=r.length){if(i)for(var o=function(t,e,n,i){var r,o,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)st(h,h,t[p]),lt(c,c,t[p]);st(h,h,i[0]),lt(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push(K(t[p]));continue}r=t[p-1],o=t[p+1]}Q(s,o,r),et(s,s,e);var g=it(f,r),y=it(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),et(l,s,-g),et(u,s,y),$([],f,l)),g=$([],f,u);i&&(lt(m,m,h),st(m,m,c),lt(g,g,h),st(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(r,i,n,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(n?a:a-1);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;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function Hr(t){return e_.call(this,t)||this}function Gr(t){return r_.call(this,t)||this}function Wr(t){return s_.call(this,t)||this}function Ur(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Bt:Nt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Bt:Nt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Wt:Gt)(t.x1,t.cpx1,t.x2,e),(n?Wt:Gt)(t.y1,t.cpy1,t.y2,e)]}function jr(t){return d_.call(this,t)||this}function Yr(t){return g_.call(this,t)||this}function Xr(){var t=null!==v_&&v_.apply(this,arguments)||this;return t.type="compound",t}function qr(t){this.colorStops=t||[]}function Zr(t,e,n,i,r,o){return r=w_.call(this,r)||this,r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==n?1:n,r.y2=null==i?0:i,r.type="linear",r.global=o||!1,r}function Kr(t,e,n,i,r){return i=S_.call(this,i)||this,i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=r||!1,i}function $r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new iy;for(n=0;n<2;n++)this._axes[n]=new iy;t&&this.fromBoundingRect(t,e)}function Qr(){var t=null!==C_&&C_.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function Jr(t,e,n,i,r,o,a){var s,l,u,h,c,p,d=!1,f=(w(r)?(a=o,o=r,r=null):T(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=r=void 0,c=l?(r=R(l.duration,200),h=R(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=u&&(null!=u.duration&&(r=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(r=w(r)?r(s):r)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),o&&o())}function to(t,e,n,i,r,o){Jr("update",t,e,n,i,r,o)}function eo(t,e,n,i,r,o){Jr("enter",t,e,n,i,r,o)}function no(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 io(t,e,n,i,r,o){no(t)||Jr("leave",t,e,n,i,r,o)}function ro(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),io(t,{style:{opacity:0}},e,n,i)}function oo(t){return Bm.extend(t)}function ao(t,e){return E_(t,e)}function so(t,e){R_[t]=e}function lo(t){if(R_.hasOwnProperty(t))return R_[t]}function uo(t,e,n,i){return t=new Ov(Lr(t,e)),n&&("center"===i&&(n=co(n,t.getBoundingRect())),fo(t,n)),t}function ho(t,e,n){var i=new Wm({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(co(e,t)))}});return i}function co(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function po(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}return(e=new Bm(e)).createPathProxy(),e.buildPath=function(t){var e;Or(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function fo(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function go(t,e){for(var n=Ue([]);t&&t!==e;)Ye(n,t.getLocalTransform(),n),t=t.parent;return n}function yo(t,e,n){return e&&!d(e)&&(e=ty.getLocalTransform(e)),at([],t,e=n?Ke([],e):e)}function mo(t){return!t.isGroup}function vo(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var r,o;t&&e&&(o={},t.traverse(function(t){mo(t)&&t.anid&&(o[t.anid]=t)}),r=o,e.traverse(function(t){var e,o;mo(t)&&t.anid&&(e=r[t.anid])&&(o=i(t),t.attr(i(e)),to(t,o,n,nv(t).dataIndex))}))}function _o(t,e){return g(t,function(t){var n=t[0],n=O_(n,e.x),t=(n=L_(n,e.x+e.width),t[1]),t=O_(t,e.y);return[n,L_(t,e.y+e.height)]})}function xo(t,e){var n=O_(t.x,e.x),i=L_(t.x+t.width,e.x+e.width),r=O_(t.y,e.y),t=L_(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}}function wo(t,e,n){var e=l({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),u(i,n),new Wm(e)):uo(t.replace("path://",""),e,n,"center")}function bo(t,e,n,i,r,o,a,s){var l,n=n-t,i=i-e,a=a-r,s=s-o,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(r=((l=t-r)*i-n*(t=e-o))/u)<0||1<r||(i=(l*s-a*t)/u)<0||1<i)}function So(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=b(e)?{formatter:e}:e,r=n.mainType,n=n.componentIndex,o={componentType:r,name:i,$vars:["name"]},a=(o[r+"Index"]=n,t.formatterParamsExtra),t=(a&&f(v(a),function(t){X(o,t)||(o[t]=a[t],o.$vars.push(t))}),nv(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:u({content:i,formatterParams:o},e)}}function Co(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function To(t,e){if(t)if(x(t))for(var n=0;n<t.length;n++)Co(t[n],e);else Co(t,e)}function Mo(t,e){for(var n=0;n<hv.length;n++){var i=hv[n],r=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Io(t,e,n){for(var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?w(t.defaultText)?t.defaultText(o,t,n):t.defaultText:i},u=0;u<hv.length;u++){var h=hv[u],c=e[h];l[h]=R(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function ko(t,e,n,i){n=n||z_;for(var r=t instanceof Qm,o=!1,a=0;a<cv.length;a++)if((p=e[cv[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Qm,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Io(n,e),u=e.normal,h=!!u.getShallow("show"),c=Ao(u,i&&i.normal,n,!1,!r);for(c.text=l.normal,r||t.setTextConfig(Po(u,n,!1)),a=0;a<hv.length;a++){var p,d,f,g=hv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!R(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Ao(p,i&&i[g],n,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=Po(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(G_(s).setLabelText=function(t){t=Io(n,e,t),Mo(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Do(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<hv.length;i++){var r=hv[i];n[r]=t.getModel([r,e])}return n}function Ao(t,e,n,i,r){var o,a={},s=a,u=t,h=n,c=i,p=r;h=h||z_;var d,t=u.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||z_).rich;if(n){e=e||{};for(var i=v(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}(u);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(o=u.getModel(["rich",y]),Oo(d[y]={},o,f,h,c,p,!1,!0));return d&&(s.rich=d),(t=u.get("overflow"))&&(s.overflow=t),null!=(t=u.get("minMargin"))&&(s.margin=t),Oo(s,u,f,h,c,p,!0,!1),e&&l(a,e),a}function Po(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=R(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=r&&(r*=Math.PI/180,i.rotation=r),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Oo(t,e,n,i,r,o,a,s){n=!r&&n||z_;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=R(e.getShallow("opacity"),n.opacity),u=("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),R(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),R(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),R(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=r||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<F_.length;p++){var d=F_[p];null!=(f=R(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<V_.length;p++)d=V_[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<H_.length;p++){var f,d=H_[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType"),null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Lo(t,e,n,i,r){var o,a,s,l=G_(t);l.valueAnimation&&l.prevValue!==l.value&&(o=l.defaultInterpolatedText,a=R(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?eo:to)(t,{percent:1},i,e,null,function(i){var u=ei(n,l.precision,a,s,i),i=(l.interpolatedValue=1===i?null:u,Io({labelDataIndex:e,labelFetcher:r,defaultText:o?o(u):u+""},l.statesModels,u));Mo(t,i)}))}function Ro(){}function Eo(){}function No(){}function Bo(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function zo(t){return[t||"",tx++].join("_")}function Fo(t,e){t=t.toUpperCase(),ox[t]=new J_(e),rx[t]=e}function Vo(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ho(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 Go(t,e,n,i){var t=Dn(t),r=t[jo(n)](),o=t[Yo(n)]()+1,a=Math.floor((o-1)/4)+1,s=t[Xo(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[qo(n)](),h=(u-1)%12+1,c=t[Zo(n)](),p=t[Ko(n)](),t=t[$o(n)](),n=(i instanceof J_?i:ox[i||ax]||ox[ix]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,r%100+"").replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[o-1]).replace(/{MMM}/g,d[o-1]).replace(/{MM}/g,Vo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Vo(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Vo(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Vo(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Vo(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Vo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Vo(t,3)).replace(/{S}/g,t+"")}function Wo(t,e){var t=Dn(t),n=t[Yo(e)]()+1,i=t[Xo(e)](),r=t[qo(e)](),o=t[Zo(e)](),a=t[Ko(e)](),t=0===t[$o(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===i;return r&&1===n?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Uo(t,e,n){var i=C(t)?Dn(t):t;switch(e=e||Wo(t,n)){case"year":return i[jo(n)]();case"half-year":return 6<=i[Yo(n)]()?1:0;case"quarter":return Math.floor((i[Yo(n)]()+1)/4);case"month":return i[Yo(n)]();case"day":return i[Xo(n)]();case"half-day":return i[qo(n)]()/24;case"hour":return i[qo(n)]();case"minute":return i[Zo(n)]();case"second":return i[Ko(n)]();case"millisecond":return i[$o(n)]()}}function jo(t){return t?"getUTCFullYear":"getFullYear"}function Yo(t){return t?"getUTCMonth":"getMonth"}function Xo(t){return t?"getUTCDate":"getDate"}function qo(t){return t?"getUTCHours":"getHours"}function Zo(t){return t?"getUTCMinutes":"getMinutes"}function Ko(t){return t?"getUTCSeconds":"getSeconds"}function $o(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Qo(t){return t?"setUTCMonth":"setMonth"}function Jo(t){return t?"setUTCDate":"setDate"}function ta(t){return t?"setUTCHours":"setHours"}function ea(t){return t?"setUTCMinutes":"setMinutes"}function na(t){return t?"setUTCSeconds":"setSeconds"}function ia(t){return t?"setUTCMilliseconds":"setMilliseconds"}function ra(t){var e;return Rn(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function oa(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}function aa(t){return null==t?"":(t+"").replace(mx,function(t,e){return vx[e]})}function sa(t,e,n){function i(t){return t&&F(t)?t:"-"}function r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?Dn(t):t;if(!isNaN(+o))return Go(o,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?S(t)?i(t):C(t)&&r(t)?t+"":"-":r(o=Ln(t))?ra(o):S(t)?i(t):"boolean"==typeof t?t+"":"-"}function la(t,e){return"{"+t+(null==e?"":e)+"}"}function ua(t,e,n){var i=(e=x(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=_x[o];t=t.replace(la(a),la(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(la(_x[l],s),n?aa(u):u)}return t}function ha(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,r=(e=t.extraCssText,t.renderMode||"html");return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+aa(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+aa(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ca(t,e){return e=e||"transparent",b(t)?t:T(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function pa(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}function da(t,e,n,i,r){var o=0,a=0,s=(null==i&&(i=1/0),null==r&&(r=1/0),0);e.eachChild(function(l,u){var h,c,p,d=l.getBoundingRect(),u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(c=d.width+(u?-u.x+d.x:0),i<(h=o+c)||l.newline?(o=0,h=c,a+=s+n,d.height):Math.max(s,d.height)):(c=d.height+(u?-u.y+d.y:0),r<(p=a+c)||l.newline?(o+=s+n,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=p+n)})}function fa(t,e,n){n=yx(n||0);var i=e.width,r=e.height,o=bn(t.left,i),a=bn(t.top,r),e=bn(t.right,i),s=bn(t.bottom,r),l=bn(t.width,i),u=bn(t.height,r),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-o),isNaN(u)&&(u=r-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/r<p?l=.8*i:u=.8*r),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(o)&&(o=i-e-l-c),isNaN(a)&&(a=r-s-u-h),t.left||t.right){case"center":o=i/2-l/2-n[3];break;case"right":o=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h}return o=o||0,a=a||0,isNaN(l)&&(l=i-c-o-(e||0)),isNaN(u)&&(u=r-h-a-(s||0)),p=new py(o+n[3],a+n[0],l,u),p.margin=n,p}function ga(t){return t=t.layoutMode||t.constructor.layoutMode,T(t)?t:t?{type:t}:null}function ya(t,e,n){function i(n,i){var a={},l=0,u={},h=0;if(xx(n,function(e){u[e]=t[e]}),xx(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null);else if(2!==h&&l){if(!(2<=l))for(var c=0;c<n.length;c++){var p=n[c];if(!r(a,p)&&r(t,p)){a[p]=t[p];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){xx(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize,n=(x(s)||(s=[s,s]),i(Sx[0],0)),l=i(Sx[1],1);a(Sx[0],t,n),a(Sx[1],t,l)}function ma(t){return e={},(n=t)&&e&&xx(bx,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e;var e,n}function va(t,e,n){return t=Tx.call(this,t,e,n)||this,t.uid=zo("ec_cpt_model"),t}function _a(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function xa(t,e,n){function i(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function r(t){return t=t.dimsDef,t?t.length:1}var o,a,s,l,u,h={},c=wa(e);return c&&t&&(o=[],a=[],e=e.ecModel,e=Yx(e).datasetMap,c=c.uid+"_"+n.seriesLayoutBy,f(t=t.slice(),function(e,n){e=T(e)?e:t[n]={name:e},"ordinal"===e.type&&null==s&&(s=n,l=r(e)),h[e.name]=[]}),u=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var n,l=t.name,t=r(t);null==s?(n=u.valueWayDim,i(h[l],n,t),i(a,n,t),u.valueWayDim+=t):s===e?(i(h[l],0,t),i(o,0,t)):(n=u.categoryWayDim,i(h[l],n,t),i(a,n,t),u.categoryWayDim+=t)}),o.length&&(h.itemName=o),a.length)&&(h.seriesName=a),h}function wa(t){if(!t.get("data",!0))return Jn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Oy).models[0]}function ba(t,e){function n(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?jx.Might:jx.Not:e&&"-"!==t?jx.Must:void 0}var i,r,o,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,u=t.dimensionsDefine,h=t.startIndex,c=e;if(!I(a)){if(u&&(T(u=u[c])?(r=u.name,o=u.type):b(u)&&(r=u)),null!=o)return"ordinal"===o?jx.Must:jx.Not;if(s===zx){var p=a;if(l===Ux){for(var d=p[c],f=0;f<(d||[]).length&&f<5;f++)if(null!=(i=n(d[h+f])))return i}else for(f=0;f<p.length&&f<5;f++){var g=p[h+f];if(g&&null!=(i=n(g[c])))return i}}else if(s===Fx){var y=a;if(!r)return jx.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(i=n(v[r])))return i}else if(s===Vx){if(u=a,!r)return jx.Not;if(!(d=u[r])||I(d))return jx.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(i=n(d[f])))return i}else if(s===Bx)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=Hn(v=m[f]);if(!x(_))return jx.Not;if(null!=(i=n(_[c])))return i}}return jx.Not}function Sa(){}function Ca(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function Ta(){return null!==Rx&&Rx.apply(this,arguments)||this}function Ma(t,e,n){var i,r;return x(e)?(i=W(),f(e,function(t){null!=t&&null!=jn(t,null)&&i.set(t,!0)}),m(n,function(e){return e&&i.get(e[t])})):(r=jn(e,null),m(n,function(e){return e&&null!=r&&e[t]===r}))}function Ia(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function ka(t){var e=W();return t&&f(Fn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Da(t){f(tw,function(e){this[e]=If(t[e],t)},this)}function Aa(){this._coordinateSystems=[]}function Pa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Oa(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=sw.length;n<i;n++){var r=sw[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function La(t,e,n){var i,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(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).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.blurScope)}function Ra(t){La(t,"itemStyle"),La(t,"lineStyle"),La(t,"areaStyle"),La(t,"label"),La(t,"labelLine"),La(t,"upperLabel"),La(t,"edgeLabel")}function Ea(t,e){var n=aw(t)&&t[e],i=aw(n)&&n.textStyle;if(i)for(var r=0,o=Ay.length;r<o;r++){var a=Ay[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Na(t){t&&(Ra(t),Ea(t,"label"),t.emphasis)&&Ea(t.emphasis,"label")}function Ba(t){return x(t)?t:t?[t]:[]}function za(t){return(x(t)?t[0]:t)||{}}function Fa(t,e){ow(Ba(t.series),function(t){if(aw(t)&&aw(t)){Oa(t),Ra(t),Ea(t,"label"),Ea(t,"upperLabel"),Ea(t,"edgeLabel"),t.emphasis&&(Ea(t.emphasis,"label"),Ea(t.emphasis,"upperLabel"),Ea(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(Oa(e),Na(e)),t.markLine),i=(n&&(Oa(n),Na(n)),t.markArea),r=(i&&Na(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!I(o))for(var a=0;a<o.length;a++)Na(o[a]);f(t.categories,function(t){Ra(t)})}if(r&&!I(r))for(a=0;a<r.length;a++)Na(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Na(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)x(l[a])?(Na(l[a][0]),Na(l[a][1])):Na(l[a]);"gauge"===t.type?(Ea(t,"axisLabel"),Ea(t,"title"),Ea(t,"detail")):"treemap"===t.type?(La(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ra(t)})):"tree"===t.type&&Ra(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ow(n,function(e){ow(Ba(t[e]),function(t){t&&(Ea(t,"axisLabel"),Ea(t.axisPointer,"label"))})}),ow(Ba(t.parallel),function(t){t=t&&t.parallelAxisDefault,Ea(t,"axisLabel"),Ea(t&&t.axisPointer,"label")}),ow(Ba(t.calendar),function(t){La(t,"itemStyle"),Ea(t,"dayLabel"),Ea(t,"monthLabel"),Ea(t,"yearLabel")}),ow(Ba(t.radar),function(t){Ea(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)}),ow(Ba(t.geo),function(t){aw(t)&&(Na(t),ow(Ba(t.regions),function(t){Na(t)}))}),ow(Ba(t.timeline),function(t){Na(t),La(t,"label"),La(t,"itemStyle"),La(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){T(t)&&(La(t,"label"),La(t,"itemStyle"))})}),ow(Ba(t.toolbox),function(t){La(t,"iconStyle"),ow(t.feature,function(t){La(t,"iconStyle")})}),Ea(za(t.axisPointer),"label"),Ea(za(t.tooltip).axisPointer,"label")}function Va(t){t&&f(lw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ha(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<hw.length;n++){var i=hw[n][1],r=hw[n][0];null!=e[i]&&(e[r]=e[i])}}function Ga(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Wa(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Ua(t,e){Fa(t,e),t.series=Fn(t.series),f(t.series,function(t){if(T(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Ga(t.label),(e=t.data)&&!I(e))for(var i=0;i<e.length;i++)Ga(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");if(null!=r){for(var o,a=t,s="itemStyle.color",l=s.split(","),h=a,c=0;c<l.length-1;c++)null==h[o=l[c]]&&(h[o]={}),h=h[o];null!=h[l[c]]||(h[l[c]]=r)}}else if("bar"===n){if(Ha(t),Ha(t.backgroundStyle),Ha(t.emphasis),(e=t.data)&&!I(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Ha(e[i]),Ha(e[i]&&e[i].emphasis))}else"sunburst"===n?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Wa(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Wa)):"graph"===n||"sankey"===n?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===n&&(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),Va(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(uw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){Va(t)})})}function ja(t){f(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,function(o,l,u){var h,c,p=a.get(e.stackedDimension,u);if(isNaN(p))return r;s?c=a.getRawIndex(u):h=a.get(e.stackedByDimension,u);for(var d,f,g,y=NaN,m=n-1;0<=m;m--){var v=t[m];if(0<=(c=s?c:v.data.rawIndexOf(v.stackedByDimension,h))&&(v=v.data.getByRawIndex(v.stackResultDimension,c),0<=p&&0<v||p<=0&&v<0)){d=p,f=v,g=void 0,g=Math.max(Cn(d),Cn(f)),d+=f,p=Iy<g?d:Sn(d,g),y=v;break}}return i[0]=p,i[1]=y,i})})}function Ya(t){return t instanceof cw}function Xa(t,e,n){n=n||Za(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Ka(r),startIndex:a,dimensionsDetectedCount:o};var s;return e===zx?(s=t,"auto"===i||null==i?$a(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},n,s,10):a=C(i)?i:i?1:0,r||1!==a||(r=[],$a(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Ux?s.length:s[0]?s[0].length:null):e===Fx?r=r||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););var i;if(e)return i=[],f(e,function(t,e){i.push(e)}),i}(t):e===Vx?r||(r=[],f(t,function(t,e){r.push(e)})):e===Bx&&(i=Hn(t[0]),o=x(i)&&i.length||1),{startIndex:a,dimensionsDefine:Ka(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new cw({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:a(e)})}function qa(t){return new cw({data:t,sourceFormat:I(t)?Hx:Bx})}function Za(t){var e=Gx;if(I(t))e=Hx;else if(x(t)){0===t.length&&(e=zx);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(x(r)){e=zx;break}if(T(r)){e=Fx;break}}}}else if(T(t))for(var o in t)if(X(t,o)&&d(t[o])){e=Vx;break}return e}function Ka(t){var e;if(t)return e=W(),g(t,function(t,n){var i,t={name:(t=T(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(i=e.get(t.name))?t.name+="-"+i.count++:e.set(t.name,{count:1})),t})}function $a(t,e,n,i){if(e===Ux)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function Qa(t){return(t=t.sourceFormat)===Fx||t===Vx}function Ja(t,e){var t=Ya(t)?t:qa(t),n=(this._source=t,this._data=t.data);t.sourceFormat===Hx&&(this._offset=0,this._dimSize=e,this._data=n),Jx(this,n,t)}function ts(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function es(t,e,n,i){return t[i]}function ns(t,e){return yw[ss(t,e)]}function is(t,e,n){return t.length}function rs(t,e){return mw[ss(t,e)]}function os(t,e,n){return t[e]}function as(t){return vw[t]}function ss(t,e){return t===zx?t+"_"+e:t}function ls(t,e,n){if(t){var i,r,e=t.getRawDataItem(e);if(null!=e)return i=(r=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=r.getDimensionProperty(t),as(i)(e,t,n)):(r=e,i===Bx?Hn(e):r)}}function us(){}function hs(t){var e,n;return T(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function cs(t){return new Mw(t)}function ps(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ds(){return ww<xw?ww++:null}function fs(){var t=ww%Cw*bw+Math.ceil(ww/Cw),t=xw<=ww?null:t<Sw?t:ww;return ww++,t}function gs(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||C(t)||null==t||"-"===t?t:+Dn(t))||""===t?NaN:+t}function ys(t){return kw.get(t)}function ms(t,e){C(e)||Bn(""),this._opFn=Dw[t],this._rvalFloat=Ln(e)}function vs(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function _s(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ln(e)}function xs(){}function ws(t){return Ms(t.sourceFormat)||Bn(""),t.data}function bs(t){var e=t.sourceFormat,n=t.data;if(Ms(e)||Bn(""),e===zx){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Fx){for(i=[],r=0,o=n.length;r<o;r++)i.push(l({},n[r]));return i}}function Ss(t,e,n){if(null!=n)return C(n)||!isNaN(n)&&!X(e,n)?t[n]:X(e,n)?e[n]:void 0}function Cs(t){return a(t)}function Ts(t,e){var n=Fn(t),t=n.length;t||Bn("");for(var i=0,r=t;i<r;i++)e=function(t,e){e.length||Bn(""),T(t)||Bn("");var n=t.type,i=Ew.get(n);return i||Bn(""),n=g(e,function(t){var e=t,t=i,n=new Rw,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==Wx&&Bn(""),[]),l={};if(c=e.dimensionsDefine)f(c,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(X(l,n)&&Bn(""),l[n]=e)});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=ns(o,Wx),c=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,a,s,t)},n.getRawData=If(ws,null,e)),n.cloneRawData=If(bs,null,e),rs(o,Wx)),p=(n.count=If(c,null,r,a,s),as(o)),d=(n.retrieveValue=function(t,e){return t=h(r,a,s,t),d(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=s[e])?p(t,e,n.name):void 0});return n.getDimensionInfo=If(Ss,null,s,l),n.cloneAllDimensionInfo=If(Cs,null,s),n}),g(Fn(i.transform({upstream:n[0],upstreamList:n,config:a(t.config)})),function(t,n){T(t)||Bn(""),t.data||Bn(""),Ms(Za(t.data))||Bn("");var i=e[0],n=i&&0===n&&!t.dimensions?((n=i.startIndex)&&(t.data=i.data.slice(0,n).concat(t.data)),{seriesLayoutBy:Wx,sourceHeader:n,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:Wx,sourceHeader:0,dimensions:t.dimensions};return Xa(t.data,n,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function Ms(t){return t===zx||t===Fx}function Is(t){return 65535<t?Nw:Bw}function ks(){return[1/0,-1/0]}function Ds(t,e,n,i,r){if(n=Fw[n||"float"],r){var o=t[e],a=o&&o.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(i)}function As(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}function Ps(t,e,n,i){return gs(t[i],this._dimensions[i])}function Os(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Ls(t){t.option.transform&&V(t.option.transform)}function Rs(t){return"series"===t.mainType}function Es(t){throw new Error(t)}function Ns(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+aa(i+"")+"px;color:"+aa(n)+";font-weight:"+aa(r+""),valueStyle:"font-size:"+aa(a+"")+"px;color:"+aa(o)+";font-weight:"+aa(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}function Bs(t,e){return e.type=t,e}function zs(t){return"section"===t.type}function Fs(t){return zs(t)?Vs:Hs}function Vs(t,e,n,i){var r,o=e.noHeader,a=(u=function t(e){var n,i,r;return zs(e)?(n=0,i=e.blocks.length,r=1<i||0<i&&!e.noHeader,f(e.blocks,function(e){var i=t(e);n<=i&&(n=i+ +(r&&(!i||zs(e)&&!e.noHeader)))}),n):0}(e),{html:Ww[u],richText:Uw[u]}),s=[],u=e.blocks||[],h=(z(!u||x(u)),u=u||[],t.orderMode),c=(e.sortBlocks&&h&&(u=u.slice(),X(c={valueAsc:"asc",valueDesc:"desc"},h)?(r=new Pw(c[h],null),u.sort(function(t,e){return r.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===h&&u.reverse()),f(u,function(n,r){var o=e.valueFormatter,o=Fs(n)(o?l(l({},t),{valueFormatter:o}):t,n,0<r?a.html:0,i);null!=o&&s.push(o)}),"richText"===t.renderMode?s.join(a.richText):Ws(s.join(""),o?n:a.html));return o?c:(h=sa(e.header,"ordinal",t.useUTC),u=Ns(i,t.renderMode).nameStyle,"richText"===t.renderMode?Us(t,h,u)+a.richText+c:Ws('<div style="'+u+";"+Gw+';">'+aa(h)+"</div>"+c,n))}function Hs(t,e,n,i){var r,o,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return g(t=x(t)?t:[t],function(t,e){return sa(t,x(o)?o[e]:o,d)})};if(!u||!h)return r=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":sa(p,"ordinal",d),o=e.valueType,f=h?[]:f(e.value),e=!c||!u,a=!c&&u,i=Ns(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":r)+(u?"":Us(t,p,s))+(h?"":function(t,e,n,i,r){return r=[r],i=i?10:20,n&&r.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,r)}(t,f,e,a,i)):Ws((c?"":r)+(u?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+aa(p)+"</span>")+(h?"":function(t,e,n,i){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=x(t)?t:[t],'<span style="'+e+";"+i+'">'+g(t,aa).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,i)),n)}function Gs(t,e,n,i,r,o){if(t)return Fs(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Ws(t,e){return'<div style="margin: '+e+"px 0 0;"+Gw+';">'+t+'<div style="clear:both"></div></div>'}function Us(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function js(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function Ys(){this.richTextStyles={},this._nextStyleNameId=En()}function Xs(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(u?p.push(Bs("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(h.push(t),c.push(e.type)))}var n,i,r,o,a,s,l,u,h,c,p,d=t.series,g=t.dataIndex,t=t.multipleSeries,m=d.getData(),v=m.mapDimensionsAll("defaultedTooltip"),_=v.length,w=d.getRawValue(g),b=x(w),S=(S=g,ca((C=d).getData().getItemVisual(S,"style")[C.visualDrawType]));1<_||b&&!_?(C=w,o=g,a=v,s=S,l=d.getData(),u=y(C,function(t,e,n){return n=l.getDimensionInfo(n),t||n&&!1!==n.tooltip&&null!=n.displayName},!1),h=[],c=[],p=[],a.length?f(a,function(t){e(ls(l,o,t),t)}):f(C,e),n=(a={inlineValues:h,inlineValueTypes:c,blocks:p}).inlineValueTypes,i=a.blocks,r=(a=a.inlineValues)[0]):_?(C=m.getDimensionInfo(v[0]),r=a=ls(m,g,v[0]),n=C.type):r=a=b?w[0]:w;var _=Yn(d),v=_&&d.name||"",C=m.getName(g),b=t?v:C;return Bs("section",{header:v,noHeader:t||!_,sortParam:r,blocks:[Bs("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:n})].concat(i||[])})}function qs(t,e){return t.getName(e)||t.getId(e)}function Zs(){var t=null!==Xw&&Xw.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function Ks(t){var e,n,i=t.name;Yn(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],f(t,function(t){t=e.getDimensionInfo(t),t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function $s(t){return t.model.getRawData().count()}function Qs(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),Js}function Js(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function tl(t,e){f(U(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,_(el,e))})}function el(t,e){return t=nl(t),t&&t.setOutputEnd((e||this).count()),e}function nl(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}function il(){this.group=new wy,this.uid=zo("viewComponent")}function rl(){var t=Kn();return function(e){var n=t(e),e=e.pipelineContext,i=!!n.large,r=!!n.progressiveRender,o=n.large=!(!e||!e.large),n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==o&&r==n)&&"reset"}}function ol(){this.group=new wy,this.uid=zo("viewChart"),this.renderTask=cs({plan:ll,reset:ul}),this.renderTask.context={view:this}}function al(t,e,n){t&&Cr(t)&&("emphasis"===e?ur:hr)(t,n)}function sl(t,e,n){var i,r=Zn(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,i=null==(i=rv[e])&&iv<=32?rv[e]=iv++:i):null;null!=r?f(Fn(r),function(e){al(t.getItemGraphicEl(e),n,o)}):t.eachItemGraphicEl(function(t){al(t,n,o)})}function ll(t){return $w(t.model)}function ul(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&Kw(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Jw[o]}function hl(t,e,n){function i(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o=(new Date).getTime(),s=this,l=t;var d=u||e,f=u||n;u=null,a=o-(f?h:c)-d,clearTimeout(p),f?p=setTimeout(i,d):0<=a?i():p=setTimeout(i,-a),h=o}var o,a,s,l,u,h=0,c=0,p=null;return e=e||0,r.clear=function(){p&&(clearTimeout(p),p=null)},r.debounceNextCall=function(t){u=t},r}function cl(t,e,n,i){var r=t[e];if(r){var o=r[tb]||r,a=r[nb];if(r[eb]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=hl(o,n,"debounce"===i))[tb]=o,r[nb]=i,r[eb]=n}}}function pl(t,e){var n=t[e];n&&n[tb]&&(n.clear&&n.clear(),t[e]=n[tb])}function dl(t,e){return(t=t.visualStyleMapper||rb[e])||(console.warn("Unkown style type '"+e+"'."),rb.itemStyle)}function fl(t,e){return(t=t.visualDrawType||ob[e])||(console.warn("Unkown style type '"+e+"'."),"fill")}function gl(t,e,n,i){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function yl(t){t.overallReset(t.ecModel,t.api,t.payload)}function ml(t){return t.overallProgress&&vl}function vl(){this.agent.dirty(),this.getDownstream().dirty()}function _l(){this.agent&&this.agent.dirty()}function xl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wl(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Fn(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return bl(e)}):hb}function bl(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 Sl(t){return t.data.count()}function Cl(t,e){for(var n in e.prototype)t[n]=q}function Tl(){return{axisLine:{lineStyle:{color:db}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function Ml(){}function Il(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,i,a=t.seriesIndex,s=t.option.selectedMap,u=r.selected,h=0;h<u.length;h++)u[h].seriesIndex===a&&(i=Zn(e=t.getData(),r.fromActionPayload),n.trigger(o,{type:o,seriesId:t.id,name:x(i)?e.getName(i[0]):e.getName(i),selected:b(s)?s:l({},s)}))})}function kl(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function Dl(){this._id="__ec_inner_"+mb++}function Al(t,e){var n;"image"!==this.type&&(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 Pl(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?ho(t.slice(8),new py(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?uo(t.slice(7),{},new py(e,n,i,r),a?"center":"cover"):new Mb({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=Al,o&&a.setColor(o),a}function Ol(t,e){if(null!=t)return[bn((t=x(t)?t:[t,t])[0],e[0])||0,bn(R(t[1],t[0]),e[1])||0]}function Ll(t,e,n){for(var i,r,o,a,s,l,u,h,c,p="radial"===e.type?(i=t,r=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==r.x?.5:r.x,h=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(u=u*a+o.x,h=h*s+o.y,c*=l),i.createRadialGradient(u,h,0,u,h,c)):(r=t,a=n,o=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),o=isNaN(o)?0:o,l=isNaN(l)?1:l,i=isNaN(i)?0:i,u=isNaN(u)?0:u,r.createLinearGradient(o,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Rl(t){return parseInt(t,10)}function El(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[r]||Rl(n[i])||Rl(t.style[i]))-(Rl(n[o])||0)-(Rl(n[e])||0)|0)}function Nl(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(r=n.lineDash,i=n.lineWidth,r&&"solid"!==r&&0<i?"dashed"===r?[4*i,2*i]:"dotted"===r?[i]:C(r)?[r]:x(r)?r:null:null),r=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=g(i,function(t){return t/e}),r/=e),[i,r]}function Bl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function zl(t){return"string"==typeof t&&"none"!==t}function Fl(t){return null!=(t=t.fill)&&"none"!==t}function Vl(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function Hl(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Gl(t,e,n){var n=hi(e.image,e.__image,n);if(pi(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Af),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}function Wl(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(Yl(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Yy.opacity:o),!i&&e.blend===n.blend||(a||(Yl(t,r),a=!0),t.globalCompositeOperation=e.blend||Yy.blend);for(var s=0;s<kb.length;s++){var l=kb[s];!i&&e[l]===n[l]||(a||(Yl(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(Yl(t,r),a=!0),t.shadowColor=e.shadowColor||Yy.shadowColor),a}function Ul(t,e,n,i,r){var o=Xl(e,r.inHover),a=i?null:n&&Xl(n,r.inHover)||{};if(o!==a){var s=Wl(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(Yl(t,r),s=!0),zl(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(Yl(t,r),s=!0),zl(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(Yl(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(Yl(t,r),s=!0),t.lineWidth=n);for(var l=0;l<Db.length;l++){var u=Db[l],h=u[0];!i&&o[h]===a[h]||(s||(Yl(t,r),s=!0),t[h]=o[h]||u[1])}}}function jl(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}function Yl(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Xl(t,e){return e&&t.__hoverStyle||t.style}function ql(t,e){Zl(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zl(t,e,n,i){var r=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,a)){if(a&&a.length&&(Yl(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){Yl(t,n),t.save();for(var u=o,h=t,a=n,c=!1,p=0;p<u.length;p++){var d=u[p],c=c||d.isZeroArea();jl(h,d),h.beginPath(),d.buildPath(h,d.shape),h.clip()}a.allClipped=c,s=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,C,T,M,I,k,D,A,P,O,L,R,E,N,a=n.prevEl,B=(a||(l=s=!0),e instanceof Bm&&e.autoBatch&&(o=e.style,B=Fl(o),f=Bl(o),!(o.lineDash||!(+B^+f)||B&&"string"!=typeof o.fill||f&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),s=(s||(f=r,o=a.transform,f&&o?f[0]!==o[0]||f[1]!==o[1]||f[2]!==o[2]||f[3]!==o[3]||f[4]!==o[4]||f[5]!==o[5]:f||o)?(Yl(t,n),jl(t,e)):B||Yl(t,n),Xl(e,n.inHover));if(e instanceof Bm)n.lastDrawType!==Ab&&(l=!0,n.lastDrawType=Ab),Ul(t,e,a,l,n),B&&(n.batchFill||n.batchStroke)||t.beginPath(),r=t,o=e,G=B,k=Bl(m=s),D=Fl(m),A=m.strokePercent,P=A<1,O=!o.path,o.silent&&!P||!O||o.createPathProxy(),L=o.path||Ib,R=o.__dirty,G||(v=m.fill,N=m.stroke,_=D&&!!v.colorStops,x=k&&!!N.colorStops,w=D&&!!v.image,b=k&&!!N.image,E=M=T=C=S=void 0,(_||x)&&(E=o.getBoundingRect()),_&&(S=R?Ll(r,v,E):o.__canvasFillGradient,o.__canvasFillGradient=S),x&&(C=R?Ll(r,N,E):o.__canvasStrokeGradient,o.__canvasStrokeGradient=C),w&&(T=R||!o.__canvasFillPattern?Gl(r,v,o):o.__canvasFillPattern,o.__canvasFillPattern=T),b&&(M=R||!o.__canvasStrokePattern?Gl(r,N,o):o.__canvasStrokePattern,o.__canvasStrokePattern=T),_?r.fillStyle=S:w&&(T?r.fillStyle=T:D=!1),x?r.strokeStyle=C:b&&(M?r.strokeStyle=M:k=!1)),E=o.getGlobalScale(),L.setScale(E[0],E[1],o.segmentIgnoreThreshold),r.setLineDash&&m.lineDash&&(I=(v=Nl(o))[0],H=v[1]),N=!0,(O||R&ng)&&(L.setDPR(r.dpr),P?L.setContext(null):(L.setContext(r),N=!1),L.reset(),o.buildPath(L,o.shape,G),L.toStatic(),o.pathUpdated()),N&&L.rebuildPath(r,P?A:1),I&&(r.setLineDash(I),r.lineDashOffset=H),G||(m.strokeFirst?(k&&Hl(r,m),D&&Vl(r,m)):(D&&Vl(r,m),k&&Hl(r,m))),I&&r.setLineDash([]),B&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof Fm)n.lastDrawType!==Ob&&(l=!0,n.lastDrawType=Ob),Ul(t,e,a,l,n),_=t,S=e,null!=(T=(w=s).text)&&(T+=""),T&&(_.font=w.font||cf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,C=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Nl(S))[0],C=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=C),w.strokeFirst?(Bl(w)&&_.strokeText(T,w.x,w.y),Fl(w)&&_.fillText(T,w.x,w.y)):(Fl(w)&&_.fillText(T,w.x,w.y),Bl(w)&&_.strokeText(T,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof Wm)n.lastDrawType!==Pb&&(l=!0,n.lastDrawType=Pb),b=a,M=l,Wl(t,Xl(e,(E=n).inHover),b&&Xl(b,E.inHover),M,E),v=t,O=s,(o=(R=e).__image=hi(O.image,R.__image,R,R.onload))&&pi(o)&&(N=O.x||0,L=O.y||0,P=R.getWidth(),R=R.getHeight(),A=o.width/o.height,null==P&&null!=R?P=R*A:null==R&&null!=P?R=P/A:null==P&&null==R&&(P=o.width,R=o.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(o,g,y,O.sWidth,O.sHeight,N,L,P,R)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(o,g,y,P-g,R-y,N,L,P,R)):v.drawImage(o,N,L,P,R));else if(e.getTemporalDisplayables){n.lastDrawType!==Lb&&(l=!0,n.lastDrawType=Lb);var z,F,V=t,H=e,G=n,W=H.getDisplayables(),U=H.getTemporalDisplayables(),j=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:G.viewWidth,viewHeight:G.viewHeight,inHover:G.inHover});for(z=H.getCursor(),F=W.length;z<F;z++)(Y=W[z]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),Zl(V,Y,j,z===F-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;for(var Y,X=0,q=U.length;X<q;X++)(Y=U[X]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),Zl(V,Y,j,X===q-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;H.clearTemporalDisplayables(),H.notClear=!0,V.restore()}B&&i&&Yl(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~eg,e.__isRendered=!1}function Kl(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type,e=(t.dirty&&Rb.delete(t),Rb.get(t));if(e)return e;for(var o,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}),e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[n],h=!0,c=0;c<Nb.length;++c){var p=a[Nb[c]];if(null!=p&&!x(p)&&!b(p)&&!C(p)&&"boolean"!=typeof p){h=!1;break}l.push(p)}h&&(o=l.join(",")+(r?"-svg":""),w=Eb.get(o))&&(r?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(C(e))return[[o=Math.ceil(e),o]];for(var n=!0,i=0;i<e.length;++i)if(!C(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i){var o;C(e[i])?(o=Math.ceil(e[i]),r.push([o,o])):(o=g(e[i],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t))return[e=Math.ceil(t),e];var e=g(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),m=function t(e){if(!e||0===e.length)return[["rect"]];if(b(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!b(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)b(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),v=function(t){return g(t,$l)}(f),_=$l(y),w=!r&&df.createCanvas(),S=r&&{tag:"g",attrs:{},key:"dcl",children:[]},T=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=Nn(t,v[e]);for(var i=1,e=0,n=m.length;e<n;++e)i=Nn(i,m[e].length);t*=i;var r=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();w&&(w.width=T.width*n,w.height=T.height*n,d=w.getContext("2d")),d&&(d.clearRect(0,0,w.width,w.height),a.backgroundColor)&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,w.width,w.height));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(!(M<=0))for(var k=-_,D=0,A=0,P=0;k<T.height;){if(D%2==0){for(var O=A/2%m.length,L=0,R=0,E=0;L<2*T.width;){for(var N,B,z,F,V,H=0,I=0;I<f[P].length;++I)H+=f[P][I];if(H<=0)break;R%2==0&&(B=.5*(1-a.symbolSize),N=L+f[P][R]*B,B=k+y[D]*B,z=f[P][R]*a.symbolSize,F=y[D]*a.symbolSize,V=E/2%m[O].length,function(t,e,o,s,l){var u=r?1:n,l=Pl(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?(t=i.painter.renderOneToVNode(l))&&S.children.push(t):ql(d,l)}(N,B,z,F,m[O][V])),L+=f[P][R],++E,++R===f[P].length&&(R=0)}++P===f.length&&(P=0)}k+=y[D],++A,++D===y.length&&(D=0)}return h&&Eb.put(o,w||S),s.image=w,s.svgElement=S,s.svgWidth=T.width,s.svgHeight=T.height,e.rotation=a.rotation,e.scaleX=e.scaleY=r?1:1/n,Rb.set(t,e),t.dirty=!1,e}function $l(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function Ql(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return tu(this,t,e);this.id}}function Jl(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return tu(this,t,e)}}function tu(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Bf.prototype[e].apply(t,n)}function eu(){return null!==jb&&jb.apply(this,arguments)||this}function nu(t,e,n){function i(t,e){return t.__prio-e.__prio}var r=hS.call(this,new fb)||this,t=(r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},b(e)&&(e=_S[e]),r._dom=t,r._zr=_n(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect})),n=(r._ssr=n.ssr,r._throttledZrFlush=hl(If(t.flush,t),17),(e=a(e))&&Ua(e,!0),r._theme=e,r._locale=b(e=n.locale||ax)?(n=rx[e.toUpperCase()]||{},e===ex||e===nx?a(n):s(a(n),a(rx[ix]),!1)):s(a(e),a(rx[ix]),!1),r._coordSysMgr=new nw,r._api=aS(r));return At(vS,i),At(yS,i),r._scheduler=new ub(r,n,yS,vS),r._messageCenter=new cS,r._initEvents(),r.resize=If(r.resize,r),t.animation.on("frame",r._onframe,r),eS(t,r),nS(t,r),V(r),r}function iu(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function ru(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===uv&&t.states.emphasis?e.push("emphasis"):t.hoverState===lv&&t.states.blur&&e.push("blur"),t.useStates(e)}function ou(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)r=Math.max(t(l[u],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);return o&&(o.z=n,o.zlevel=i,isFinite(r))&&(o.z2=r+2),a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1)),r}(t,n,i,-1/0),!0}))}function au(t,e){e.eachRendered(function(t){var e,n;no(t)||(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 su(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,o;t.states&&t.states.emphasis&&(no(t)||(t instanceof Bm&&((o=ov(n=t)).normalFill=n.style.fill,o.normalStroke=n.style.stroke,n=n.states.select||{},o.selectFill=n.style&&n.style.fill||null,o.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(o=t.prevStates)&&t.useStates(o),i&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&ru(t)))})}function lu(t){bS[t]=!1}function uu(t){return wS[(e=TS,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function hu(t,e){_S[t]=e}function cu(t){h(mS,t)<0&&mS.push(t)}function pu(t,e){xu(yS,t,e,2e3)}function du(t){gu("afterinit",t)}function fu(t){gu("afterupdate",t)}function gu(t,e){Bb.on(t,e)}function yu(t,e,n){w(e)&&(n=e,e="");var i=T(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,gS[e]||(z(Wb.test(i)&&Wb.test(e)),fS[i]||(fS[i]={action:n,actionInfo:t}),gS[e]=i)}function mu(t,e){nw.register(t,e)}function vu(t,e){xu(vS,t,e,1e3,"layout")}function _u(t,e){xu(vS,t,e,3e3,"visual")}function xu(t,e,n,i,r){(w(e)||T(e))&&(n=e,e=i),0<=h(MS,n)||(MS.push(n),(i=ub.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function wu(t,e){xS[t]=e}function bu(t,e,n){var i=zb.registerMap;i&&i(t,e,n)}function Su(t){var e=(t=a(t)).type,n=(e||Bn(""),e.split(":")),i=(2!==n.length&&Bn(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Ew.set(e,t)}function Cu(t){return null==t?0:t.length||1}function Tu(t){return t}function Mu(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Tu,this._newKeyGetter=i||Tu,this.context=r,this._diffModeMultiple="multiple"===o}function Iu(t,e){this._encode=t,this._schema=e}function ku(t,e){var n={},i=n.encode={},r=W(),o=[],a=[],s={},l=(f(t.dimensions,function(e){var n,l,u=t.getDimensionInfo(e),h=u.coordDim;h&&(n=u.coordDimIndex,Du(i,h)[n]=e,u.isExtraCoord||(r.set(h,1),"ordinal"!==(l=u.type)&&"time"!==l&&(o[0]=e),Du(s,h)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip)&&a.push(e),Nx.each(function(t,e){var n=Du(i,e),e=u.otherDims[e];null!=e&&!1!==e&&(n[e]=u.name)})}),[]),u={},h=(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,i.label),h=(h&&h.length&&(o=h.slice()),i.tooltip);return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new ES(s,e),n}function Du(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Au(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Pu(t){return t instanceof FS}function Ou(t){for(var e=W(),n=0;n<(t||[]).length;n++){var i=t[n],i=T(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Lu(t){var e=BS(t);return e.dimNameMap||(e.dimNameMap=Ou(t.dimensionsDefine))}function Ru(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"];for(var n,i,r=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(Pu(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=b(c)?new NS({name:c}):c instanceof NS?c:new NS(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(o[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),r&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=W(),f(a,function(t){i.set(o[t].storeDimIndex,t)}))}function Eu(t,e){function n(t){var e,n,i,r=x[t];return r<0?(e=T(e=h[t])?e:{name:e},n=new NS,null!=(i=e.name)&&null!=m.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),x[t]=p.length,n.storeDimIndex=t,p.push(n),n):p[r]}function i(t,e,n){null!=Nx.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,c.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Ya(t)||(t=qa(t));for(var o,a,s=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],c=W(),p=[],d=(g=t,o=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,o.length,h.length,v||0),f(o,function(t){T(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=h===t.dimensionsDefine,m=y?Lu(t):Ou(h),v=e.encodeDefine,_=W(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new zw(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)n(w);_.each(function(t,e){var r,t=Fn(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(r=_.set(e,[]),f(t,function(t,o){null!=(t=b(t)?m.get(t):t)&&t<d&&i(n(r[o]=t),e,o)}))});var S=0;f(s,function(t){b(t)?(a=t,o={}):(a=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=l({},o)).ordinalMeta=t,e=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var e,r,o,a,s=_.get(a);if(!1!==s){if(!(s=Fn(s)).length)for(var h=0;h<(e&&e.length||1);h++){for(;S<d&&null!=n(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=n(t),y&&null!=o.type&&(t.type=o.type),i(u(t,o),a,s),null==t.name&&e&&(T(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),r&&u(t.otherDims,r)})}});var C=e.generateCoord,M=null!=(I=e.generateCoordCount),I=C?I||1:0,k=C||"value";if(g)f(p,function(t){r(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var D=0;D<d;D++){var A=n(D);null==A.coordDim&&(A.coordDim=function(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}(k,c,M),A.coordDimIndex=0,(!C||I<=0)&&(A.isExtraCoord=!0),I--),r(A),null!=A.type||ba(t,D)!==jx.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}for(var P=p,O=W(),L=0;L<P.length;L++){var R=P[L],E=R.name,N=O.get(E)||0;0<N&&(R.name=E+(N-1)),N++,O.set(E,N)}return new FS({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Nu(t){return"category"===t.get("type")}function Bu(t,e,n){var i,r,o,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,g=(Pu(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e,!(!t||!t.get("stack")));return f(i,function(t,e){b(t)&&(i[e]=t={name:t}),g&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,f(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(u,n),t.storeDimIndex=o.ensureCalculationDimension(l,n)),r.appendCalculationDimension(e),r.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function zu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Fu(t,e){return zu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Vu(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=qa(t)):h=(i=u.getSource()).sourceFormat===Bx,function(t){var e=t.get("coordinateSystem"),n=new YS(e);if(e=XS[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(r=t,c=(c=e).get("coordinateSystem"),c=nw.get(c),p=(p=r&&r.coordSysDims?g(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=w(p)?p:p?_(xa,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=Eu(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(a=t)&&f(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=Bu(e,{schema:p,store:n}),c=new jS(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==Bx||x(Hn(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}function Hu(t){this._setting=t||{},this._extent=[1/0,-1/0]}function Gu(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ZS}function Wu(t){return T(t)&&null!=t.value?t.value:t+""}function Uu(t){return"interval"===t.type||"log"===t.type}function ju(t,e,n,i){var r={},o=t[1]-t[0],o=r.interval=On(o/e,!0),e=(null!=n&&o<n&&(o=r.interval=n),null!=i&&i<o&&(o=r.interval=i),r.intervalPrecision=Xu(o)),n=r.niceTickExtent=[Sn(Math.ceil(t[0]/o)*o,e),Sn(Math.floor(t[1]/o)*o,e)];return i=n,o=t,isFinite(i[0])||(i[0]=o[0]),isFinite(i[1])||(i[1]=o[1]),qu(i,0,o),qu(i,1,o),i[0]>i[1]&&(i[0]=i[1]),r}function Yu(t){var e=Math.pow(10,Pn(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Sn(t*e)}function Xu(t){return Cn(t)+2}function qu(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Zu(t,e){return t>=e[0]&&t<=e[1]}function Ku(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function $u(t,e){return t*(e[1]-e[0])+e[0]}function Qu(t){var t=$S.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new KS({}))&&(e=new KS({categories:g(e,function(t){return T(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function Ju(){var t=null!==JS&&JS.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function th(t){return x(t)?nC?new Float32Array(t):t:new iC(t)}function eh(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function nh(t){return t.dim+t.index}function ih(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function rh(t){var e,n,i=function(t){var e,n={},i=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),i=e.dim+"_"+e.index,r=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a<s;++a){var l=o.get(r,a);n[i]?n[i].push(l):n[i]=[l]}}),{});for(e in n)if(n.hasOwnProperty(e)){var r=n[e];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];0<s&&(o=null===o?s:Math.min(o,s))}i[e]=o}}return i}(t),r=[];return f(t,function(t){var e,n,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent(),s=(e="category"===o.type?o.getBandWidth():"value"===o.type||"time"===o.type?(e=o.dim+"_"+o.index,e=i[e],s=Math.abs(a[1]-a[0]),n=o.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?s/n*e:s):(n=t.getData(),Math.abs(a[1]-a[0])/n.count()),bn(t.get("barWidth"),e)),a=bn(t.get("barMaxWidth"),e),l=bn(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),u=t.get("barGap"),h=t.get("barCategoryGap");r.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:u,barCategoryGap:h,axisKey:nh(o),stackId:eh(t)})}),e={},f(r,function(t,n){var i=t.axisKey,r=t.bandWidth,r=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks,i=(e[i]=r,t.stackId),a=(o[i]||r.autoWidthCount++,o[i]=o[i]||{width:0,maxWidth:0},t.barWidth),a=(a&&!o[i].width&&(o[i].width=a,a=Math.min(r.remainedWidth,a),r.remainedWidth-=a),t.barMaxWidth),a=(a&&(o[i].maxWidth=a),t.barMinWidth),o=(a&&(o[i].minWidth=a),t.barGap),i=(null!=o&&(r.gap=o),t.barCategoryGap);null!=i&&(r.categoryGap=i)}),n={},f(e,function(t,e){n[e]={};var i,r=t.stacks,o=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(r).length,a=Math.max(35-4*s,15)+"%"),bn(a,o)),l=bn(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),p=(f(r,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,u-=e+l*e,h--):(e=c,n&&n<e&&(e=Math.min(n,u)),(e=i&&e<i?i:e)!==c&&(t.width=e,u-=e+l*e,h--))}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),0),d=(f(r,function(t,e){t.width||(t.width=c),p+=(i=t).width*(1+l)}),i&&(p-=i.width*l),-p/2);f(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function oh(t){return t=rC.call(this,t)||this,t.type="time",t}function ah(t,e){return 30<(t/=e?lx:sx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function sh(){var t=null!==sC&&sC.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new eC,t._interval=0,t}function lh(t,e){return hC(t,Cn(e))}function uh(t,e,n){this._prepareParams(t,e,n)}function hh(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function ch(t,e){var n,i,r,o,a,s=t.type,l=(l=e,u=(h=t).getExtent(),(c=h.rawExtentInfo)||(c=new yC(h,l,u),h.rawExtentInfo=c),c.calculate()),u=(t.setBlank(l.isBlank),l.min),h=l.max,c=e.ecModel;return c&&"time"===s&&(t=ih("bar",c),n=!1,f(t,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(s=rh(t),c=u,t=h,s=s,a=(a=(i=e).axis.getExtent())[1]-a[0],void 0!==(s=function(t,e,n){if(t&&e)return t=t[nh(e)],t}(s,i.axis))&&(r=1/0,f(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,f(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(i=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/i*a),u=(s={min:c,max:t}).min,h=s.max),{extent:[u,h],fixMin:l.minFixed,fixMax:l.maxFixed}}function ph(t,e){var n=ch(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof gC&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function dh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new QS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new oC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(qS.getClass(e)||eC)}}function fh(t){var e,n,i,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=r,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):b(r)?(n=r,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):w(r)?(e=r,function(n,i){return null!=o&&(i=n.value-o),e(gh(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function gh(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function yh(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent(),a=n instanceof QS?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=fh(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:o[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new py(f.x,f.y,p,c));r?r.union(g):r=g}return r}}function mh(t){return t=t.get("interval"),null==t?"auto":t}function vh(t){return"category"===t.type&&0===mh(t.getLabelModel())}function _h(){}function xh(t){x(t)?f(t,function(t){xh(t)}):0<=h(xC,t)||(xC.push(t),(t=w(t)?{install:t}:t).install(wC))}function wh(t,e){return Math.abs(t-e)<bC}function bh(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Ti(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return wh(r[0],s[0])&&wh(r[1],s[1])||(i+=Ti(r[0],r[1],s[0],s[1],e,n)),0!==i}}function Sh(t,e){for(var n=0;n<t.length;n++)at(t[n],t[n],e)}function Ch(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];(o=i?i.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(st(e,e,o),lt(n,n,o))}}function Th(t){this.name=t}function Mh(t,e,n){return t=CC.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function Ih(t,e){return t=TC.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function kh(t,e,n){for(var i=0;i<t.length;i++)t[i]=Dh(t[i],e[i],n)}function Dh(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function Ah(t,e){var n,i,r;return g(m((t=(n=t).UTF8Encoding?(null==(r=(i=n).UTF8Scale)&&(r=1024),f(i.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Dh(i,n,r);break;case"Polygon":case"MultiLineString":kh(i,n,r);break;case"MultiPolygon":f(i,function(t,e){return kh(t,n[e],r)})}}),i.UTF8Encoding=!1,i):n).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new MC(o[0],o.slice(1)));break;case"MultiPolygon":f(i.coordinates,function(t){t[0]&&r.push(new MC(t[0],t.slice(1)))});break;case"LineString":r.push(new IC([i.coordinates]));break;case"MultiLineString":r.push(new IC(i.coordinates))}return t=new kC(n[e||"name"],r,n.cp),t.properties=n,t})}function Ph(t){return"category"===t.type?(r=(i=t).getLabelModel(),o=Lh(i,r),!r.get("show")||i.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(e=t).scale.getTicks(),n=fh(e),{labels:g(r,function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}})});var e,n,i,r,o}function Oh(t,e){var n,i,r,o,a,s;return"category"===t.type?(e=e,o=Rh(n=t,"ticks"),a=mh(e),(s=Eh(o,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=w(a)?zh(n,a,!0):"auto"===a?(s=Lh(n,n.getLabelModel()),r=s.labelCategoryInterval,g(s.labels,function(t){return t.tickValue})):Bh(n,r=a,!0),Nh(o,a,{ticks:i,tickCategoryInterval:r}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Lh(t,e){var n,i=Rh(t,"labels"),e=mh(e),r=Eh(i,e);return r||Nh(i,e,{labels:w(e)?zh(t,e):Bh(t,n="auto"===e?null!=(i=DC(r=t).autoInterval)?i:DC(r).autoInterval=r.calculateCategoryInterval():e),labelCategoryInterval:n})}function Rh(t,e){return DC(t)[e]||(DC(t)[e]=[])}function Eh(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Nh(t,e,n){return t.push({key:e,value:n}),n}function Bh(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}for(var r=fh(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),e=a[0],h=o.count(),h=(0!==e&&1<u&&2<h/u&&(e=Math.round(Math.ceil(e/u)*u)),vh(t)),t=s.get("showMinLabel")||h,s=s.get("showMaxLabel")||h,c=(t&&e!==a[0]&&i(a[0]),e);c<=a[1];c+=u)i(c);return s&&c-u!==a[1]&&i(a[1]),l}function zh(t,e,n){var i=t.scale,r=fh(t),o=[];return f(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 Fh(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Vh(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function Hh(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-r)*(u-r)+(s-o)*(s-o))}function Gh(t,e,n,i,r,o,a){return n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),n=t+n,i=e+i,t=a[0]=Math.min(Math.max(r,t),n),n=a[1]=Math.min(Math.max(o,e),i),Math.sqrt((t-r)*(t-r)+(n-o)*(n-o))}function Wh(t,e,n){for(var i,r,o,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case OC.M:p=f=m[x++],d=g=m[x++];break;case OC.L:b=Hh(p,d,m[x],m[x+1],v,_,RC,!0),p=m[x++],d=m[x++];break;case OC.C:b=Ht(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,RC),p=m[x++],d=m[x++];break;case OC.Q:b=Yt(p,d,m[x++],m[x++],m[x],m[x+1],v,_,RC),p=m[x++],d=m[x++];break;case OC.A:var S=m[x++],C=m[x++],T=m[x++],M=m[x++],I=m[x++],k=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(I)*T+S,P=Math.sin(I)*M+C;x<=1&&(f=A,g=P),P=(A=I)+k,D=D,a=(v-S)*(o=M)/T+S,s=_,l=RC,c=h=u=void 0,a-=i=S,s-=r=C,u=Math.sqrt(a*a+s*s),h=(a/=u)*o+i,c=(s/=u)*o+r,b=Math.abs(A-P)%PC<1e-4||((P=D?(D=A,A=Ci(P),Ci(D)):(A=Ci(A),Ci(P)))<A&&(P+=PC),(D=Math.atan2(s,a))<0&&(D+=PC),A<=D&&D<=P)||A<=D+PC&&D+PC<=P?(l[0]=h,l[1]=c,u-o):(c=((D=o*Math.cos(A)+i)-a)*(D-a)+((h=o*Math.sin(A)+r)-s)*(h-s))<(i=((u=o*Math.cos(P)+i)-a)*(u-a)+((A=o*Math.sin(P)+r)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(I+k)*T+S,d=Math.sin(I+k)*M+C;break;case OC.R:b=Gh(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,RC);break;case OC.Z:b=Hh(p,d,f,g,v,_,RC,!0),p=f,d=g}b<y&&(y=b,n.set(RC[0],RC[1]))}return y}function Uh(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||LC,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&Ke([],h),p=e.get("length2")||0;u&&BC.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=b=w=x=_=v=m=void 0,y),v=0,_=s,x=EC,w=zC,b=_.width,S=_.height;switch(m){case"top":x.set(_.x+b/2,_.y-v),w.set(0,-1);break;case"bottom":x.set(_.x+b/2,_.y+S+v),w.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),w.set(-1,0);break;case"right":x.set(_.x+b+v,_.y+S/2),w.set(1,0)}iy.scaleAndAdd(NC,EC,zC,p),NC.transform(c),y=t.getBoundingRect(),y=u?u.distance(NC):t instanceof Bm?Wh(NC,t.path,BC):(m=BC,d=Gh((d=y).x,y.y,y.width,y.height,NC.x,NC.y,RC),m.set(RC[0],RC[1]),d),y<l&&(l=y,NC.transform(h),BC.transform(h),BC.toArray(o[0]),NC.toArray(o[1]),EC.toArray(o[2]))}i=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,EC.fromArray(i[0]),NC.fromArray(i[1]),BC.fromArray(i[2]),iy.sub(zC,EC,NC),iy.sub(FC,BC,NC),e=zC.len(),f=FC.len(),e<.001||f<.001||(zC.scale(1/e),FC.scale(1/f),e=zC.dot(FC),Math.cos(r)<e&&(f=Hh(NC.x,NC.y,BC.x,BC.y,EC.x,EC.y,VC,!1),HC.fromArray(VC),HC.scaleAndAdd(FC,f/Math.tan(Math.PI-r)),e=BC.x!==NC.x?(HC.x-NC.x)/(BC.x-NC.x):(HC.y-NC.y)/(BC.y-NC.y),isNaN(e)||(e<0?iy.copy(HC,NC):1<e&&iy.copy(HC,BC),HC.toArray(i[1]))))),n.setShape({points:o})}}}function jh(t,e,n,i){var r="normal"===n,n=r?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());r?t.useStyle(e):n.style=e}function Yh(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=Of(i[0],i[1]),r=Of(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=ot([],i[1],i[0],n/e),n=ot([],i[1],i[2],n/r),r=ot([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var o=1;o<i.length;o++)t.lineTo(i[o][0],i[o][1])}function Xh(t){for(var e=[],n=0;n<t.length;n++){var i,r,o,a,s,l,u=t[n];u.defaultAttr.ignore||(r=(i=u.label).getComputedTransform(),o=i.getBoundingRect(),a=!r||r[1]<1e-5&&r[2]<1e-5,l=i.style.margin||0,(s=o.clone()).applyTransform(r),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new D_(o,r):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:o,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:r}))}return e}function qh(t,e,n,i,r,o){function a(){_=w.rect[e]-i,x=r-b.rect[e]-b.rect[n]}function s(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(l(e*n,0,c),(e+=t)<0&&u(-e*n,1)):u(-t*n,1))}function l(n,i,r){0!==n&&(d=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;s<c;s++){var u=t[s-1].rect,u=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(u),a+=u}if(a){var h=Math.min(Math.abs(i)/a,r);if(0<i)for(s=0;s<c-1;s++)l(o[s]*h,0,s+1);else for(s=c-1;0<s;s--)l(-o[s-1]*h,s,c)}}function h(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(c-1))),i=0;i<c-1;i++)if(0<e?l(n,0,i+1):l(-n,c-i-1,c),(t-=n)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p=0,d=!1,f=0,g=0;g<c;g++){var y,m=t[g],v=m.rect;(y=v[e]-p)<0&&(v[e]-=y,m.label[e]-=y,d=!0),f+=Math.max(-y,0),p=v[e]+v[n]}0<f&&o&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&u(-_,.8),x<0&&u(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&h(-_),x<0&&h(x),d}}function Zh(t){function e(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var n=[],i=(t.sort(function(t,e){return e.priority-t.priority}),new py(0,0,0,0)),r=0;r<t.length;r++){for(var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine,c=(i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05,o.obb),p=!1,d=0;d<n.length;d++){var f=n[d];if(i.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new D_(f.localRect,f.transform)),(c=c||new D_(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function Kh(t,e){var n=t.label,e=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:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}function $h(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function Qh(){this._labelList=[],this._chartViewList=[]}function Jh(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(qC(e).labelManager||(qC(e).labelManager=new XC)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=qC(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function tc(t,e,n){var i=df.createCanvas(),r=e.getWidth(),e=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=e*n,i}function ec(t,e,n){var i,r=ZC.call(this)||this,t=(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,n=n||Yg,"string"==typeof t?i=tc(t,e,n):T(t)&&(t=(i=t).id),r.id=t,(r.dom=i).style);return t&&(Y(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=n,r}function nc(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l({},n||{}),this.dpr=n.devicePixelRatio||Yg,this._singleCanvas=r,(this.root=t).style&&(Y(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new KC(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[$C]=o).zlevel=$C,e.push($C),this._domRoot=t):(this._width=El(t,0,n),this._height=El(t,1,n),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}function ic(){var t=null!==JC&&JC.apply(this,arguments)||this;return t.type="dataset",t}function rc(){var t=null!==eT&&eT.apply(this,arguments)||this;return t.type="dataset",t}function oc(t){t.registerComponentModel(tT),t.registerComponentView(nT)}function ac(){var t=null!==iT&&iT.apply(this,arguments)||this;return t.type=ac.type,t.hasSymbolVisual=!0,t}function sc(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=ls(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;a<i.length;a++)o.push(ls(t,e,i[a]));return o.join(" ")}}function lc(t,e,n,i){var r=oT.call(this)||this;return r.updateData(t,e,n,i),r}function uc(t,e){this.parent.drift(t,e)}function hc(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 cc(t){return(t=null==t||T(t)?t:{isIgnore:t})||{}}function pc(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Do(t),cursorStyle:t.get("cursor")}}function dc(t){this.group=new wy,this._SymbolCtor=t||aT}function fc(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]),n}(r,n),i=i.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(i),s="x"===r||"radius"===r?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return zu(e,t[0])&&(l=!0,t[0]=u),zu(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:r,baseAxisDim:i,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gc(t,e,n,i){var r=NaN,o=(t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function yc(t,e){return isNaN(t)||isNaN(e)}function mc(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(r<=d||d<0)break;if(yc(g,y)){if(l){d+=o;continue}break}if(d===n)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<i;)f++,d+=o,x=e[2*(_+=o)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;yc(x,w)&&b<i;)b++,x=e[2*(_+=o)],w=e[2*_+1];var S,C,T,M,I,k,D,A,P,m=0,v=0,O=void 0,L=void 0;i<=b||yc(x,w)?(D=g,A=y):(m=x-u,v=w-h,S=g-u,C=x-g,T=y-h,M=w-y,k=I=void 0,L="x"===s?(D=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,A=y,O=g+P*(k=Math.abs(C))*a,y):"y"===s?(A=y-(P=0<v?1:-1)*(I=Math.abs(T))*a,O=D=g,y+P*(k=Math.abs(M))*a):(I=Math.sqrt(S*S+T*T),D=g-m*a*(1-(S=(k=Math.sqrt(C*C+M*M))/(k+I))),A=y-v*a*(1-S),L=y+v*a*S,O=uT(O=g+m*a*S,hT(x,g)),L=uT(L,hT(w,y)),O=hT(O,uT(x,g)),A=y-(v=(L=hT(L,uT(w,y)))-y)*I/k,D=uT(D=g-(m=O-g)*I/k,hT(u,g)),A=uT(A,hT(h,y)),O=g+(m=g-(D=hT(D,uT(u,g))))*k/I,y+(v=y-(A=hT(A,uT(h,y))))*k/I)),t.bezierCurveTo(c,p,D,A,g,y),c=O,p=L}else t.lineTo(g,y)}u=g,h=y,d+=o}return f}function vc(t){return t=sT.call(this,t)||this,t.type="ec-polyline",t}function _c(){return null!==dT&&dT.apply(this,arguments)||this}function xc(t){return t=gT.call(this,t)||this,t.type="ec-polygon",t}function wc(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function bc(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 Sc(t,e){var t=bc(t),n=t[0],t=t[1],e=bc(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Cc(t){return C(t)?t:t?.5:0}function Tc(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,r=[],o=0,a=[],s=[],l=[];o<t.length-2;o+=2)switch(l[0]=t[o+2],l[1]=t[o+3],s[0]=t[o],s[1]=t[o+1],r.push(s[0],s[1]),n){case"end":a[i]=l[i],a[1-i]=s[1-i],r.push(a[0],a[1]);break;case"middle":var u=[];a[i]=u[i]=(s[i]+l[i])/2,a[1-i]=s[1-i],u[1-i]=l[1-i],r.push(a[0],a[1]),r.push(u[0],u[1]);break;default:a[i]=s[i],a[1-i]=l[1-i],r.push(a[0],a[1])}return r.push(t[o++],t[o++]),r}function Mc(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=i.length-1;0<=o;o--){var a,s=t.getDimensionInfo(i[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=i[o];break}}if(r){var l=e.getAxis(a),e=g(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=r.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){function n(t,e,n){var i=t.coord;return{coord:n,color:he((n-i)/(e.coord-i),[t.color,e.color])}}for(var i,r,o=[],a=t.length,s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)i=l;else{if(e<u){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}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;return d<.001?"transparent":(f(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"}),e=new b_(0,0,0,0,n,!0),e[a]=p,e[a+"2"]=u,e)}}}function Ic(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var r,o,a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),r=(isNaN(i)&&(i=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*aT.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return r=e.mapDimension(a.dim),o={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function kc(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function Dc(t,e){return[t[2*e],t[2*e+1]]}function Ac(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<hv.length;e++)if(t.get([hv[e],"endLabel","show"]))return 1}function Pc(t,e,n,i){var r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},x=Ac(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,l=e.getBaseAxis().isHorizontal(),h=n,c=i,p=function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(u=e).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||2,f-=v/2,g-=v/2,y+=v,m+=v,f=Math.floor(f),y=Math.round(y),_=new qm({shape:{x:f,y:g,width:y,height:m}}),h&&(h=(v=u.getBaseAxis()).isHorizontal(),u=v.inverse,h?(u&&(_.shape.x+=y),_.shape.width=0):(u||(_.shape.y+=m),_.shape.height=0),v=w(d)?function(t){d(t,_)}:null,eo(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,v)),h=_,i.get("clip",!0)||(u=h.shape,y=Math.max(u.width,u.height),l?(u.y-=y,u.height+=2*y):(u.x-=y,u.width+=2*y)),x&&x(1,h),h):(m=n,f=i,c=(g=e).getArea(),p=Sn(c.r0,1),v=Sn(c.r,1),l=new $v({shape:{cx:Sn(g.cx,1),cy:Sn(g.cy,1),r0:p,r:v,startAngle:c.startAngle,endAngle:c.endAngle,clockwise:c.clockwise}}),m&&("angle"===g.getBaseAxis().dim?l.shape.endAngle=c.startAngle:l.shape.r=p,eo(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Oc(){return null!==mT&&mT.apply(this,arguments)||this}function Lc(){return null!==wT&&wT.apply(this,arguments)||this}function Rc(){return null!==ST&&ST.apply(this,arguments)||this}function Ec(t,e,i,r){f(MT,function(o,a){function l(){var t=null!==u&&u.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var u,h=s(s({},TT[a],!0),r,!0),h=(n(l,u=i),l.prototype.mergeDefaultAndTheme=function(t,e){var n=ga(this),i=n?ma(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=Nc(t),n&&ya(t,i,n)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=KS.createByAxisModel(this))},l.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=e+"Axis."+a,l.defaultOption=h,l);t.registerComponentModel(h)}),t.registerSubTypeDefaulter(e+"Axis",Nc)}function Nc(t){return t.type||(t.data?"category":"value")}function Bc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function zc(t){return"interval"===t.type||"time"===t.type}function Fc(){var t=null!==kT&&kT.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=IT,t}function Vc(t,e,n,i,r){return t=AT.call(this,t,e,n)||this,t.index=0,t.type=i||"value",t.position=r||"bottom",t}function Hc(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),L(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}function Gc(t){return"cartesian2d"===t.get("coordinateSystem")}function Wc(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(n,i){var r=i.replace(/Model$/,""),r=t.getReferringComponents(r,Oy).models[0];e[i]=r}),e}function Uc(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IT,this._initCartesian(t,e,n),this.model=t}function jc(t,e){return t.getCoordSysModel()===e}function Yc(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)Xc(a[n])&&(o=a[n]);else for(var s in a)if(a.hasOwnProperty(s)&&Xc(a[s])&&!i[r(a[s])]){o=a[s];break}o&&(i[r(o)]=!0)}}function Xc(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function qc(t,e){this.group=new wy,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new wy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function Zc(t){t&&(t.ignore=!0)}function Kc(t,e){var n,i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r)return qe(n=Ue([]),n,-t.rotation),i.applyTransform(Ye([],n,t.getLocalTransform())),r.applyTransform(Ye([],n,e.getLocalTransform())),i.intersect(r)}function $c(t){return"middle"===t||"center"===t}function Qc(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(at(a,a,e),at(s,s,e)),new h_({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));u.anid=r+"_"+t[l].tickValue,o.push(u)}return o}function Jc(t,e){var n,i,r,o,s,l,h,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=c,e=e,r=(i=t).getComponent("tooltip"),o=i.getComponent("axisPointer"),s=o.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,r,p){var d,g=p.model.getModel("axisPointer",o),y=g.get("show");y&&("auto"!==y||e||np(g))&&(null==r&&(r=g.get("triggerTooltip")),y=(g=e?function(t,e,n,i,r,o){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!o,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===r&&(r=s.get(["label","show"]),e.show=null==r||r,o||(r=l.lineStyle=s.get("crossStyle"))&&u(e,r.textStyle)),t.model.getModel("axisPointer",new J_(l,n,i))}(p,c,o,i,e,r):g).get("snap"),e=ip(p.model),d=r||y||"category"===p.type,r=n.axesInfo[e]={key:e,axis:p,coordSys:t,axisPointerModel:g,triggerTooltip:r,involveSeries:d,snap:y,useHandle:np(g),seriesModels:[],linkGroup:null},h[e]=r,n.seriesInvolved=n.seriesInvolved||d,null!=(y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(tp(o[i+"AxisId"],n.id)||tp(o[i+"AxisIndex"],n.componentIndex)||tp(o[i+"AxisName"],n.name))return r}}(s,p)))&&((g=l[y]||(l[y]={axesInfo:{}})).axesInfo[e]=r,g.mapper=s[y].mapper,r.linkGroup=g)}var h,c,p,d,g;t.axisPointerEnabled&&(p=ip(t.model),h=n.coordSysAxesInfo[p]={},c=(n.coordSysMap[p]=t).model.getModel("tooltip",r),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&r&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(h=c,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&f(h.coordSysAxesInfo[ip(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),c}function tp(t,e){return"all"===t||x(t)&&0<=h(t,e)||t===e}function ep(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ip(t)]}function np(t){return!!t.get(["handle","show"])}function ip(t){return t.type+"||"+t.id}function rp(){var t=null!==LT&&LT.apply(this,arguments)||this;return t.type=rp.type,t}function op(){var t=null!==RT&&RT.apply(this,arguments)||this;return t.type=op.type,t.axisPointerClass="CartesianAxisPointer",t}function ap(){var t=null!==ET&&ET.apply(this,arguments)||this;return t.type=ap.type,t}function sp(){var t=null!==XT&&XT.apply(this,arguments)||this;return t.type=YT.type,t}function lp(){var t=null!==ZT&&ZT.apply(this,arguments)||this;return t.type="grid",t}function up(){var t=null!==QT&&QT.apply(this,arguments)||this;return t.type=up.type,t.layoutMode={type:"box",ignoreSize:!0},t}function hp(){var t=null!==tM&&tM.apply(this,arguments)||this;return t.type=hp.type,t}function cp(){var t=null!==nM&&nM.apply(this,arguments)||this;return t.type=cp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function pp(){var t=null!==iM&&iM.apply(this,arguments)||this;return t.type=pp.type,t.newlineDisabled=!1,t}function dp(t,e,n,i){yp(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),gp(t,e,n,i)}function fp(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function gp(t,e,n,i){fp(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function yp(t,e,n,i){fp(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function mp(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function vp(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),f(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),r.hasOwnProperty(t)?r[t]=r[t]&&e:r[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function _p(t){t.registerComponentModel(rM),t.registerComponentView(lM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,mp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(vp,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(vp,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(vp,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(vp,"select")),t.registerAction("legendUnSelect","legendunselected",_(vp,"unSelect"))}function xp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=xp.type,t}function wp(t,e,n){var i=[1,1];i[t.getOrient().index]=0,ya(e,n,{type:"box",ignoreSize:!!i})}function bp(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.type=bp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Sp(){this._dragging=!1,this.animationThreshold=15}function Cp(t,e,n,i){!function t(e,n){var i;return T(e)&&T(n)?(i=!0,f(n,function(n,r){i=i&&t(e[r],n)}),!!i):e===n}(yM(n).lastProp,i)&&(yM(n).lastProp=i,e?to(n,i,t):(n.stopAnimation(),n.attr(i)))}function Tp(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Mp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Ip(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 kp(t,e,n,i,r){var o=Dp(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=yx(n.get("padding")||0),s=n.getFont(),l=on(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Ao(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function Dp(t,e,n,i,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:gh(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)}),b(r)?a=r.replace("{value}",a):w(r)&&(a=r(o))),a}function Ap(t,e,n){var i=We();return qe(i,i,n.rotation),Xe(i,i,n.position),yo([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Pp(){return null!==_M&&_M.apply(this,arguments)||this}function Op(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function Lp(t){return"x"===t.dim?0:1}function Rp(){var t=null!==bM&&bM.apply(this,arguments)||this;return t.type=Rp.type,t}function Ep(t,e,n){function i(t,e){o.on(t,function(t){function n(t){var e=r[t.type];e?e.push(t):(t.dispatchAction=n,i.dispatchAction(t))}i=a;var i,r,s={dispatchAction:n,pendings:r={showTip:[],hideTip:[]}};TM(CM(o).records,function(n){n&&e(n,t,s.dispatchAction)});var l,u=s.pendings,h=a,c=u.showTip.length,p=u.hideTip.length;c?l=u.showTip[c-1]:p&&(l=u.hideTip[p-1]),l&&(l.dispatchAction=null,h.dispatchAction(l))})}var r,o,a;af.node||(r=e.getZr(),CM(r).records||(CM(r).records={}),a=e,CM(o=r).initialized||(CM(o).initialized=!0,i("click",_(Bp,"click")),i("mousemove",_(Bp,"mousemove")),i("globalout",Np)),(CM(r).records[t]||(CM(r).records[t]={})).handler=n)}function Np(t,e,n){t.handler("leave",null,n)}function Bp(t,e,n,i){e.handler(t,n,i)}function zp(t,e){af.node||(e=e.getZr(),(CM(e).records||{})[t]&&(CM(e).records[t]=null))}function Fp(){var t=null!==MM&&MM.apply(this,arguments)||this;return t.type=Fp.type,t}function Vp(t,e){var n,i,r,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Zn(n=e.getData(),t))||s<0||x(s)?{point:[]}:(i=n.getItemGraphicEl(s),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(n.getValues(g(r.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}function Hp(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||If(n.dispatchAction,n),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return Yp(x)&&(x=Vp({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),i=Yp(x),r=w.axesInfo,o=S.axesInfo,a="leave"===v||Yp(x),s={},e={list:[],map:{}},u={showPointer:_(Wp,l={}),showTooltip:_(Up,e)},f(S.coordSysMap,function(t,e){var n=i||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var o=t.axis,l=function(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}}(r,t);a||!n||r&&!l||null!=(l=null!=(l=l&&l.value)||i?l:o.pointToData(x))&&Gp(t,l,u,!1,s)})}),h={},f(o,function(t,e){var n=t.linkGroup;n&&!l[e]&&f(n.axesInfo,function(e,i){var i=l[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,jp(e),jp(t)))),h[t.key]=i)})}),f(h,function(t,e){Gp(o[e],t,u,!0,s)}),c=l,w=o,p=s.axesInfo=[],f(w,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),v=e,w=t,e=b,Yp(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=o,w=(t=n).getZr(),b="axisPointerLastHighlights",d=kM(w)[b]||{},g=kM(w)[b]={},f(e,function(t,e){t=t.axisPointerModel.option,"show"===t.status&&f(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),y=[],m=[],f(d,function(t,e){g[e]||m.push(t)}),f(g,function(t,e){d[e]||y.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function Gp(t,e,n,i,r){var o,a,s,u,h,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,u=s.dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData)var r=t.getAxisTooltipData(i,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=t.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;r=t.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=a-r,(n=Math.abs(i))<=p)&&((n<p||0<=i&&d<0)&&(p=n,d=i,h=r,c.length=0),f(o,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(o={payloadBatch:c,snapToValue:h}).snapToValue,(g=o.payloadBatch)[0]&&null==r.seriesIndex&&l(r,g[0]),!i&&t.snap&&m.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,o,y)):n.showPointer(t,e))}function Wp(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Up(t,e,n,i){var r,o,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(r=ip(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function jp(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function Yp(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Xp(t){HT.registerAxisPointerClass("CartesianAxisPointer",xM),t.registerComponentModel(SM),t.registerComponentView(IM),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!x(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Jc(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Hp)}function qp(){var t=null!==DM&&DM.apply(this,arguments)||this;return t.type=qp.type,t}function Zp(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function Kp(t){if(af.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}function $p(t,e){if(!t)return e;e=oa(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}function Qp(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return af.transformSupported?(i="translate"+((i=af.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+LM+":"+i+";":[["top",0],["left",0],[PM,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function Jp(t,e,n){var i,r,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=js(t,"html");return o.push("box-shadow:"+h+"px "+c+"px "+l+"px "+u),e&&a&&o.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,n||(l=" "+h+"s "+c,u+=af.transformSupported?","+LM+l:",left"+l+",top"+l),OM+":"+u)),s&&o.push("background-color:"+s),f(["width","color","radius"],function(e){var n="border-"+e,i=oa(n),i=t.get(i);null!=i&&o.push(n+":"+i+("color"===e?"":"px"))}),o.push((r=[],e=(i=p).get("fontSize"),(a=i.getTextColor())&&r.push("color:"+a),r.push("font:"+i.getFont()),e&&r.push("line-height:"+Math.round(3*e/2)+"px"),a=i.get("textShadowColor"),e=i.get("textShadowBlur")||0,n=i.get("textShadowOffsetX")||0,h=i.get("textShadowOffsetY")||0,a&&e&&r.push("text-shadow:"+n+"px "+h+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=i.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=d&&o.push("padding:"+yx(d).join("px ")+"px"),o.join(";")+";"}function td(t,e,n,i,r){var o,a,s=e&&e.painter;n?(n=s&&s.getViewportRoot())&&(o=t,a=document.body,dt(Vf,n,i,r,!0))&&dt(o,a,Vf[0],Vf[1]):(t[0]=i,t[1]=r,(n=s&&s.getViewportRootOffset())&&(t[0]+=n.offsetLeft,t[1]+=n.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ed(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,af.wxa)return null;var i=document.createElement("div"),r=(i.domBelongToZr=!0,this.el=i,this._zr=e.getZr()),n=this._appendToBody=n&&n.appendToBody,o=(td(this._styleCoord,r,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t,this);i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=r.handler,vt(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}function nd(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),od(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function id(t){return Math.max(0,t)}function rd(t){var e=id(t.shadowBlur||0),n=id(t.shadowOffsetX||0),t=id(t.shadowOffsetY||0);return{left:id(e-n),right:id(e+n),top:id(e-t),bottom:id(e+t)}}function od(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ad(){var t=null!==NM&&NM.apply(this,arguments)||this;return t.type=ad.type,t}function sd(t,e,n){for(var i=e.ecModel,r=n?(r=new J_(n,i,i),new J_(e.option,r,i)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(b(a=a instanceof J_?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new J_(a,r,i))}return r}function ld(t,e){return t.dispatchAction||If(e.dispatchAction,e)}function ud(t){return"center"===t||"middle"===t}function hd(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&Bn("")}function cd(){}function pd(){}function dd(){}function fd(){}function gd(){}function yd(t,e){if(!0===t||!1===t)return(n=new GM).value=t,n;var n;if(vd(t)||Bn(""),t.and)return md("and",t,e);if(t.or)return md("or",t,e);if(t.not)return n=e,vd(o=(o=t).not)||Bn(""),(l=new jM).child=yd(o,n),l.child||Bn(""),l;for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=v(i),l=i.parser,u=l?ys(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=X(VM,p)?VM[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Ow("eq"===t,e):X(Dw,t)?new Aw(t,e):null}(c,p)||"reg"===c&&new HM(p))||Bn(""),a.push(c))}return a.length||Bn(""),(l=new YM).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a,l}function md(t,e,n){return e=e[t],x(e)||Bn(""),e.length||Bn(""),t=new("and"===t?WM:UM),t.children=g(e,function(t){return yd(t,n)}),t.children.length||Bn(""),t}function vd(t){return T(t)&&!d(t)}function _d(t,e){this._cond=yd(t,e)}function xd(){}function wd(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof Wm)t("opacity",r);else if(null!=(o=(o=e).fill)&&o!==iI?(t("fill",(o=de(e.fill)).color),o=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r,(i||o<1)&&t("fill-opacity",o)):t("fill",iI),null!=(o=(o=e).stroke)&&o!==iI){var o=de(e.stroke),a=(t("stroke",o.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,o=null!=e.strokeOpacity?e.strokeOpacity*o.opacity*r:o.opacity*r,r=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||r)&&t("paint-order",r?"stroke":"fill"),(i||o<1)&&t("stroke-opacity",o),e.lineDash?(r=(a=Nl(n))[0],o=a[1],r&&(o=rI(o||0),t("stroke-dasharray",r.join(",")),o||i)&&t("stroke-dashoffset",o)):i&&t("stroke-dasharray",iI);for(var s=0;s<oI.length;s++){var l=oI[s];(i||e[l]!==Rm[l])&&(l=e[l]||Rm[l])&&t(aI[s],l)}}else i&&t("stroke",iI)}function bd(t){return document.createElementNS(sI,t)}function Sd(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function Cd(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i];!1!==r&&(!0!==r&&null!=r&&(i+='="'+r+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(r,e.attrs)+(e.text||"")+(i?n+g(i,t).join(n)+n:"")+"</"+r+">"}(t)}function Td(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Md(t,e,n,i){return Sd("svg","root",{width:t,height:e,xmlns:sI,"xmlns:xlink":lI,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}function Id(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function kd(t){return b(t)?cI[t]?"cubic-bezier("+cI[t]+")":Xt(t)?t:"":""}function Dd(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof __){if(u=function(t,e,n){var i,r,t=t.shape.paths,o={};if(f(t,function(t){var e=Td(n.zrId),t=(e.animation=!0,Dd(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,u,h=t[r=e[s-1]];for(l in h){var c=h[l];o[l]=o[l]||{d:""},o[l].d+=c.d||""}for(u in a){var p=a[u].animation;0<=p.indexOf(r)&&(i=p)}}}),i)return e.d=!1,t=Id(o,n),i.replace(r,t)}(t,e,n))a.push(u);else if(!o)return}else if(!o)return;for(var s,u,h,c={},p=0;p<o;p++){var d=r[p],g=[d.getMaxTime()/1e3+"s"],y=kd(d.getClip().easing),_=d.getDelay(),y=(g.push(y||"linear"),_&&g.push(_/1e3+"s"),d.getLoop()&&g.push("infinite"),g.join(" "));c[y]=c[y]||[y,[]],c[y][1].push(d)}for(s in c)(u=function(r){function o(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/r*100)+"%",p=kd(h.easing),d=h.rawValue;(b(d)||C(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,u=r[1],h=u.length,c={},p={},d={},f="animation-timing-function",g=0;g<h;g++)(O=(P=u[g]).targetName)?"shape"===O&&o(P,p):i||o(P,c);for(A in c){var y={},_=(Je(y,t),l(y,c[A]),be(y)),x=c[A][f];d[A]=_?{transform:_}:{},_=d[A],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[pI]=a+"px "+y+"px"),x&&(d[A][f]=x)}var w,S,T,M=!0;for(A in p){d[A]=d[A]||{};var I=!s,x=p[A][f],k=(s=I?new Mm:s).len(),D=(s.reset(),d[A].d=(S=p[A],T=s,D=void 0,D=l({},(w=t).shape),l(D,S),w.buildPath(T,D),(S=new nI).reset(we(w)),T.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==D){M=!1;break}x&&(d[A][f]=x)}if(!M)for(var A in d)delete d[A].d;if(!i)for(var P,O,g=0;g<h;g++)"style"===(O=(P=u[g]).targetName)&&o(P,d,function(t){return dI[t]});for(var L,R=v(d),E=!0,g=1;g<R.length;g++){var N=R[g-1],B=R[g];if(d[N][pI]!==d[B][pI]){E=!1;break}L=d[N][pI]}if(E&&L){for(var A in d)d[A][pI]&&delete d[A][pI];e[pI]=L}if(m(R,function(t){return 0<v(d[t]).length}).length)return Id(d,n)+" "+r[0]+" both"}(c[s]))&&a.push(u);a.length&&(h=n.zrId+"-cls-"+n.cssClassIdx++,n.cssNodes["."+h]={animation:a.join(",")},e.class=h)}function Ad(t){return t&&b(t.src)}function Pd(t){return t&&w(t.toDataURL)}function Od(t,e,n,i){wd(function(r,o){var a,s,l,u,h,c,p,d="fill"===r||"stroke"===r;if(d&&(g=o)&&("linear"===g.type||"radial"===g.type)){var f,g=t,y=r,m=i,v={gradientUnits:(I=(I=e)[y]).global?"userSpaceOnUse":"objectBoundingBox"};if(ve(I))f="linearGradient",v.x1=I.x,v.y1=I.y,v.x2=I.x2,v.y2=I.y2;else{if(!_e(I))return;f="radialGradient",v.cx=R(I.x,.5),v.cy=R(I.y,.5),v.r=R(I.r,.5)}for(var _=I.colorStops,x=[],w=0,S=_.length;w<S;++w){var C=100*ye(_[w].offset)+"%",T=de(_[w].color),M=T.color,T=T.opacity,C={offset:C};C["stop-color"]=M,T<1&&(C["stop-opacity"]=T),x.push(Sd("stop",w+"",C))}var I=Cd(Sd(f,"",v,x)),k=m.gradientCache,D=k[I];D||(D=m.zrId+"-g"+m.gradientIdx++,k[I]=D,v.id=D,m.defs[D]=Sd(f,D,v,x)),g[y]=xe(D)}else d&&(me(k=o)||(k=k)&&k.svgElement)?(I=t,m=r,f=i,g=(v=n).style[m],y={patternUnits:"userSpaceOnUse"},me(g)?(l=g.imageWidth,u=g.imageHeight,h=void 0,b(p=g.image)?h=p:Ad(p)?h=p.src:Pd(p)&&(h=p.toDataURL()),"undefined"==typeof Image?(z(l,p="Image width/height must been given explictly in svg-ssr renderer."),z(u,p)):null!=l&&null!=u||(c=function(t,e){var n,i;t&&(n=t.elm,i=t.attrs.width=l||e.width,t=t.attrs.height=u||e.height,n)&&(n.setAttribute("width",i),n.setAttribute("height",t))},(p=hi(h,null,v,function(t){c(s,t),c(a,t)}))&&p.width&&p.height&&(l=l||p.width,u=u||p.height)),a=Sd("image","img",{href:h,width:l,height:u}),y.width=l,y.height=u):g.svgElement&&(a=g.svgElement,y.width=g.svgWidth,y.height=g.svgHeight),a&&(y.patternTransform=be(g),s=Sd("pattern","",y,[a]),v=Cd(s),p=f.patternCache,(h=p[v])||(h=f.zrId+"-p"+f.patternIdx++,p[v]=h,y.id=h,s=f.defs[h]=Sd("pattern",h,y,[a])),I[m]=xe(h))):t[r]=o},e,n,!1);var r=t,o=i;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(u=n).style)){var a=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(u),s=o.shadowCache,l=s[a];if(!l){var u=u.getGlobalScale(),h=u[0],u=u[1];if(!h||!u)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=de(f.shadowColor),g=f.opacity,f=f.color,d=d/2/h+" "+d/2/u;l=o.zrId+"-s"+o.shadowIdx++,o.defs[l]=Sd("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Sd("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}r.filter=xe(l)}}function Ld(t){return fe(t[0]-1)&&fe(t[1])&&fe(t[2])&&fe(t[3]-1)}function Rd(t,e,n){var i;!e||fe((i=e)[4])&&fe(i[5])&&Ld(e)||(i=n?10:1e4,t.transform=Ld(e)?"translate("+fI(e[4]*i)/i+" "+fI(e[5]*i)/i+")":"matrix("+ge((n=e)[0])+","+ge(n[1])+","+ge(n[2])+","+ge(n[3])+","+ye(n[4])+","+ye(n[5])+")")}function Ed(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(fI(i[o][0]*n)/n),r.push(fI(i[o][1]*n)/n);e.points=r.join(" ")}function Nd(t){return!t.smooth}function Bd(t,e){var n,i,r,o=t.style,a=t.shape,s=gI[t.type],l={},u=e.animation,h="path",c=t.style.strokePercent,p=e.compress&&we(t)||4;return!s||e.willUpdate||s[1]&&!s[1](a)||u&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||c<1?(t.path||t.createPathProxy(),u=t.path,t.shapeChanged()&&(u.beginPath(),t.buildPath(u,t.shape),t.pathUpdated()),n=u.getVersion(),r=(i=t).__svgPathBuilder,i.__svgPathVersion===n&&r&&c===i.__svgPathStrokePercent||((r=r||(i.__svgPathBuilder=new nI)).reset(p),u.rebuildPath(r,c),r.generateStr(),i.__svgPathVersion=n,i.__svgPathStrokePercent=c),l.d=r.getStr()):(h=t.type,u=Math.pow(10,p),s[0](a,l,u)),Rd(l,t.transform),Od(l,o,t,e),e.animation&&Dd(t,l,e),Sd(h,t.id+"",l)}function zd(t,e){if(t instanceof Bm)return Bd(t,e);if(t instanceof Wm){var n=t,i=e,r=n.style,o=r.image;if(o&&!b(o)&&(Ad(o)?o=o.src:Pd(o)&&(o=o.toDataURL())),o)return a=r.x||0,s=r.y||0,o={href:o,width:r.width,height:r.height},a&&(o.x=a),s&&(o.y=s),Rd(o,n.transform),Od(o,r,n,i),i.animation&&Dd(n,o,i),Sd("image",n.id+"",o)}else if(t instanceof Fm){var a=t,s=e,r=a.style,i=r.text;if(null!=i&&(i+=""),i&&!isNaN(r.x)&&!isNaN(r.y)){var n=r.font||cf,o=r.x||0,l=(t=r.y||0,e=ln(n),"top"===(l=r.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":Tg[r.textAlign]||r.textAlign};if(Fi(r)){var t="",u=r.fontStyle,h=Bi(r.fontSize);if(!parseFloat(h))return;var c=r.fontFamily||hf,p=r.fontWeight;t+="font-size:"+h+";font-family:"+c+";",u&&"normal"!==u&&(t+="font-style:"+u+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),o&&(e.x=o),l&&(e.y=l),Rd(e,a.transform),Od(e,r,a,s),s.animation&&Dd(a,e,s),Sd("text",a.id+"",e,void 0,i)}}}function Fd(t){return document.createTextNode(t)}function Vd(t,e,n){t.insertBefore(e,n)}function Hd(t,e){t.removeChild(e)}function Gd(t,e){t.appendChild(e)}function Wd(t){return t.parentNode}function Ud(t){return t.nextSibling}function jd(t,e){t.textContent=e}function Yd(t){return void 0===t}function Xd(t){return void 0!==t}function qd(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Zd(t){var e,n=t.children,i=t.tag;if(Xd(i)){var r=t.elm=bd(i);if(Qd(vI,t),x(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&Gd(r,Zd(o))}else Xd(t.text)&&!T(t.text)&&Gd(r,Fd(t.text))}else t.elm=Fd(t.text);return t.elm}function Kd(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&Vd(t,Zd(o),e)}}function $d(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(Xd(r.tag)?Hd(Wd(r.elm),r.elm):Hd(t,r.elm))}}function Qd(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==mI?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(uI,n,a):n.charCodeAt(3)===yI?i.setAttributeNS(hI,n,a):n.charCodeAt(5)===yI?i.setAttributeNS(lI,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function Jd(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,p=n[0],d=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==p?p=n[++s]:null==d?d=n[--c]:qd(u,p)?(tf(u,p),u=e[++a],p=n[++s]):qd(h,d)?(tf(h,d),h=e[--l],d=n[--c]):qd(u,d)?(tf(u,d),Vd(t,u.elm,Ud(h.elm)),u=e[++a],d=n[--c]):(qd(h,p)?(tf(h,p),Vd(t,h.elm,u.elm),h=e[--l]):(Yd(i)&&(i=function(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}(e,a,l)),Yd(r=i[p.key])||(o=e[r]).tag!==p.tag?Vd(t,Zd(p),u.elm):(tf(o,p),e[r]=void 0,Vd(t,o.elm,u.elm))),p=n[++s]);(a<=l||s<=c)&&(l<a?Kd(t,null==n[c+1]?null:n[c+1].elm,n,s,c):$d(t,e,a,l))}function tf(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Qd(t,e),Yd(e.text)?Xd(i)&&Xd(r)?i!==r&&Jd(n,i,r):Xd(r)?(Xd(t.text)&&jd(n,""),Kd(n,null,r,0,r.length-1)):Xd(i)?$d(n,i,0,i.length-1):Xd(t.text)&&jd(n,""):t.text!==e.text&&(Xd(i)&&$d(n,i,0,i.length-1),jd(n,e.text)))}function ef(t,e,n){var i;this.type="svg",this.refreshHover=nf(),this.configLayer=nf(),this.storage=e,this._opts=n=l({},n),this.root=t,this._id="zr"+_I++,this._oldVNode=Md(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=bd("svg"),Qd(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function nf(){return function(){}}var rf=function(t,e){return(rf=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)},of=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},af=new function(){this.browser=new of,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};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(af.wxa=!0,af.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?af.worker=!0:"undefined"==typeof navigator?(af.node=!0,af.svgSupported=!0):(Sf=navigator.userAgent,Rf=(Pf=af).browser,Mf=Sf.match(/Firefox\/([\d.]+)/),mf=Sf.match(/MSIE\s([\d.]+)/)||Sf.match(/Trident\/.+?rv:(([\d.]+))/),bf=Sf.match(/Edge?\/([\d.]+)/),Sf=/micromessenger/i.test(Sf),Mf&&(Rf.firefox=!0,Rf.version=Mf[1]),mf&&(Rf.ie=!0,Rf.version=mf[1]),bf&&(Rf.edge=!0,Rf.version=bf[1],Rf.newEdge=18<+bf[1].split(".")[0]),Sf&&(Rf.weChat=!0),Pf.svgSupported="undefined"!=typeof SVGRect,Pf.touchEventsSupported="ontouchstart"in window&&!Rf.ie&&!Rf.edge,Pf.pointerEventsSupported="onpointerdown"in window&&(Rf.edge||Rf.ie&&11<=+Rf.version),Pf.domSupported="undefined"!=typeof document,Mf=document.documentElement.style,Pf.transform3dSupported=(Rf.ie&&"transition"in Mf||Rf.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Mf)&&!("OTransition"in Mf),Pf.transformSupported=Pf.transform3dSupported||Rf.ie&&9<=+Rf.version);var sf,lf,uf=12,hf="sans-serif",cf=uf+"px "+hf,pf=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),df={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(sf||(n=df.createCanvas(),sf=n&&n.getContext("2d")),sf)return lf!==e&&(lf=sf.font=e||cf),sf.measureText(t);t=t||"",e=e||cf;var n=/^([0-9]*?)px$/.exec(e),i=+(n&&n[1])||uf,r=0;if(0<=e.indexOf("mono"))r=i*t.length;else for(var o=0;o<t.length;o++){var a=pf[t[o]];r+=null==a?i:a*i}return{width:r}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),gf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),yf=Object.prototype.toString,mf=Array.prototype,vf=mf.forEach,_f=mf.filter,xf=mf.slice,wf=mf.map,bf=function(){}.constructor,Sf=bf?bf.prototype:null,Cf="__proto__",Tf=2311,Mf=df.createCanvas,If=Sf&&w(Sf.bind)?Sf.call.bind(Sf.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(xf.call(arguments)))}},kf="__ec_primitive__";G.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},G.prototype.set=function(t,e){return this.data[t]=e},G.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},G.prototype.keys=function(){return v(this.data)},G.prototype.removeKey=function(t){delete this.data[t]};var Df=G,Af=180/Math.PI,Pf=Object.freeze({__proto__:null,HashMap:Df,RADIAN_TO_DEGREE:Af,assert:z,bind:If,clone:a,concatArray:U,createCanvas:Mf,createHashMap:W,createObject:j,curry:_,defaults:u,disableUserSelect:Y,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},guid:r,hasOwn:X,indexOf:h,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:M,isDom:k,isFunction:w,isGradientObject:D,isImagePatternObject:A,isNumber:C,isObject:T,isPrimitive:H,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:o,map:g,merge:s,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=s(n,t[i],e);return n},mixin:p,noop:q,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:R,retrieve3:E,setAsPrimitive:V,slice:N,trim:F}),Of=it,Lf=rt,Rf=Object.freeze({__proto__:null,add:$,applyTransform:at,clone:K,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Z,dist:Of,distSquare:Lf,distance:it,distanceSquare:rt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:J,lenSquare:tt,length:J,lengthSquare:tt,lerp:ot,max:lt,min:st,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:nt,scale:et,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:Q}),Ef=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Nf=(ut.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ef(e,t),"dragstart",t.event))},ut.prototype._drag=function(t){var e,n,i,r,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y,this._x=e,this._y=n,o.drift(i,r,t),this.handler.dispatchToElement(new Ef(o,t),"drag",t.event),i=this.handler.findHover(e,n,o).target,r=this._dropTarget,o!==(this._dropTarget=i))&&(r&&i!==r&&this.handler.dispatchToElement(new Ef(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new Ef(i,t),"dragenter",t.event)},ut.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ef(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ef(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ut);ht.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){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;o={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=r[t].length-1,i=r[t][e],i&&i.callAtLast?r[t].splice(e,0,o):r[t].push(o)}return this},ht.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ht.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},ht.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;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)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},ht.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;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))}}r&&r.afterTrigger&&r.afterTrigger(t)}return this};var Bf=ht,zf=Math.log(2),Ff="___zrEVENTSAVED",Vf=[],Hf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gf=[],Wf=af.browser.firefox&&+af.browser.version.split(".")[0]<39,Uf=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},jf=(_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;o<a;o++){var s=i[o],l=gt(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 Yf)if(Yf.hasOwnProperty(e)&&(e=Yf[e](this._track,t)))return e},_t),Yf={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=xt(n)/xt(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};n(bt,Xf=Bf),bt.prototype.dispose=function(){},bt.prototype.setCursor=function(){};var Xf,qf,Zf=bt,Kf=function(t,e){this.x=t,this.y=e},$f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qf=(n(St,qf=Bf),St.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f($f,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},St.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Ct(this,e,n),r=this._hovered,o=r.target,i=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target),this._hovered=i?new Kf(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==o&&this.dispatchToElement(i,"mouseover",t)},St.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})},St.prototype.resize=function(){this._hovered=new Kf(0,0)},St.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},St.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},St.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},St.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o={type:e,event:n,target:(t=t).target,topTarget:t.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:wt};i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=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)}))}},St.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new Kf(t,e),o=i.length-1;0<=o;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(!(o=!!i.ignoreClip||o)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}a=i.__hostTarget,i=a||i.parent}return!r||"silent"}return!1}(i[o],t,e))&&(r.topTarget||(r.topTarget=i[o]),"silent"!==a)){r.target=i[o];break}}return r},St.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new jf);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new Kf).target=i.target,this.dispatchToElement(n,e,i.event))},St);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Qf.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ct(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).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||4<Of(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Jf=32,tg=7,eg=1,ng=4,ig=!1;Lt.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Lt.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Lt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,At(n,Ot)},Lt.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),r=(o=r).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=eg),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else i=t,e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Pt(),i.z=0),isNaN(i.z2)&&(Pt(),i.z2=0),isNaN(i.zlevel)&&(Pt(),i.zlevel=0),this._displayList[this._displayListLen++]=i;i=t.getDecalElement&&t.getDecalElement(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextGuideLine(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextContent(),i&&this._updateAndAddDisplayable(i,e,n)}},Lt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Lt.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=h(this._roots,t);0<=i&&this._roots.splice(i,1)}},Lt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Lt.prototype.getRoots=function(){return this._roots},Lt.prototype.dispose=function(){this._displayList=null,this._roots=null};var rg=Lt,og=af.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},ag={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:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-ag.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ag.bounceIn(2*t):.5*ag.bounceOut(2*t-1)+.5}},sg=Math.pow,lg=Math.sqrt,ug=1e-8,hg=lg(3),cg=1/3,pg=Z(),dg=Z(),fg=Z(),gg=/cubic-bezier\(([0-9,\.e ]+)\)/;qt.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},qt.prototype.pause=function(){this._paused=!0},qt.prototype.resume=function(){this._paused=!1},qt.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:ag[t]||Xt(t)};var yg=qt,mg=function(t){this.value=t},vg=(Zt.prototype.insert=function(t){return t=new mg(t),this.insertEntry(t),t},Zt.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Zt.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--},Zt.prototype.len=function(){return this._len},Zt.prototype.clear=function(){this.head=this.tail=null,this._len=0},Zt);Kt.prototype.put=function(t,e){var n,i,r=this._list,o=this._map,a=null;return null==o[t]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new mg(e),n.key=t,r.insertEntry(n),o[t]=n),a},Kt.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},Kt.prototype.clear=function(){this._list.clear(),this._map={}},Kt.prototype.len=function(){return this._list.len()};var _g=Kt,xg={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]},wg=new _g(20),bg=null,Sg=Object.freeze({__proto__:null,fastLerp:ue,fastMapToColor:ue,lerp:he,lift:le,lum:pe,mapToColor:he,modifyAlpha:function(t,e){if((t=ae(t))&&null!=e)return t[3]=Qt(e),ce(t,"rgba")},modifyHSL:function(t,e,n,i){var r=ae(t);if(t)return r=function(t){var e,n,i,r,o,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),r=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=o=0:(a=r<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?o=u-l:e===i?o=1/3+s-u:n===i&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),h=[360*o,a,r],null!=t[3]&&h.push(t[3]),h}(r),null!=e&&(r[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(r[1]=te(n)),null!=i&&(r[2]=te(i)),ce(se(r),"rgba")},parse:ae,random:function(){return ce([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:ce,toHex:function(t){if(t=ae(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),Cg=Math.round,Tg={left:"start",right:"end",center:"middle",middle:"middle"},Mg=af.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(t))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},Ig=Array.prototype.slice,kg=[0,0,0,0],Dg=(Pe.prototype.isFinished=function(){return this._finished},Pe.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Pe.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Pe.prototype.getAdditiveTrack=function(){return this._additiveTrack},Pe.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,r=this.keyframes,o=r.length,a=!1,s=6,u=e,h=(d(e)?(1==(s=i=d((i=e)&&i[0])?2:1)&&!C(e[0])||2==i&&!C(e[0][0]))&&(a=!0):C(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(i=ae(e))&&(u=i,s=3):s=0:D(e)&&((h=l({},u)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:ae(t.color)}}),ve(e)?s=4:_e(e)&&(s=5),u=h),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:u,rawValue:e,percent:0});return n&&(h.easing=n,h.easingFunc=w(n)?n:ag[n]||Xt(n)),r.push(h),h},Pe.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),r=n.length,o=n[r-1],a=this.discrete,s=Ae(i),l=De(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;if(h.percent=h.time/t,!a)if(s&&u!==r-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:Ig.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=C=S=b=w=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,w=d.length,b=h.length,S=b<w?h:d,h=Math.min(w,b),C=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(w,b);T++)S.push({offset:C.offset,color:C.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var M=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-M:3===i?n[u].additiveValue=Te([],n[u].value,M,-1):Ae(i)&&(n[u].additiveValue=(1===i?Te:Me)([],n[u].value,M,-1))}},Pe.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,h-1);0<=y&&!(u[y].percent<=e);y--);y=f(y,h-2)}else{for(y=d;y<h&&!(u[y].percent>e);y++);y=f(y-1,h-2)}i=u[y+1],n=u[y]}n&&i&&(this._lastFr=y,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?kg:t[c],(Ae(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:Ae(l)?(1===l?Ce:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Se(e[a][s],n[a][s],i)}})(f,n[s],i[s],r):De(l)?(d=n[s],o=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Se(d.x,o.x,r),y:Se(d.y,o.y,r),colorStops:g(d.colorStops,function(t,e){return e=o.colorStops[e],{offset:Se(t.offset,e.offset,r),color:ke(Ce([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Se(d.x2,o.x2,r),t[c].y2=Se(d.y2,o.y2,r)):t[c].r=Se(d.r,o.r,r)):p?(Ce(f,n[s],i[s],r),a||(t[c]=ke(f))):(l=Se(n[s],i[s],r),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Pe.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(ae(t[n],kg),Te(kg,kg,i,1),t[n]=ke(kg)):1===e?Te(t[n],t[n],i,1):2===e&&Me(t[n],t[n],i,1)},Pe);Oe.prototype.getMaxTime=function(){return this._maxTime},Oe.prototype.getDelay=function(){return this._delay},Oe.prototype.getLoop=function(){return this._loop},Oe.prototype.getTarget=function(){return this._target},Oe.prototype.changeTarget=function(t){this._target=t},Oe.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,v(e),n)},Oe.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=r[a])){var s,l=r[a]=new Dg(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&ke(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Ie(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Ie(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},Oe.prototype.pause=function(){this._clip.pause(),this._paused=!0},Oe.prototype.resume=function(){this._clip.resume(),this._paused=!1},Oe.prototype.isPaused=function(){return!!this._paused},Oe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Oe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},Oe.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)},Oe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},Oe.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},Oe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,n=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,u=l.length;s.prepare(r,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[u-1])&&(n._target[s.propName]=a.rawValue),s.setFinished()):i.push(s))}return i.length||this._force?(e=new yg({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(n._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(n._target,t);var a=n._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Oe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Oe.prototype.delay=function(t){return this._delay=t,this},Oe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Oe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Oe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Oe.prototype.getClip=function(){return this._clip},Oe.prototype.getTrack=function(t){return this._tracks[t]},Oe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},Oe.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},Oe.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];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[r]=Ie(o.rawValue))}}},Oe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var n=0;n<e.length;n++){var i,r=e[n],o=this._tracks[r];o&&1<(i=o.keyframes).length&&(i=i.pop(),o.addKeyframe(i.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var Ag=Oe;n(Re,Pg=Bf),Re.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},Re.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Re.prototype.removeClip=function(t){var e,n;t.animation&&(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)},Re.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Re.prototype.update=function(t){for(var e=Le()-this._pausedTime,n=e-this._time,i=this._head;i;)var r=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),r);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},Re.prototype._startLoop=function(){var t=this;this._running=!0,og(function e(){t._running&&(og(e),t._paused||t.update())})},Re.prototype.start=function(){this._running||(this._time=Le(),this._pausedTime=0,this._startLoop())},Re.prototype.stop=function(){this._running=!1},Re.prototype.pause=function(){this._paused||(this._pauseStart=Le(),this._paused=!0)},Re.prototype.resume=function(){this._paused&&(this._pausedTime+=Le()-this._pauseStart,this._paused=!1)},Re.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},Re.prototype.isFinished=function(){return null==this._head},Re.prototype.animate=function(t,e){return e=e||{},this.start(),t=new Ag(t,e.loop),this.addAnimator(t),t};var Pg,Og,Lg,Rg=Re,Eg=af.domSupported,Ng=(Og={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:jg=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(jg,function(t){var e=t.replace("mouse","pointer");return Og.hasOwnProperty(e)?e:t})}),Bg=["mousemove","mouseup"],zg=["pointermove","pointerup"],Fg=!1,Vg=function(t,e){this.stopPropagation=q,this.stopImmediatePropagation=q,this.preventDefault=q,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Hg={mousedown:function(t){t=vt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vt(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=vt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Be(this,(t=vt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Fg=!0,t=vt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Fg||(t=vt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ne(t=vt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Hg.mousemove.call(this,t),Hg.mousedown.call(this,t)},touchmove:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"change"),Hg.mousemove.call(this,t)},touchend:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"end"),Hg.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Hg.click.call(this,t)},pointerdown:function(t){Hg.mousedown.call(this,t)},pointermove:function(t){Ee(t)||Hg.mousemove.call(this,t)},pointerup:function(t){Hg.mouseup.call(this,t)},pointerout:function(t){Ee(t)||Hg.mouseout.call(this,t)}},Gg=(f(["click","dblclick","contextmenu"],function(t){Hg[t]=function(e){e=vt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){Ee(t)||Gg.mousemove.call(this,t)},pointerup:function(t){Gg.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))}}),Wg=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ug=(n(Ge,Lg=Bf),Ge.prototype.dispose=function(){He(this._localHandlerScope),Eg&&He(this._globalHandlerScope)},Ge.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},Ge.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Eg&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Fe(this,e):He(e))},Ge),jg=1,Yg=jg=af.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):jg,Xg="#333",qg="#ccc",jg=Object.freeze({__proto__:null,clone:function(t){var e=We();return je(e,t),e},copy:je,create:We,identity:Ue,invert:Ke,mul:Ye,rotate:qe,scale:Ze,translate:Xe}),Zg=Ue,Kg=[],$g=[],Qg=We(),Jg=Math.abs,ty=(Qe.prototype.getLocalTransform=function(t){return Qe.getLocalTransform(this,t)},Qe.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Qe.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Qe.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Qe.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Qe.prototype.needLocalTransform=function(){return $e(this.rotation)||$e(this.x)||$e(this.y)||$e(this.scaleX-1)||$e(this.scaleY-1)||$e(this.skewX)||$e(this.skewY)},Qe.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||We(),e?this.getLocalTransform(n):Zg(n),t&&(e?Ye(n,t,n):je(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Zg(n)},Qe.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Kg),n=((Kg[1]-(n=Kg[1]<0?-1:1))*i+n)/Kg[1]||0,t[0]*=i=((Kg[0]-(e=Kg[0]<0?-1:1))*i+e)/Kg[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||We(),Ke(this.invTransform,t)},Qe.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Qe.prototype.setLocalTransform=function(t){var e,n,i,r;t&&(r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0)},Qe.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Ye($g,e.invTransform,t),t=$g),e=this.originX,n=this.originY,(e||n)&&(Qg[4]=e,Qg[5]=n,Ye($g,t,Qg),$g[4]-=e,$g[5]-=n,t=$g),this.setLocalTransform(t))},Qe.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[0]=1,t[1]=1),t},Qe.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&at(t,t,e),t},Qe.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&at(t,t,e),t},Qe.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Jg(t[0]-1)&&1e-10<Jg(t[3]-1)?Math.sqrt(Jg(t[0]*t[3]-t[2]*t[1])):1},Qe.prototype.copyTransform=function(t){Je(this,t)},Qe.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,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*r-c*(s=i+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&qe(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Qe.initDefaultProps=((_y=Qe.prototype).scaleX=_y.scaleY=_y.globalScaleRatio=1,void(_y.x=_y.y=_y.originX=_y.originY=_y.skewX=_y.skewY=_y.rotation=_y.anchorX=_y.anchorY=0)),Qe),ey=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];tn.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},tn.prototype.clone=function(){return new tn(this.x,this.y)},tn.prototype.set=function(t,e){return this.x=t,this.y=e,this},tn.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},tn.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},tn.prototype.scale=function(t){this.x*=t,this.y*=t},tn.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},tn.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},tn.prototype.dot=function(t){return this.x*t.x+this.y*t.y},tn.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},tn.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},tn.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},tn.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},tn.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},tn.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},tn.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},tn.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},tn.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},tn.set=function(t,e,n){t.x=e,t.y=n},tn.copy=function(t,e){t.x=e.x,t.y=e.y},tn.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},tn.lenSquare=function(t){return t.x*t.x+t.y*t.y},tn.dot=function(t,e){return t.x*e.x+t.y*e.y},tn.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},tn.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},tn.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},tn.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},tn.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};var ny,iy=tn,ry=Math.min,oy=Math.max,ay=new iy,sy=new iy,ly=new iy,uy=new iy,hy=new iy,cy=new iy,py=(en.prototype.union=function(t){var e=ry(t.x,this.x),n=ry(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=oy(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=oy(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},en.prototype.applyTransform=function(t){en.applyTransform(this,this,t)},en.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=We();return Xe(i,i,[-this.x,-this.y]),Ze(i,i,[e,n]),Xe(i,i,[t.x,t.y]),i},en.prototype.intersect=function(t,e){if(!t)return!1;t instanceof en||(t=en.create(t));var n,i,r,o,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,r=Math.abs(p-f),o=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(r,o),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,r<o?iy.set(cy,-r,0):iy.set(cy,o,0)):l<n&&(n=l,r<o?iy.set(hy,r,0):iy.set(hy,-o,0)),h<y||t<d?i<u&&(i=u,a<s?iy.set(cy,0,-a):iy.set(cy,0,s)):l<n&&(n=l,a<s?iy.set(hy,0,a):iy.set(hy,0,-s))),e&&iy.copy(e,m?hy:cy),m},en.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},en.prototype.clone=function(){return new en(this.x,this.y,this.width,this.height)},en.prototype.copy=function(t){en.copy(this,t)},en.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},en.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},en.prototype.isZero=function(){return 0===this.width||0===this.height},en.create=function(t){return new en(t.x,t.y,t.width,t.height)},en.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},en.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],r=n[3],o=n[4],a=n[5],t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(ay.x=ly.x=e.x,ay.y=uy.y=e.y,sy.x=uy.x=e.x+e.width,sy.y=ly.y=e.y+e.height,ay.transform(n),uy.transform(n),sy.transform(n),ly.transform(n),t.x=ry(ay.x,sy.x,ly.x,uy.x),t.y=ry(ay.y,sy.y,ly.y,uy.y),o=oy(ay.x,sy.x,ly.x,uy.x),a=oy(ay.y,sy.y,ly.y,uy.y),t.width=o-t.x,t.height=a-t.y):t!==e&&en.copy(t,e)},en),dy={},fy="__zr_normal__",gy=ey.concat(["ignore"]),yy=y(ey,function(t,e){return t[e]=!0,t},{ignore:!1}),my={},vy=new py(0,0,0,0),_y=(cn.prototype._init=function(t){this.attr(t)},cn.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},cn.prototype.beforeUpdate=function(){},cn.prototype.afterUpdate=function(){},cn.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},cn.prototype.updateInnerText=function(t){var e,n,i,r,o,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,r=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=vy,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(my,t,u):hn(my,t,u),e.x=my.x,e.y=my.y,n=my.align,i=my.verticalAlign,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*u.width,.5*u.height):(a=un(o[0],u.width),un(o[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],h||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(r=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=eg,r&&c.dirtyStyle(!0))},cn.prototype.canBeInsideText=function(){return!0},cn.prototype.getInsideTextFill=function(){return"#fff"},cn.prototype.getInsideTextStroke=function(t){return"#000"},cn.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qg:Xg},cn.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&ae(e),i=(n=n||[255,255,255,1])[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ce(n,"rgba")},cn.prototype.traverse=function(t,e){},cn.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},cn.prototype.hide=function(){this.ignore=!0,this.markRedraw()},cn.prototype.show=function(){this.ignore=!1,this.markRedraw()},cn.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(T(t))for(var n=v(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},cn.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;i.getLoop()||r&&r!==fy||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},cn.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,gy)},cn.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])}},cn.prototype.hasState=function(){return 0<this.currentStates.length},cn.prototype.getState=function(t){return this.states[t]},cn.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},cn.prototype.clearStates=function(t){this.useState(fy,!1,t)},cn.prototype.useState=function(t,e,n,i){var r=t===fy,a=this.hasState();if(a||!r){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=h(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!r?this.stateProxy(t):s)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&l&&0<l.duration,l),i=this._textContent,l=this._textGuide,i&&i.useState(t,e,n,a),l&&l.useState(t,e,n,a),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg),s;o("State "+t+" not exists.")}}},cn.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;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[o-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg)}}else this.clearStates()},cn.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},cn.prototype.removeState=function(t){var e,t=h(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},cn.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=h(i,t),r=0<=h(i,e);0<=t?r?i.splice(t,1):i[t]=e:n&&!r&&i.push(e),this.useStates(i)},cn.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},cn.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];l(n,r),r.textConfig&&l(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},cn.prototype._applyStateObj=function(t,e,n,i,r,o){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=l({},(i?this:n).textConfig),l(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),u=!1,h=0;h<gy.length;h++){var c=gy[h],p=r&&yy[c];e&&null!=e[c]?p?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(p?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(h=0;h<this.animators.length;h++){var d=this.animators[h],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}u&&this._transitionState(t,s,o)},cn.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},cn.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},cn.prototype.getClipPath=function(){return this._clipPath},cn.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},cn.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},cn.prototype.getTextContent=function(){return this._textContent},cn.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ty,this._attachComponent(t),this._textContent=t,this.markRedraw())},cn.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},cn.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},cn.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},cn.prototype.getTextGuideLine=function(){return this._textGuide},cn.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},cn.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},cn.prototype.markRedraw=function(){this.__dirty|=eg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},cn.prototype.dirty=function(){this.markRedraw()},cn.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},cn.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)}},cn.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)}},cn.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new Ag(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},cn.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);0<=n&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},cn.prototype.updateDuringAnimation=function(t){this.markRedraw()},cn.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},cn.prototype.animateTo=function(t,e,n){dn(this,t,e,n)},cn.prototype.animateFrom=function(t,e,n){dn(this,t,e,n,!0)},cn.prototype._transitionState=function(t,e,n,i){for(var r=dn(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},cn.prototype.getBoundingRect=function(){return null},cn.prototype.getPaintRect=function(){return null},cn.initDefaultProps=((ny=cn.prototype).type="element",ny.name="",ny.ignore=ny.silent=ny.isGroup=ny.draggable=ny.dragging=ny.ignoreClip=ny.__inHover=!1,ny.__dirty=eg,void(Object.defineProperty&&(pn("position","_legacyPos","x","y"),pn("scale","_legacyScale","scaleX","scaleY"),pn("origin","_legacyOrigin","originX","originY")))),cn);p(_y,Bf),p(_y,ty),n(mn,xy=_y),mn.prototype.childrenRef=function(){return this._children},mn.prototype.children=function(){return this._children.slice()},mn.prototype.childAt=function(t){return this._children[t]},mn.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},mn.prototype.childCount=function(){return this._children.length},mn.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},mn.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},mn.prototype.replace=function(t,e){return t=h(this._children,t),0<=t&&this.replaceAt(e,t),this},mn.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},mn.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},mn.prototype.remove=function(t){var e=this.__zr,n=this._children,i=h(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},mn.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},mn.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},mn.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},mn.prototype.addSelfToZr=function(t){xy.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},mn.prototype.removeSelfFromZr=function(t){xy.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},mn.prototype.getBoundingRect=function(t){for(var e=new py(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(py.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var xy,wy=mn;wy.prototype.type="group";var by={},Sy={};vn.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},vn.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},vn.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},vn.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return pe(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=pe(e[r].color,1);return(n/=i)<.4}}return!1}(t)},vn.prototype.getBackgroundColor=function(){return this._backgroundColor},vn.prototype.setDarkMode=function(t){this._darkMode=t},vn.prototype.isDarkMode=function(){return this._darkMode},vn.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},vn.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},vn.prototype.flush=function(){this._flush(!1)},vn.prototype._flush=function(t){var e,n=Le(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Le());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},vn.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},vn.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},vn.prototype.refreshHover=function(){this._needsRefreshHover=!0},vn.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},vn.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},vn.prototype.clearAnimation=function(){this.animation.clear()},vn.prototype.getWidth=function(){return this.painter.getWidth()},vn.prototype.getHeight=function(){return this.painter.getHeight()},vn.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},vn.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},vn.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},vn.prototype.off=function(t,e){this.handler.off(t,e)},vn.prototype.trigger=function(t,e){this.handler.trigger(t,e)},vn.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof wy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},vn.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Sy[t]};var Cy,Ty=vn,My=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Sy)Sy.hasOwnProperty(t)&&Sy[t].dispose();Sy={}},getInstance:function(t){return Sy[t]},init:_n,registerPainter:xn,version:"5.3.0"}),Iy=20,ky=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Dy="series\0",Ay=["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"],Py=En(),Oy={useDefault:!0,enableAll:!1,enableNone:!1},Ly=".",Ry="___EC__COMPONENT__CONTAINER___",Ey="___EC__EXTENDED_CLASS___",Ny=Math.round(10*Math.random()),By=li([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zy=(ui.prototype.getAreaStyle=function(t,e){return By(this,t,e)},ui),Fy=new _g(50),Vy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Hy=function(){},Gy=function(t){this.tokens=[],t&&(this.tokens=t)},Wy=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Uy=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),jy="__zr_style_"+Math.round(10*Math.random()),Yy={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},qy=(Yy[jy]=!0,["z","z2","invisible"]),Zy=["invisible"],_y=(n(_i,Cy=_y),_i.prototype._init=function(t){for(var e=v(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):Cy.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},_i.prototype.beforeBrush=function(){},_i.prototype.afterBrush=function(){},_i.prototype.innerBeforeBrush=function(){},_i.prototype.innerAfterBrush=function(){},_i.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return Ky.copy(t.getBoundingRect()),t.transform&&Ky.applyTransform(t.transform),$y.width=e,$y.height=n,!Ky.intersect($y)}(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},_i.prototype.contain=function(t,e){return this.rectContain(t,e)},_i.prototype.traverse=function(t,e){t.call(e,this)},_i.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},_i.prototype.getPaintRect=function(){var t,e,n,i,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new py(0,0,0,0)),r?py.applyTransform(o,t,r):o.copy(t),(e||n||i)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(i),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+i-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},_i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new py(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},_i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},_i.prototype.animateStyle=function(t){return this.animate("style",t)},_i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},_i.prototype.attrKV=function(t,e){"style"!==t?Cy.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},_i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},_i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},_i.prototype.dirty=function(){this.dirtyStyle()},_i.prototype.styleChanged=function(){return!!(2&this.__dirty)},_i.prototype.styleUpdated=function(){this.__dirty&=-3},_i.prototype.createStyle=function(t){return j(Yy,t)},_i.prototype.useStyle=function(t){t[jy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},_i.prototype.isStyleObject=function(t){return t[jy]},_i.prototype._innerSaveToNormal=function(t){Cy.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,qy)},_i.prototype._applyStateObj=function(t,e,n,i,r,o){Cy.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.style?r?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(r){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=v(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Zy:qy,h=0;h<d.length;h++)p=d[h],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},_i.prototype._mergeStates=function(t){for(var e,n=Cy.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(n.style=e),n},_i.prototype._mergeStyle=function(t,e){return l(t,e),t},_i.prototype.getAnimationStyleProps=function(){return Xy},_i.initDefaultProps=((_y=_i.prototype).type="displayable",_y.invisible=!1,_y.z=0,_y.z2=0,_y.zlevel=0,_y.culling=!1,_y.cursor="pointer",_y.rectHover=!1,_y.incremental=!1,_y._rect=null,_y.dirtyRectTolerance=0,void(_y.__dirty=2|eg)),_i),Ky=new py(0,0,0,0),$y=new py(0,0,0,0),Qy=Math.min,Jy=Math.max,tm=Math.sin,em=Math.cos,nm=2*Math.PI,im=Z(),rm=Z(),om=Z(),am=[],sm=[],lm={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},um=[],hm=[],cm=[],pm=[],dm=[],fm=[],gm=Math.min,ym=Math.max,mm=Math.cos,vm=Math.sin,_m=Math.abs,xm=Math.PI,wm=2*xm,bm="undefined"!=typeof Float32Array,Sm=[];bi.prototype.increaseVersion=function(){this._version++},bi.prototype.getVersion=function(){return this._version},bi.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=_m(n/Yg/t)||0,this._uy=_m(n/Yg/e)||0)},bi.prototype.setDPR=function(t){this.dpr=t},bi.prototype.setContext=function(t){this._ctx=t},bi.prototype.getContext=function(){return this._ctx},bi.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},bi.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},bi.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(lm.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},bi.prototype.lineTo=function(t,e){var n=_m(t-this._xi),i=_m(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(lm.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},bi.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(lm.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},bi.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(lm.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},bi.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Sm[0]=i,Sm[1]=r,s=o,(l=wi((a=Sm)[0]))<0&&(l+=wm),h=l-a[0],u=a[1],u+=h,!s&&wm<=u-l?u=l+wm:s&&wm<=l-u?u=l-wm:!s&&u<l?u=l+(wm-wi(l-u)):s&&l<u&&(u=l-(wm-wi(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(r=Sm[1])-(i=Sm[0]);return this.addData(lm.A,t,e,n,n,i,h,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=mm(r)*n+t,this._yi=vm(r)*n+e,this},bi.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},bi.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(lm.R,t,e,n,i),this},bi.prototype.closePath=function(){this._drawPendingPt(),this.addData(lm.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},bi.prototype.fill=function(t){t&&t.fill(),this.toStatic()},bi.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},bi.prototype.len=function(){return this._len},bi.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!bm||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},bi.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();for(bm&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},bi.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},bi.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},bi.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}},bi.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,bm)&&11<this._len&&(this.data=new Float32Array(t))},bi.prototype.getBoundingRect=function(){cm[0]=cm[1]=dm[0]=dm[1]=Number.MAX_VALUE,pm[0]=pm[1]=fm[0]=fm[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,r=0,o=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(r=n=e[a],o=i=e[a+1]),s){case lm.M:n=r=e[a++],i=o=e[a++],dm[0]=r,dm[1]=o,fm[0]=r,fm[1]=o;break;case lm.L:xi(n,i,e[a],e[a+1],dm,fm),n=e[a++],i=e[a++];break;case lm.C:C=S=b=w=x=_=v=m=y=g=f=d=p=c=h=u=void 0;var u=n,h=i,c=e[a++],p=e[a++],d=e[a++],f=e[a++],g=e[a],y=e[a+1],m=dm,v=fm,_=Ft,x=Nt,w=_(u,c,d,g,am);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var b=0;b<w;b++){var S=x(u,c,d,g,am[b]);m[0]=Qy(S,m[0]),v[0]=Jy(S,v[0])}for(w=_(h,p,f,y,sm),b=0;b<w;b++){var C=x(h,p,f,y,sm[b]);m[1]=Qy(C,m[1]),v[1]=Jy(C,v[1])}m[0]=Qy(u,m[0]),v[0]=Jy(u,v[0]),m[0]=Qy(g,m[0]),v[0]=Jy(g,v[0]),m[1]=Qy(h,m[1]),v[1]=Jy(h,v[1]),m[1]=Qy(y,m[1]),v[1]=Jy(y,v[1]),n=e[a++],i=e[a++];break;case lm.Q:_=n,F=i,P=e[a++],I=e[a++],A=e[a],T=e[a+1],D=dm,O=fm,t=k=t=M=void 0,M=Gt,t=Jy(Qy((k=Ut)(_,P,A),1),0),k=Jy(Qy(k(F,I,T),1),0),P=M(_,P,A,t),t=M(F,I,T,k),D[0]=Qy(_,A,P),D[1]=Qy(F,T,t),O[0]=Jy(_,A,P),O[1]=Jy(F,T,t),n=e[a++],i=e[a++];break;case lm.A:var T,M=e[a++],I=e[a++],k=e[a++],D=e[a++],A=e[a++],P=e[a++]+A,O=(a+=1,!e[a++]),L=(l&&(r=mm(A)*k+M,o=vm(A)*D+I),U=T=W=G=H=V=F=z=B=N=E=R=L=void 0,M),R=I,E=k,N=D,B=A,z=P,F=O,V=dm,H=fm,G=st,W=lt;if((T=Math.abs(B-z))%nm<1e-4&&1e-4<T)V[0]=L-E,V[1]=R-N,H[0]=L+E,H[1]=R+N;else{im[0]=em(B)*E+L,im[1]=tm(B)*N+R,rm[0]=em(z)*E+L,rm[1]=tm(z)*N+R,G(V,im,rm),W(H,im,rm),(B%=nm)<0&&(B+=nm),(z%=nm)<0&&(z+=nm),z<B&&!F?z+=nm:B<z&&F&&(B+=nm),F&&(T=z,z=B,B=T);for(var U=0;U<z;U+=Math.PI/2)B<U&&(om[0]=em(U)*E+L,om[1]=tm(U)*N+R,G(V,om,V),W(H,om,H))}n=mm(P)*k+M,i=vm(P)*D+I;break;case lm.R:xi(r=n=e[a++],o=i=e[a++],r+e[a++],o+e[a++],dm,fm);break;case lm.Z:n=r,i=o}st(cm,cm,dm),lt(pm,pm,fm)}return 0===a&&(cm[0]=cm[1]=pm[0]=pm[1]=0),new py(cm[0],cm[1],pm[0]-cm[0],pm[1]-cm[1])},bi.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=r=t[c],s=o=t[c+1]),-1);switch(p){case lm.M:r=a=t[c++],o=s=t[c++];break;case lm.L:var g=t[c++],y=(_=t[c++])-o;(_m(I=g-r)>n||_m(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);break;case lm.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Nt(t,n,r,a,d),d=Nt(e,i,o,s,d),g=f-u,y=d-h;c+=Math.sqrt(g*g+y*y),u=f,h=d}return c}(r,o,m,v,g,_,x,w),r=x,o=w;break;case lm.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,p=Gt(t,n,r,c),c=Gt(e,i,o,c),d=p-s,f=c-l;u+=Math.sqrt(d*d+f*f),s=p,l=c}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),r=g,o=_;break;case lm.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],C=t[c++],T=t[c++],M=T+C;c+=1,t[c++],d&&(a=mm(C)*b+x,s=vm(C)*S+w),f=ym(b,S)*gm(wm,Math.abs(T)),r=mm(M)*b+x,o=vm(M)*S+w;break;case lm.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case lm.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},bi.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var _=h[v++],x=1===v;switch(x&&(n=r=h[v],i=o=h[v+1]),_!==lm.L&&0<m&&(t.lineTo(l,u),m=0),_){case lm.M:n=r=h[v++],i=o=h[v++],t.moveTo(r,o);break;case lm.L:var w=h[v++],b=h[v++],S=_m(w-r),C=_m(b-o);if(c<S||p<C){if(f){if(s<g+(G=a[y++])){var T=(s-g)/G;t.lineTo(r*(1-T)+w*T,o*(1-T)+b*T);break t}g+=G}t.lineTo(w,b),r=w,o=b,m=0}else S=S*S+C*C,m<S&&(l=w,u=b,m=S);break;case lm.C:var M=h[v++],I=h[v++],k=h[v++],D=h[v++],C=h[v++],S=h[v++];if(f){if(s<g+(G=a[y++])){Vt(r,M,k,C,T=(s-g)/G,um),Vt(o,I,D,S,T,hm),t.bezierCurveTo(um[1],hm[1],um[2],hm[2],um[3],hm[3]);break t}g+=G}t.bezierCurveTo(M,I,k,D,C,S),r=C,o=S;break;case lm.Q:if(M=h[v++],I=h[v++],k=h[v++],D=h[v++],f){if(s<g+(G=a[y++])){jt(r,M,k,T=(s-g)/G,um),jt(o,I,D,T,hm),t.quadraticCurveTo(um[1],hm[1],um[2],hm[2]);break t}g+=G}t.quadraticCurveTo(M,I,k,D),r=k,o=D;break;case lm.A:var A=h[v++],P=h[v++],O=h[v++],L=h[v++],R=h[v++],E=h[v++],N=h[v++],B=!h[v++],z=L<O?O:L,F=.001<_m(O-L),V=R+E,H=!1;if(f&&(s<g+(G=a[y++])&&(V=R+E*(s-g)/G,H=!0),g+=G),F&&t.ellipse?t.ellipse(A,P,O,L,N,R,V,B):t.arc(A,P,z,R,V,B),H)break t;x&&(n=mm(R)*O+A,i=vm(R)*L+P),r=mm(V)*O+A,o=vm(V)*L+P;break;case lm.R:n=r=h[v],i=o=h[v+1],w=h[v++],b=h[v++];var G,E=h[v++],F=h[v++];if(f){if(s<g+(G=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+gm(N,E),b),0<(N-=E)&&t.lineTo(w+E,b+gm(N,F)),0<(N-=F)&&t.lineTo(w+ym(E-N,0),b+F),0<(N-=E)&&t.lineTo(w,b+ym(F-N,0));break t}g+=G}t.rect(w,b,E,F);break;case lm.Z:if(f){if(s<g+(G=a[y++])){T=(s-g)/G,t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}g+=G}t.closePath(),r=n,o=i}}},bi.prototype.clone=function(){var t=new bi,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},bi.CMD=lm,bi.initDefaultProps=((Rv=bi.prototype)._saveData=!0,Rv._ux=0,Rv._uy=0,Rv._pendingPtDist=0,void(Rv._version=0));var Cm,Tm,Mm=bi,Im=2*Math.PI,km=2*Math.PI,Dm=Mm.CMD,Am=2*Math.PI,Pm=1e-4,Om=[-1,-1,-1],Lm=[-1,-1],Rm=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Yy),Em={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xy.style)},Nm=ey.concat(["invisible","culling","z","z2","zlevel","parent"]),Bm=(n(Di,Cm=_y),Di.prototype.update=function(){var t=this,e=(Cm.prototype.update.call(this),this.style);if(e.decal){var n,i=this._decalEl=this._decalEl||new Di,r=(i.buildPath===Di.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0,i.style);for(n in e)r[n]!==e[n]&&(r[n]=e[n]);r.fill=e.fill?e.decal:null,r.decal=null,r.shadowColor=null,e.strokeFirst&&(r.stroke=null);for(var o=0;o<Nm.length;++o)i[Nm[o]]=this[Nm[o]];i.__dirty|=eg}else this._decalEl&&(this._decalEl=null)},Di.prototype.getDecalElement=function(){return this._decalEl},Di.prototype._init=function(t){var e=v(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var r=e[i],o=t[r];"style"===r?this.style?l(this.style,o):this.useStyle(o):"shape"===r?l(this.shape,o):Cm.prototype.attrKV.call(this,r,o)}this.style||this.useStyle({})},Di.prototype.getDefaultStyle=function(){return null},Di.prototype.getDefaultShape=function(){return{}},Di.prototype.canBeInsideText=function(){return this.hasFill()},Di.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=pe(e,0))?Xg:.2<t?"#eee":qg;if(e)return qg}return Xg},Di.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==pe(t,0)<.4)return e}},Di.prototype.buildPath=function(t,e,n){},Di.prototype.pathUpdated=function(){this.__dirty&=~ng},Di.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Di.prototype.createPathProxy=function(){this.path=new Mm(!1)},Di.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Di.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Di.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,r=!n;return r&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&ng)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||r)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,r=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,r=Math.max(r,null==i?4:i)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):n},Di.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)){if(n=this.path,this.hasStroke()&&(i=r.lineWidth,1e-10<(r=r.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),ki(n,i/r,!0,t,e))))return!0;if(this.hasFill())return ki(n,0,!1,t,e)}return!1},Di.prototype.dirtyShape=function(){this.__dirty|=ng,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Di.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Di.prototype.animateShape=function(t){return this.animate("shape",t)},Di.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Di.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Cm.prototype.attrKV.call(this,t,e)},Di.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:l(n,t),this.dirtyShape(),this},Di.prototype.shapeChanged=function(){return!!(this.__dirty&ng)},Di.prototype.createStyle=function(t){return j(Rm,t)},Di.prototype._innerSaveToNormal=function(t){Cm.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},Di.prototype._applyStateObj=function(t,e,n,i,r,o){Cm.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.shape?r?i?a=e.shape:(a=l({},n.shape),l(a,e.shape)):(a=l({},(i?this:n).shape),l(a,e.shape)):s&&(a=n.shape),a)if(r){this.shape=l({},this.shape);for(var u={},h=v(a),c=0;c<h.length;c++){var p=h[c];"object"==typeof a[p]?this.shape[p]=a[p]:u[p]=a[p]}this._transitionState(t,{shape:u},o)}else this.shape=a,this.dirtyShape()},Di.prototype._mergeStates=function(t){for(var e,n=Cm.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.shape&&this._mergeStyle(e=e||{},r.shape)}return e&&(n.shape=e),n},Di.prototype.getAnimationStyleProps=function(){return Em},Di.prototype.isZeroArea=function(){return!1},Di.extend=function(t){function e(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}n(e,i=Di),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var i,r,o=e;for(r in t)"function"==typeof t[r]&&(o.prototype[r]=t[r]);return o},Di.initDefaultProps=((Rv=Di.prototype).type="path",Rv.strokeContainThreshold=5,Rv.segmentIgnoreThreshold=0,Rv.subPixelOptimize=!1,Rv.autoBatch=!1,void(Rv.__dirty=2|eg|ng)),Di),zm=u({strokeFirst:!0,font:cf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rm),Fm=(n(Ai,Tm=_y),Ai.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Ai.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ai.prototype.createStyle=function(t){return j(zm,t)},Ai.prototype.setBoundingRect=function(t){this._rect=t},Ai.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=on(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Ai.initDefaultProps=void(Ai.prototype.dirtyRectTolerance=10),Ai);Fm.prototype.type="tspan";var Vm=u({x:0,y:0},Yy),Hm={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xy.style)};n(Pi,Gm=_y),Pi.prototype.createStyle=function(t){return j(Vm,t)},Pi.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},Pi.prototype.getWidth=function(){return this._getSize("width")},Pi.prototype.getHeight=function(){return this._getSize("height")},Pi.prototype.getAnimationStyleProps=function(){return Hm},Pi.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new py(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Gm,Wm=Pi;Wm.prototype.type="image";var Um,jm=Math.round,Ym=function(){this.x=0,this.y=0,this.width=0,this.height=0},Xm={},qm=(n(Ei,Um=Bm),Ei.prototype.getDefaultShape=function(){return new Ym},Ei.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=Li(Xm,e,this.style)).x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,r,o)},Ei.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Ei);qm.prototype.type="rect";var Zm,Km={fill:"#000"},$m={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},Xy.style)},Qm=(n(Ni,Zm=_y),Ni.prototype.childrenRef=function(){return this._children},Ni.prototype.update=function(){Zm.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Ni.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Zm.prototype.updateTransform.call(this)},Ni.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Zm.prototype.getLocalTransform.call(this,t)},Ni.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Zm.prototype.getComputedTransform.call(this)},Ni.prototype._updateSubTexts=function(){var t;this._childCursor=0,Vi(t=this.style),f(t.rich,Vi),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Ni.prototype.addSelfToZr=function(t){Zm.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Ni.prototype.removeSelfFromZr=function(t){Zm.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Ni.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new py(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Ni.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Km},Ni.prototype.setTextContent=function(t){},Ni.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},l(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Ni.prototype._mergeRich=function(t,e){for(var n=v(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},l(t[r],e[r])}},Ni.prototype.getAnimationStyleProps=function(){return $m},Ni.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},Ni.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||cf,i=e.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=ln(o),l=R(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,i=(n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?vi(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=R(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=fi(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=gi(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(nn(n[f],o),g);return null==c&&(c=g),t=g,r&&(h+=r[0]+r[2],t+=r[1]+r[3],c+=r[1]+r[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(Ui(e),e),o=ji(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=sn(f,r.contentHeight,y),_=((o||i)&&(t=an(d,l,g),f=sn(f,s,y),o)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=Wi(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2])),0),o=!1,x=(Gi(("fill"in e?e:(o=!0,p)).fill)),w=(Hi("stroke"in e?e.stroke:a||p.autoStroke&&!o?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),C=r.calculatedLineHeight,T=0;T<h.length;T++){var M=this._getOrCreateChild(Fm),I=M.createStyle();M.useStyle(I),I.text=h[T],I.x=m,I.y=v,g&&(I.textAlign=g),I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,b&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=w,I.fill=x,w&&(I.lineWidth=e.lineWidth||_,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=n,zi(I,e),v+=c,S&&M.setBoundingRect(new py(an(I.x,e.width,I.textAlign),sn(I.y,C,I.textBaseline),u,C))}},Ni.prototype._updateRichTexts=function(){for(var t=this.style,e=yi(Ui(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=an(a,i,u),u=sn(s,r,l),h=a,c=u,p=(o&&(h+=o[3],c+=o[0]),h+n),d=(ji(t)&&this._renderBackground(t,t,a,u,i,r),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=h,b=p,S=m-1,C=void 0;x<m&&(!(C=y[x]).align||"left"===C.align);)this._placeToken(C,t,v,c,w,"left",d),_-=C.width,w+=C.width,x++;for(;0<=S&&"right"===(C=y[S]).align;)this._placeToken(C,t,v,c,b,"right",d),_-=C.width,b-=C.width,S--;for(w+=(n-(w-h)-(p-b)-_)/2;x<=S;)C=y[x],this._placeToken(C,t,v,c,w+C.width/2,"center",d),w+=C.width,x++;c+=v}},Ni.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&ji(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 l=!!s.backgroundColor,i=t.textPadding,n=(i&&(r=Wi(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Fm)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Gi(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Hi("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=r,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=o,i.textBaseline="middle",i.font=t.font||cf,i.opacity=E(s.opacity,e.opacity,1),zi(i,s),l&&(i.lineWidth=E(s.lineWidth,e.lineWidth,p),i.lineDash=R(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new py(an(i.x,c,i.textAlign),sn(i.y,h,i.textBaseline),c,h))},Ni.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(qm)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=r,l.height=o,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=R(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Wm)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=r,l.height=o),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=R(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=E(t.opacity,e.opacity,1)},Ni.makeFont=function(t){var e="";return(e=Fi(t)?[t.fontStyle,t.fontWeight,Bi(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Ni),Jm={left:!0,right:1,center:1},tv={top:1,bottom:1,middle:1},ev=["fontStyle","fontWeight","fontSize","fontFamily"],nv=Kn(),iv=1,rv={},ov=Kn(),av=Kn(),sv=0,lv=1,uv=2,hv=["emphasis","blur","select"],cv=["normal","emphasis","blur","select"],pv="highlight",dv="downplay",fv="select",gv="unselect",yv="toggleSelect",mv=new _g(100),vv=["emphasis","blur","select"],_v={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},xv=Mm.CMD,wv=[[],[],[]],bv=Math.sqrt,Sv=Math.atan2,Cv=Math.sqrt,Tv=Math.sin,Mv=Math.cos,Iv=Math.PI,kv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Dv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;n(Pr,Av=Bm),Pr.prototype.applyTransform=function(t){};var Av,Pv,Ov=Pr,Lv=function(){this.cx=0,this.cy=0,this.r=0},Rv=(n(Rr,Pv=Bm),Rr.prototype.getDefaultShape=function(){return new Lv},Rr.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)},Rr);Rv.prototype.type="circle";var Ev,Nv=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Bv=(n(Er,Ev=Bm),Er.prototype.getDefaultShape=function(){return new Nv},Er.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-a,n-o,i-e,n,i-e),t.bezierCurveTo(n+o,i-e,n+r,i-a,n+r,i),t.bezierCurveTo(n+r,i+a,n+o,i+e,n,i+e),t.bezierCurveTo(n-o,i+e,n-r,i+a,n-r,i),t.closePath()},Er);Bv.prototype.type="ellipse";var zv,Fv=Math.PI,Vv=2*Fv,Hv=Math.sin,Gv=Math.cos,Wv=Math.acos,Uv=Math.atan2,jv=Math.abs,Yv=Math.sqrt,Xv=Math.max,qv=Math.min,Zv=1e-4,Kv=function(){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},$v=(n(zr,zv=Bm),zr.prototype.getDefaultShape=function(){return new Kv},zr.prototype.buildPath=function(t,e){Br(t,e)},zr.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},zr);$v.prototype.type="sector";var Qv,Jv=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},t_=(n(Fr,Qv=Bm),Fr.prototype.getDefaultShape=function(){return new Jv},Fr.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)},Fr);t_.prototype.type="ring";var e_,n_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},i_=(n(Hr,e_=Bm),Hr.prototype.getDefaultShape=function(){return new n_},Hr.prototype.buildPath=function(t,e){Vr(t,e,!0)},Hr);i_.prototype.type="polygon";var r_,o_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},a_=(n(Gr,r_=Bm),Gr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Gr.prototype.getDefaultShape=function(){return new o_},Gr.prototype.buildPath=function(t,e){Vr(t,e,!1)},Gr);a_.prototype.type="polyline";var s_,l_={},u_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},h_=(n(Wr,s_=Bm),Wr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Wr.prototype.getDefaultShape=function(){return new u_},Wr.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=Oi(l_,e,this.style)).x1,i=o.y1,r=o.x2,o):(n=e.x1,i=e.y1,r=e.x2,e)).y2;var n,i,r,o,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(r=n*(1-e)+r*e,o=i*(1-e)+o*e),t.lineTo(r,o))},Wr.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Wr);h_.prototype.type="line";var c_=[],p_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};n(jr,d_=Bm),jr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jr.prototype.getDefaultShape=function(){return new p_},jr.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,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(jt(n,a,r,e,c_),a=c_[1],r=c_[2],jt(i,s,o,e,c_),s=c_[1],o=c_[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Vt(n,a,l,r,e,c_),a=c_[1],l=c_[2],r=c_[3],Vt(i,s,u,o,e,c_),s=c_[1],u=c_[2],o=c_[3]),t.bezierCurveTo(a,s,l,u,r,o)))},jr.prototype.pointAt=function(t){return Ur(this.shape,t,!1)},jr.prototype.tangentAt=function(t){return t=Ur(this.shape,t,!0),nt(t,t)};var d_,f_=jr;f_.prototype.type="bezier-curve";var g_,y_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},m_=(n(Yr,g_=Bm),Yr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Yr.prototype.getDefaultShape=function(){return new y_},Yr.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+n,l*r+i),t.arc(n,i,r,o,a,!e)},Yr);m_.prototype.type="arc",n(Xr,v_=Bm),Xr.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()},Xr.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)},Xr.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Xr.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Xr.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bm.prototype.getBoundingRect.call(this)};var v_,__=Xr;qr.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var x_=qr;n(Zr,w_=x_);var w_,b_=Zr;n(Kr,S_=x_);var S_,C_,x_=Kr,T_=[0,0],M_=[0,0],I_=new iy,k_=new iy,D_=($r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,t),n[3].set(r,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(iy.sub(i[0],n[1],n[0]),iy.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},$r.prototype.intersect=function(t,e){var n=!0,i=!e;return I_.set(1/0,1/0),k_.set(0,0),!this._intersectCheckOneSide(this,t,I_,k_,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,I_,k_,i,-1)&&(n=!1,i)||i||iy.copy(e,n?I_:k_),n},$r.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,T_),this._getProjMinMaxOnAxis(s,e._corners,M_),T_[1]<M_[0]||M_[1]<T_[0]){if(a=!1,r)return a;var u=Math.abs(M_[0]-T_[1]),h=Math.abs(T_[0]-M_[1]);Math.min(u,h)>i.len()&&(u<h?iy.scale(i,l,-u*o):iy.scale(i,l,h*o))}else n&&(u=Math.abs(M_[0]-T_[1]),h=Math.abs(T_[0]-M_[1]),Math.min(u,h)<n.len())&&(u<h?iy.scale(n,l,u*o):iy.scale(n,l,-h*o))}return a},$r.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},$r),A_=[],_y=(n(Qr,C_=_y),Qr.prototype.traverse=function(t,e){t.call(e,this)},Qr.prototype.useStyle=function(){this.style={}},Qr.prototype.getCursor=function(){return this._cursor},Qr.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Qr.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Qr.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Qr.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Qr.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},Qr.prototype.getDisplayables=function(){return this._displayables},Qr.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Qr.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Qr.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},Qr.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new py(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(A_)),t.union(i)}this._rect=t}return this._rect},Qr.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++)if(this._displayables[i].contain(t,e))return!0;return!1},Qr),P_=Kn(),O_=Math.max,L_=Math.min,R_={},E_=function(t,e){function i(t){return t=r.call(this,t)||this,t.applyTransform=o.applyTransform,t.buildPath=o.buildPath,t}var r,o=Lr(t,e);return n(i,r=Ov),i},N_=Ri;so("circle",Rv),so("ellipse",Bv),so("sector",$v),so("ring",t_),so("polygon",i_),so("polyline",a_),so("rect",qm),so("line",h_),so("bezierCurve",f_),so("arc",m_);var B_=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Rv,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:h_,LinearGradient:b_,OrientedBoundingRect:D_,Path:Bm,Point:iy,Polygon:i_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:$v,Text:Qm,applyTransform:yo,clipPointsByRect:_o,clipRectByRect:xo,createIcon:wo,extendPath:ao,extendShape:oo,getShapeClass:lo,getTransform:go,groupTransition:vo,initProps:eo,isElementRemoved:no,lineLineIntersect:bo,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(bo(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:ho,makePath:uo,mergePath:po,registerShape:so,removeElement:io,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||ro(t,e,n,i)}):ro(t,e,n,i)},resizePath:fo,setTooltipConfig:So,subPixelOptimize:N_,subPixelOptimizeLine:function(t){return Oi(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Li(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=yo(["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},traverseElements:To,updateProps:to}),z_={},F_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],V_=["align","lineHeight","width","height","tag","verticalAlign"],H_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],G_=Kn(),W_=["textStyle","color"],U_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],j_=new Qm,N_=(Ro.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(W_):null)},Ro.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),F([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},Ro.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<U_.length;n++)e[U_[n]]=this.getShallow(U_[n]);return j_.useStyle(e),j_.update(),j_.getBoundingRect()},Ro),Y_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],X_=li(Y_),q_=(Eo.prototype.getLineStyle=function(t){return X_(this,t)},Eo),Z_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],K_=li(Z_),$_=(No.prototype.getItemStyle=function(t,e){return K_(this,t,e)},No);Bo.prototype.init=function(t,e,n){},Bo.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Bo.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Bo.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Bo.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Bo(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Bo.prototype.isEmpty=function(){return null==this.option},Bo.prototype.restoreData=function(){},Bo.prototype.clone=function(){return new this.constructor(a(this.option))},Bo.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Bo.prototype.resolveParentPath=function(t){return t},Bo.prototype.isAnimationEnabled=function(){if(!af.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Bo.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var Q_,J_=Bo;ii(J_),px=J_,Q_=["__\0is_clz",Ny++].join("_"),px.prototype[Q_]=!0,px.isInstance=function(t){return!(!t||!t[Q_])},p(J_,q_),p(J_,$_),p(J_,zy),p(J_,N_);var tx=Math.round(10*Math.random()),ex="ZH",nx="EN",ix=nx,rx={},ox={},ax=af.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(ex)?ex:ix;Fo(nx,{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:". "}}}}),Fo(ex,{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:""}}}});var sx=1e3,lx=60*sx,ux=60*lx,hx=24*ux,Ny=365*hx,cx={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}"},px="{yyyy}-{MM}-{dd}",dx={year:"{yyyy}",month:"{yyyy}-{MM}",day:px,hour:px+" "+cx.hour,minute:px+" "+cx.minute,second:px+" "+cx.second,millisecond:cx.none},fx=["year","month","day","hour","minute","second","millisecond"],gx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],yx=B,mx=/([&<>"'])/g,vx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_x=["a","b","c","d","e","f","g"],xx=f,bx=["left","right","top","bottom","width","height"],Sx=[["width","left","right"],["height","top","bottom"]],Cx=da;_(da,"vertical"),_(da,"horizontal");var Tx,Mx,Ix,kx,Dx=Kn(),Ax=(n(va,Tx=J_),va.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},va.prototype.mergeDefaultAndTheme=function(t,e){var n=ga(this),i=n?ma(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),n&&ya(t,i,n)},va.prototype.mergeOption=function(t,e){s(this.option,t,!0);var n=ga(this);n&&ya(this.option,t,n)},va.prototype.optionUpdated=function(t,e){},va.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Ey])return t.defaultOption;var e=Dx(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={},a=n.length-1;0<=a;a--)o=s(o,n[a],!0);e.defaultOption=o}return e.defaultOption},va.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Jn(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},va.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},va.prototype.getZLevelKey=function(){return""},va.prototype.setZLevel=function(t){this.option.zlevel=t},va.protoInitialize=((q_=va.prototype).type="component",q_.id="",q_.name="",q_.mainType="",q_.subType="",void(q_.componentIndex=0)),va);ri(Ax,J_),si(Ax),Ix={},(Mx=Ax).registerSubTypeDefaulter=function(t,e){t=ni(t),Ix[t.main]=e},Mx.determineSubType=function(t,e){var n,i=e.type;return i||(n=ni(t).main,Mx.hasSubTypes(t)&&Ix[n]&&(i=Ix[n](e))),i},kx=function(t){var e=[];return f(Ax.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return ni(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e},Ax.topologicalTravel=function(t,e,n,i){function r(t){0===--u[t].entryCount&&c.push(t)}function o(t){p[t]=!0,r(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,n,i=_a(s,t),r=i.originalDeps=kx(t),r=(e=a,n=[],f(r,function(t){0<=h(e,t)&&n.push(t)}),n);i.entryCount=r.length,0===i.entryCount&&l.push(t),f(r,function(e){h(i.predecessor,e)<0&&i.predecessor.push(e);var n=_a(s,e);h(n.successor,e)<0&&n.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},u=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=u[d],y=!!p[d];y&&(n.call(i,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?o:r)}f(p,function(){throw new Error("")})}};var Px,Ox,Lx,Rx,$_="",zy=("undefined"!=typeof navigator&&($_=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Ex={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zy,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zy,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zy,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zy,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zy,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zy,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$_.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},Nx=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Bx="original",zx="arrayRows",Fx="objectRows",Vx="keyedColumns",Hx="typedArray",Gx="unknown",Wx="column",Ux="row",jx={Must:1,Might:2,Not:3},Yx=Kn(),Xx=W(),qx=Kn(),Zx=(Kn(),Sa.prototype.getColorFromPalette=function(t,e,n){var i=Fn(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=qx;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=null!=n&&r?Ca(r,n):i)||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},Sa.prototype.clearColorPalette=function(){var t,e;(e=qx)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Sa),Kx="\0_ec_inner",$x=(n(Ta,Rx=J_),Ta.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new J_(i),this._locale=new J_(r),this._optionManager=o},Ta.prototype.setOption=function(t,e,n){e=ka(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Ta.prototype.resetOption=function(t,e){return this._resetOption(t,ka(e))},Ta.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Lx(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&f(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Ta.prototype.mergeOption=function(t){this._mergeOption(t,null)},Ta.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],u=W(),h=e&&e.replaceMergeMainTypeMap;Yx(this).datasetMap=W(),f(t,function(t,e){null!=t&&(Ax.hasClass(e)?e&&(o.push(e),u.set(e,!0)):n[e]=null==n[e]?a(t):s(n[e],t,!0))}),h&&h.each(function(t,e){Ax.hasClass(e)&&!u.get(e)&&(o.push(e),u.set(e,!0))}),Ax.topologicalTravel(o,Ax.getAllClassMainTypes(),function(e){var o,a=function(t,e,n){return(e=(e=Xx.get(e))&&e(t))?n.concat(e):n}(this,e,Fn(t[e])),s=i.get(e),u=s?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Gn(s,a,u),c=(qn(s,e,Ax),n[e]=null,i.set(e,null),r.set(e,0),[]),p=[],d=0;f(s,function(t,n){var i=t.existing,r=t.newOption;if(r){var a=Ax.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(o)return;o=!0}i&&i.constructor===a?(i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1)):(n=l({componentIndex:n},t.keyInfo),l(i=new a(r,this,this,n),n),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),d++):(c.push(void 0),p.push(void 0))},this),n[e]=c,i.set(e,p),r.set(e,d),"series"===e&&Px(this)},this),this._seriesIndices||Px(this)},Ta.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,n){if(Ax.hasClass(n)){for(var i=Fn(e),r=i.length,o=!1,a=r-1;0<=a;a--)i[a]&&!Xn(i[a])?o=!0:(i[a]=null,o||r--);i.length=r,t[n]=i}}),delete t[Kx],t},Ta.prototype.getTheme=function(){return this._theme},Ta.prototype.getLocaleModel=function(){return this._locale},Ta.prototype.setUpdatePayload=function(t){this._payload=t},Ta.prototype.getUpdatePayload=function(){return this._payload},Ta.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0])return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},Ta.prototype.queryComponents=function(t){var e,n,i,r,o,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],f(Fn(e),function(t){r[t]&&o.push(r[t])})):o=null!=n?Ma("id",n,r):null!=i?Ma("name",i,r):m(r,function(t){return!!t}),Ia(o,t)):[]},Ta.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,r=(r=i+"Index",o=i+"Id",e=i+"Name",!(n=n)||null==n[r]&&null==n[o]&&null==n[e]?null:{mainType:i,index:n[r],id:n[o],name:n[e]}),o=r?this.queryComponents(r):m(this._componentsMap.get(i),function(t){return!!t});return n=Ia(o,t),t.filter?m(n,t.filter):n},Ta.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(w(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=b(t)?i.get(t):T(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Ta.prototype.getSeriesByName=function(t){var e=jn(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Ta.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Ta.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},Ta.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},Ta.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Ta.prototype.eachSeries=function(t,e){Ox(this),f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},Ta.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},Ta.prototype.eachSeriesByType=function(t,e,n){Ox(this),f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},Ta.prototype.eachRawSeriesByType=function(t,e,n){return f(this.getSeriesByType(t),e,n)},Ta.prototype.isSeriesFiltered=function(t){return Ox(this),null==this._seriesIndicesMap.get(t.componentIndex)},Ta.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Ta.prototype.filterSeries=function(t,e){Ox(this);var n=[];f(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=W(n)},Ta.prototype.restoreData=function(t){Px(this);var e=this._componentsMap,n=[];e.each(function(t,e){Ax.hasClass(e)&&n.push(e)}),Ax.topologicalTravel(n,Ax.getAllClassMainTypes(),function(n){f(e.get(n),function(e){!e||"series"===n&&function(t,e){var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}(e,t)||e.restoreData()})})},Ta.internalField=(Px=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=W(e)},Ox=function(t){},void(Lx=function(t,e){t.option={},t.option[Kx]=1,t._componentsMap=W({series:[]}),t._componentsCount=W();var n,i,r=e.aria;T(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,f(r,function(t,e){"colorLayer"===e&&i||Ax.hasClass(e)||("object"==typeof t?n[e]=n[e]?s(n[e],t,!1):a(t):null==n[e]&&(n[e]=t))}),s(e,Ex,!1),t._mergeOption(e,null)})),Ta);p($x,Zx);var Qx,Jx,tw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ew={},nw=(Aa.prototype.create=function(t,e){var n=[];f(ew,function(i,r){i=i.create(t,e),n=n.concat(i||[])}),this._coordinateSystems=n},Aa.prototype.update=function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},Aa.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Aa.register=function(t,e){ew[t]=e},Aa.get=function(t){return ew[t]},Aa),iw=/^(min|max)?(.+)$/,rw=(Pa.prototype.setOption=function(t,e,n){t&&(f(Fn(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Fn(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var i=this._optionBackup,t=function(t,e,n){function i(t){f(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,p=!!(u||l||s&&s.timeline);return s?(o=s).timeline||(o.timeline=l):((p||c)&&(t.options=t.media=null),o=t),c&&x(h)&&f(h,function(t){t&&t.option&&(t.query?a.push(t):r=r||t)}),i(o),f(u,i),f(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},Pa.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},Pa.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?a(n[t.getCurrentIndex()]):e},Pa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(i.length||r){for(var l,u,h=0,c=i.length;h<c;h++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return f(t,function(t,e){var n,e=e.match(iw);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(r=!1))}),r}(i[h].query,e,n)||o.push(h);(o=!o.length&&r?[-1]:o).length&&(l=o,u=this._currentMediaIndices,l.join(",")!==u.join(","))&&(s=g(o,function(t){return a((-1===t?r:i[t]).option)})),this._currentMediaIndices=o}return s},Pa),ow=f,aw=T,sw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],lw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],uw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],hw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],cw=function(t){this.data=t.data||(t.sourceFormat===Vx?{}:[]),this.sourceFormat=t.sourceFormat||Gx,this.seriesLayoutBy=t.seriesLayoutBy||Wx,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&&ba(this,n)===jx.Must&&(i.type="ordinal")}};Ja.prototype.getSource=function(){return this._source},Ja.prototype.count=function(){return 0},Ja.prototype.getItem=function(t,e){},Ja.prototype.appendData=function(t){},Ja.prototype.clean=function(){},Ja.protoInitialize=((N_=Ja.prototype).pure=!1,void(N_.persistent=!0)),Ja.internalField=(Jx=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;l(t,Qx[ss(r,o)]),r===Hx?(t.getItem=pw,t.count=fw,t.fillStorage=dw):(i=ns(r,o),t.getItem=If(i,null,e,a,n),i=rs(r,o),t.count=If(i,null,e,a,n))},pw=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},dw=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;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],p=0;p<h;p++){var d=r[p*o+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},fw=function(){return this._data?this._data.length/this._dimSize:0},(N_={})[zx+"_"+Wx]={pure:!0,appendData:ts},N_[zx+"_"+Ux]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},N_[Fx]={pure:!0,appendData:ts},N_[Vx]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},N_[Bx]={appendData:ts},N_[Hx]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Qx=N_));var pw,dw,fw,gw=Ja;(px={})[zx+"_"+Wx]=function(t,e,n,i){return t[i+e]},px[zx+"_"+Ux]=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},px[Fx]=es,px[Vx]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},px[Bx]=es;var yw=px;(q_={})[zx+"_"+Wx]=function(t,e,n){return Math.max(0,t.length-e)},q_[zx+"_"+Ux]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},q_[Fx]=is,q_[Vx]=function(t,e,n){return t=t[n[0].name],t?t.length:0},q_[Bx]=is;var mw=q_;(zy={})[zx]=os,zy[Fx]=function(t,e,n){return t[n]},zy[Vx]=os,zy[Bx]=function(t,e,n){return t=Hn(t),t instanceof Array?t[e]:t},zy[Hx]=os;var vw=zy,_w=/\{@(.+?)\}/g,$_=(us.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"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},us.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),n=this.getDataParams(t,n);return o&&(n.value=o.interpolatedValue),null!=i&&x(n.value)&&(n.value=n.value[i]),w(r=r||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(n.status=e,n.dimensionIndex=i,r(n)):b(r)?ua(r,n).replace(_w,function(e,n){var i=n.length,i=("["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),ls(a,t,n));return null!=(i=o&&x(o.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?o.interpolatedValue[n]:i)?i+"":""}):void 0},us.prototype.getRawValue=function(t,e){return ls(this.getData(e),t)},us.prototype.formatTooltip=function(t,e,n){},us);ps.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var n,i,r=this._upstream,o=t&&t.skip,a=(this._dirty&&r&&((a=this.context).data=a.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(n=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;if(a===l&&s===u||(n="reset"),!this._dirty&&"reset"!==n||(this._dirty=!1,i=this._doReset(o)),this._modBy=l,this._modDataCount=u,a=t&&t.step,this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!o&&(i||h<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,l,u);else this._doProgress(p,h,c,l,u)}this._dueIndex=c,s=null!=this._settedOutputEnd?this._settedOutputEnd:c,this._outputDueEnd=s}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},ps.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ps.prototype._doProgress=function(t,e,n,i,r){Iw.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Iw.next},this.context)},ps.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),x(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},ps.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ps.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},ps.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ps.prototype.getUpstream=function(){return this._upstream},ps.prototype.getDownstream=function(){return this._downstream},ps.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var xw,ww,bw,Sw,Cw,Tw,Mw=ps,Iw=Tw={reset:function(t,e,n,i){ww=t,xw=e,bw=n,Sw=i,Cw=Math.ceil(Sw/bw),Tw.next=1<bw&&0<Sw?fs:ds}},kw=W({number:function(t){return parseFloat(t)},time:function(t){return+Dn(t)},trim:function(t){return b(t)?F(t):t}}),Dw={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},Aw=(ms.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(Ln(t),this._rvalFloat)},ms);vs.prototype.evaluate=function(t,e){var n=C(t)?t:Ln(t),i=C(e)?e:Ln(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=b(t),o=b(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var Pw=vs;_s.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Ln(t)===this._rvalFloat),this._isEQ?n:!n};var Ow=_s;xs.prototype.getRawData=function(){throw new Error("not supported")},xs.prototype.getRawDataItem=function(t){throw new Error("not supported")},xs.prototype.cloneRawData=function(){},xs.prototype.getDimensionInfo=function(t){},xs.prototype.cloneAllDimensionInfo=function(){},xs.prototype.count=function(){},xs.prototype.retrieveValue=function(t,e){},xs.prototype.retrieveValueFromItem=function(t,e){},xs.prototype.convertValue=gs;var Lw,Rw=xs,Ew=W(),N_="undefined",Nw=typeof Uint32Array==N_?Array:Uint32Array,Bw=typeof Uint16Array==N_?Array:Uint16Array,zw=typeof Int32Array==N_?Array:Int32Array,px=typeof Float64Array==N_?Array:Float64Array,Fw={float:px,int:zw,ordinal:Array,number:Array,time:px};As.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=Lw[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],Qa(i),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},As.prototype.getProvider=function(){return this._provider},As.prototype.getSource=function(){return this._provider.getSource()},As.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 Fw[e||"float"](this._rawCount),this._rawExtent[r]=ks(),r},As.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length,s=(0===o&&(r[t]=ks()),r[t]),l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},As.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},As.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},As.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},As.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;l<r;l++)Ds(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<r;p++){var d=i[p],f=Lw.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,o[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},As.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;u<a;u++){var h=o[u];s[u]||(s[u]=ks()),Ds(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=r[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},As.prototype.count=function(){return this._count},As.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},As.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;r<o;r++)n.push(this.get(i[r],e));return n},As.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},As.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},As.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},As.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){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;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},As.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(i){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<o||c===o&&0<=h&&a<0)&&(o=c,a=h,s=0),h===a)&&(r[s++]=l)}r.length=s}return r},As.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;r<n;r++)i[r]=t[r];else i=new e(t.buffer,0,n)}else for(i=new(e=Is(this._rawCount))(this.count()),r=0;r<i.length;r++)i[r]=r;return i},As.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Is(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},As.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=v(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Is(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===r){for(var d=c[i[0]],f=0;f<n;f++)(u<=(_=d[f])&&_<=h||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===r){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var _=d[f],x=g[f];(u<=_&&_<=h||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===r)for(f=0;f<o;f++){var w=e.getRawIndex(f);(u<=(_=c[i[0]][w])&&_<=h||isNaN(_))&&(a[s++]=w)}else for(f=0;f<o;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<r;S++){var C=i[S];((_=c[C][w])<t[C][0]||_>t[C][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},As.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},As.prototype.modify=function(t,e){this._updateDims(this,t,e)},As.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]]=ks();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},As.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Is(this._rawCount))(Math.ceil(o/s)+2);u[a++]=l;for(var h=1;h<o-1;h+=s){for(var c=Math.min(h+s,o-1),p=Math.min(h+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[b=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,o),v=h-1,_=r[l],x=-1,w=c,g=c;g<m;g++){var b,y=r[b=this.getRawIndex(g)];isNaN(y)||x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,w=b)}l=u[a++]=w}return u[a++]=this.getRawIndex(o-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},As.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]=ks(),c=new(Is(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},As.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;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=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},As.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ks();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var r,o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,a]},As.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},As.prototype.clone=function(t,e){var n,i,r=new As,o=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(n=o[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},As.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=a(this._extent),t._rawExtent=a(this._rawExtent)},As.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},As.prototype._getRawIdxIdentity=function(t){return t},As.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},As.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},As.internalField=void(Lw={arrayRows:Ps,objectRows:function(t,e,n,i){return gs(t[e],this._dimensions[i])},keyedColumns:Ps,original:function(t,e,n,i){return t=t&&(null==t.value?t:t.value),gs(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Vw=As;Os.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Os.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Os.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Os.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Os.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Rs(s)?(i=s,r=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=I(o=i.get("data",!0))?Hx:Bx,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=R(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=R(i.sourceHeader,r.sourceHeader),i=R(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[Xa(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[Xa(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Os.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&Es(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Es(""),o.push(e),s.push(t._getVersionSign())}),i?e=Ts(i,o,n.componentIndex):null!=r&&(e=[new cw({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Os.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}},Os.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Os.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Os.prototype._innerGetDataStore=function(t,e,n){var i,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],Rs(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new Vw).initData(new gw(e,t.length),t),o[n]=r),r},Os.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Rs(e)?(t=wa(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Jn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Oy).models:[],function(t){return t.getSourceManager()})},Os.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Rs(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var Hw=Os,Gw="line-height:1",Ww=[0,10,20,30],Uw=["","\n","\n\n","\n\n\n"];Ys.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Ys.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=ha({color:e,type:t,renderMode:n,markerId:i});return b(e)?e:(this.richTextStyles[i]=e.style,e.content)},Ys.prototype.wrapRichTextStyle=function(t,e){var n={},e=(x(e)?f(e,function(t){return l(n,t)}):l(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var jw=Ys,Yw=Kn();n(Zs,Xw=Ax),Zs.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=cs({count:$s,reset:Qs}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Yw(this).sourceManager=new Hw(this)).prepareSource(),t=this.getInitialData(t,n),tl(t,this),this.dataTask.context.data=t,Yw(this).dataBeforeProcessed=t,Ks(this),this._initSelectedMapFromData(t)},Zs.prototype.mergeDefaultAndTheme=function(t,e){var n=ga(this),i=n?ma(t):{},r=this.subType;Ax.hasClass(r),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Vn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ya(t,i,n)},Zs.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ga(this),n=(n&&ya(this.option,t,n),Yw(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));tl(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Yw(this).dataBeforeProcessed=n,Ks(this),this._initSelectedMapFromData(n)},Zs.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Vn(t[n],"label",e)},Zs.prototype.getInitialData=function(t,e){},Zs.prototype.appendData=function(t){this.getRawData().appendData(t.data)},Zs.prototype.getData=function(t){var e=nl(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):Yw(this).data},Zs.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},Zs.prototype.setData=function(t){var e,n=nl(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Yw(this).data=t},Zs.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return W(t)},Zs.prototype.getSourceManager=function(){return Yw(this).sourceManager},Zs.prototype.getSource=function(){return this.getSourceManager().getSource()},Zs.prototype.getRawData=function(){return Yw(this).dataBeforeProcessed},Zs.prototype.getColorBy=function(){return this.get("colorBy")||"series"},Zs.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},Zs.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},Zs.prototype.formatTooltip=function(t,e,n){return Xs({series:this,dataIndex:t,multipleSeries:e})},Zs.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!af.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},Zs.prototype.restoreData=function(){this.dataTask.dirty()},Zs.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Zx.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Zs.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Zs.prototype.getProgressive=function(){return this.get("progressive")},Zs.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Zs.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Zs.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)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=qs(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},Zs.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)},Zs.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},Zs.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[qs(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},Zs.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},Zs.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,r=e.length;if(i&&r)if("series"===i)n.selectedMap="all";else if("multiple"===i){T(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=qs(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=qs(t,i=e[r-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},Zs.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),0<e.length&&this._innerSelect(t,e))},Zs.registerClass=function(t){return Ax.registerClass(t)},Zs.protoInitialize=((q_=Zs.prototype).type="series.__base__",q_.seriesIndex=0,q_.ignoreStyleOnData=!1,q_.hasSymbolVisual=!1,q_.defaultSymbol="circle",q_.visualStyleAccessPath="itemStyle",void(q_.visualDrawType="fill"));var Xw,qw=Zs;p(qw,$_),p(qw,Zx),ri(qw,Ax),il.prototype.init=function(t,e){},il.prototype.render=function(t,e,n,i){},il.prototype.dispose=function(t,e){},il.prototype.updateView=function(t,e,n,i){},il.prototype.updateLayout=function(t,e,n,i){},il.prototype.updateVisual=function(t,e,n,i){},il.prototype.blurSeries=function(t,e){},il.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Zw=il;ii(Zw),si(Zw);var Kw=Kn(),$w=rl(),Qw=(ol.prototype.init=function(t,e){},ol.prototype.render=function(t,e,n,i){},ol.prototype.highlight=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&sl(t,i,"emphasis")},ol.prototype.downplay=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&sl(t,i,"normal")},ol.prototype.remove=function(t,e){this.group.removeAll()},ol.prototype.dispose=function(t,e){},ol.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},ol.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},ol.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},ol.prototype.eachRendered=function(t){To(this.group,t)},ol.markUpdateMethod=function(t,e){Kw(t).updateMethod=e},ol.protoInitialize=void(ol.prototype.type="chart"),ol);ii(Qw),si(Qw);var Jw={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)}}},tb="\0__throttleOriginMethod",eb="\0__throttleRate",nb="\0__throttleType",ib=Kn(),rb={itemStyle:li(Z_,!0),lineStyle:li(Y_,!0)},ob={lineStyle:"stroke",itemStyle:"fill"},zy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=dl(t,i)(r),r=r.getShallow("decal"),a=(r&&(n.setVisual("decal",r),r.dirty=!0),fl(t,i)),r=o[a],s=w(r)?r:null,i="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!i||(r=t.getColorFromPalette(t.name,null,e.getSeriesCount()),o[a]||(o[a]=r,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||w(o.fill)?r:o.fill,o.stroke="auto"===o.stroke||w(o.stroke)?r:o.stroke),n.setVisual("style",o),n.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=l({},o);r[a]=s(i),e.setItemVisual(n,"style",r)}}}},ab=new J_,N_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,i,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=dl(t,n),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var o=t.getRawDataItem(e);o&&o[n]&&(ab.option=o[n],o=i(ab),l(t.ensureUniqueItemVisual(e,"style"),o),ab.option.decal&&(t.setItemVisual(e,"decal",ab.option.decal),ab.option.decal.dirty=!0),r in o)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},px={performRawSeries:!0,overallReset:function(t){var e=W();t.eachSeries(function(t){var n,i=t.getColorBy();t.isColorBySeries()||(i=t.type+"-"+i,(n=e.get(i))||e.set(i,n={}),ib(t).scope=n)}),t.eachSeries(function(e){var n,i,r,o,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(n=e.getRawData(),i={},r=e.getData(),o=ib(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=fl(e,a),r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a,l=i[t];r.getItemVisual(l,"colorFromPalette")&&(l=r.ensureUniqueItemVisual(l,"style"),t=n.getName(t)||t+"",a=n.count(),l[s]=e.getColorFromPalette(t,o,a))}))})}},sb=Math.PI;gl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},gl.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},gl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},gl.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},gl.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();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)})},gl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;f(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});z(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},gl.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)},gl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},gl.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},gl.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;f(t,function(t,s){var l,u,h,c,p;i.visualType&&i.visualType!==t.visualType||(l=(u=a._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((c=u.agentStubMap).each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n),p=a.getPerformArgs(u,i.block),c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)):l&&l.each(function(s,l){r(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(o=!0)}))}),this.unfinished=o||this.unfinished},gl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},gl.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},gl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},gl.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,r=s.set(r,a&&a.get(r)||cs({plan:xl,reset:wl,count:Sl}));r.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,r)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=W(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):e?n.eachRawSeriesByType(e,r):l&&l(n,i).each(r)},gl.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,cs({reset:ml,onDirty:_l})));e.context={model:t,overallProgress:h},e.agent=a,e.__block=h,o._pipe(t,e)}var o=this,a=e.overallTask=e.overallTask||cs({reset:yl}),s=(a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},a.agentStubMap),l=a.agentStubMap=W(),e=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;z(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,r):u?u(n,i).each(r):(h=!1,f(n.getSeries(),r)),c&&a.dirty()},gl.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},gl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){lb=null;try{t(cb,pb)}catch(t){}return lb}(t)}:t).uid=zo("stageHandler"),e&&(t.visualType=e),t};var lb,ub=gl,hb=bl(0),cb={},pb={};Cl(cb,$x),Cl(pb,Da),cb.eachSeriesByType=cb.eachRawSeriesByType=function(t){lb=t},cb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(lb=t.subType)};var q_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],$_={color:q_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],q_]},db="#B9B8CE",Z_="#100C2A",Y_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],q_={darkMode:!0,color:Y_,backgroundColor:Z_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:db}},textStyle:{color:db},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:db}},dataZoom:{borderColor:"#71708A",textStyle:{color:db},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:db}},timeline:{lineStyle:{color:db},label:{color:db},controlStyle:{color:db,borderColor:db}},calendar:{itemStyle:{color:Z_},dayLabel:{color:db},monthLabel:{color:db},yearLabel:{color:db}},timeAxis:Tl(),logAxis:Tl(),valueAxis:Tl(),categoryAxis:Tl(),line:{symbol:"circle"},graph:{color:Y_},gauge:{title:{color:db},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:db},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},fb=(q_.categoryAxis.splitLine.show=!1,Ml.prototype.normalizeQuery=function(t){var e,n,i,r={},o={},a={};return b(t)?(e=ni(t),r.mainType=e.main||null,r.subType=e.sub||null):(n=["Index","Name","Id"],i={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<n.length;l++){var u=n[l],h=e.lastIndexOf(u);0<h&&h===e.length-u.length&&"data"!==(h=e.slice(0,h))&&(r.mainType=h,r[u.toLowerCase()]=t,s=!0)}i.hasOwnProperty(e)&&(o[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:r,dataQuery:o,otherQuery:a}},Ml.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i,r,o,a,s,l=this.eventInfo;return!l||(i=l.targetEl,r=l.packedEvent,o=l.model,l=l.view,!o)||!l||(a=e.cptQuery,s=e.dataQuery,n(a,o,"mainType")&&n(a,o,"subType")&&n(a,o,"index","componentIndex")&&n(a,o,"name")&&n(a,o,"id")&&n(s,r,"name")&&n(s,r,"dataIndex")&&n(s,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,i,r)))},Ml.prototype.afterTrigger=function(){this.eventInfo=null},Ml),gb=["symbol","symbolSize","symbolRotate","symbolOffset"],yb=gb.concat(["symbolKeepAspect"]),Z_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i,r={},o={},a=!1,s=0;s<gb.length;s++){var u=gb[s],h=t.get(u);w(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t))return i=v(o),{dataEach:a?function(e,n){for(var r=t.getRawValue(n),a=t.getDataParams(n),s=0;s<i.length;s++){var l=i[s];e.setItemVisual(n,l,o[l](r,a))}}:null}}}},Y_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<yb.length;i++){var r=yb[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}},mb=Math.round(9*Math.random()),vb="function"==typeof Object.defineProperty,_b=(Dl.prototype.get=function(t){return this._guard(t)[this._id]},Dl.prototype.set=function(t,e){return t=this._guard(t),vb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Dl.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Dl.prototype.has=function(t){return!!this._guard(t)[this._id]},Dl.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Dl),xb=Bm.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,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i+e),t.lineTo(n-r,i+e),t.closePath()}}),wb=Bm.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,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i),t.lineTo(n,i+e),t.lineTo(n-r,i),t.closePath()}}),bb=Bm.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,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=i-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),u=Math.cos(a),h=.6*r,c=.7*r;t.moveTo(n-s,e+o),t.arc(n,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+o+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+o+u*h,n-s,e+o),t.closePath()}}),Sb=Bm.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,e=e.y,i=i/3*2;t.moveTo(r,e),t.lineTo(r+i,e+n),t.lineTo(r,e+n/4*3),t.lineTo(r-i,e+n),t.lineTo(r,e),t.closePath()}}),Cb={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){n=Math.min(n,i),r.x=t,r.y=e,r.width=n,r.height=n},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}},Tb={},Mb=(f({line:h_,rect:qm,roundRect:qm,square:qm,circle:Rv,diamond:wb,pin:bb,arrow:Sb,triangle:xb},function(t,e){Tb[e]=new t}),Bm.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=hn(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,r=e.symbolType;"none"!==r&&(i=(i=Tb[r])||Tb[r="rect"],Cb[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}})),Ib=new Mm(!0),kb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Db=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Ab=1,Pb=2,Ob=3,Lb=4,Rb=new _b,Eb=new _g(100),Nb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],Bb=new Bf,zb={},Fb="undefined"!=typeof window,wb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Vb="__flagInMainProcess",Hb="__pendingUpdate",Gb="__needsUpdateStatus",Wb=/^[a-zA-Z0-9_]+$/,Ub="__connectUpdateStatus";n(eu,jb=Bf);var jb,Yb,Xb,qb,Zb,Kb,$b,Qb,Jb,tS,eS,nS,iS,rS,oS,aS,sS,lS,uS,hS,cS=eu,bb=cS.prototype,pS=(bb.on=Jl("on"),bb.off=Jl("off"),n(nu,hS=Bf),nu.prototype._onframe=function(){if(!this._disposed){uS(this);var t=this._scheduler;if(this[Hb]){var e=this[Hb].silent;this[Vb]=!0;try{Yb(this),Zb.update.call(this,null,this[Hb].updateParams)}catch(t){throw this[Vb]=!1,this[Hb]=null,t}this._zr.flush(),this[Vb]=!1,this[Hb]=null,Jb.call(this,e),tS.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),$b(this,i),t.performVisualTasks(i),oS(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},nu.prototype.getDom=function(){return this._dom},nu.prototype.getId=function(){return this.id},nu.prototype.getZr=function(){return this._zr},nu.prototype.isSSR=function(){return this._ssr},nu.prototype.setOption=function(t,e,n){if(!this[Vb])if(this._disposed)this.id;else{T(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Vb]=!0,this._model&&!e||(e=new rw(this._api),a=this._theme,(s=this._model=new $x).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},mS);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[Hb]={silent:i,updateParams:s},this[Vb]=!1,this.getZr().wakeUp();else{try{Yb(this),Zb.update.call(this,null,s)}catch(t){throw this[Hb]=null,this[Vb]=!1,t}this._ssr||this._zr.flush(),this[Hb]=null,this[Vb]=!1,Jb.call(this,i),tS.call(this,i)}}},nu.prototype.setTheme=function(){},nu.prototype.getModel=function(){return this._model},nu.prototype.getOption=function(){return this._model&&this._model.getOption()},nu.prototype.getWidth=function(){return this._zr.getWidth()},nu.prototype.getHeight=function(){return this._zr.getHeight()},nu.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fb&&window.devicePixelRatio||1},nu.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},nu.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},nu.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},nu.prototype.getSvgDataURL=function(){var t;if(af.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},nu.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,f(r,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId],t.group.ignore||(n.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(n,function(t){t.group.ignore=!1}),r;this.id},nu.prototype.getConnectedDataURL=function(t){var e,n,i,r,o,s,l,u,h,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,bS[n]?(s=o=1/0,u=l=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f(wS,function(c,p){var d;c.group===n&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),o=i(c.left,o),s=i(c.top,s),l=r(c.right,l),u=r(c.bottom,u),h.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(o*=c),d=(u*=c)-(s*=c),g=df.createCanvas(),(y=_n(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(h,function(t){var e=t.left-o,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()):(t.connectedBackgroundColor&&y.add(new qm({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(h,function(t){t=new Wm({style:{x:t.left*c-o,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},nu.prototype.convertToPixel=function(t,e){return Kb(this,"convertToPixel",t,e)},nu.prototype.convertFromPixel=function(t,e){return Kb(this,"convertFromPixel",t,e)},nu.prototype.containPixel=function(t,e){var n;if(!this._disposed)return f($n(this._model,t),function(t,i){0<=i.indexOf("Models")&&f(t,function(t){var r=t.coordinateSystem;r&&r.containPoint?n=n||!!r.containPoint(e):"seriesModels"===i&&(r=this._chartsMap[t.__viewId])&&r.containPoint&&(n=n||r.containPoint(e,t))},this)},this),!!n;this.id},nu.prototype.getVisual=function(t,e){var t=$n(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},nu.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},nu.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},nu.prototype._initEvents=function(){var t,e,n,i=this;f(dS,function(t){function e(e){var n,r,o,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&kl(s,function(t){var e,t=nv(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(n=l({},t.eventData),1)},!0),n&&(r=n.componentType,o=n.componentIndex,"markLine"!==r&&"markPoint"!==r&&"markArea"!==r||(r="series",o=n.seriesIndex),o=(r=r&&null!=o&&a.getComponent(r,o))&&i["series"===r.mainType?"_chartsMap":"_componentsMap"][r.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:r,view:o},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),f(gS,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),f(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Il("map","selectchanged",e,i,t),Il("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Il("map","selected",e,i,t),Il("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Il("map","unselected",e,i,t),Il("pie","unselected",e,i,t))})},nu.prototype.isDisposed=function(){return this._disposed},nu.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},nu.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ti(this.getDom(),TS,""),e=(t=this)._api,n=t._model,f(t._componentsViews,function(t){t.dispose(n,e)}),f(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 wS[t.id])},nu.prototype.resize=function(t){if(!this[Vb])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[Hb]&&(null==n&&(n=this[Hb].silent),e=!0,this[Hb]=null),this[Vb]=!0;try{e&&Yb(this),Zb.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[Vb]=!1,t}this[Vb]=!1,Jb.call(this,n),tS.call(this,n)}}},nu.prototype.showLoading=function(t,e){this._disposed?this.id:(T(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),xS[t]&&(t=xS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},nu.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},nu.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=gS[t.type],e},nu.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(T(e)||(e={silent:!!e}),fS[t.type]&&this._model&&(this[Vb]?this._pendingActions.push(t):(n=e.silent,Qb.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&af.browser.weChat&&this._throttledZrFlush(),Jb.call(this,n),tS.call(this,n))))},nu.prototype.updateLabelLayout=function(){Bb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},nu.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},nu.internalField=(Yb=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Xb(t,!0),Xb(t,!1),e.plan()},Xb=function(t,e){function n(t){var n,u=t.__requireNewView,h=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),u=!u&&a[h];u||(n=ni(t.type),(u=new(e?Zw.getClass(n.main,n.sub):Qw.getClass(n.sub))).init(i,l),a[h]=u,o.push(u),s.add(u.group)),t.__viewId=u.__id=h,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(u,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;for(e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n),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)}},qb=function(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,l,t._api,n)}var a,s,l=t._model;l.setUpdatePayload(n),i?((a={})[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"],a={mainType:i,query:a},r&&(a.subType=r),null!=(r=n.excludeSeriesId)&&(s=W(),f(Fn(r),function(t){null!=(t=jn(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var i,r,o=s&&null!==s.get(e.id);if(!o)if(Mr(n))if(e instanceof qw){if(n.type===pv&&!n.notBlur&&!e.get(["emphasis","disabled"])){var o=e,a=n,l=t._api,u=o.seriesIndex,h=o.getData(a.dataType);if(h){var a=(x(a=Zn(h,a))?a[0]:a)||0,c=h.getItemGraphicEl(a);if(!c)for(var p=h.count(),d=0;!c&&d<p;)c=h.getItemGraphicEl(d++);c?yr(u,(a=nv(c)).focus,a.blurScope,l):(a=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=a&&yr(u,a,o,l))}}}else u=vr(e.mainType,e.componentIndex,n.name,t._api),a=u.focusSelf,o=u.dispatchers,n.type===pv&&a&&!n.notBlur&&mr(e.mainType,e.componentIndex,t._api),o&&f(o,function(t){(n.type===pv?ur:hr)(t)});else Tr(n)&&e instanceof qw&&(l=e,o=n,t._api,Tr(o)&&(i=o.dataType,x(r=Zn(l.getData(i),o))||(r=[r]),l[o.type===yv?"toggleSelect":o.type===fv?"select":"unselect"](r,i)),_r(e),lS(t))},t),l&&l.eachComponent(a,function(e){s&&null!==s.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),o)},Zb={prepareAndUpdate:function(t){Yb(this),Zb.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),$b(this,n),o.update(n,i),iu(n),a.performVisualTasks(n,t),iS(this,n,i,t,e),o=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),r.setBackgroundColor(o),null!=a&&"auto"!==a&&r.setDarkMode(a),Bb.trigger("afterupdate",n,i))},updateTransform:function(t){var e,n,i=this,r=this._model,o=this._api;r&&(r.setUpdatePayload(t),e=[],r.eachComponent(function(n,a){"series"!==n&&(n=i.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,r,o,t))&&a.update)&&e.push(n)}),n=W(),r.eachSeries(function(e){var a=i._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,r,o,t))&&a.update)&&n.set(e.uid,1)}),iu(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:n}),oS(this,r,o,t,{},n),Bb.trigger("afterupdate",r,o))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Qw.markUpdateMethod(t,"updateView"),iu(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),iS(this,e,this._api,t,{}),Bb.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),Qw.markUpdateMethod(t,"updateVisual"),iu(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,r){"series"!==i&&(i=e.getViewOfComponentModel(r))&&i.__alive&&i.updateVisual(r,n,e._api,t)}),n.eachSeries(function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)}),Bb.trigger("afterupdate",n,this._api))},updateLayout:function(t){Zb.update.call(this,t)}},Kb=function(t,e,n,i){if(t._disposed)t.id;else for(var r=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=$n(r,n),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](r,a,i)))return l}},$b=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Qb=function(t,e){var n,i,r=this,o=this.getModel(),a=t.type,s=t.escapeConnect,h=fS[a],c=h.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&ni(p[0]),p=(this[Vb]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=u(l({},e),t)).batch=null,e})),[]),_=Tr(t),x=Mr(t);if(x&&gr(this._api),f(p,function(e){var i,o;(n=(n=h.action(e,r._model,r._api))||l({},e)).type=c.event||n.type,v.push(n),x?(i=(o=Qn(t)).queryOptionMap,o=o.mainTypeSpecified?i.keys()[0]:"series",qb(r,d,e,o),lS(r)):_?(qb(r,d,e,"series"),lS(r)):y&&qb(r,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[Hb]?(Yb(this),Zb.update.call(this,t),this[Hb]=null):Zb[d].call(this,t)}catch(e){throw this[Vb]=!1,e}n=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[Vb]=!1,e||((p=this._messageCenter).trigger(n.type,n),_&&(m={type:"selectchanged",escapeConnect:s,selected:(i=[],o.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,n=t.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:t.seriesIndex},null!=e&&(n.dataType=e),i.push(n))})}),i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},Jb=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Qb.call(this,n,t)}},tS=function(t){t||this.trigger("updated")},eS=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Hb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},nS=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a=kl(t.target,Cr);a&&(a=a,n=t,t=e._api,i=nv(a),r=(o=vr(i.componentMainType,i.componentIndex,i.componentHighDownName,t)).dispatchers,o=o.focusSelf,r?(o&&mr(i.componentMainType,i.componentIndex,t),f(r,function(t){return sr(t,n)})):(yr(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&mr(i.componentMainType,i.componentIndex,t),sr(a,n)),lS(e))}).on("mouseout",function(t){var n,i,r=kl(t.target,Cr);r&&(r=r,n=t,gr(t=e._api),(i=vr((i=nv(r)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?f(i,function(t){return lr(t,n)}):lr(r,n),lS(e))}).on("click",function(t){var n,t=kl(t.target,function(t){return null!=nv(t).dataIndex},!0);t&&(n=t.selected?"unselect":"select",t=nv(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},iS=function(t,e,n,i,r){var o,a,s,l,u,h,c;u=[],c=!(h=[]),(o=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:r})}),c&&(At(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),rS(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive=!1}),oS(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},rS=function(t,e,n,i,r,o){f(o||t._componentsViews,function(t){var r=t.__model;au(0,t),t.render(r,e,n,i),ou(r,t),su(r,t)})},oS=function(t,e,n,i,r,o){var a,s,u,h,c=t._scheduler,p=(r=l(r||{},{updatedSeries:e.getSeries()}),Bb.trigger("series:beforeupdate",e,n,r),!1);e.eachSeries(function(e){var n,r=t._chartsMap[e.__viewId],a=(r.__alive=!0,r.renderTask);c.updatePayload(a,i),au(0,r),o&&o.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),r.group.silent=!!e.get("silent"),a=r,n=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=n)}),_r(e)}),c.unfinished=p||c.unfinished,Bb.trigger("series:layoutlabels",e,n,r),Bb.trigger("series:transition",e,n,r),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];ou(e,n),su(e,n)}),s=e,u=(a=t)._zr.storage,h=0,u.traverse(function(t){t.isGroup||h++}),h>s.get("hoverLayerThreshold")&&!af.node&&!af.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Bb.trigger("series:afterupdate",e,n,r)},lS=function(t){t[Gb]=!0,t.getZr().wakeUp()},uS=function(t){t[Gb]&&(t.getZr().storage.traverse(function(t){no(t)||ru(t)}),t[Gb]=!1)},aS=function(t){function e(){return null!==i&&i.apply(this,arguments)||this}return n(e,i=Da),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){ur(e,n),lS(t)},e.prototype.leaveEmphasis=function(e,n){hr(e,n),lS(t)},e.prototype.enterBlur=function(e){nr(e,$i),lS(t)},e.prototype.leaveBlur=function(e){cr(e),lS(t)},e.prototype.enterSelect=function(e){pr(e),lS(t)},e.prototype.leaveSelect=function(e){dr(e),lS(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);var i},void(sS=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][Ub]=e}f(gS,function(n,i){t._messageCenter.on(i,function(n){var i,r;!bS[t.group]||0===t[Ub]||n&&n.escapeConnect||(i=t.makeActionFromEvent(n),r=[],f(wS,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),f(r,function(t){1!==t[Ub]&&t.dispatchAction(i)}),e(r,2))})})})),nu),Sb=pS.prototype,dS=(Sb.on=Ql("on"),Sb.off=Ql("off"),Sb.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),fS={},gS={},yS=[],mS=[],vS=[],_S={},xS={},wS={},bS={},SS=+new Date,CS=+new Date,TS="_echarts_instance_";xb=lu;var MS=[];_u(2e3,zy),_u(4500,N_),_u(4500,px),_u(2e3,Z_),_u(4500,Y_),_u(7e3,function(t,e){t.eachRawSeries(function(n){var i;!t.isSeriesFiltered(n)&&((i=n.getData()).hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Kl(n,e))}),n=i.getVisual("decal"))&&(i.getVisual("style").decal=Kl(n,e))})}),cu(Ua),pu(900,function(t){var e=W();t.eachSeries(function(t){var n,i=t.get("stack");i&&(i=e.get(i)||e.set(i,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(t))}),e.each(ja)}),wu("default",function(t,e){u(e=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,i=new wy,r=new qm({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=(i.add(r),new Qm({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001})),a=new qm({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new m_({shape:{startAngle:-sb/2,endAngle:-sb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*sb/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*sb/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,i=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),l=t.getHeight()/2;e.showSpinner&&n.setShape({cx:i,cy:l}),a.setShape({x:i-s,y:l-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}),yu({type:pv,event:pv,update:pv},q),yu({type:dv,event:dv,update:dv},q),yu({type:fv,event:fv,update:fv},q),yu({type:gv,event:gv,update:gv},q),yu({type:yv,event:yv,update:yv},q),hu("light",$_),hu("dark",q_),Mu.prototype.add=function(t){return this._add=t,this},Mu.prototype.update=function(t){return this._update=t,this},Mu.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Mu.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Mu.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Mu.prototype.remove=function(t){return this._remove=t,this},Mu.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Mu.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,s=i[o],l=n[s],u=Cu(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},Mu.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=Cu(l),c=Cu(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)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(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},Mu.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Cu(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},Mu.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[i](t[o],o);r||(n[o]=l),e&&(0===(s=Cu(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var IS=Mu;Iu.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Iu.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var kS,DS,AS,PS,OS,LS,RS,ES=Iu,NS=function(t){this.otherDims={},null!=t&&l(this,t)},BS=Kn(),zS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},FS=(Au.prototype.isDimensionOmitted=function(){return this._dimOmitted},Au.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Lu(this.source))},Au.prototype.getSourceDimensionIndex=function(t){return R(this._dimNameMap.get(t),-1)},Au.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Au.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Qa(this.source),n=!(30<t),i="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),r.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(zS[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Au.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];r&&r.storeDimIndex===e?(r.isCalculationCoord||(i=r.name),n++):(r=this.getSourceDimension(e))&&(i=r.name),t.push(i)}return t},Au.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Au),VS=T,HS=g,GS="undefined"==typeof Int32Array?Array:Int32Array,WS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],US=["_approximateExtent"],jS=(Ru.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},Ru.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},Ru.prototype._recognizeDimIndex=function(t){if(C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Ru.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Ru.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Ru.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]}},Ru.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Ru.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},Ru.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Ru.prototype.getStore=function(){return this._store},Ru.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof Vw?t:i)||(r=this.dimensions,t=Ya(t)||d(t)?new gw(t,r.length):t,i=new Vw,r=HS(r,function(t){return{type:o._dimInfos[t].type,property:t}}),i.initData(t,r,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=ku(this,this._schema),this.userOutput=this._dimSummary.userOutput},Ru.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Ru.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<i;o++)this._nameList[o]=e[o-n],r&&RS(this,o)},Ru.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)}},Ru.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Hx&&!t.fillStorage},Ru.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),r=this._idList;if(n.getSource().sourceFormat===Bx&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!T(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=jn(s,null)),l=l.id,null==r[a])&&null!=l&&(r[a]=jn(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)RS(this,a);kS(this)}},Ru.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Ru.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Ru.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Ru.prototype.setCalculationInfo=function(t,e){VS(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Ru.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?AS(this,this._nameDimIdx,t):e)?"":e},Ru.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Ru.prototype.getId=function(t){return DS(this,this.getRawIndex(t))},Ru.prototype.count=function(){return this._store.count()},Ru.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},Ru.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},Ru.prototype.getIndices=function(){return this._store.getIndices()},Ru.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Ru.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Ru.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Ru.prototype.getValues=function(t,e){var n=this,i=this._store;return x(t)?i.getValues(HS(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},Ru.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},Ru.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},Ru.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Ru.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Ru.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Ru.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},Ru.prototype.each=function(t,e,n){w(t)&&(n=e,e=t,t=[]),n=n||this,t=HS(PS(t),this._getStoreDimIndex,this),this._store.each(t,n?If(e,n):e)},Ru.prototype.filterSelf=function(t,e,n){return w(t)&&(n=e,e=t,t=[]),n=n||this,t=HS(PS(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?If(e,n):e),this},Ru.prototype.selectRange=function(t){var e=this,n={};return f(v(t),function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]}),this._store=this._store.selectRange(n),this},Ru.prototype.mapArray=function(t,e,n){w(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},Ru.prototype.map=function(t,e,n,i){return n=n||i||this,i=HS(PS(t),this._getStoreDimIndex,this),t=LS(this),t._store=this._store.map(i,n?If(e,n):e),t},Ru.prototype.modify=function(t,e,n,i){n=n||i||this,i=HS(PS(t),this._getStoreDimIndex,this),this._store.modify(i,n?If(e,n):e)},Ru.prototype.downSample=function(t,e,n,i){var r=LS(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},Ru.prototype.lttbDownSample=function(t,e){var n=LS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},Ru.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Ru.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new J_(t,e,e&&e.ecModel)},Ru.prototype.diff=function(t){var e=this;return new IS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return DS(t,e)},function(t){return DS(e,t)})},Ru.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Ru.prototype.setVisual=function(t,e){this._visual=this._visual||{},VS(t)?l(this._visual,t):this._visual[t]=e},Ru.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Ru.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Ru.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(x(n=this.getVisual(e))?n=n.slice():VS(n)&&(n=l({},n)),i[e]=n),n},Ru.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,VS(e)?l(i,e):i[e]=n},Ru.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Ru.prototype.setLayout=function(t,e){VS(t)?l(this._layout,t):this._layout[t]=e},Ru.prototype.getLayout=function(t){return this._layout[t]},Ru.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Ru.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l(this._itemLayouts[t]||{},e):e},Ru.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Ru.prototype.setItemGraphicEl=function(t,e){var n,i,r,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,r=t,(a=e)&&((o=nv(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,"group"===a.type)&&a.traverse(function(t){t=nv(t),t.seriesIndex=n,t.dataIndex=r,t.dataType=i}),this._graphicEls[t]=e},Ru.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Ru.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},Ru.prototype.cloneShallow=function(t){return t=t||new Ru(this._schema||HS(this.dimensions,this._getDimInfo,this),this.hostModel),OS(t,this),t._store=this._store,t},Ru.prototype.wrapMethod=function(t,e){var n=this[t];w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(N(arguments)))})},Ru.internalField=(kS=function(t){var e=t._invertedIndicesMap;f(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new GS(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},AS=function(t,e,n){return jn(t._getCategory(e,n),null)},DS=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?AS(t,t._idDimIdx,e):n)?"e\0\0"+e:n},PS=function(t){return t=x(t)?t:null!=t?[t]:[]},LS=function(t){var e=new Ru(t._schema||HS(t.dimensions,t._getDimInfo,t),t.hostModel);return OS(e,t),e},OS=function(t,e){f(WS.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,f(US,function(n){t[n]=a(e[n])}),t._calculationInfo=l({},e._calculationInfo)},void(RS=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=r&&(n[e]=a=AS(t,r,e)),null==s&&null!=o&&(i[e]=s=AS(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+r),i[e]=s)})),Ru),YS=function(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t},XS={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Oy).models[0],t=t.getReferringComponents("yAxis",Oy).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),Nu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Nu(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",Oy).models[0],e.coordSysDims=["single"],n.set("single",t),Nu(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",Oy).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),Nu(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Nu(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=r.getComponent("parallelAxis",t),s=o[a];n.set(s,t),Nu(t)&&(i.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};Hu.prototype.getSetting=function(t){return this._setting[t]},Hu.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Hu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Hu.prototype.getExtent=function(){return this._extent.slice()},Hu.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Hu.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Hu.prototype.isBlank=function(){return this._isBlank},Hu.prototype.setBlank=function(t){this._isBlank=t};var qS=Hu;si(qS);var ZS=0,KS=(Gu.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Wu);return new Gu({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Gu.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Gu.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return b(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},Gu.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},Gu);n(Qu,$S=qS),Qu.prototype.parse=function(t){return b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},Qu.prototype.contain=function(t){return Zu(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},Qu.prototype.normalize=function(t){return Ku(t=this._getTickNumber(this.parse(t)),this._extent)},Qu.prototype.scale=function(t){return t=Math.round($u(t,this._extent)),this.getRawOrdinalNumber(t)},Qu.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},Qu.prototype.getMinorTicks=function(t){},Qu.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[n[r]=s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}},Qu.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},Qu.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},Qu.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},Qu.prototype.count=function(){return this._extent[1]-this._extent[0]+1},Qu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Qu.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},Qu.prototype.getOrdinalMeta=function(){return this._ordinalMeta},Qu.prototype.calcNiceTicks=function(){},Qu.prototype.calcNiceExtent=function(){},Qu.type="ordinal";var $S,QS=Qu;qS.registerClass(QS);var JS,tC=Sn,eC=(n(Ju,JS=qS),Ju.prototype.parse=function(t){return t},Ju.prototype.contain=function(t){return Zu(t,this._extent)},Ju.prototype.normalize=function(t){return Ku(t,this._extent)},Ju.prototype.scale=function(t){return $u(t,this._extent)},Ju.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},Ju.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])},Ju.prototype.getInterval=function(){return this._interval},Ju.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xu(t)},Ju.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(e){n[0]<i[0]&&o.push(t?{value:tC(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=tC(a+e,r))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:i[1];n[1]>s&&o.push(t?{value:tC(s+e,r)}:{value:n[1]})}return o},Ju.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)/t;s<t-1;){var h=tC(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},Ju.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Cn(t.value)||0:"auto"===e&&(e=this._intervalPrecision),ra(tC(t.value,e,!0)))},Ju.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];isFinite(r)&&(r<0&&i.reverse(),r=ju(i,t,e,n),this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent)},Ju.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=tC(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=tC(Math.ceil(e[1]/n)*n))},Ju.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},Ju.type="interval",Ju);qS.registerClass(eC);var nC="undefined"!=typeof Float32Array,iC=nC?Float32Array:Array;n(oh,rC=eC),oh.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Go(t.value,dx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ho(this._minLevelUnit))]||dx.second,e,this.getSetting("locale"))},oh.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale"),o=null;if(b(n))o=n;else if(w(n))o=n(t.value,e,{level:t.level});else{var a=l({},cx);if(0<t.level)for(var s=0;s<fx.length;++s)a[fx[s]]="{primary|"+a[fx[s]]+"}";var h=n?!1===n.inherit?n:u(n,a):a,c=Wo(t.value,i);if(h[c])o=h[c];else if(h.inherit){for(s=gx.indexOf(c)-1;0<=s;--s)if(h[c]){o=h[c];break}o=o||a.none}x(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return Go(new Date(t.value),o,i,r)},oh.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,n,i){for(var r=gx,o=0,a=[],s=[],l=0,u=0,h=0;h<r.length&&o++<1e4;++h){var c=Ho(r[h]);if(function(t){return t===Ho(t)}(r[h])){!function(t,r,o){var a=[],s=!r.length;if(!function(t,e,n,i){function r(t){return Uo(c,t,i)===Uo(p,t,i)}function o(){return r("year")}function a(){return o()&&r("month")}function s(){return a()&&r("day")}function l(){return s()&&r("hour")}function u(){return l()&&r("minute")}function h(){return u()&&r("second")}var c=Dn(e),p=Dn(n);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&r("millisecond")}}(Ho(t),i[0],i[1],n)){s&&(r=[{value:function(t,e,n){var i=new Date(t);switch(Ho(e)){case"year":case"month":i[Qo(n)](0);case"day":i[Jo(n)](1);case"hour":i[ta(n)](0);case"minute":i[ea(n)](0);case"second":i[na(n)](0),i[ia(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var l,u,h=0;h<r.length-1;h++){var c=r[h].value,p=r[h+1].value;if(c!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/hx/365)),f=jo(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,d=6<(u/=30*hx)?6:3<u?3:2<u?2:1,f=Yo(n),g=Qo(n);break;case"week":case"half-week":case"day":u=e,d=16<(u/=hx)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,f=Xo(n),g=Jo(n);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=ux)?12:6<l?6:3.5<l?4:2<l?2:1,f=qo(n),g=ta(n);break;case"minute":d=ah(e,!0),f=Zo(n),g=ea(n);break;case"second":d=ah(e,!1),f=Ko(n),g=na(n);break;case"millisecond":d=On(e,!0),f=$o(n),g=ia(n)}C=S=b=w=x=_=v=m=y=void 0;for(var y=d,m=c,v=p,_=f,x=g,w=a,b=new Date(m),S=m,C=b[_]();S<v&&S<=i[1];)w.push({value:S}),b[x](C+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<o.length&&0===h&&o.unshift({value:o[0].value-d})}}for(h=0;h<a.length;h++)o.push(a[h])}}(r[h],a[a.length-1]||[],s);if(c!==(r[h+1]?Ho(r[h+1]):null)){if(s.length){u=l,s.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<s.length;++d){var f=s[d].value;0!==d&&s[d-1].value===f||(p.push(s[d]),f>=i[0]&&f<=i[1]&&l++)}if(1.5*(c=(i[1]-i[0])/e)<l&&c/1.5<u)break;if(a.push(p),c<l||t===r[h])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,h=0;h<y.length;++h)for(var x=y[h],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-h});v.sort(function(t,e){return t.value-e.value});for(var b=[],h=0;h<v.length;++h)0!==h&&v[h].value===v[h-1].value||b.push(v[h]);return b}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},oh.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=hx,n[1]+=hx),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-hx),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},oh.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),aC.length),t=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=1+r:i=r}return n}(aC,this._approxInterval,0,i),i-1);this._interval=aC[t][1],this._minLevelUnit=aC[Math.max(t-1,0)][0]},oh.prototype.parse=function(t){return C(t)?t:+Dn(t)},oh.prototype.contain=function(t){return Zu(this.parse(t),this._extent)},oh.prototype.normalize=function(t){return Ku(this.parse(t),this._extent)},oh.prototype.scale=function(t){return $u(t,this._extent)},oh.type="time";var rC,oC=oh,aC=[["second",sx],["minute",lx],["hour",ux],["quarter-day",6*ux],["half-day",12*ux],["day",1.2*hx],["half-week",3.5*hx],["week",7*hx],["month",31*hx],["quarter",95*hx],["half-year",Ny/2],["year",Ny]];qS.registerClass(oC);var sC,lC=qS.prototype,uC=eC.prototype,hC=Sn,cC=Math.floor,pC=Math.ceil,dC=Math.pow,fC=Math.log,gC=(n(sh,sC=qS),sh.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return g(uC.getTicks.call(this,t),function(t){var t=t.value,e=Sn(dC(this.base,t)),e=t===n[0]&&this._fixMin?lh(e,i[0]):e;return{value:t===n[1]&&this._fixMax?lh(e,i[1]):e}},this)},sh.prototype.setExtent=function(t,e){var n=this.base;t=fC(t)/fC(n),e=fC(e)/fC(n),uC.setExtent.call(this,t,e)},sh.prototype.getExtent=function(){var t=this.base,e=lC.getExtent.call(this);return e[0]=dC(t,e[0]),e[1]=dC(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=lh(e[0],t[0])),this._fixMax&&(e[1]=lh(e[1],t[1])),e},sh.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=fC(t[0])/fC(e),t[1]=fC(t[1])/fC(e),lC.unionExtent.call(this,t)},sh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},sh.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=An(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[Sn(pC(e[0]/i)*i),Sn(cC(e[1]/i)*i)],this._interval=i,this._niceExtent=t}},sh.prototype.calcNiceExtent=function(t){uC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},sh.prototype.parse=function(t){return t},sh.prototype.contain=function(t){return Zu(t=fC(t)/fC(this.base),this._extent)},sh.prototype.normalize=function(t){return Ku(t=fC(t)/fC(this.base),this._extent)},sh.prototype.scale=function(t){return t=$u(t,this._extent),dC(this.base,t)},sh.type="log",sh);_b=gC.prototype,_b.getMinorTicks=uC.getMinorTicks,_b.getLabel=uC.getLabel,qS.registerClass(gC),uh.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,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),r=(w(r)?this._modelMinNum=hh(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=hh(t,r)),this._modelMaxRaw=e.get("max",!0));w(r)?this._modelMaxNum=hh(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=hh(t,r)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[un(t[0],1),un(t[1],1)]},uh.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,e=(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),O(a)||O(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),r=this._determinedMax;return null!=n&&(a=n,l=!0),null!=r&&(s=r,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},uh.prototype.modifyDataMinMax=function(t,e){this[vC[t]]=e},uh.prototype.setDeterminedMinMax=function(t,e){this[mC[t]]=e},uh.prototype.freeze=function(){this.frozen=!0};var yC=uh,mC={min:"_determinedMin",max:"_determinedMax"},vC={min:"_dataMin",max:"_dataMax"};_h.prototype.getNeedCrossZero=function(){return!this.option.scale},_h.prototype.getCoordSysModel=function(){};var _C=_h,bb=Object.freeze({__proto__:null,createDimensions:function(t,e){return Eu(t,e).dimensions},createList:function(t){return Vu(null,t)},createScale:function(t,e){var n=e;return(e=dh(n=e instanceof J_?n:new J_(e))).setExtent(t[0],t[1]),ph(e,n),e},createSymbol:Pl,createTextStyle:function(t,e){return Ao(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:zu,enableDataStack:Bu,getStackedDimension:Fu},enableHoverEmphasis:xr,getECData:nv,getLayoutRect:fa,mixinAxisModelCommonMethods:function(t){p(t,_C)}}),xC=[],wC={registerPreprocessor:cu,registerProcessor:pu,registerPostInit:du,registerPostUpdate:fu,registerUpdateLifecycle:gu,registerAction:yu,registerCoordinateSystem:mu,registerLayout:vu,registerVisual:_u,registerTransform:Su,registerLoading:wu,registerMap:bu,registerImpl:function(t,e){zb[t]=e},PRIORITY:wb,ComponentModel:Ax,ComponentView:Zw,SeriesModel:qw,ChartView:Qw,registerComponentModel:function(t){Ax.registerClass(t)},registerComponentView:function(t){Zw.registerClass(t)},registerSeriesModel:function(t){qw.registerClass(t)},registerChartView:function(t){Qw.registerClass(t)},registerSubTypeDefaulter:function(t,e){Ax.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){xn(t,e)}},bC=1e-8,SC=[];Th.prototype.setCenter=function(t){this._center=t},Th.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},Sb=Th;var CC,TC,MC=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},IC=function(t){this.type="linestring",this.points=t},kC=(n(Mh,CC=Sb),Mh.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,o=o&&o.length;n<o&&(t=r,n=o)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},Mh.prototype.getBoundingRect=function(t){var e,n,i=this._rect;return i&&!t||(e=[1/0,1/0],n=[-1/0,-1/0],f(this.geometries,function(i){"polygon"===i.type?Ch(i.exterior,e,n,t):f(i.points,function(i){Ch(i,e,n,t)})}),isFinite(e[0])&&isFinite(e[1])&&isFinite(n[0])&&isFinite(n[1])||(e[0]=e[1]=n[0]=n[1]=0),i=new py(e[0],e[1],n[0]-e[0],n[1]-e[1]),t)||(this._rect=i),i},Mh.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(bh(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(bh(s[l],t[0],t[1]))continue t;return!0}}}return!1},Mh.prototype.transformTo=function(t,e,n,i){for(var r=this.getBoundingRect(),o=r.width/r.height,o=(n?i=i||n/o:n=o*i,new py(t,e,n,i)),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(Sh(u.exterior,a),f(u.interiors,function(t){Sh(t,a)})):f(u.points,function(t){Sh(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},Mh.prototype.cloneShallow=function(t){return t=new Mh(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Mh);n(Ih,TC=Sb),Ih.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ue(SC),i=t;i&&!i.isGeoSVGGraphicRoot;)Ye(n,i.getLocalTransform(),n),i=i.parent;return Ke(n,n),at(e,e,n),e};var zy=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,n){if(!t[e])return 0;var i=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),n=g(t,function(t){return(isNaN(t)?0:t)/i*r*100}),o=100*r,a=g(n,function(t){return Math.floor(t)}),s=y(a,function(t,e){return t+e},0),l=g(n,function(t,e){return t-a[e]});s<o;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/r},getPixelPrecision:Mn,getPrecision:Cn,getPrecisionSafe:Tn,isNumeric:Rn,isRadianAroundZero:kn,linearMap:wn,nice:On,numericToNumber:Ln,parseDate:Dn,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e-=n)?i+e*(t[n]-i):i},quantity:An,quantityExponent:Pn,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t},remRadian:In,round:Sn}),N_=Object.freeze({__proto__:null,format:Go,parse:Dn}),px=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Rv,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:h_,LinearGradient:b_,Polygon:i_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:$v,Text:Qm,clipPointsByRect:_o,clipRectByRect:xo,createIcon:wo,extendPath:ao,extendShape:oo,getShapeClass:lo,getTransform:go,initProps:eo,makeImage:ho,makePath:uo,mergePath:po,registerShape:so,resizePath:fo,updateProps:to}),Z_=Object.freeze({__proto__:null,addCommas:ra,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:aa,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Dn(e))[(n=n?"getUTC":"get")+"FullYear"](),r=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",Vo(r,2)).replace("M",r).replace("yyyy",i).replace("yy",i%100+"").replace("dd",Vo(o,2)).replace("d",o).replace("hh",Vo(a,2)).replace("h",a).replace("mm",Vo(s,2)).replace("m",s).replace("ss",Vo(l,2)).replace("s",l).replace("SSS",Vo(e,3))},formatTpl:ua,getTextRect:function(t,e,n,i,r,o,a,s){return new Qm({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:ha,normalizeCssArray:yx,toCamelCase:oa,truncateText:di}),Y_=Object.freeze({__proto__:null,bind:If,clone:a,curry:_,defaults:u,each:f,extend:l,filter:m,indexOf:h,inherits:c,isArray:x,isFunction:w,isObject:T,isString:b,map:g,merge:s,reduce:y}),DC=Kn(),AC=[0,1],$_=(Fh.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},Fh.prototype.containData=function(t){return this.scale.contain(t)},Fh.prototype.getExtent=function(){return this._extent.slice()},Fh.prototype.getPixelPrecision=function(t){return Mn(t||this.scale.getExtent(),this._extent)},Fh.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Fh.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Vh(n=n.slice(),i.count()),wn(t,AC,n,e)},Fh.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&Vh(n=n.slice(),i.count()),wn(t,n,AC,e));return this.scale.scale(i)},Fh.prototype.pointToData=function(t,e){},Fh.prototype.getTicksCoords=function(t){function e(t,e){return t=Sn(t),e=Sn(e),s?e<t:t<e}var n,i,r,o,a,s,l,u=(t=t||{}).tickModel||this.getTickModel(),h=g(Oh(this,u).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),u=u.get("alignWithLabel");return n=this,i=h,u=u,t=t.clamp,l=i.length,n.onBand&&!u&&l&&(u=n.getExtent(),1===l?(i[0].coord=u[0],r=i[1]={coord:u[0]}):(a=i[l-1].tickValue-i[0].tickValue,o=(i[l-1].coord-i[0].coord)/a,f(i,function(t){t.coord-=o/2}),n=1+(a=n.scale.getExtent())[1]-i[l-1].tickValue,r={coord:i[l-1].coord+o*n},i.push(r)),s=u[0]>u[1],e(i[0].coord,u[0])&&(t?i[0].coord=u[0]:i.shift()),t&&e(u[0],i[0].coord)&&i.unshift({coord:u[0]}),e(u[1],r.coord)&&(t?r.coord=u[1]:i.pop()),t)&&e(r.coord,u[1])&&i.push({coord:u[1]}),h},Fh.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),g(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Fh.prototype.getViewLabels=function(){return Ph(this).labels},Fh.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Fh.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Fh.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Fh.prototype.calculateCategoryInterval=function(){r=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()},e=fh(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(r=d.scale).getExtent(),r=r.count();if(i[1]-i[0]<1)return 0;for(var o=1,a=(40<r&&(o=Math.max(1,Math.floor(r/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=o)var c=1.3*(p=on(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=DC(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-r)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=r,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},Fh),PC=2*Math.PI,OC=Mm.CMD,LC=["top","right","bottom","left"],RC=[],EC=new iy,NC=new iy,BC=new iy,zC=new iy,FC=new iy,VC=[],HC=new iy,GC=["align","verticalAlign","width","height","fontSize"],WC=new ty,UC=Kn(),jC=Kn(),YC=["x","y","rotation"],XC=(Qh.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Qh.prototype._addLabel=function(t,e,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(py.applyTransform(u,u,l),l?WC.setLocalTransform(l):(WC.x=WC.y=WC.rotation=WC.originX=WC.originY=0,WC.scaleX=WC.scaleY=1),i.__hostTarget),h=(l&&(o=l.getBoundingRect().plain(),h=l.getComputedTransform(),py.applyTransform(o,o,h)),o&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:WC.x,y:WC.y,scaleX:WC.scaleX,scaleY:WC.scaleY,rotation:WC.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Qh.prototype.addLabelsOfSeries=function(t){var e=this,n=(this._chartViewList.push(t),t.__model),i=n.get("labelLayout");(w(i)||v(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),t=nv(t);r&&!r.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,r,i)})},Qh.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=w(r.layoutOption)?r.layoutOption(Kh(r,a)):r.layoutOption,u=(r.computedLayoutOption=l=l||{},Math.PI/180),h=(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]}),!1);null!=l.x?(o.x=bn(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=bn(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),UC(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<GC.length;p++){var d=GC[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){Uh(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},Qh.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),n=Xh(this._labelList),i=m(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=m(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});qh(i,"x","width",0,e,void 0),qh(r,"y","height",0,t,void 0),Zh(m(n,function(t){return t.layoutOption.hideOverlap}))},Qh.prototype.processLabelsOverall=function(){var t=this;f(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=!o&&a?UC(a).needsUpdateLabelLine:o)&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},Qh.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=nv(t),r=i.dataIndex;if(n&&null!=r){var n=e.getData(i.dataType),e=n.getItemModel(r),i={},r=n.getItemVisual(r,"style"),n=n.getVisual("drawType"),r=(i.stroke=r[n],e.getModel("labelLine")),o=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<hv.length;i++){var r=hv[i];n[r]=t.getModel([r,e])}return n}(e),n=i,s=o.getTextGuideLine(),l=o.getTextContent();if(l){for(var e=a.normal,h=e.get("show"),c=l.ignore,p=0;p<cv.length;p++){var d,f=cv[p],g=a[f],y="normal"===f;g&&(d=g.get("show"),(y?c:R(l.states[f]&&l.states[f].ignore,c))||!R(d,h)?(d=y?s:s&&s.states.normal)&&(d.ignore=!0):(s||(s=new a_,o.setTextGuideLine(s),y||!c&&h||jh(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),jh(s,!1,f,g)))}s&&(u(s.style,n),s.style.fill=null,n=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=Yh)}else s&&o.removeTextGuideLine();Uh(t,r)}},Qh.prototype._animateLabels=function(t,e){var n,i,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||no(t))||(o=(r=UC(s)).oldLayout,n=(i=nv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=h(t,"select")&&s.attr(r.oldLayoutSelect),0<=h(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),to(s,a,e,n)):(s.attr(a),G_(s).valueAnimation||(t=R(s.style.opacity,1),s.style.opacity=0,eo(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&($h(t=r.oldLayoutSelect={},a,YC),$h(t,s.states.select,YC)),s.states.emphasis&&($h(t=r.oldLayoutEmphasis={},a,YC),$h(t,s.states.emphasis,YC)),Lo(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=jC(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),to(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,eo(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},Qh),qC=Kn();xh(Jh),n(ec,ZC=Bf),ec.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},ec.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},ec.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},ec.prototype.setUnpainted=function(){this.__firstTimePaint=!0},ec.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=tc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},ec.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new py(0,0,0,0)).copy(t),a.push(e);else{for(var e,n=!1,i=1/0,r=0,o=0;o<a.length;++o){var h=a[o];if(h.intersect(t)){var c=new py(0,0,0,0);c.copy(h),c.union(t),a[o]=c,n=!0;break}l&&(u.copy(t),u.union(h),c=t.width*t.height,h=h.width*h.height,(h=u.width*u.height-c-h)<i)&&(i=h,r=o)}l&&(a[r].union(t),n=!0),n||((e=new py(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o,a=[],s=this.maxRepaintRectCount,l=!1,u=new py(0,0,0,0),h=this.__startIndex;h<this.__endIndex;++h)(c=t[h])&&(d=c.shouldBePainted(n,i,!0,!0),(p=c.__isRendered&&(c.__dirty&eg||!d)?c.getPrevPaintRect():null)&&r(p),o=d&&(c.__dirty&eg||!c.__isRendered)?c.getPaintRect():null)&&r(o);for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c,p,d=(c=e[h]).shouldBePainted(n,i,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&r(p)}do{for(var f=!1,h=0;h<a.length;)if(a[h].isZero())a.splice(h,1);else{for(var g=h+1;g<a.length;)a[h].intersect(a[g])?(f=!0,a[h].union(a[g]),a.splice(g,1)):g++;h++}}while(f);return this._paintRects=a},ec.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},ec.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)},ec.prototype.clear=function(t,e,n){function i(t,n,i,r){var a;o.clearRect(t,n,i,r),e&&"transparent"!==e&&(a=void 0,D(e)?(a=e.__canvasGradient||Ll(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a):A(e)&&(a=Gl(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(p,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height,l=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,h=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h)),this.domBack);!n||l?i(0,0,a,s):n.length&&f(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})};var ZC,KC=ec,$C=314159;nc.prototype.getType=function(){return"canvas"},nc.prototype.isSingleCanvas=function(){return this._singleCanvas},nc.prototype.getViewportRoot=function(){return this._domRoot},nc.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},nc.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,a=i[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},nc.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},nc.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;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Zl(i,a,r,o===e-1))}i&&i.restore()}},nc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},nc.prototype.paintOne=function(t,e){ql(t,e)},nc.prototype._paintList=function(t,e,n,i){var r,o,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,og(function(){a._paintList(t,e,n,i)})))},nc.prototype._compositeManually=function(){var t=this.getLayer($C).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)})},nc.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],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||n)&&r.push(s)}for(var l=!0,u=!1,h=this,c=0;c<r.length;c++)!function(a){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(p=y;p<d.__endIndex;p++){var r=t[p];if(r.__inHover&&(u=!0),i._doPaintEl(r,d,o,e,n,p===d.__endIndex-1),m&&15<Date.now()-v)break}n.prevElClipPaths&&f.restore()}var c,p,d=r[a],f=d.ctx,g=o&&d.createRepaintRects(t,e,h._width,h._height),y=n?d.__startIndex:d.__drawIndex,m=!n&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!n)||d.clear(!1,a,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex),g)if(0===g.length)p=d.__endIndex;else for(var _=h.dpr,x=0;x<g.length;++x){var w=g[x];f.save(),f.beginPath(),f.rect(w.x*_,w.y*_,w.width*_,w.height*_),f.clip(),s(w),f.restore()}else f.save(),s(),f.restore();d.__drawIndex=p,d.__drawIndex<d.__endIndex&&(l=!1)}(c);return af.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:u}},nc.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx,n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(Zl(e,t,r,o),t.setPrevPaintRect(n))):Zl(e,t,r,o)},nc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=$C);var n=this._layers[t];return n||((n=new KC("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?s(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},nc.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},nc.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)}},nc.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)}},nc.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)}},nc.prototype.getLayers=function(){return this._layers},nc.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var i,r=null,a=0,s=0;s<t.length;s++){var l,u=(l=t[s]).zlevel,h=void 0;i!==u&&(i=u,a=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):h=this.getLayer(u+(0<a?.01:0),this._needsManuallyCompositing),h.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+h.id),h!==r&&(h.__used=!0,h.__startIndex!==s&&(h.__dirty=!0),h.__startIndex=s,h.incremental?h.__drawIndex=-1:h.__drawIndex=s,e(s),r=h),l.__dirty&eg&&!l.__inHover&&(h.__dirty=!0,h.incremental)&&h.__drawIndex<0&&(h.__drawIndex=s)}e(s),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},nc.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},nc.prototype._clearLayer=function(t){t.clear()},nc.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},nc.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?s(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+.01||s(this._layers[r],n[t],!0)}}},nc.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))},nc.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=El(r,0,i),e=El(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",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($C).resize(t,e)}return this},nc.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},nc.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},nc.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[$C].dom;var e=new KC("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),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;s<l;s++){var u=a[s];Zl(n,u,o,s===l-1)}return e.dom},nc.prototype.getWidth=function(){return this._width},nc.prototype.getHeight=function(){return this._height};var QC=nc;n(ic,JC=Ax),ic.prototype.init=function(t,e,n){JC.prototype.init.call(this,t,e,n),this._sourceManager=new Hw(this),Ls(this)},ic.prototype.mergeOption=function(t,e){JC.prototype.mergeOption.call(this,t,e),Ls(this)},ic.prototype.optionUpdated=function(){this._sourceManager.dirty()},ic.prototype.getSourceManager=function(){return this._sourceManager},ic.type="dataset",ic.defaultOption={seriesLayoutBy:Wx};var JC,tT=ic;n(rc,eT=Zw),rc.type="dataset";var eT,nT=rc;xh([function(t){t.registerPainter("canvas",QC)},oc]),xh(Jh),n(ac,iT=qw),ac.prototype.getInitialData=function(t){return Vu(null,this,{useEncodeDefaulter:!0})},ac.prototype.getLegendIcon=function(t){var e=new wy,n=Pl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,r=.8*t.itemHeight,r=Pl(n,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),i=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return r.rotation=i*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),e},ac.type="series.line",ac.dependencies=["grid","polar"],ac.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};var iT,rT=ac;n(lc,oT=wy),lc.prototype._createSymbol=function(t,e,n,i,r){this.removeAll(),r=Pl(t,-1,-1,2,2,null,r),r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=uc,this._symbolType=t,this.add(r)},lc.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},lc.prototype.getSymbolType=function(){return this._symbolType},lc.prototype.getSymbolPath=function(){return this.childAt(0)},lc.prototype.highlight=function(){ur(this.childAt(0))},lc.prototype.downplay=function(){hr(this.childAt(0))},lc.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},lc.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},lc.prototype.updateData=function(t,e,n,i){this.silent=!1;var r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=lc.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,r)):((o=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?o.attr(a):to(o,a,l,e),P_(s=o).oldStyle=s.style),this._updateCommon(t,e,u,n,i),h&&(o=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,eo(o,a,l,e))),c&&this.childAt(0).stopAnimation("leave"),this._seriesModel=l},lc.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,u,h,c,p,d,f=this.childAt(0),g=t.hostModel,y=(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,u=i.focus,h=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,m=i.cursorStyle,c=i.emphasisDisabled),i&&!t.hasItemOption||(o=(y=(i=i&&i.itemModel?i.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),h=y.get("blurScope"),c=y.get("disabled"),p=Do(i),d=y.getShallow("scale"),m=i.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),i=(f.attr("rotation",(y||0)*Math.PI/180||0),Ol(t.getItemVisual(e,"symbolOffset"),n)),y=(i&&(f.x=i[0],f.y=i[1]),m&&f.attr("cursor",m),t.getItemVisual(e,"style")),i=y.fill,m=(f instanceof Wm?(m=f.style,f.useStyle(l({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},y))):(f.__isEmptyBrush?f.useStyle(l({},y)):f.useStyle(y),f.style.decal=null,f.setColor(i,r&&r.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),r&&r.useNameLabel);ko(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):sc(t,e)},inheritColor:i,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,m=f.ensureState("emphasis"),m.style=o,f.ensureState("select").style=a,f.ensureState("blur").style=s,d&&(v=Math.max(1.1,3/this._sizeY),m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v),this.setSymbolScale(1),wr(this,u,h,c)},lc.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},lc.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,r=nv(this).dataIndex,o=e&&e.animation;this.silent=n.silent=!0,e&&e.fadeLabel?(e=n.getTextContent())&&io(e,{style:{opacity:0}},i,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}}):n.removeTextContent(),io(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:r,cb:t,removeOpt:o})},lc.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var oT,aT=lc;dc.prototype.updateData=function(t,e){this._progressiveEls=null,e=cc(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=pc(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r,a=u(i);hc(t,a,i,e)&&((r=new o(t,i,s,l)).setPosition(a),t.setItemGraphicEl(i,r),n.add(r))}).update(function(h,c){var p,d,c=r.getItemGraphicEl(c),f=u(h);hc(t,f,h,e)?(p=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(n.remove(c),(c=new o(t,h,s,l)).setPosition(f)):(c.updateData(t,h,s,l),d={x:f[0],y:f[1]},a?c.attr(d):to(c,d,i)),n.add(c),t.setItemGraphicEl(h,c)):n.remove(c)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._getSymbolPoint=u,this._data=t},dc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()})},dc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pc(t),this._data=null,this.group.removeAll()},dc.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=cc(n);for(var r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);hc(e,a,r,n)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},dc.prototype.eachRendered=function(t){To(this._progressiveEls||this.group,t)},dc.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var sT,lT=dc,uT=Math.min,hT=Math.max,cT=function(){this.smooth=0,this.smoothConstraint=!0},pT=(n(vc,sT=Bm),vc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},vc.prototype.getDefaultShape=function(){return new cT},vc.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;0<r&&yc(n[2*r-2],n[2*r-1]);r--);for(;i<r&&yc(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=mc(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},vc.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=Mm.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,h=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:var c,u=r[l++],h=r[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case o.C:u=r[l++],h=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[l++],y=a?zt(n,u,p,f,t,s):zt(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Nt(i,h,d,g,_):Nt(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},vc);n(_c,dT=cT);var dT,fT=_c;n(xc,gT=Bm),xc.prototype.getDefaultShape=function(){return new fT},xc.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(;0<o&&yc(n[2*o-2],n[2*o-1]);o--);for(;r<o&&yc(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=mc(t,n,r,o,o,1,e.smooth,a,e.connectNulls);mc(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var gT,yT=xc;n(Oc,mT=Qw),Oc.prototype.init=function(){var t=new wy,e=new lT;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Oc.prototype.render=function(t,e,n){function i(t){r._changePolyState(t)}var r=this,o=t.coordinateSystem,a=this.group,s=t.getData(),l=t.getModel("lineStyle"),h=t.getModel("areaStyle"),c=s.getLayout("points")||[],p="polar"===o.type,d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,m=this._lineGroup,v=t.get("animation"),_=!h.isEmpty(),x=h.get("origin"),w=fc(o,s,x),w=_&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=th(2*i),o=0;o<i;o++){var a=gc(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(o,s,w),b=t.get("showSymbol"),S=b&&!p&&Ic(t,s,o),C=this._data,T=(C&&C.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),C.setItemGraphicEl(e,null))}),b||f.remove(),a.add(m),!p&&t.get("step")),M=(o&&o.getArea&&t.get("clip",!0)&&(null!=(I=o.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I,Mc(s,o,n)||s.getVisual("style")[s.getVisual("drawType")]),d=(g&&d.type===o.type&&T===this._step?(_&&!y?y=this._newPolygon(c,w):y&&!_&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,o,ca(M)),(d=m.getClipPath())?eo(d,{shape:Pc(this,o,!1,t).shape},t):m.setClipPath(Pc(this,o,!0,t)),b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),wc(this._stackedOnPoints,w)&&wc(this._points,c)||(v?this._doUpdateAnimation(s,w,o,n,T,x):(T&&(c=Tc(c,o,T),w=w&&Tc(w,o,T)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))):(b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(s,o,I),T&&(c=Tc(c,o,T),w=w&&Tc(w,o,T)),g=this._newPolyline(c),_&&(y=this._newPolygon(c,w)),p||this._initOrUpdateEndLabel(t,o,ca(M)),m.setClipPath(Pc(this,o,!0,t))),t.getModel("emphasis")),n=d.get("focus"),b=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(u(l.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),br(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),nv(g).seriesIndex=t.seriesIndex,wr(g,n,b,f),Cc(t.get("smooth"))),v=t.get("smoothMonotone"),I=t.get("connectNulls");g.setShape({smooth:S,smoothMonotone:v,connectNulls:I}),y&&(_=s.getCalculationInfo("stackedOnSeries"),p=0,y.useStyle(u(h.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),_&&(p=Cc(_.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:p,smoothMonotone:v,connectNulls:I}),br(y,t,"areaStyle"),nv(y).seriesIndex=t.seriesIndex,wr(y,n,b,f)),s.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=s,this._coordSys=o,this._stackedOnPoints=w,this._points=c,this._step=T,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},Oc.prototype.packEventData=function(t,e){nv(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Oc.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Zn(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel"),h=t.get("z"),s=((l=new aT(r,o)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,r.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Qw.prototype.highlight.call(this,t,e,n,i)},Oc.prototype.downplay=function(t,e,n,i){var r,o=t.getData(),a=Zn(o,i);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):Qw.prototype.downplay.call(this,t,e,n,i)},Oc.prototype._changePolyState=function(t){var e=this._polygon;ir(this._polyline,t),e&&ir(e,t)},Oc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new pT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Oc.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new yT({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},Oc.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse,o=("cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0),t.hostModel),s=o.get("animationDuration"),l=(w(s)&&(s=s(null)),o.get("animationDelay")||0),u=w(l)?l(null):l;t.eachItemGraphicEl(function(t,o){var h,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=h=void 0,n&&(f=r?(p=n,d=e.pointToCoord(d),i?(h=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(h=p.r0,c=p.r,d[0])):i?(h=n.x,c=n.x+n.width,t.x):(h=n.y+n.height,c=n.y,t.y)),p=c===h?0:(f-h)/(c-h),a&&(p=1-p),d=w(l)?l(o):s*p+u,f=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d}),f&&f.animateFrom({style:{opacity:0}},{duration:300,delay:d}),t.disableLabelAnimation=!0)})},Oc.prototype._initOrUpdateEndLabel=function(t,e,n){var i,r,o,a=t.getModel("endLabel");Ac(t)?(i=t.getData(),r=this._polyline,(o=i.getLayout("points"))?(this._endLabel||((this._endLabel=new Qm({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),0<=(o=kc(o))&&(ko(r,Do(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){if(null==n)return sc(i,t);var r=i,o=n,a=r.mapDimensionsAll("defaultedLabel");if(!x(o))return o+"";for(var s=[],l=0;l<a.length;l++){var u=r.getDimensionIndex(a[l]);0<=u&&s.push(o[u])}return s.join(" ")},enableTextSetter:!0},(n=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}})),r.textConfig.position=null)):(r.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Oc.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=r||e<=i&&r<=e){l=u;break}s=u}i=r}return{range:[s,l],t:(e-i)/(r-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Dc(s,p[0]),m.attr({x:y[0]+h,y:y[1]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=ei(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Dc(s,v=1===t||0<i.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+o})),r)&&G_(m).setLabelText(d)},Oc.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,e=function(t,e,n,i,r,o){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=fc(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],C=y[1+b],T=m[w],M=m[w+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),h.push(n[b],n[1+b]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,C=g.dataDimsForPoint,T=r.dataToPoint([e.get(C[0],S),e.get(C[1],S)]),w=2*S,l.push(T[0],T[1]),u.push(m[w],m[w+1]),M=gc(g,r,e,S),h.push(M[0],M[1]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var I=th(o=l.length),k=th(o),D=th(o),A=th(o),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,R=2*O;I[L]=l[R],I[1+L]=l[1+R],k[L]=u[R],k[1+L]=u[1+R],D[L]=h[R],D[1+L]=h[1+R],A[L]=c[R],A[1+L]=c[1+R],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:D,stackedOnNext:A,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),u=e.current,h=e.stackedOnCurrent,c=e.next,p=e.stackedOnNext;if(r&&(u=Tc(e.current,n,r),h=Tc(e.stackedOnCurrent,n,r),c=Tc(e.next,n,r),p=Tc(e.stackedOnNext,n,r)),3e3<Sc(u,c)||s&&3e3<Sc(h,p))a.stopAnimation(),a.setShape({points:c}),s&&(s.stopAnimation(),s.setShape({points:c,stackedOnPoints:p}));else{a.shape.__points=e.current,a.shape.points=u;for(var d,n={shape:{points:c}},f=(e.current!==u&&(n.shape.__points=e.next),a.stopAnimation(),to(a,n,l),s&&(s.setShape({points:u,stackedOnPoints:h}),s.stopAnimation(),to(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points)&&(s.shape.points=a.shape.points),[]),g=e.status,y=0;y<g.length;y++)"="===g[y].cmd&&(d=t.getItemGraphicEl(g[y].idx1))&&f.push({el:d,ptIdx:y});a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<f.length;e++){var n=f[e].el,i=2*f[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},Oc.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},Oc.type="line";var mT,vT=Oc,_T={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]}},xT=function(t){return Math.round(t.length/2)};xh(function(t){var e;t.registerChartView(vT),t.registerSeriesModel(rT),t.registerLayout((e=!0,{seriesType:"line",plan:rl(),reset:function(t){var n,i,r,o,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,u=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),n=t.length,i=s.getCalculationInfo("stackResultDimension"),zu(s,t[0])&&(t[0]=i),zu(s,t[1])&&(t[1]=i),r=s.getStore(),o=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),n&&{progress:function(t,e){for(var i=t.end-t.start,s=u&&th(i*n),h=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===n?(f=r.get(o,p),l.dataToPoint(f,null,c)):(h[0]=r.get(o,p),h[1]=r.get(a,p),l.dataToPoint(h,null,c)),u?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}u&&e.setLayout("points",s)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),1<(n=Math.round(s/i)))&&("lttb"===o&&t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/n)),s=void 0,b(o)?s=_T[o]:w(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/n,s,xT))}})}),n(Lc,wT=Ax),Lc.type="grid",Lc.dependencies=["xAxis","yAxis"],Lc.layoutMode="box",Lc.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"};var wT,bT=Lc;n(Rc,ST=Ax),Rc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Oy).models[0]},Rc.type="cartesian2dAxis";var ST,CT=Rc;p(CT,_C);var q_={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)"]}}},Ny=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},q_),_b=s({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}}},q_),TT={category:Ny,value:_b,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_b),log:u({logBase:10},_b)},MT={value:1,category:1,time:1,log:1};Bc.prototype.getAxis=function(t){return this._axes[t]},Bc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},Bc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},Bc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var IT=["x","y"];n(Fc,kT=Bc),Fc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;zc(r)&&zc(o)&&(r=r.getExtent(),o=o.getExtent(),i=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-r[0]*t,r=i[1]-o[0]*e,i=this._transform=[t,0,0,e,n,r],this._invTransform=Ke([],i))},Fc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Fc.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]))},Fc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Fc.prototype.dataToPoint=function(t,e,n){n=n||[];var i,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?at(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(r,e)),n[1]=i.toGlobalCoord(i.dataToCoord(o,e)),n)},Fc.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e},Fc.prototype.pointToData=function(t,e){var n,i,r=[];return this._invTransform?at(r,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),r[0]=n.coordToData(n.toLocalCoord(t[0]),e),r[1]=i.coordToData(i.toLocalCoord(t[1]),e),r)},Fc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Fc.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]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new py(n,i,t,e)};var kT,DT=Fc;n(Vc,AT=$_),Vc.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Vc.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},Vc.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Vc.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var AT,PT=Vc,OT=Math.log;Uc.prototype.getRect=function(){return this._rect},Uc.prototype.update=function(t,e){function n(t){var e,n=v(t),i=n.length;if(i){for(var r=[],o=i-1;0<=o;o--){var a=t[+n[o]],s=a.model,l=a.scale;Uu(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(ph(l,s),Uu(l)&&(e=a))}r.length&&(e||ph((e=r.pop()).scale,e.model),f(r,function(t){var n=t.scale,t=t.model,i=e.scale,r=eC.prototype,o=r.getTicks.call(i),a=r.getTicks.call(i,!0),s=o.length-1,i=r.getInterval.call(i),l=(t=ch(n,t)).extent,u=t.fixMin,t=t.fixMax,h=("log"===n.type&&(h=OT(n.base),l=[OT(l[0])/h,OT(l[1])/h]),n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:t}),r.getExtent.call(n)),c=(u&&(l[0]=h[0]),t&&(l[1]=h[1]),r.getInterval.call(n)),p=l[0],d=l[1];if(u&&t)c=(d-p)/s;else if(u)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=Yu(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=Yu(c),p=l[1]-c*s;else h=(c=s<n.getTicks().length-1?Yu(c):c)*s,(p=Sn((d=Math.ceil(l[1]/c)*c)-h))<0&&0<=l[0]?(p=0,d=Sn(h)):0<d&&l[1]<=0&&(d=0,p=-Sn(h));u=(o[0].value-a[0].value)/i,t=(o[s].value-a[s].value)/i,r.setExtent.call(n,p+c*u,d+c*t),r.setInterval.call(n,c),(u||t)&&r.setNiceExtent.call(n,p+c,d-c)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};f(i.x,function(t){Yc(i,"y",t,r)}),f(i.y,function(t){Yc(i,"x",t,r)}),this.resize(this.model,e)},Uc.prototype.resize=function(t,e,n){function i(){f(a,function(t){var e,n,i=t.isHorizontal(),r=i?[0,o.width]:[0,o.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),r=t,e=i?o.x:o.y,a=r.getExtent(),n=a[0]+a[1],r.toGlobalCoord="x"===r.dim?function(t){return t+e}:function(t){return n-t+e},r.toLocalCoord="x"===r.dim?function(t){return t-e}:function(t){return n-t+e}})}var r=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),o=fa(r,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=o,this._axesList);i(),n&&(f(a,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=yh(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i))}),i()),f(this._coordsList,function(t){t.calcAffineTransform()})},Uc.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},Uc.prototype.getAxes=function(){return this._axesList.slice()},Uc.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];T(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},Uc.prototype.getCartesians=function(){return this._coordsList.slice()},Uc.prototype.convertToPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},Uc.prototype.convertFromPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},Uc.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Oy).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Oy).models[0],t=t.gridModel,a=this._coordsList;return i?h(a,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},Uc.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},Uc.prototype._initCartesian=function(t,e,n){function i(e){return function(n,i){var r,u;jc(n,t)&&(r=n.get("position"),"x"===e?"top"!==r&&"bottom"!==r&&(r=a.bottom?"top":"bottom"):"left"!==r&&"right"!==r&&(r=a.left?"right":"left"),a[r]=!0,u="category"===(r=new PT(e,dh(n),[0,0],n.get("type"),r)).type,r.onBand=u&&n.get("boundaryGap"),r.inverse=n.get("inverse"),(n.axis=r).model=n,r.grid=o,r.index=i,o._axesList.push(r),s[e][i]=r,l[e]++)}}var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,n){f(s.y,function(i,o){var o="x"+n+"y"+o,a=new DT(o);a.master=r,a.model=t,r._coordsMap[o]=a,r._coordsList.push(a),a.addAxis(e),a.addAxis(i)})}):(this._axesMap={},this._axesList=[])},Uc.prototype._updateScale=function(t,e){function n(t,e){var n,i,r;f((n=t,i=e.dim,r={},f(n.mapDimensionsAll(i),function(t){r[Fu(n,t)]=!0}),v(r)),function(n){e.scale.unionExtentFromData(t,n)})}f(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var i,r;Gc(t)&&(r=(i=Wc(t)).xAxisModel,i=i.yAxisModel,jc(r,e))&&jc(i,e)&&(r=this.getCartesian(r.componentIndex,i.componentIndex),i=t.getData(),t=r.getAxis("x"),r=r.getAxis("y"),n(i,t),n(i,r))},this)},Uc.prototype.getTooltipAxes=function(t){var e=[],n=[];return f(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),i=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,i)<0&&n.push(i)}),{baseAxes:e,otherAxes:n}},Uc.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var o=new Uc(i,t,e);o.name="grid_"+r,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){var e,n,i;Gc(t)&&(e=(n=Wc(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),n},Uc.dimensions=IT;var LT,RT,ET,NT=Uc,BT=Math.PI,zT=(qc.prototype.hasBuilder=function(t){return!!FT[t]},qc.prototype.add=function(t){FT[t](this.opt,this.axisModel,this.group,this._transformGroup)},qc.prototype.getGroup=function(){return this.group},qc.innerTextLayout=function(t,e,n){var i,e=In(e-t),t=kn(e)?(i=0<n?"top":"bottom","center"):kn(e-BT)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<BT?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},qc.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},qc.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},qc),FT={axisLine:function(t,e,n,i){var r,o,a,s,u,h=e.get(["axisLine","show"]);(h="auto"===h&&t.handleAutoShown?t.handleAutoShown("axisLine"):h)&&(h=e.axis.getExtent(),i=i.transform,r=[h[0],0],h=[h[1],0],i&&(at(r,r,i),at(h,h,i)),o=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),(i=new h_({subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:h[0],y2:h[1]},style:o,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",n.add(i),null!=(a=e.get(["axisLine","symbol"])))&&(i=e.get(["axisLine","symbolSize"]),b(a)&&(a=[a,a]),(b(i)||C(i))&&(i=[i,i]),e=Ol(e.get(["axisLine","symbolOffset"])||0,i),s=i[0],u=i[1],f([{rotate:t.rotation+Math.PI/2,offset:e[0],r:0},{rotate:t.rotation-Math.PI/2,offset:e[1],r:Math.sqrt((r[0]-h[0])*(r[0]-h[0])+(r[1]-h[1])*(r[1]-h[1]))}],function(e,i){var l;"none"!==a[i]&&null!=a[i]&&(i=Pl(a[i],-s/2,-u/2,s,u,o.stroke,!0),l=e.r+e.offset,i.attr({rotation:e.rotate,x:r[0]+l*Math.cos(t.rotation),y:r[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i))}))},axisTickLabel:function(t,e,n,i){var r,o,a,s,l,h=function(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 a=o.getModel("lineStyle"),i=i.tickDirection*o.get("length"),s=Qc(r.getTicksCoords(),e.transform,i,u(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),c=function(t,e,n,i){var r,o,a,s,l,u,h,c,p=n.axis,d=L(i.axisLabelShow,n.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return r=n.getModel("axisLabel"),o=r.get("margin"),d=p.getViewLabels(),a=(L(i.labelRotate,r.get("rotate"))||0)*BT/180,s=zT.innerTextLayout(i.rotation,a,i.labelDirection),l=n.getCategories&&n.getCategories(!0),u=[],h=zT.isLabelSilent(n),c=n.get("triggerEvent"),f(d,function(a,d){var f="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,g=a.formattedLabel,y=a.rawLabel,m=r,v=(m=l&&l[f]&&T(v=l[f])&&v.textStyle?new J_(v.textStyle,r,n.ecModel):m).getTextColor()||n.get(["axisLine","lineStyle","color"]),_=p.dataToCoord(f),_=new Qm({x:_,y:i.labelOffset+i.labelDirection*o,rotation:s.rotation,silent:h,z2:10+(a.level||0),style:Ao(m,{text:g,align:m.getShallow("align",!0)||s.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||s.textVerticalAlign,fill:w(v)?v("category"===p.type?y:"value"===p.type?f+"":f,d):v})});_.anid="label_"+f,c&&((a=zT.makeAxisEventDataBase(n)).targetType="axisLabel",a.value=y,nv(_).eventData=a),e.add(_),_.updateTransform(),u.push(_),t.add(_),_.decomposeTransform()}),u}(n,i,e,t),p=(o=c,h=h,vh((r=e).axis)||(y=r.get(["axisLabel","showMinLabel"]),r=r.get(["axisLabel","showMaxLabel"]),h=h||[],_=(o=o||[])[0],m=o[1],a=o[o.length-1],o=o[o.length-2],s=h[0],v=h[1],l=h[h.length-1],h=h[h.length-2],!1===y?(Zc(_),Zc(s)):Kc(_,m)&&(y?(Zc(m),Zc(v)):(Zc(_),Zc(s))),!1===r?(Zc(a),Zc(l)):Kc(o,a)&&(r?(Zc(o),Zc(h)):(Zc(a),Zc(l)))),n),d=i,y=e,m=t.tickDirection,v=y.axis,_=y.getModel("minorTick");if(_.get("show")&&!v.scale.isBlank()){var x=v.getMinorTicksCoords();if(x.length)for(var v=_.getModel("lineStyle"),b=m*_.get("length"),S=u(v.getLineStyle(),u(y.getModel("axisTick").getLineStyle(),{stroke:y.get(["axisLine","lineStyle","color"])})),C=0;C<x.length;C++)for(var M=Qc(x[C],d.transform,b,S,"minorticks_"+C),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&Zh(Xh(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var r,o,a,s,l,u,h,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,r=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,o=(h=e.axis.getExtent())[0]>h[1]?-1:1,o=["start"===c?h[0]-o*u:"end"===c?h[1]+o*u:(h[0]+h[1])/2,$c(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*BT/180),$c(c)?a=zT.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var r,n=In(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=kn(n-BT/2)?(r=i?"bottom":"top","center"):kn(n-1.5*BT)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*BT&&BT/2<n?i?"left":"right":i?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:r}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=r.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=L(t.nameTruncateMaxWidth,c.maxWidth,s),So({el:t=new Qm({x:o[0],y:o[1],rotation:a.rotation,silent:zT.isLabelSilent(e),style:Ao(r,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:r.get("align")||a.textAlign,verticalAlign:r.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=zT.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,nv(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}},VT={},HT=(n(rp,LT=Zw),rp.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=ep(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=np(l),null==u&&(a.status=l?"show":"hide"),(u=o.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=r.axis.scale.isBlank()?"hide":"show"),LT.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},rp.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},rp.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},rp.prototype.dispose=function(t,e){this._disposeAxisPointer(e),LT.prototype.dispose.apply(this,arguments)},rp.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=rp.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=ep(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},rp.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},rp.registerAxisPointerClass=function(t,e){VT[t]=e},rp.getAxisPointerClass=function(t){return t&&VT[t]},rp.type="axis",rp),GT=Kn(),WT=["axisLine","axisTickLabel","axisName"],UT=["splitArea","splitLine","minorSplitLine"],Sb=(n(op,RT=HT),op.prototype.render=function(t,e,n,i){this.group.removeAll();var r,o,a=this._axisGroup;this._axisGroup=new wy,this.group.add(this._axisGroup),t.get("show")&&(o=Hc(r=t.getCoordSysModel(),t),o=new zT(t,l({handleAutoShown:function(e){for(var n=r.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Uu(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},o)),f(WT,o.add,o),this._axisGroup.add(o.getGroup()),f(UT,function(e){t.get([e,"show"])&&jT[e](this,this._axisGroup,t,r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||vo(a,this._axisGroup,t),RT.prototype.render.call(this,t,e,n,i))},op.prototype.remove=function(){GT(this).splitAreaColors=null},op.type="cartesianAxis",op),jT={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank())for(var n=n.getModel("splitLine"),o=n.getModel("lineStyle"),a=x(a=o.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=r.isHorizontal(),h=0,c=r.getTicksCoords({tickModel:n}),p=[],d=[],f=o.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),h++%a.length),m=c[g].tickValue;e.add(new h_({anid:null!=m?"line_"+c[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:u({stroke:a[y]},f),silent:!0}))}},minorSplitLine:function(t,e,n,i){var r=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),o=i.coordinateSystem.getRect(),a=r.isHorizontal(),s=r.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=r.toGlobalCoord(s[c][p].coord);a?(l[0]=d,l[1]=o.y,u[0]=d,u[1]=o.y+o.height):(l[0]=o.x,l[1]=d,u[0]=o.x+o.width,u[1]=d),e.add(new h_({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){var r=e,e=i,o=(i=n).axis;if(!o.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var h=a.length,c=GT(t).splitAreaColors,p=W(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=o.toGlobalCoord(l[0].coord),m=n.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=o.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=o.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),r.add(new qm({anid:null!=v?"area_"+v:null,shape:{x:_,y:w,width:b,height:S},style:u({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}GT(t).splitAreaColors=p}}}},YT=(n(ap,ET=Sb),ap.type="xAxis",ap);n(sp,XT=Sb),sp.type="yAxis";var XT,qT=sp;n(lp,ZT=Zw),lp.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new qm({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},lp.type="grid";var ZT,KT=lp,$T={offset:0};xh(function(t){t.registerComponentView(KT),t.registerComponentModel(bT),t.registerCoordinateSystem("cartesian2d",NT),Ec(t,"x",CT,$T),Ec(t,"y",CT,$T),t.registerComponentView(YT),t.registerComponentView(qT),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),n(up,QT=Ax),up.type="title",up.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var QT,JT=up;n(hp,tM=Zw),hp.prototype.render=function(t,e,n){var i,r,o,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),r=t.getModel("subtextStyle"),h=t.get("textAlign"),c=R(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Qm({style:Ao(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new Qm({style:Ao(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,r.silent=!a&&!s,o&&u.on("click",function(){pa(o,"_"+t.get("target"))}),a&&r.on("click",function(){pa(a,"_"+t.get("subtarget"))}),nv(u).eventData=nv(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(r),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=fa(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),r.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new qm({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},hp.type="title";var tM,eM=hp;xh(function(t){t.registerComponentModel(JT),t.registerComponentView(eM)}),n(cp,nM=Ax),cp.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},cp.prototype.mergeOption=function(t,e){nM.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},cp.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;x(e=!0===e?t.selector=["all","inverse"]:e)&&f(e,function(t,i){b(t)&&(t={type:t}),e[i]=s(t,(i=n,"all"===(t=t.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},cp.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},cp.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;n.push(o),i.legendVisualProvider&&(o=i.legendVisualProvider.getAllNames(),t.isSeriesFiltered(i)||(n=n.concat(o)),o.length)?e=e.concat(o):r=!0,r&&Yn(i)&&e.push(i.name)}),this._availableNames=n;var i=g(this.get("data")||e,function(t){return(b(t)||C(t))&&(t={name:t}),new J_(t,this,this.ecModel)},this);this._data=i},cp.prototype.getData=function(){return this._data},cp.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&f(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},cp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},cp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},cp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},cp.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},cp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=h(this._availableNames,t)},cp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},cp.type="legend.plain",cp.dependencies=["series"],cp.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var nM,iM,rM=cp,oM=_,aM=f,sM=wy,lM=(n(pp,iM=Zw),pp.prototype.init=function(){this.group.add(this._contentGroup=new sM),this.group.add(this._selectorGroup=new sM),this._isFirstRender=!0},pp.prototype.getContentGroup=function(){return this._contentGroup},pp.prototype.getSelectorGroup=function(){return this._selectorGroup},pp.prototype.render=function(t,e,n){var i,r,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(r=t.get("align"),i=t.get("orient"),r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===i?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(r,t,e,n,a,i,s=!a||s&&"auto"!==s?s:"horizontal"===i?"end":"start"),o=fa(e=t.getBoxLayoutParams(),i={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),o=fa(u({width:(r=this.layoutInner(t,r,o,l,a,s)).width,height:r.height},e),i,n),this.group.x=o.x-r.x,this.group.y=o.y-r.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=r,s=yx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new qm({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},pp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},pp.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),u=W(),h=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),aM(e.getData(),function(r,o){var a,p,d,f,g=r.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=n.getSeriesByName(g)[0],u.get(g)||(a?(p=(f=a.getData()).getVisual("legendLineStyle")||{},d=f.getVisual("legendIcon"),f=f.getVisual("style"),this._createItem(a,g,o,r,e,t,p,f,d,h).on("click",oM(dp,g,null,i,c)).on("mouseover",oM(gp,a.name,null,i,c)).on("mouseout",oM(yp,a.name,null,i,c)),u.set(g,!0)):n.eachRawSeries(function(n){var a,s,p;u.get(g)||n.legendVisualProvider&&(s=n.legendVisualProvider).containName(g)&&(p=s.indexOfName(g),a=s.getItemVisual(p,"style"),s=s.getItemVisual(p,"legendIcon"),(p=ae(a.fill))&&0===p[3]&&(p[3]=.2,a=l(l({},a),{fill:ce(p,"rgba")})),this._createItem(n,g,o,r,e,t,{},a,s,h).on("click",oM(dp,null,g,i,c)).on("mouseover",oM(gp,null,g,i,c)).on("mouseout",oM(yp,null,g,i,c)),u.set(g,!0))},this))):((p=new sM).newline=!0,s.add(p))},this),r&&this._createSelector(r,e,i,o,a)},pp.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();aM(t,function(t){var i=t.type,r=new Qm({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),ko(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),xr(r)})},pp.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u){var h=t.visualDrawType,c=r.get("itemWidth"),p=r.get("itemHeight"),d=r.isSelected(e),f=i.get("symbolRotate"),g=i.get("symbolKeepAspect"),y=i.get("icon"),a=function(t,e,n,i,r,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),aM(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var s=e.getModel("itemStyle").getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[r]),"inherit"===s.stroke&&(s.stroke=i[t]),"inherit"===s.opacity&&(s.opacity=("fill"===r?i:n).opacity),a(s,i);var r=e.getModel("lineStyle"),l=r.getLineStyle();return a(l,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===l.stroke&&(l.stroke=i.fill),o||(n=e.get("inactiveBorderWidth"),o=s[t],s.lineWidth="auto"===n?0<i.lineWidth&&o?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),l.stroke=r.get("inactiveColor"),l.lineWidth=r.get("inactiveWidth")),{itemStyle:s,lineStyle:l}}(l=y||l||"roundRect",i,a,s,h,d),s=new sM,h=i.getModel("textStyle"),y=(!w(t.getLegendIcon)||y&&"inherit"!==y?(y="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0,s.add(function(t){var e=t.icon||"roundRect",n=Pl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:c,itemHeight:p,icon:l,iconRotate:y,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g}))):s.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:f,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g})),"left"===o?c+5:-5),t=o,l=r.get("formatter"),f=e,a=(b(l)&&l?f=l.replace("{name}",null!=e?e:""):w(l)&&(f=l(e)),i.get("inactiveColor")),g=(s.add(new Qm({style:Ao(h,{text:f,x:y,y:p/2,fill:d?h.getTextColor():a,align:t,verticalAlign:"middle"})})),new qm({shape:s.getBoundingRect(),invisible:!0})),c=i.getModel("tooltip");return c.get("show")&&So({el:g,componentModel:r,itemName:e,itemTooltipOption:c.option}),s.add(g),s.eachChild(function(t){t.silent=!0}),g.silent=!u,this.getContentGroup().add(s),xr(s),s.__legendDataIndex=n,s},pp.prototype.layoutInner=function(t,e,n,i,r,o){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(Cx(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),r?(Cx("horizontal",p,t.get("selectorItemGap",!0)),a=[-(r=p.getBoundingRect()).x,-r.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===o?a[t]+=n[l]+s:d[t]+=r[l]+s,a[1-t]+=n[u]/2-r[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(o={x:0,y:0})[l]=n[l]+s+r[l],o[u]=Math.max(n[u],r[u]),o[h]=Math.min(0,r[h]+a[1-t]),o):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},pp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},pp.type="legend.plain",pp);n(xp,uM=rM),xp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},xp.prototype.init=function(t,e,n){var i=ma(t);uM.prototype.init.call(this,t,e,n),wp(this,t,i)},xp.prototype.mergeOption=function(t,e){uM.prototype.mergeOption.call(this,t,e),wp(this,this.option,t)},xp.type="legend.scroll",xp.defaultOption=(f_=rM.defaultOption,Rv={scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},s(s({},f_,!0),Rv,!0));var uM,hM,cM=xp,pM=wy,dM=["width","height"],fM=["x","y"],gM=(n(bp,hM=lM),bp.prototype.init=function(){hM.prototype.init.call(this),this.group.add(this._containerGroup=new pM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pM)},bp.prototype.resetInner=function(){hM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},bp.prototype.renderInner=function(t,e,n,i,r,o,a){function s(t,n){var r=t+"DataIndex",n=wo(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:If(l._pageGo,l,r,e,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});n.name=t,u.add(n)}var l=this,u=(hM.prototype.renderInner.call(this,t,e,n,i,r,o,a),this._controllerGroup),t=e.get("pageIconSize",!0),h=x(t)?t:[t,t],n=(s("pagePrev",0),e.getModel("pageTextStyle"));u.add(new Qm({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},bp.prototype.layoutInner=function(t,e,n,i,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=dM[l],h=fM[l],c=dM[1-l],p=fM[1-l],d=(r&&Cx("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(n),n=(r&&(y[u]=n[u]-f[u]-d),this._layoutContentAndController(t,i,y,l,u,c,p,h));return r&&("end"===o?g[l]+=n[u]+d:(t=f[u]+d,g[l]-=t,n[h]-=t),n[u]+=f[u]+d,g[1-l]+=n[p]+n[c]/2-f[c]/2,n[c]=Math.max(n[c],f[c]),n[p]=Math.min(n[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),n},bp.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(Cx(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Cx("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=R(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[r]-p[r]:e[i]+=p[r]+g),s[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[r]=(d?n:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[r],d?((e={x:0,y:0})[r]=Math.max(n[r]-p[r]-g,0),e[o]=f[o],u.setClipPath(new qm({shape:e})),u.__rectSize=e[r]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&to(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},bp.prototype._pageGo=function(t,e,n){null!=(t=this._getPageInfo(e)[t])&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},bp.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(f(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],i=n.childOfName(i);i&&(i.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=r?"pointer":"default")}),n.childOfName("pageText")),r=t.get("pageFormatter"),o=e.pageIndex,o=null!=o?o+1:0,a=e.pageCount;i&&r&&i.setStyle("text",b(r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):r({current:o,total:a}))},bp.prototype._getPageInfo=function(t){function e(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[s]+t[s],e:n+e[a],i:t.__legendDataIndex}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,t=t.getOrient().index,a=dM[t],s=fM[t],i=this._findTargetItemIndex(i),l=r.children(),u=l[i],h=l.length,c=h?1:0,p={contentPosition:[r.x,r.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(u){r=e(u),p.contentPosition[t]=-r.s;for(var d=i+1,f=r,g=r,y=null;d<=h;++d)(!(y=e(l[d]))&&g.e>f.s+o||y&&!n(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=i-1,f=r,g=r,y=null;-1<=d;--d)(y=e(l[d]))&&n(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},bp.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){i=i.__legendDataIndex,null==n&&null!=i&&(n=r),i===t&&(e=r)}),null!=e?e:n):0},bp.type="legend.scroll",bp);xh(function(t){xh(_p),t.registerComponentModel(cM),t.registerComponentView(gM),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var yM=Kn(),mM=a,vM=If;Sp.prototype.render=function(t,e,n,i){var r,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,r=this._handle,s&&"hide"!==s?(i&&i.show(),r&&r.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),i?(o=_(Cp,e,o),this.updatePointerEl(i,s,o),this.updateLabelEl(i,s,o,e)):(i=this._group=new wy,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),Ip(i,e,!0),this._renderHandle(a)):(i&&i.hide(),r&&r.hide()))},Sp.prototype.remove=function(t){this.clear(t)},Sp.prototype.dispose=function(t){this.clear(t)},Sp.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===i||null==i?(n=this.animationThreshold,o&&r.getBandWidth()>n||!!e&&(o=ep(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},Sp.prototype.makeElOption=function(t,e,n,i,r){},Sp.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=yM(t).pointerEl=new B_[r.type](mM(e.pointer)),t.add(r))},Sp.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=yM(t).labelEl=new Qm(mM(e.label)),t.add(e),Tp(e,i))},Sp.prototype.updatePointerEl=function(t,e,n){(t=yM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Sp.prototype.updateLabelEl=function(t,e,n,i){(t=yM(t).labelEl)&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),Tp(t,i))},Sp.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,i=this._handle=wo(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Uf(t.event)},onmousedown:vM(this._onHandleDragMove,this,0,0),drift:vM(this._onHandleDragMove,this),ondragend:vM(this._onHandleDragEnd,this)}),n.add(i)),Ip(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=r.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,cl(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(i&&n.remove(i),this._handle=null))},Sp.prototype._moveHandleToValue=function(t,e){Cp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Mp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Sp.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(Mp(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(Mp(t)),yM(n).lastProp=null,this._doDispatchAxisPointer())},Sp.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(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}]}))},Sp.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Sp.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),pl(this,"_doDispatchAxisPointer")},Sp.prototype.doClear=function(){},Sp.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},n(Pp,_M=Sp),Pp.prototype.makeElOption=function(t,e,n,i,r){var o,a,s=n.axis,l=s.grid,u=i.get("type"),h=Op(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=i).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=wM[u](s,c,h)).style=o,t.graphicKey=a.type,t.pointer=a),Hc(l.model,n));u=e,s=t,c=p,h=n,o=i,a=r,l=zT.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),kp(s,h,o,a,{position:Ap(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Pp.prototype.getHandleTransform=function(t,e,n){var i=Hc(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),Ap(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},Pp.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=Op(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var _M,xM=Pp,wM={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=Lp(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=Lp(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};n(Rp,bM=Ax),Rp.type="axisPointer",Rp.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}};var bM,SM=Rp,CM=Kn(),TM=f;n(Fp,MM=Zw),Fp.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Ep("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Fp.prototype.remove=function(t,e){zp("axisPointer",e)},Fp.prototype.dispose=function(t,e){zp("axisPointer",e)},Fp.type="axisPointer";var MM,IM=Fp,kM=Kn();n(qp,DM=Ax),qp.type="tooltip",qp.dependencies=["axisPointer"],qp.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}};var DM,AM=qp,PM=Kp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),OM=$p(Kp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),LM=$p(PM,"transform"),RM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(af.transform3dSupported?"will-change:transform;":"");ed.prototype.update=function(t){var e=this._container,n=(n="position",(i=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?n?i[n]:i:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},ed.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=RM+Jp(t,!this._firstShow,this._longHide)+Qp(r[0],r[1],!0)+"border-color:"+ca(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},ed.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,u,c,p="";if(b(r)&&"item"===n.get("trigger")&&!Zp(n)&&(n=n,i=i,p=b(r=r)&&"inside"!==r?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=ca(i),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",d=Math.max(1.5*Math.round(n),6),s="",l=LM+":",-1<h(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==r?225:45)+"deg)"),c=c*Math.PI/180,c=(u=d+n)*Math.abs(Math.cos(c))+u*Math.abs(Math.sin(c)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;",(s+=";"+r+":-"+Math.round(100*((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))o.innerHTML=t+p;else if(t){o.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==o&&o.appendChild(t[f]);p&&o.childNodes.length&&((d=document.createElement("div")).innerHTML=p,o.appendChild(d))}}},ed.prototype.setEnterable=function(t){this._enterable=t},ed.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},ed.prototype.moveTo=function(t,e){var n,i=this._styleCoord;td(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,f(Qp(i[0],i[1]),function(t){n[t[0]]=t[1]}))},ed.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},ed.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",af.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},ed.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},ed.prototype.isShow=function(){return this._show},ed.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var EM=ed;nd.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},nd.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},nd.prototype.setContent=function(t,e,n,i,r){var o=this,a=(T(t)&&Bn(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new Qm({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:js(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},nd.prototype.setEnterable=function(t){this._enterable=t},nd.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=rd(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},nd.prototype.moveTo=function(t,e){var n,i,r=this.el;r&&(od(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=id((i=r.style).borderWidth||0),i=rd(i),r.x=t+n+i.left,r.y=e+n+i.top,r.markRedraw())},nd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},nd.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},nd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},nd.prototype.isShow=function(){return this._show},nd.prototype.dispose=function(){this._zr.remove(this.el)};var NM,BM=nd,zM=new qm({shape:{x:-1,y:-1,width:2,height:2}}),FM=(n(ad,NM=Zw),ad.prototype.init=function(t,e){var n;!af.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?af.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new BM(e):new EM(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},ad.prototype.render=function(t,e,n){!af.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?cl(this,"_updatePosition",50,"fixRate"):pl(this,"_updatePosition"))},ad.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Ep("itemTooltip",this._api,If(function(e,n,i){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},ad.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},ad.prototype.manuallyShowTip=function(t,e,n,i){var r,o,a,s;i.from!==this.uid&&!af.node&&n.getDom()&&(r=ld(i,n),this._ticket="",s=i.dataByCoordSys,(o=function(t,e,n){var i=Qn(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,e=Jn(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse(function(e){var n=nv(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o))return{componentMainType:r,componentIndex:e.componentIndex,el:o}}}(i,e,n))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)):i.tooltip&&null!=i.x&&null!=i.y?((a=zM).x=i.x,a.y=i.y,a.update(),nv(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},r):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(o=Vp(i,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:i.position,positionDefault:"bottom"},r)):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)))},ad.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(ld(i,n))},ad.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&&(a=e.getSeriesByIndex(r))&&(e=sd([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0},ad.prototype._tryShow=function(t,e){var n,i,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):o?(kl(o,function(t){return null!=nv(t).dataIndex?(i=t,1):null!=nv(t).tooltipConfig&&(r=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},ad.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=If(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},ad.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=sd([e.tooltipOption],i),a=this._renderMode,s=[],u=Bs("section",{blocks:[],noHeader:!0}),h=[],c=new jw,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,r,o=n.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;o&&null!=p&&(e=Dp(p,o.axis,n,t.seriesDataIndices,t.valueLabelOpt),r=Bs("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),u.blocks.push(r),f(t.seriesDataIndices,function(u){var d,f=n.getSeriesByIndex(u.seriesIndex),u=u.dataIndexInside,g=f.getDataParams(u);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=gh(o.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",ca(g.color),a),(d=(u=hs(f.formatTooltip(u,!0,null))).frag)&&(f=sd([f],i).get("valueFormatter"),r.blocks.push(f?l({valueFormatter:f},d):d)),u.text&&h.push(u.text),s.push(g))}))})}),u.blocks.reverse(),h.reverse(),e.position),e=o.get("order"),e=Gs(u,c,a,e,n.get("useUTC"),o.get("textStyle")),e=(e&&h.unshift(e),"richText"===a?"\n\n":"<br/>"),d=h.join(e);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,d,s,Math.random()+"",r[0],r[1],p,null,c)})},ad.prototype._showSeriesItemTooltip=function(t,e,n){var i,r,o,a,s,u=this._ecModel,e=nv(e),h=e.seriesIndex,c=u.getSeriesByIndex(h),p=e.dataModel||c,d=e.dataIndex,e=e.dataType,f=p.getData(e),g=this._renderMode,y=t.positionDefault,m=sd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(i=p.getDataParams(d,e),r=new jw,i.marker=r.makeTooltipMarker("item",ca(i.color),g),y=hs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),o=y.frag,a=o?Gs(e?l({valueFormatter:e},o):o,r,g,c,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,r)}),n({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:h,from:this.uid}))},ad.prototype._showComponentItemTooltip=function(t,e,n){var i=nv(e),r=i.tooltipConfig.option||{},o=[r=b(r)?{content:r,formatter:r}:r],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&o.push(i),o.push({formatter:r.content}),t.positionDefault),s=sd(o,this._tooltipModel,i?{position:i}:null),l=s.get("content"),u=Math.random()+"",h=new jw;this._showOrMove(s,function(){var n=a(s.get("formatterParams")||{});this._showTooltipContent(s,l,n,u,t.offsetX,t.offsetY,t.position,e,h)}),n({type:"showTip",from:this.uid})},ad.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){var u,h,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&(u=this._tooltipContent,h=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=b(h)?(p=t.ecModel.get("useUTC"),e=h,ua(e=(d=x(n)?n[0]:n)&&d.axisType&&0<=d.axisType.indexOf("time")?Go(d.axisValue,e,p):e,n,!0)):w(h)?(d=If(function(e,i){e===this._ticket&&(u.setContent(i,l,t,c,a),this._updatePosition(t,a,r,o,u,n,s))},this),this._ticket=i,h(n,i,d)):h),u.setContent(e,l,t,c,a),u.show(t,c),this._updatePosition(t,a,r,o,u,n,s))},ad.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||x(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:x(e)?void 0:{color:i||e.color||e.borderColor}},ad.prototype._updatePosition=function(t,e,n,i,r,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=bn(e[0],l),i=bn(e[1],u)):T(e)?((o=e).width=h[0],o.height=h[1],n=(o=fa(o,{width:l,height:u})).x,i=o.y,p=c=null):(n=(s=b(e)&&a?function(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]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,r,o,a){var n=n.getSize(),s=n[0],n=n[1];return null!=o&&(i<t+s+o+2?t-=s+o:t+=o),null!=a&&(r<e+n+a?e-=n+a:e+=a),[t,e]}(n,i,r,l,u,c?null:20,p?null:20))[0],i=s[1]),c&&(n-=ud(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=ud(p)?h[1]/2:"bottom"===p?h[1]:0),Zp(t)&&(o=n,a=i,e=l,d=u,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),n=(s=[o,a])[0],i=s[1]),r.moveTo(n,i)},ad.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&f(n,function(n,o){var n=n.dataByAxis||[],a=(t[o]||{}).dataByAxis||[];(r=r&&n.length===a.length)&&f(n,function(t,n){var n=a[n]||{},o=t.seriesDataIndices||[],s=n.seriesDataIndices||[];(r=r&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&o.length===s.length)&&f(o,function(t,e){e=s[e],r=r&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),i&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,n=e[t],t=i[t];n&&t&&t.data!==n.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},ad.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},ad.prototype.dispose=function(t,e){!af.node&&e.getDom()&&(pl(this,"_updatePosition"),this._tooltipContent.dispose(),zp("itemTooltip",e))},ad.type="tooltip",ad);xh(function(t){xh(Xp),t.registerComponentModel(AM),t.registerComponentView(FM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},q),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},q)}),xh(oc);var VM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},HM=(hd.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!C(e)&&this._condVal.test(t+"")},hd);cd.prototype.evaluate=function(){return this.value};var GM=cd;pd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var WM=pd;dd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var UM=dd;fd.prototype.evaluate=function(){return!this.child.evaluate()};var jM=fd;gd.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var YM=gd;_d.prototype.evaluate=function(){return this._cond.evaluate()};var XM=_d,qM={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:W({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(X(t,"dimension")||Bn(""),i.getDimensionInfo(e));return t||Bn(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new XM(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},ZM={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Fn(t),n=(t.length||Bn(""),[]),t=(f(t,function(t){var i=t.dimension,r=t.order,o=t.parser,t=t.incomparable,i=(null==i&&Bn(""),"asc"!==r&&"desc"!==r&&Bn(""),t&&"min"!==t&&"max"!==t&&Bn(""),"asc"!==r&&"desc"!==r&&Bn(""),e.getDimensionInfo(i)),a=(i||Bn(""),o?ys(o):null);o&&!a&&Bn(""),n.push({dimIdx:i.index,parser:a,comparator:new Pw(r,t)})}),e.sourceFormat),i=(t!==zx&&t!==Fx&&Bn(""),[]),r=0,o=e.count();r<o;r++)i.push(e.getRawDataItem(r));return i.sort(function(t,i){for(var r=0;r<n.length;r++){var o=n[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(i,o.dimIdx),o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0}),{data:i}}};xh(function(t){t.registerTransform(qM),t.registerTransform(ZM)});var KM,$M=Math.sin,QM=Math.cos,JM=Math.PI,tI=2*Math.PI,eI=180/JM,nI=(xd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},xd.prototype.moveTo=function(t,e){this._add("M",t,e)},xd.prototype.lineTo=function(t,e){this._add("L",t,e)},xd.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},xd.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},xd.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},xd.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l,u=a-o,s=!s,h=Math.abs(u),c=fe(h-tI)||(s?tI<=u:tI<=-u),p=!1,p=!!c||!fe(h)&&JM<=(0<u?u%tI:u%tI+tI)==!!s,h=t+n*QM(o),u=e+i*$M(o),r=(this._start&&this._add("M",h,u),Math.round(r*eI));c?(c=1/this._p,this._add("A",n,i,r,1,+s,t+n*QM(o+(l=(s?1:-1)*(tI-c))),e+i*$M(o+l)),.01<c&&this._add("A",n,i,r,0,+s,h,u)):(o=t+n*QM(a),l=e+i*$M(a),this._add("A",n,i,r,+p,+s,o,l))},xd.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},xd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},xd.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},xd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},xd.prototype.getStr=function(){return this._str},xd),iI="none",rI=Math.round,oI=["lineCap","miterLimit","lineJoin"],aI=g(oI,function(t){return"stroke-"+t.toLowerCase()}),sI="http://www.w3.org/2000/svg",lI="http://www.w3.org/1999/xlink",uI="http://www.w3.org/2000/xmlns/",hI="http://www.w3.org/XML/1998/namespace",cI={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},pI="transform-origin",dI={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},fI=Math.round,gI={circle:[(KM=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<KM.length;i++){var r=KM[i],o=t[r[0]];null!=o&&(e[r[1]]=fI(o*n)/n)}})],polyline:[Ed,Nd],polygon:[Ed,Nd]},yI=58,mI=120,vI=Sd("",""),_I=0;ef.prototype.getType=function(){return this.type},ef.prototype.getViewportRoot=function(){return this._viewport},ef.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},ef.prototype.getSvgDom=function(){return this._svgDom},ef.prototype.refresh=function(){var t,e,n,i,r;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",qd(e=this._oldVNode,n=t)?tf(e,n):(r=Wd(i=e.elm),Zd(n),null!==r&&(Vd(r,n.elm,Ud(i)),$d(r,[e],0,0))),this._oldVNode=t)},ef.prototype.renderOneToVNode=function(t){return zd(t,Td(this._id))},ef.prototype.renderToVNode=function(t){t=t||{};var e,n,i,r,o,a=this.storage.getDisplayList(!0),s=this._backgroundColor,l=this._width,u=this._height,h=Td(this._id),c=(h.animation=t.animation,h.willUpdate=t.willUpdate,h.compress=t.compress,[]),p=(s&&"none"!==s?(p=(s=de(s)).color,s=s.opacity,this._bgVNode=Sd("rect","bg",{width:l,height:u,x:"0",y:"0",id:"0",fill:p,"fill-opacity":s}),c.push(this._bgVNode)):this._bgVNode=null,t.compress?null:this._mainVNode=Sd("g","main",{},[])),s=(this._paintList(a,h,p?p.children:c),p&&c.push(p),g(v(h.defs),function(t){return h.defs[t]}));return s.length&&c.push(Sd("defs","defs",{},s)),t.animation&&(e=h.cssNodes,n=h.cssAnims,i=(a=(a={newline:!0})||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=g(v(e),function(t){return t+r+g(v(e[t]),function(n){return n+":"+e[t][n]+";"}).join(i)+o}).join(i),p=g(v(n),function(t){return"@keyframes "+t+r+g(v(n[t]),function(e){return e+r+g(v(n[t][e]),function(i){var r=n[t][e][i];return i+":"+(r="d"===i?'path("'+r+'")':r)+";"}).join(i)+o}).join(i)+o}).join(i),s=a||p?["<![CDATA[",a,p,"]]>"].join(i):"")&&(a=Sd("style","stl",{},[],s),c.push(a)),Md(l,u,c,t.useViewBox)},ef.prototype.renderToString=function(t){return Cd(this.renderToVNode({animation:R((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:R(t.useViewBox,!0)}),{newline:!0})},ef.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e,n=this._bgVNode;n&&n.elm&&(e=(t=de(t)).color,t=t.opacity,n.elm.setAttribute("fill",e),t<1)&&n.elm.setAttribute("fill-opacity",t)},ef.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},ef.prototype._paintList=function(t,e,n){for(var i,r,o,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f<h;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=C&&C.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!C||y[_]!==C[_]);_--);for(var x=v-1;_<x;x--)i=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(r=y[w],o=b,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[r.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[r.id]=u]=Sd("clipPath",u,s,[Bd(r,a)])),o["clip-path"]=xe(u),Sd("g","clip-g-"+d++,b,[]));(i?i.children:n).push(S),i=c[p++]=S}var C=y,v=zd(g,e);v&&(i?i.children:n).push(v)}}},ef.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=El(i,0,n),e=El(i,1,n),r.style.display=""),(this._width!==t||this._height!==e)&&(this._width=t,this._height=e,r&&((i=r.style).width=t+"px",i.height=e+"px"),n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e))},ef.prototype.getWidth=function(){return this._width},ef.prototype.getHeight=function(){return this._height},ef.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},ef.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},ef.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(e=Mg(e))&&n+"base64,"+e:n+"charset=UTF-8,"+e},xn("svg",ef),e.Axis=$_,e.ChartView=Qw,e.ComponentModel=Ax,e.ComponentView=Zw,e.List=jS,e.Model=J_,e.PRIORITY=wb,e.SeriesModel=qw,e.color=Sg,e.connect=function(t){var e;return x(t)&&(e=t,t=null,f(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+CS++,f(e,function(e){e.group=t})),bS[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.3.0"},e.disConnect=lu,e.disconnect=xb,e.dispose=function(t){b(t)?t=wS[t]:t instanceof pS||(t=uu(t)),t instanceof pS&&!t.isDisposed()&&t.dispose()},e.env=af,e.extendChartView=function(t){return t=Qw.extend(t),Qw.registerClass(t),t},e.extendComponentModel=function(t){return t=Ax.extend(t),Ax.registerClass(t),t},e.extendComponentView=function(t){return t=Zw.extend(t),Zw.registerClass(t),t},e.extendSeriesModel=function(t){return t=qw.extend(t),qw.registerClass(t),t},e.format=Z_,e.getCoordinateSystemDimensions=function(t){if(t=nw.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=uu,e.getInstanceById=function(t){return wS[t]},e.getMap=function(t){var e=zb.getMap;return e&&e(t)},e.graphic=px,e.helper=bb,e.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=uu(t);if(r)return r}return(r=new pS(t,e,n)).id="ec_"+SS++,wS[r.id]=r,i&&ti(t,TS,r.id),sS(r),Bb.trigger("afterinit",r),r},e.innerDrawElementOnCanvas=ql,e.matrix=jg,e.number=zy,e.parseGeoJSON=Ah,e.parseGeoJson=Ah,e.registerAction=yu,e.registerCoordinateSystem=mu,e.registerLayout=vu,e.registerLoading=wu,e.registerLocale=Fo,e.registerMap=bu,e.registerPostInit=du,e.registerPostUpdate=fu,e.registerPreprocessor=cu,e.registerProcessor=pu,e.registerTheme=hu,e.registerTransform=Su,e.registerUpdateLifecycle=gu,e.registerVisual=_u,e.setCanvasCreator=function(t){i({createCanvas:t})},e.setPlatformAPI=i,e.throttle=hl,e.time=N_,e.use=xh,e.util=Y_,e.vector=Rf,e.version="5.3.0",e.zrUtil=Pf,e.zrender=My})}).call(e,n(862).Buffer)},1963: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},1964: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,n=t._self._c||e;return n("div",{staticClass:"chartContainer"},[n("div",{staticClass:"dataDisplay"},[n("div",{staticClass:"selectAge"},[n("div",{staticClass:"leftSelectAge"},[n("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),n("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[n("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),n("i",{staticClass:"dropDown"})]),t._v(" "),n("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),n("div",{class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"specialShowBox"},[n("div",{staticClass:"numShow"},[n("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][i])+"\n ")]),t._v(" "),n("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),n("div",{staticClass:"titleShow"},[n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()])]):t._e()]})]:[n("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"textShowBox"},[n("div",{staticClass:"iconblock"},[n("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),n("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"moneyShowBox"},[n("div",{staticClass:"numShow"},[n("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][i])+"\n ")]),t._v(" "),n("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()]):t._e()]})],2)]],2),t._v(" "),n("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),n("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?n("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e()],1)},r=[];i._withStripped=!0},1965:function(t,e,n){"use strict";function i(t){s||n(1966)}var r=n(1168),o=n(1967),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},1966:function(t,e){},1967: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,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[n("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[n("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),n("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[n("div",[n("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,i){return[t.showCol(i)?n("span",{key:"head-"+i,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),n("div",{staticClass:"cost-scroll"},[n("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?n("tbody",t._l(t.tables.rows,function(e,i){return n("tr",{key:"tr-"+i,staticClass:"table-tr "},[t._l(e,function(e,r){return[t.showCol(r)?n("td",{key:"td-"+i+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[n("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];i._withStripped=!0},1968: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=this,n=e.$createElement,i=e._self._c||n;return e.isShowChart?i("div",[i("benefit",{attrs:{renderData:e.renderData,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),i("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),i("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,n){t.setSelectIndex(n[0])}}})],1):e._e()},r=[];i._withStripped=!0},197:function(t,e,n){n(121)("observable")},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},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):{}}},216:function(t,e,n){"use strict";function i(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some(function(t,i,r){var o=e.call(this,t,i,r);if(o)return n=i,o}),n}function r(t){return t?JSON.parse(y()(t)):t}function o(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0!==t&&null!==t}function h(t){return"function"==typeof t}function c(t,e,n){function i(e){var n=y,i=m;return y=m=void 0,b=e,_=t.apply(i,n)}function r(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(h,e),S?i(t):_}function s(t){var n=t-w,i=t-b,r=e-n;return C?Math.min(r,v-i):r}function u(t){var n=t-w,i=t-b;return void 0===w||n>=e||n<0||C&&i>=v}function h(){var t=Date.now();if(u(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,T&&y?i(t):(y=m=void 0,_)}function p(){void 0!==x&&o(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),n=u(t),o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];if(y=s,m=this,w=t,n){if(void 0===x)return a(w);if(C)return x=r(h,e),i(w)}return void 0===x&&(x=r(h,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,C=!1,T=!0,M=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,l(n)&&(S=!!n.leading,C="maxWait"in n,v=C?Math.max(+n.maxWait||0,e):v,T="trailing"in n?!!n.trailing:T),g.cancel=p,g.flush=d,g.pending=f,g}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var n=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),i=e.match(n);return decodeURIComponent(i?i[2]:"")}n.d(e,"j",function(){return O}),e.c=i,e.b=r,e.e=o,e.i=a,e.h=s,e.f=u,e.g=h,e.a=c,e.d=p;var d=n(66),f=(n.n(d),n(187)),g=(n.n(f),n(93)),y=n.n(g),m="undefined"!=typeof window,v=m&&window.navigator.userAgent.toLowerCase(),_=v&&/msie|trident/.test(v),x=v&&v.indexOf("msie 9.0")>0,w=v&&v.indexOf("edge/")>0,b=v&&v.indexOf("android")>0,S=v&&/iphone|ipad|ipod|ios/.test(v),C=v&&/chrome\/\d+/.test(v)&&!w,T=v&&/MicroMessenger/i.test(v),M=v&&/wxwork/i.test(v),I=v&&/mucxiaoyusan/i.test(v),k=v&&/muckacabao/i.test(v),D=v&&/mucyanxuan/i.test(v),A=I||k,P=v&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(v),O={isIE:_,isMobile:P,isIE9:x,isEdge:w,isAndroid:b,isIOS:S,isChrome:C,isWx:T,isWxWork:M,isApp:A,isXysApp:I,isKcbApp:k,isYxApp:D};/MucWebAutoTester/.test(window.navigator.userAgent)},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(7),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(38),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(",")},282: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},29:function(t,e,n){var i=n(15);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(16),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},33:function(t,e,n){"use strict";var i=n(18),r=n(10),o=n(51),a=n(5),s=n(11),l=n(56),u=n(25),h=n(58),c=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,f,g,y,m){l(n,e,f);var v,_,x,w=function(t){if(!p&&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,C=!1,T=t.prototype,M=T[c]||T["@@iterator"]||g&&T[g],I=M||w(g),k=g?S?w("entries"):I:void 0,D="Array"==e?T.entries||M:M;if(D&&(x=h(D.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),i||"function"==typeof x[c]||a(x,c,d)),S&&M&&"values"!==M.name&&(C=!0,I=function(){return M.call(this)}),i&&!m||!p&&!C&&T[c]||a(T,c,I),s[e]=I,s[b]=d,g)if(v={values:S?I:w("values"),keys:y?I:w("keys"),entries:k},m)for(_ in v)_ in T||o(T,_,v[_]);else r(r.P+r.F*(p||C),e,v);return v}},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")}},37:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},38:function(t,e,n){var i=n(7),r=n(12),o=n(45)(!1),a=n(19)("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}},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(0).document;t.exports=i&&i.documentElement},44: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}},45:function(t,e,n){var i=n(12),r=n(31),o=n(46);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}}},46:function(t,e,n){var i=n(16),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},47:function(t,e,n){"use strict";var i=n(55)(!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})})},48:function(t,e){e.f={}.propertyIsEnumerable},49:function(t,e,n){var i=n(4),r=n(57),o=n(28),a=n(19)("IE_PROTO"),s=function(){},l=function(){var t,e=n(21)("iframe"),i=o.length;for(e.style.display="none",n(40).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)}},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}},50:function(t,e,n){n(64);for(var i=n(0),r=n(5),o=n(11),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],h=i[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},51:function(t,e,n){t.exports=n(5)},52:function(t,e,n){var i=n(44),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)]}},53:function(t,e){e.f=Object.getOwnPropertySymbols},55:function(t,e,n){var i=n(16),r=n(15);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)}}},56:function(t,e,n){"use strict";var i=n(49),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")}},57: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}},58:function(t,e,n){var i=n(7),r=n(29),o=n(19)("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}},59:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},64:function(t,e,n){"use strict";var i=n(65),r=n(59),o=n(11),a=n(12);t.exports=n(33)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},65:function(t,e){t.exports=function(){}},66:function(t,e,n){t.exports={default:n(68),__esModule:!0}},68:function(t,e,n){n(69),t.exports=n(2).Object.assign},69:function(t,e,n){var i=n(10);i(i.S+i.F,"Object",{assign:n(70)})},7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},70:function(t,e,n){"use strict";var i=n(3),r=n(26),o=n(53),a=n(48),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,p=a.f;u>h;)for(var d,f=l(arguments[h++]),g=c?r(f).concat(c(f)):r(f),y=g.length,m=0;y>m;)d=g[m++],i&&!p.call(f,d)||(n[d]=f[d]);return n}:u},71:function(t,e){},8: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 p=u.beforeCreate;u.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:u}}e.a=i},862: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?p(t,e,n,i):"string"==typeof e?h(t,e,n):d(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|f(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|f(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function p(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 d(t,e){if(o.isBuffer(e)){var n=0|f(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 f(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 U(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 U(t).length;e=(""+e).toLowerCase(),i=!0}}function m(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 k(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 v(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,p=0;p<l;p++)if(o(t,u+p)!==o(e,p)){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(U(e,t.length-n),t,n,i)}function S(t,e,n,i){return q(j(e),t,n,i)}function C(t,e,n,i){return S(t,e,n,i)}function T(t,e,n,i){return q(X(e),t,n,i)}function M(t,e,n,i){return q(Y(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 k(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 D(i)}function D(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+=W(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=G(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(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 j(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Y(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(863),$=n(864),Q=n(865);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)v(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)v(this,e,e+3),v(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)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.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 C(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(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:U(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(282))},863: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 p(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=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)h[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},864: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,p=n?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-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,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=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?p/l:p*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+d]=255&s,d+=f,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}},865:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},873:function(t,e){t.exports=n},9:function(t,e,n){var i=n(4),r=n(37),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}},93:function(t,e,n){t.exports={default:n(101),__esModule:!0}}})});
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/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/BScroll/index.js","@xysfe/actui/es/Picker/index.js","@xysfe/actui/es/assets/img/redCircle.png","@xysfe/actui/es/assets/img/purpleCircle.png","@xysfe/actui/es/assets/img/grayCircle.png","@xysfe/actui/es/assets/img/cps-orangeCircle.png","@xysfe/actui/es/assets/img/cps-redCircle.png","@xysfe/actui/es/assets/img/cps-grayCircle.png"],e):"object"==typeof exports?exports.GoldFinanceChart=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/Picker/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):t.GoldFinanceChart=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/BScroll/index.js"],t["@xysfe/actui/es/Picker/index.js"],t["@xysfe/actui/es/assets/img/redCircle.png"],t["@xysfe/actui/es/assets/img/purpleCircle.png"],t["@xysfe/actui/es/assets/img/grayCircle.png"],t["@xysfe/actui/es/assets/img/cps-orangeCircle.png"],t["@xysfe/actui/es/assets/img/cps-redCircle.png"],t["@xysfe/actui/es/assets/img/cps-grayCircle.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,r,o,a,s,l){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=1949)}({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(7),l=function(t,e,n){var u,h,c,p=t&l.F,d=t&l.G,f=t&l.S,g=t&l.P,y=t&l.B,m=t&l.W,v=d?r:r[e]||(r[e]={}),_=v.prototype,x=d?i:f?i[e]:(i[e]||{}).prototype;d&&(n=e);for(u in n)(h=!p&&x&&void 0!==x[u])&&s(v,u)||(c=h?x[u]:n[u],v[u]=d&&"function"!=typeof x[u]?n[u]:y&&h?o(c,i):m&&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&&((v.virtual||(v.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},101: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)}},11:function(t,e){t.exports={}},112:function(t,e,n){t.exports={default:n(118),__esModule:!0}},1165:function(t,e,n){"use strict";var i=n(162),r=n.n(i),o=n(112),a=n.n(o),s=n(216),l=n(1951),u=n(1958),h=n(1965),c=n(873),p=n.n(c);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},agePickerData:[],selectIndex:10}},components:{benefit:u.a,GoldCostTable:h.a,goldPicker:p.a},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean},unit:{default:"岁",type:String},note:{default:"",type:String},selectDefaultVal:{default:10,type:Number}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.e)(this.chartConfig)))return!1;for(var t=0,e=0,n=0,i=0;i<this.chartConfig.length;i++){var r=this.chartConfig[i];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(n+=1))}return 1===t&&e>=1&&1===n},findTablesIndex:function(t,e){if(Object(s.e)(e))for(var n=0;n<e.length;n++)if(Number(e[n])===Number(t))return n},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,n=void 0,i=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,n=a,i=o}),{firstParamColsType:e,secondParamColsType:n,operator:i}},getExpressionData:function(t,e,n){var i=this.analysisExpression(t),r=i.firstParamColsType,o=i.secondParamColsType,a=i.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(n.colsType.forEach(function(t,e){Number(t)===Number(r)&&(s=e),Number(t)===Number(o)&&(l=e)}),void 0!==s&&void 0!==l)return n.rows.forEach(function(t,e){var n=void 0;switch(a){case"+":n=t[s]+t[l];break;case"-":n=t[s]-t[l];break;case"/":n=t[s]/t[l];break;case"*":n=t[s]*t[l]}u.push(Number(n).toFixed(1))}),u}},initConfig:function(t,e){if(t&&e){for(var n=[],i=[],r=[],o=this.isCps?Object(s.b)(l.b):Object(s.b)(l.a),u=Object(s.b)(o.showType2),h=Object(s.b)(o.showType3),c=t,p=Array.isArray(c),d=0,c=p?c:a()(c);;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if(d=c.next(),d.done)break;f=d.value}var g=f,y=void 0,m=g.colsType,v=this.findTablesIndex(m,e.colsType);if(v){var _=Number(g.showType),x=g.name||l.c[m],w=g.titleName||g.name||l.c[m],b=this.getExpressionData(g.tipsExpression,t,e),S=g.lineStyle,C=g.boxConfig;if(!(2!==_||S&&C)){u.length||(u=Object(s.b)(o.showType2));var T=u.shift();S=T.lineStyle,C=T.boxConfig}if(3===_&&!S){h.length||(h=Object(s.b)(o.showType3));S=h.shift().lineStyle}r.push(x),y={showType:_,colsType:m,name:x,titleName:w,problemText:g.problemText,tableRowIndex:v,lineStyle:S,boxConfig:C,tipsText:g.tipsText},b&&(y.expressionData=b),n.push(y)}}var M=e.rows.map(function(t){for(var e=[],r=n,o=Array.isArray(r),s=0,r=o?r:a()(r);;){var l;if(o){if(s>=r.length)break;l=r[s++]}else{if(s=r.next(),s.done)break;l=s.value}var u=l;1===u.showType&&i.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return M.unshift(r),{chartConfig:n,dataSource:M,xAxisData:i}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){var e=this.validateData();this.selectIndex=this.selectDefaultVal,e?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1166:function(t,e,n){"use strict";var i=n(162),r=n.n(i),o=n(1960),a=n(216);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},unit:{default:"岁",type:String},note:{default:"",type:String}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(t){this.dialog?this.dialog.setData("",t):this.dialog=this.$createGoldDialog({content:t,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var n=this.$refs.num[e],i=this.$refs.colorBlock[e];for(n.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(n).width)>parseInt(getComputedStyle(i).width)+30))break;var r=parseInt(getComputedStyle(n).fontSize);if(r<=12)break;n.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,n=t.dataSource,i=t.xAxisData;this.chartConfig=e,this.dataSource=n,this.xAxisData=i,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1167:function(t,e,n){"use strict";var i=n(162),r=n.n(i),o=n(112),a=n.n(o),s=n(216),l=n(1962);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},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},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=[],e=[],n=this.getXAxisName(),i=this.getTooltipName(),r=0;r<this.chartConfig.length;r++){var o=this.chartConfig[r];if([2,3].includes(o.showType)){var u={};Object(s.e)(o.lineStyle.areaStyleColor)?u.color=new l.graphic.LinearGradient(0,0,0,1,o.lineStyle.areaStyleColor):Object(s.i)(o.lineStyle.areaStyleColor)&&(u.color=o.lineStyle.areaStyleColor),t.push({name:o.name,type:"line",smooth:!0,symbol:o.lineStyle.legendImg?"image://"+o.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:o.name},lineStyle:{width:1,color:o.lineStyle.lineColor},emphasis:{lineStyle:{color:o.lineStyle.lineColor}},zlevel:o.lineStyle.zIndex,z:o.lineStyle.zIndex,areaStyle:u.color?u:void 0}),e.push({name:o.name,icon:o.lineStyle.legendImg?"image://"+o.lineStyle.legendImg:"circle"})}}var h={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:e,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,n,i,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,n=Array.isArray(e),r=0,e=n?e:a()(e);;){var o;if(n){if(r>=e.length)break;o=e[r++]}else{if(r=e.next(),r.done)break;o=r.value}var s=o;if(s.seriesName===i){var l=s.encode.y[0],u=s.value[l];return i+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:t};this.chart.setOption(h),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=l.init(this.$refs.chart,null,{renderer:"svg"}),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);t.chart.containPixel("grid",n)&&t.index!==Math.round(i[0])&&t.setIndex(Math.round(i[0]))})},watch:{dataSource:{handler:function(t){var e=this;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1168:function(t,e,n){"use strict";var i=n(164),r=n.n(i);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var n=document.querySelector(".cost-scroll");n&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new r.a(n,{})})}}}}},118:function(t,e,n){n(50),n(47),t.exports=n(119)},119:function(t,e,n){var i=n(4),r=n(52);t.exports=n(2).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},12:function(t,e,n){var i=n(30),r=n(15);t.exports=function(t){return i(r(t))}},120:function(t,e,n){e.f=n(1)},121:function(t,e,n){var i=n(0),r=n(2),o=n(18),a=n(120),s=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},139:function(t,e,n){var i=n(38),r=n(28).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},151:function(t,e,n){var i=n(24)("meta"),r=n(6),o=n(7),a=n(9).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(13)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[i].i},p=function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[i].w},d=function(t){return u&&f.NEED&&l(t)&&!o(t,i)&&h(t),t},f=t.exports={KEY:i,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},16:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},162:function(t,e,n){t.exports={default:n(183),__esModule:!0}},164:function(t,n){t.exports=e},165:function(t,e,n){var i=n(10),r=n(2),o=n(13);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},166:function(t,e,n){var i=n(14);t.exports=Array.isArray||function(t){return"Array"==i(t)}},17:function(t,e,n){var i=n(20);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},183:function(t,e,n){n(184),t.exports=n(2).Object.keys},184:function(t,e,n){var i=n(29),r=n(26);n(165)("keys",function(){return function(t){return r(i(t))}})},187:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(188),o=i(r),a=n(190),s=i(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},188:function(t,e,n){t.exports={default:n(189),__esModule:!0}},189:function(t,e,n){n(47),n(50),t.exports=n(120).f("iterator")},19:function(t,e,n){var i=n(27)("keys"),r=n(24);t.exports=function(t){return i[t]||(i[t]=r(t))}},190:function(t,e,n){t.exports={default:n(191),__esModule:!0}},191:function(t,e,n){n(192),n(71),n(196),n(197),t.exports=n(2).Symbol},192:function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(3),a=n(10),s=n(51),l=n(151).KEY,u=n(13),h=n(27),c=n(25),p=n(24),d=n(1),f=n(120),g=n(121),y=n(193),m=n(166),v=n(4),_=n(6),x=n(29),w=n(12),b=n(34),S=n(23),C=n(49),T=n(194),M=n(195),I=n(53),k=n(9),D=n(26),A=M.f,P=k.f,O=T.f,L=i.Symbol,R=i.JSON,E=R&&R.stringify,N=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=h("symbol-registry"),V=h("symbols"),H=h("op-symbols"),G=Object.prototype,W="function"==typeof L&&!!I.f,U=i.QObject,j=!U||!U.prototype||!U.prototype.findChild,Y=o&&u(function(){return 7!=C(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=A(G,e);i&&delete G[e],P(t,e,n),i&&t!==G&&P(G,e,i)}:P,X=function(t){var e=V[t]=C(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,n){return t===G&&Z(H,e,n),v(t),e=b(e,!0),v(n),r(V,e)?(n.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),Y(t,e,n)):P(t,e,n)},K=function(t,e){v(t);for(var n,i=y(e=w(e)),r=0,o=i.length;o>r;)Z(t,n=i[r++],e[n]);return t},$=function(t,e){return void 0===e?C(t):K(C(t),e)},Q=function(t){var e=z.call(this,t=b(t,!0));return!(this===G&&r(V,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==G||!r(V,e)||r(H,e)){var n=A(t,e);return!n||!r(V,e)||r(t,N)&&t[N][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=O(w(t)),i=[],o=0;n.length>o;)r(V,e=n[o++])||e==N||e==l||i.push(e);return i},et=function(t){for(var e,n=t===G,i=O(n?H:w(t)),o=[],a=0;i.length>a;)!r(V,e=i[a++])||n&&!r(G,e)||o.push(V[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(H,n),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),Y(this,t,S(1,n))};return o&&j&&Y(G,t,{configurable:!0,set:e}),X(t)},s(L.prototype,"toString",function(){return this._k}),M.f=J,k.f=Z,n(139).f=T.f=tt,n(48).f=Q,I.f=et,o&&!n(18)&&s(G,"propertyIsEnumerable",Q,!0),f.f=function(t){return X(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)d(nt[it++]);for(var rt=D(d.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){j=!0},useSimple:function(){j=!1}}),a(a.S+a.F*!W,"Object",{create:$,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),R&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,E.apply(R,i)}}),L.prototype[B]||n(5)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(i.JSON,"JSON",!0)},193:function(t,e,n){var i=n(26),r=n(53),o=n(48);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},194:function(t,e,n){var i=n(12),r=n(139).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},1949:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),r=n.n(i),o=n(1950);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=r()(o.a,t)},e.default=o.a},195:function(t,e,n){var i=n(48),r=n(23),o=n(12),a=n(34),s=n(7),l=n(37),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},1950:function(t,e,n){"use strict";var i=n(1165),r=n(1968),o=n(8),a=Object(o.a)(i.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},1951:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o});var i={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:n(1952),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:n(1953),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1954),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:n(1955),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:n(1956),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1957),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},1952:function(t,e){t.exports=i},1953:function(t,e){t.exports=r},1954:function(t,e){t.exports=o},1955:function(t,e){t.exports=a},1956:function(t,e){t.exports=s},1957:function(t,e){t.exports=l},1958:function(t,e,n){"use strict";function i(t){s||n(1959)}var r=n(1166),o=n(1964),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},1959:function(t,e){},196:function(t,e,n){n(121)("asyncIterator")},1960:function(t,e,n){"use strict";function i(t){s||n(1961)}var r=n(1167),o=n(1963),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},1961:function(t,e){},1962:function(t,e,n){(function(t){!function(t,n){n(e)}(0,function(e){"use strict";function n(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");rf(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t){for(var e in df)t[e]&&(df[e]=t[e])}function r(){return Tf++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,n=yf.call(t);if("[object Array]"===n){if(!H(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=a(t[i])}else if(gf[n]){if(!H(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!ff[n]&&!H(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Cf&&(e[s]=a(t[s]));return e}function s(t,e,n){if(!T(e)||!T(t))return n?a(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==Cf&&(r=t[i],!T(o=e[i])||!T(r)||x(o)||x(r)||k(o)||k(r)||M(o)||M(r)||H(o)||H(r)?!n&&i in t||(t[i]=a(e[i])):s(r,o,n))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Cf&&(t[n]=e[n]);return t}function u(t,e,n){for(var i=v(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;n<i;n++)if(t[n]===e)return n}return-1}function c(t,e){function n(){}var i,r=t.prototype;for(i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);(t.prototype.constructor=t).superClass=e}function p(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 d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===vf)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function g(t,e,n){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===wf)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function y(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function m(t,e,n){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===_f)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(xf.call(arguments)))}}function x(t){return Array.isArray?Array.isArray(t):"[object Array]"===yf.call(t)}function w(t){return"function"==typeof t}function b(t){return"string"==typeof t}function S(t){return"[object String]"===yf.call(t)}function C(t){return"number"==typeof t}function T(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function M(t){return!!ff[yf.call(t)]}function I(t){return!!gf[yf.call(t)]}function k(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function D(t){return null!=t.colorStops}function A(t){return null!=t.image}function P(t){return"[object RegExp]"===yf.call(t)}function O(t){return t!=t}function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function R(t,e){return null!=t?t:e}function E(t,e,n){return null!=t?t:null!=e?e:n}function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return xf.apply(t,e)}function B(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function z(t,e){if(!t)throw new Error(e)}function F(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[kf]=!0}function H(t){return t[kf]}function G(t){function e(t,e){n?i.set(t,e):i.set(e,t)}this.data={};var n=x(t),i=(this.data={},this);t instanceof G?t.each(e):t&&f(t,e)}function W(t){return new Df(t)}function U(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 j(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&l(t,e),t}function Y(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function X(t,e){return t.hasOwnProperty(e)}function q(){}function Z(t,e){return[t=null==t?0:t,e=null==e?0:e]}function K(t){return[t[0],t[1]]}function $(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Q(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function J(t){return Math.sqrt(tt(t))}function tt(t){return t[0]*t[0]+t[1]*t[1]}function et(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function nt(t,e){var n=J(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function it(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function rt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ot(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 at(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function st(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function lt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function ut(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function ht(t){t&&(this._$eventProcessor=t)}function ct(t,e,n,i,r,o){var a,s=i+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/zf),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*ct(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function pt(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=ct(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ct(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 dt(t,e,n,i,r){if(e.getBoundingClientRect&&af.domSupported&&!ft(e)){var o=e[Ff]||(e[Ff]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&o&&p===o[c]&&h===o[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?pt(s,a):pt(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;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}(e,o),o,r);if(e)return e(t,n,i),!0}return!1}function ft(t){return"CANVAS"===t.nodeName.toUpperCase()}function gt(t,e,n,i){return n=n||{},i?yt(t,e,n):Wf&&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):yt(t,e,n),n}function yt(t,e,n){if(af.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(ft(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(dt(Gf,t,r,e))return n.zrX=Gf[0],void(n.zrY=Gf[1])}n.zrX=n.zrY=0}function mt(t){return t||window.event}function vt(t,e,n){var i;return null==(e=mt(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&gt(t,i,e,n):(gt(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&Hf.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function _t(){this._track=[]}function xt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function wt(){Uf(this.event)}function bt(){var t=null!==Xf&&Xf.apply(this,arguments)||this;return t.handler=null,t}function St(t,e,n,i){var r=qf.call(this)||this;return r._hovered=new Kf(0,0),r.storage=t,r.painter=e,r.painterRoot=i,n=n||new Zf,r.proxy=null,r.setHandlerProxy(n),r._draggingMgr=new Nf(r),r}function Ct(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}function Tt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&0<=i(t[r],t[r-1]);)r++;return r-e}function Mt(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;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(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function It(t,e,n,i,r,o){var a=0,s=0,l=1;if(0<o(t,e[n+r])){for(s=i-r;l<s&&0<o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function kt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Dt(t,e){function n(n){var l=i[n],u=r[n],h=i[n+1],c=r[n+1],n=(r[n]=u+c,n===a-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),a--,kt(t[h],t,l,u,0,e));if(l+=n,0!=(u-=n)&&0!==(c=It(t[l+u-1],t,h,c,c-1,e)))if(u<=c){var p=l,d=u,n=h,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=n,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=s[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{for(var _,x,w,b=o;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=kt(t[m],s,y,d,0,e))){for(g=0;g<_;g++)t[v+g]=s[y+g];if(v+=_,y+=_,(d-=_)<=1){w=!0;break}}if(t[v++]=t[m++],0==--f){w=!0;break}if(0!==(x=It(s[y],t,m,f,0,e))){for(g=0;g<x;g++)t[v+g]=t[m+g];if(v+=x,m+=x,0==(f-=x)){w=!0;break}}if(t[v++]=s[y++],1==--d){w=!0;break}}while(b--,tg<=_||tg<=x);if(w)break;b<0&&(b=0),b+=2}if((o=b)<1&&(o=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,C=u,T=h,M=c,I=0;for(I=0;I<M;I++)s[I]=t[T+I];var k=S+C-1,D=M-1,A=T+M-1,P=0,O=0;if(t[A--]=t[k--],0==--C)for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I];else if(1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{for(var L=o;;){var R=0,E=0,N=!1;do{if(e(s[D],t[k])<0){if(t[A--]=t[k--],R++,(E=0)==--C){N=!0;break}}else if(t[A--]=s[D--],E++,R=0,1==--M){N=!0;break}}while((R|E)<L);if(N)break;do{if(0!=(R=C-kt(s[D],t,S,C,C-1,e))){for(C-=R,O=1+(A-=R),P=1+(k-=R),I=R-1;0<=I;I--)t[O+I]=t[P+I];if(0===C){N=!0;break}}if(t[A--]=s[D--],1==--M){N=!0;break}if(0!=(E=M-It(t[k],s,0,M,M-1,e))){for(M-=E,O=1+(A-=E),P=1+(D-=E),I=0;I<E;I++)t[O+I]=s[P+I];if(M<=1){N=!0;break}}if(t[A--]=t[k--],0==--C){N=!0;break}}while(L--,tg<=R||tg<=E);if(N)break;L<0&&(L=0),L+=2}if((o=L)<1&&(o=1),1===M){for(O=1+(A-=C),P=1+(k-=C),I=C-1;0<=I;I--)t[O+I]=t[P+I];t[A]=s[D]}else{if(0===M)throw new Error;for(P=A-(M-1),I=0;I<M;I++)t[P+I]=s[I]}}}}var i,r,o=tg,a=0,s=(t.length,[]);return i=[],r=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&r[t-1]<=r[t]+r[t+1]||2<=t&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;n(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&r[t-1]<r[t+1]&&t--,n(t)}},pushRun:function(t,e){i[a]=t,r[a]=e,a+=1}}}function At(t,e,n,i){var r=(i=i||t.length)-(n=n||0);if(!(r<2)){var o=0;if(r<Jf)Mt(t,n,i,n+(o=Tt(t,n,i,e)),e);else{var a,s=Dt(t,e),l=function(t){for(var e=0;Jf<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((o=Tt(t,n,i,e))<l&&(Mt(t,n,n+(a=l<(a=r)?l:r),n+o,e),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!=(r-=o));s.forceMergeRuns()}}}function Pt(){ig||(ig=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ot(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Lt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ot}function Rt(t){return-ug<t&&t<ug}function Et(t){return ug<t||t<-ug}function Nt(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 Bt(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function zt(t,e,n,i,r,o){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-r,r=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return Rt(r)&&Rt(l)?Rt(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):Rt(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-n/i+t)&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s)):0<e?(e=r*n+1.5*i*(-l-(t=lg(e))),0<=(a=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-sg(-t,cg):sg(t,cg))+(e=e<0?-sg(-e,cg):sg(e,cg))))/(3*i))&&a<=1&&(o[u++]=a)):(t=(2*r*n-3*i*l)/(2*lg(r*r*r)),e=Math.acos(t)/3,a=(-n-2*(l=lg(r))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+hg*Math.sin(e)))/(3*i),r=(-n+l*(t-hg*Math.sin(e)))/(3*i),0<=a&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s),0<=r&&r<=1&&(o[u++]=r)),u}function Ft(t,e,n,i,r){var o,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Rt(i)?Et(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):Rt(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=lg(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Vt(t,e,n,i,r,o){var a=(e-t)*r+t,e=(n-e)*r+e,n=(i-n)*r+n,s=(e-a)*r+a,e=(n-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=n,o[7]=i}function Ht(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;pg[0]=l,pg[1]=u;for(var m=0;m<1;m+=.05)dg[0]=Nt(t,n,r,a,m),dg[1]=Nt(e,i,o,s,m),(d=Lf(pg,dg))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,dg[0]=Nt(t,n,r,a,f=c-g),dg[1]=Nt(e,i,o,s,f),d=Lf(dg,pg),0<=f&&d<y?(c=f,y=d):(fg[0]=Nt(t,n,r,a,p),fg[1]=Nt(e,i,o,s,p),f=Lf(fg,pg),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Nt(t,n,r,a,c),h[1]=Nt(e,i,o,s,c)),lg(y)}function Gt(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Wt(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Ut(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function jt(t,e,n,i,r){var o=(e-t)*i+t,e=(n-e)*i+e,i=(e-o)*i+o;r[0]=t,r[1]=o,r[2]=i,r[3]=i,r[4]=e,r[5]=n}function Yt(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;pg[0]=a,pg[1]=s;for(var p=0;p<1;p+=.05)dg[0]=Gt(t,n,r,p),dg[1]=Gt(e,i,o,p),(y=Lf(pg,dg))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(dg[0]=Gt(t,n,r,f),dg[1]=Gt(e,i,o,f),Lf(dg,pg));0<=f&&y<c?(u=f,c=y):(fg[0]=Gt(t,n,r,g),fg[1]=Gt(e,i,o,g),f=Lf(fg,pg),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=Gt(t,n,r,u),l[1]=Gt(e,i,o,u)),lg(c)}function Xt(t){if(t=t&&gg.exec(t)){var e,t=t[1].split(","),n=+F(t[0]),i=+F(t[1]),r=+F(t[2]),o=+F(t[3]);if(!isNaN(n+i+r+o))return e=[],function(t){return t<=0?0:1<=t?1:zt(0,n,r,1,t,e)&&Nt(0,i,o,1,e[0])}}}function qt(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||q,this.ondestroy=t.ondestroy||q,this.onrestart=t.onrestart||q,t.easing&&this.setEasing(t.easing)}function Zt(){this._len=0}function Kt(t){this._list=new vg,this._maxSize=10,this._map={},this._maxSize=t}function $t(t){return(t=Math.round(t))<0?0:255<t?255:t}function Qt(t){return t<0?0:1<t?1:t}function Jt(t){return $t(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function te(t){return Qt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function ee(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ne(t,e,n){return t+(e-t)*n}function ie(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function re(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function oe(t,e){bg&&re(bg,e),bg=wg.put(t,bg||e.slice())}function ae(t,e){if(t){e=e||[];var n=wg.get(t);if(n)return re(e,n);if((n=(t+="").replace(/ /g,"").toLowerCase())in xg)return re(e,xg[n]),oe(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(ie(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),oe(t,e),e):void ie(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(ie(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),oe(t,e),e):void ie(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?ie(e,+a[0],+a[1],+a[2],1):ie(e,0,0,0,1);s=te(a.pop());case"rgb":return 3!==a.length?void ie(e,0,0,0,1):(ie(e,Jt(a[0]),Jt(a[1]),Jt(a[2]),s),oe(t,e),e);case"hsla":return 4!==a.length?void ie(e,0,0,0,1):(a[3]=te(a[3]),se(a,e),oe(t,e),e);case"hsl":return 3!==a.length?void ie(e,0,0,0,1):(se(a,e),oe(t,e),e);default:return}}ie(e,0,0,0,1)}}function se(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=te(t[1]),r=te(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return ie(e=e||[],$t(255*ee(r,i,n+1/3)),$t(255*ee(r,i,n)),$t(255*ee(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function le(t,e){var n=ae(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return ce(n,4===n.length?"rgba":"rgb")}}function ue(t,e,n){var i,r,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,i=Math.floor(t),o=Math.ceil(t),r=e[i],e=e[o],n[0]=$t(ne(r[0],e[0],o=t-i)),n[1]=$t(ne(r[1],e[1],o)),n[2]=$t(ne(r[2],e[2],o)),n[3]=Qt(ne(r[3],e[3],o)),n}function he(t,e,n){var i,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,i=Math.floor(t),r=Math.ceil(t),a=ae(e[i]),e=ae(e[r]),a=ce([$t(ne(a[0],e[0],o=t-i)),$t(ne(a[1],e[1],o)),$t(ne(a[2],e[2],o)),Qt(ne(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}function ce(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function pe(t,e){return t=ae(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function de(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=ae(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function fe(t){return t<1e-4&&-1e-4<t}function ge(t){return Cg(1e3*t)/1e3}function ye(t){return Cg(1e4*t)/1e4}function me(t){return t&&!!t.image}function ve(t){return"linear"===t.type}function _e(t){return"radial"===t.type}function xe(t){return"url(#"+t+")"}function we(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function be(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Af,r=R(t.scaleX,1),o=R(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||n)&&s.push("translate("+e+"px,"+n+"px)"),i&&s.push("rotate("+i+")"),1===r&&1===o||s.push("scale("+r+","+o+")"),(a||t)&&s.push("skew("+Cg(a*Af)+"deg, "+Cg(t*Af)+"deg)"),s.join(" ")}function Se(t,e,n){return(e-t)*n+t}function Ce(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Se(e[o],n[o],i);return t}function Te(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Me(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ie(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ig.call(t[i]));return n}return Ig.call(t)}return t}function ke(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 De(t){return 4===t||5===t}function Ae(t){return 1===t||2===t}function Pe(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function Oe(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?o("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function Le(){return(new Date).getTime()}function Re(t){var e=Pg.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}function Ee(t){return"pen"===(t=t.pointerType)||"touch"===t}function Ne(t){t&&(t.zrByTouch=!0)}function Be(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 ze(t,e){var n=e.domHandlers;af.pointerEventsSupported?f(Ng.pointer,function(i){Ve(e,i,function(e){n[i].call(t,e)})}):(af.touchEventsSupported&&f(Ng.touch,function(i){Ve(e,i,function(r){var o;n[i].call(t,r),(o=e).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)})}),f(Ng.mouse,function(i){Ve(e,i,function(r){r=mt(r),e.touching||n[i].call(t,r)})}))}function Fe(t,e){function n(n){Ve(e,n,function(i){var r;i=mt(i),Be(t,i.target)||(r=i,i=vt(t.dom,new Vg(t,r),!0),e.domHandlers[n].call(t,i))},{capture:!0})}af.pointerEventsSupported?f(zg,n):af.touchEventsSupported||f(Bg,n)}function Ve(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function He(t){var e,n,i,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,r=a[i=e],o=t.listenerOpts[e],n.removeEventListener(i,r,o));t.mounted={}}function Ge(t,e){var n=Lg.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Wg(t,Hg),Eg&&(n._globalHandlerScope=new Wg(document,Gg)),ze(n,n._localHandlerScope),n}function We(){return[1,0,0,1,0,0]}function Ue(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function je(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 Ye(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],n=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]=n,t}function Xe(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 qe(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=r*n+s*l,t[3]=-r*l+n*s,t[4]=n*o+l*e,t[5]=n*e-l*o,t}function Ze(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Ke(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],e=e[5],s=n*a-o*i;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*r)*s,t[5]=(o*r-n*e)*s,t):null}function $e(t){return 5e-5<t||t<-5e-5}function Qe(){}function Je(t,e){for(var n=0;n<ey.length;n++){var i=ey[n];t[i]=e[i]}}function tn(t,e){this.x=t||0,this.y=e||0}function en(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function nn(t,e){var n=dy[e=e||cf],i=(n=n||(dy[e]=new _g(500))).get(t);return null==i&&(i=df.measureText(t,e).width,n.put(t,i)),i}function rn(t,e,n,i){return t=nn(t,e),e=ln(e),n=an(0,t,n),i=sn(0,e,i),new py(n,i,t,e)}function on(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return rn(r[0],e,n,i);for(var o=new py(0,0,0,0),a=0;a<r.length;a++){var s=rn(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function an(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function sn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ln(t){return nn("国",t)}function un(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function hn(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+=un(i[0],n.width),u+=un(i[1],n.height),c=h=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||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function cn(t){this.id=Tf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function pn(t,e,n,i){function r(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(ny,t,{get:function(){var t;return this[e]||(t=this[e]=[],r(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,r(this,t)}})}function dn(t,e,n,i,r){function o(){u=!0,--l<=0&&(u?c&&c():p&&p())}function a(){--l<=0&&(u?c&&c():p&&p())}var s=[],l=(function t(e,n,i,r,o,a,s,l){for(var u=v(r),c=o.duration,p=o.delay,f=o.additive,g=o.setToFinal,y=!T(a),_=e.animators,x=[],w=0;w<u.length;w++){var b=u[w],S=r[b];null!=S&&null!=i[b]&&(y||a[b])?!T(S)||d(S)||D(S)?x.push(b):n?l||(i[b]=S,e.updateDuringAnimation(n)):t(e,b,i[b],S,o,a&&a[b],s,l):l||(i[b]=S,e.updateDuringAnimation(n),x.push(b))}var C=x.length;if(!f&&C)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===n&&k.stopTracks(x)&&(M=h(_,k),_.splice(M,1));if(o.force||(x=m(x,function(t){return!yn(r[t],i[t])}),C=x.length),0<C||o.force&&!s.length){var k,A=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(A={}),I=0;I<C;I++)b=x[I],P[b]=i[b],g?A[b]=r[b]:i[b]=r[b];else if(g)for(O={},I=0;I<C;I++)b=x[I],O[b]=Ie(i[b]),gn(i,r,b);(k=new Ag(i,!1,!1,f?m(_,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(k.scope=o.scope),g&&A&&k.whenWithKeys(0,A,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:r,x).delay(p||0),e.addAnimator(k,n),s.push(k)}}(t,"",t,e,n=n||{},i,s,r),s.length),u=!1,c=n.done,p=n.aborted;l||c&&c(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(o),g.aborted(a),n.force&&g.duration(n.duration),g.start(n.easing)}return s}function fn(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function gn(t,e,n){if(d(e[n]))if(d(t[n])||(t[n]=[]),I(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),fn(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(d(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?fn(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else fn(o,r,a);o.length=r.length}else t[n]=e[n]}function yn(t,e){return t===e||d(t)&&d(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}function mn(t){var e=xy.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function vn(t,e,n){var i=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new rg),o=n.renderer||"canvas",o=(by[o]||(o=v(by)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new by[o](e,r,n,t)),e=n.ssr||o.ssrOnly,t=(this.storage=r,this.painter=o,af.node||af.worker||e?null:new Ug(o.getViewportRoot(),o.root));this.handler=new Qf(r,o,t,o.root),this.animation=new Rg({stage:{update:e?null:function(){return i._flush(!0)}}}),e||this.animation.start()}function _n(t,e){return t=new Ty(Tf++,t,e),Sy[t.id]=t}function xn(t,e){by[t]=e}function wn(t,e,n,i){var r=e[0],e=e[1],o=n[0],n=n[1],a=e-r,s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(i)if(0<a){if(t<=r)return o;if(e<=t)return n}else{if(r<=t)return o;if(t<=e)return n}else{if(t===r)return o;if(t===e)return n}return(t-r)/a*s+o}function bn(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 b(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Sn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Iy),t=(+t).toFixed(e),n?t:+t}function Cn(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Tn(t)}function Tn(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Mn(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function In(t){var e=2*Math.PI;return(t%e+e)%e}function kn(t){return-1e-4<t&&t<1e-4}function Dn(t){var e,n;return t instanceof Date?t:b(t)?(e=ky.exec(t))?e[8]?(n=+e[4]||0,"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))):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):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function An(t){return Math.pow(10,Pn(t))}function Pn(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function On(t,e){var n=Pn(t),i=Math.pow(10,n),r=t/i,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Ln(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Rn(t){return!isNaN(Ln(t))}function En(){return Math.round(9*Math.random())}function Nn(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function Bn(t){throw new Error(t)}function zn(t,e,n){return(e-t)*n+t}function Fn(t){return t instanceof Array?t:null==t?[]:[t]}function Vn(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;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Hn(t){return!T(t)||x(t)||t instanceof Date?t:t.value}function Gn(t,e,n){var i,r,o,a,s,l,u,h,c,p,d="normalMerge"===n,g="replaceMerge"===n,y="replaceAll"===n,m=(t=t||[],e=(e||[]).slice(),W()),n=(f(e,function(t,n){T(t)||(e[n]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)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||Xn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,m,n));return(d||g)&&(i=n,r=t,o=m,f(a=e,function(t,e){var n,s,l;t&&null!=t.id&&(n=Un(t.id),null!=(s=o.get(n)))&&(z(!(l=i[s]).newOption,'Duplicated option on id "'+n+'".'),l.newOption=t,l.existing=r[s],a[e]=null)})),d&&(s=n,f(l=e,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!Xn(t)&&!Xn(i)&&Wn("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),d||g?(h=n,c=g,f(e,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||Xn(e.existing)||e.existing&&null!=t.id&&!Wn("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):y&&(u=n,f(e,function(t){u.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=n,p=W(),f(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),f(t,function(t){var e=t.newOption;z(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),f(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(T(i)){if(r.name=null!=i.name?Un(i.name):n?n.name:Dy+e,n)r.id=Un(n.id);else if(null!=i.id)r.id=Un(i.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.id,t)}}),n}function Wn(t,e,n){return e=jn(e[t],null),n=jn(n[t],null),null!=e&&null!=n&&e===n}function Un(t){return jn(t,"")}function jn(t,e){return null==t?e:b(t)?t:C(t)||S(t)?t+"":e}function Yn(t){return!(!(t=t.name)||!t.indexOf(Dy))}function Xn(t){return t&&null!=t.id&&0===Un(t.id).indexOf("\0_ec_\0")}function qn(t,e,n){f(t,function(t){var i,r,o=t.newOption;T(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,o=o,t=t.existing,r=n,o.type||(t?t.subType:r.determineSubType(i,o))))})}function Zn(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?x(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?x(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Kn(){var t="__ec_inner_"+Py++;return function(e){return e[t]||(e[t]={})}}function $n(t,e,n){var e=Qn(e,n),i=e.mainTypeSpecified,r=e.queryOptionMap,o=e.others,a=n?n.defaultMainType:null;return!i&&a&&r.set(a,{}),r.each(function(e,i){e=Jn(t,i,e,{useDefault:a===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),o[i+"Models"]=e.models,o[i+"Model"]=e.models[0]}),o}function Qn(t,e){var n=b(t)?((n={})[t+"Index"]=0,n):t,i=W(),r={},o=!1;return f(n,function(t,n){var a;"dataIndex"===n||"dataIndexInside"===n?r[n]=t:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||e&&e.includeMainTypes&&h(e.includeMainTypes,a)<0||(o=o||!!a,(i.get(a)||i.set(a,{}))[n]=t))}),{mainTypeSpecified:o,queryOptionMap:i,others:r}}function Jn(t,e,n,i){i=i||Oy;var r=n.index,o=n.id,n=n.name,a={models:null,specified:null!=r||null!=o||null!=n};return a.specified?"none"===r||!1===r?(z(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===r&&(z(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=n=null),a.models=t.queryComponents({mainType:e,index:r,id:o,name:n})):(r=void 0,a.models=i.useDefault&&(r=t.getComponent(e))?[r]:[]),a}function ti(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ei(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(C(i))return Sn(p=zn(n||0,i,r),o?Math.max(Cn(n||0),Cn(i)):e);if(b(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(r<1&&s?s:l)[h]:(p=zn(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=Sn(p,o?Math.max(Cn(d),Cn(c)):e))}return a}function ni(t){var e={main:"",sub:""};return t&&(t=t.split(Ly),e.main=t[0]||"",e.sub=t[1]||""),e}function ii(t){(t.$constructor=t).extend=function(t){function e(){return r.apply(this,arguments)||this}var i,r,o,a=this;return w(o=a)&&/^class\s/.test(Function.prototype.toString.call(o))?(n(e,r=a),i=e):c(i=function(){(t.$constructor||a).apply(this,arguments)},this),l(i.prototype,t),i[Ey]=!0,i.extend=this.extend,i.superCall=oi,i.superApply=ai,i.superClass=a,i}}function ri(t,e){t.extend=e.extend}function oi(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 ai(t,e,n){return this.superClass.prototype[e].apply(t,n)}function si(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;return i&&(z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),(n=ni(t.prototype.type=i)).sub?n.sub!==Ry&&((function(t){var n=e[t.main];return n&&n[Ry]||(n=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Ry]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var t=ni(t),n=[],t=e[t.main];return t&&t[Ry]?f(t,function(t,e){e!==Ry&&n.push(t)}):n.push(t),n},t.hasClass=function(t){return t=ni(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){return t=ni(t),(t=e[t.main])&&t[Ry]}}function li(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];i&&0<=h(i,s)||r&&h(r,s)<0||null!=(s=n.getShallow(s,e))&&(o[t[a][0]]=s)}return o}}function ui(){}function hi(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=Fy.get(t))?pi(e=i.image)||i.pending.push(n):((r=df.loadImage(t,ci,ci)).__zrImageSrc=t,Fy.put(t,r.__cachedImgObj={image:r,pending:[n]}))),e):t:e}function ci(){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 pi(t){return t&&t.width&&t.height}function di(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=fi(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=gi(o[a],r);return o.join("\n")}function fi(t,e,n,i){for(var r=l({},i=i||{}),o=(r.font=e,n=R(n,"..."),r.maxIterations=R(i.maxIterations,2),r.minChar=R(i.minChar,0)),a=(r.cnCharWidth=nn("国",e),r.ascCharWidth=nn("a",e)),s=(r.placeholder=R(i.placeholder,""),t=Math.max(0,t-1)),u=0;u<o&&a<=s;u++)s-=a;return i=nn(n,e),s<i&&(n="",i=0),s=t-i,r.ellipsis=n,r.ellipsisWidth=i,r.contentWidth=s,r.containerWidth=t,r}function gi(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=nn(t,i);if(!(o<=n)){for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(t,r,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*r/o):0,o=nn(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function yi(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,d+=n,f=Math.max(f,e)}var i=new Wy;if(null!=t&&(t+=""),t){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=Vy.lastIndex=0;null!=(r=Vy.exec(t));){var h=r.index;u<h&&mi(i,t.substring(u,h),e,l),mi(i,r[2],e,l,r[1]),u=Vy.lastIndex}u<t.length&&mi(i,t.substring(u,t.length),e,l);var c,p=[],d=0,f=0,g=e.padding,y="truncate"===s,m="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var _=i.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(A=_.tokens[b]).styleName&&e.rich[A.styleName]||{},C=A.textPadding=S.padding,T=C?C[1]+C[3]:0,M=A.font=S.font||e.font,I=(A.contentHeight=ln(M),R(S.height,A.contentHeight));if(A.innerHeight=I,C&&(I+=C[0]+C[2]),A.height=I,A.lineHeight=E(S.lineHeight,e.lineHeight,I),A.align=S&&S.align||e.align,A.verticalAlign=S&&S.verticalAlign||"middle",m&&null!=a&&d+A.lineHeight>a){0<b?(_.tokens=_.tokens.slice(0,b),n(_,w,x),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var k,C=S.width,D=null==C||"auto"===C;"string"==typeof C&&"%"===C.charAt(C.length-1)?(A.percentWidth=C,p.push(A),A.contentWidth=nn(A.text,M)):(D&&(C=(C=S.backgroundColor)&&C.image)&&(k=void 0,pi(C="string"==typeof(c=C)?(k=Fy.get(c))&&k.image:c))&&(A.width=Math.max(A.width,C.width*I/C.height)),null!=(k=y&&null!=o?o-w:null)&&k<A.width?!D||k<T?(A.text="",A.width=A.contentWidth=0):(A.text=di(A.text,k-T,M,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=nn(A.text,M)):A.contentWidth=nn(A.text,M)),A.width+=T,w+=A.width,S&&(x=Math.max(x,A.lineHeight))}n(_,w,x)}for(i.outerWidth=i.width=R(o,f),i.outerHeight=i.height=R(a,d),i.contentHeight=d,i.contentWidth=f,g&&(i.outerWidth+=g[1]+g[3],i.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var A,P=(A=p[v]).percentWidth;A.width=parseInt(P,10)/100*i.width}}return i}function mi(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;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=un(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=t):(t=vi(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var d,f,g=o[p],y=new Hy;y.styleName=r,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:nn(g,h),p||c?u.push(new Gy([y])):1===(f=(d=(u[u.length-1]||(u[0]=new Gy)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function vi(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=nn(g,e),f=!(i||(f=void 0,!(33<=(f=(f=o=g).charCodeAt(0))&&f<=383)||Uy[o])),(a.length?n<c+d:n<r+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}function _i(t){return Cy.call(this,t)||this}function xi(t,e,n,i,r,o){r[0]=Qy(t,n),r[1]=Qy(e,i),o[0]=Jy(t,n),o[1]=Jy(e,i)}function wi(t){return Math.round(t/xm*1e8)/1e8%2*xm}function bi(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=[])}function Si(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&i+r<a||a<e-r&&a<i-r||t+r<o&&n+r<o||o<t-r&&o<n-r)&&(t===n?Math.abs(o-t)<=r/2:(o=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n))*o/(s*s+1)<=r/2*r/2)}function Ci(t){return(t%=Im)<0&&(t+=Im),t}function Ti(t,e,n,i,r,o){return e<o&&i<o||o<e&&o<i||i===e?0:(n=(o=(o-e)/(i-e))*(n-t)+t)===r?1/0:r<n?1!=o&&0!=o?i<e?1:-1:i<e?.5:-.5:0}function Mi(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h=zt(e,i,o,s,u,Om);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=Om[y],v=0===m||1===m?.5:1;Nt(t,n,r,a,m)<l||(d<0&&(d=Ft(e,i,o,s,Lm),Lm[1]<Lm[0]&&1<d&&(c=void 0,c=Lm[0],Lm[0]=Lm[1],Lm[1]=c),f=Nt(e,i,o,s,Lm[0]),1<d)&&(g=Nt(e,i,o,s,Lm[1])),2===d?m<Lm[0]?p+=f<e?v:-v:m<Lm[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Lm[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Ii(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=Om,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,Rt(h)?Et(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Rt(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=lg(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=Ut(e,i,o);if(0<=g&&g<=1){for(var y=0,m=Gt(e,i,o,g),v=0;v<f;v++){var _=0===Om[v]||1===Om[v]?.5:1;Gt(t,n,r,Om[v])<a||(Om[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===Om[0]||1===Om[0]?.5:1,Gt(t,n,r,Om[0])<a?0:o<e?_:-_}function ki(t,e,n,i,r){for(var o,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Dm.M&&1<d&&(n||(l+=Ti(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case Dm.M:u=c=a[d++],h=p=a[d++];break;case Dm.L:if(n){if(Si(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Ti(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Dm.C:if(n){if(function(t,e,n,i,r,o,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&o+l<h&&s+l<h||h<e-l&&h<i-l&&h<o-l&&h<s-l||t+l<u&&n+l<u&&r+l<u&&a+l<u||u<t-l&&u<n-l&&u<r-l&&u<a-l)&&Ht(t,e,n,i,r,o,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Mi(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Dm.Q:if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&o+a<l||l<e-a&&l<i-a&&l<o-a||t+a<s&&n+a<s&&r+a<s||s<t-a&&s<n-a&&s<r-a)&&Yt(t,e,n,i,r,o,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ii(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Dm.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++],b=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,C=Math.sin(x)*_+m,T=(g?(c=S,p=C):l+=Ti(u,h,S,C,i,r),(i-y)*_/v+y);if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-r)%km<1e-4||((r=o?(e=i,i=Ci(r),Ci(e)):(i=Ci(i),Ci(r)))<i&&(r+=km),(t=Math.atan2(l,s))<0&&(t+=km),i<=t&&t<=r)||i<=t+km&&t+km<=r)}(y,m,_,x,x+w,b,e,T,r))return!0}else l+=function(t,e,n,i,r,o,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(Om[0]=-e,Om[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(Am-1e-4<=n)return r=Am,h=o?1:-1,a>=Om[i=0]+t&&a<=Om[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=Am,r+=Am);for(var l=0,u=0;u<2;u++){var h,c=Om[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?Am+c:c)&&c<=r||i<=c+Am&&c+Am<=r)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case Dm.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],C=p+a[d++],n){if(Si(c,p,S,p,e,i,r)||Si(S,p,S,C,e,i,r)||Si(S,C,c,C,e,i,r)||Si(c,C,c,p,e,i,r))return!0}else l=(l+=Ti(S,p,S,C,i,r))+Ti(c,C,c,p,i,r);break;case Dm.Z:if(n){if(Si(u,h,c,p,e,i,r))return!0}else l+=Ti(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<Pm)||(l+=Ti(u,h,c,p,i,r)||0),0!==l}function Di(t){return Cm.call(this,t)||this}function Ai(){return null!==Tm&&Tm.apply(this,arguments)||this}function Pi(){return null!==Gm&&Gm.apply(this,arguments)||this}function Oi(t,e,n){var i,r,o;if(e)return i=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=i,t.x2=r,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(jm(2*i)===jm(2*r)&&(t.x1=t.x2=Ri(i,n,!0)),jm(2*o)===jm(2*e))&&(t.y1=t.y2=Ri(o,n,!0)),t}function Li(t,e,n){var i,r,o;if(e)return i=e.x,r=e.y,o=e.width,e=e.height,t.x=i,t.y=r,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=Ri(i,n,!0),t.y=Ri(r,n,!0),t.width=Math.max(Ri(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(Ri(r+e,n,!1)-t.y,0===e?0:1)),t}function Ri(t,e,n){var i;return e?((i=jm(2*t))+jm(e))%2==0?i/2:(i+(n?1:-1))/2:t}function Ei(t){return Um.call(this,t)||this}function Ni(t){var e=Zm.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Km,e.attr(t),e}function Bi(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?uf+"px":t+"px":t}function zi(t,e){for(var n=0;n<ev.length;n++){var i=ev[n],r=e[i];null!=r&&(t[i]=r)}}function Fi(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Vi(t){var e;t&&(t.font=Qm.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Jm[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||tv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Hi(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Gi(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Wi(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ui(t){return t=t.text,null!=t&&(t+=""),t}function ji(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Yi(t){return null!=t&&"none"!==t}function Xi(t){var e;return b(t)?((e=mv.get(t))||(e=le(t,-.1),mv.put(t,e)),e):D(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:le(t.color,-.1)}}),e):t}function qi(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Zi(t){qi(t,"emphasis",uv)}function Ki(t){t.hoverState===uv&&qi(t,"normal",sv)}function $i(t){qi(t,"blur",lv)}function Qi(t){t.hoverState===lv&&qi(t,"normal",sv)}function Ji(t){t.selected=!0}function tr(t){t.selected=!1}function er(t,e,n){e(t,n)}function nr(t,e,n){er(t,e,n),t.isGroup&&t.traverse(function(t){er(t,e,n)})}function ir(t,e){switch(e){case"emphasis":t.hoverState=uv;break;case"normal":t.hoverState=sv;break;case"blur":t.hoverState=lv;break;case"select":t.selected=!0}}function rr(t,e,n){var i=0<=h(t.currentStates,e),r=t.style.opacity,t=i?null:function(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(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}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=l({},n),e=l({opacity:i?r:.1*t.opacity},e),n.style=e),n}function or(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=h(e,"select"),a=!1,n instanceof Bm&&(r=ov(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,Yi(o)||Yi(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=l({},i),(r=l({},r)).fill=o):!Yi(r.fill)&&Yi(o)?(a=!0,i=l({},i),(r=l({},r)).fill=Xi(o)):!Yi(r.stroke)&&Yi(e)&&(a||(i=l({},i),r=l({},r)),r.stroke=Xi(e)),i.style=r),i&&null==i.z2&&(a||(i=l({},i)),o=n.z2EmphasisLift,i.z2=n.z2+(null!=o?o:10)),i;if("blur"===t)return rr(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=l({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function ar(t){t.stateProxy=or;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=or),t&&(t.stateProxy=or)}function sr(t,e){fr(t,e)||t.__highByOuter||nr(t,Zi)}function lr(t,e){fr(t,e)||t.__highByOuter||nr(t,Ki)}function ur(t,e){t.__highByOuter|=1<<(e||0),nr(t,Zi)}function hr(t,e){(t.__highByOuter&=~(1<<(e||0)))||nr(t,Ki)}function cr(t){nr(t,Qi)}function pr(t){nr(t,Ji)}function dr(t){nr(t,tr)}function fr(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gr(t){t.getModel().eachComponent(function(e,n){var i=av(n);i.isBlured&&("series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n)).group.traverse(function(t){Qi(t)}),i.isBlured=!1})}function yr(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&cr(i)}}var o,a,s,l=i.getModel();n=n||"coordinateSystem",null!=t&&e&&"none"!==e&&(o=l.getSeriesByIndex(t),(a=o.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=o===t,u=t.coordinateSystem,u=(u=u&&u.master?u.master:u)&&a?u===a:l;if(!("series"===n&&!l||"coordinateSystem"===n&&!u||"series"===e&&l)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){$i(t)}),d(e))r(t.getData(),e);else if(T(e))for(var h=v(e),c=0;c<h.length;c++)r(t.getData(h[c]),e[h[c]]);s.push(t),av(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.blurSeries&&t.blurSeries(s,l)}))}function mr(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(av(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){$i(t)})}function vr(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;if(!(t=i.getModel().getComponent(t,e)))return r;if(!(e=i.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===nv(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function _r(t){f(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){(t.isSelected(n,i)?pr:dr)(e)})})}function xr(t,e,n){Sr(t,!0),nr(t,ar),t=nv(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function wr(t,e,n,i){i?Sr(t,!1):xr(t,e,n)}function br(t,e,n,i){n=n||"itemStyle";for(var r=0;r<vv.length;r++){var o=vv[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[_v[n]]()}}function Sr(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Cr(t){return!(!t||!t.__highDownDispatcher)}function Tr(t){return(t=t.type)===fv||t===gv||t===yv}function Mr(t){return(t=t.type)===pv||t===dv}function Ir(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function kr(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ir(t)*Ir(e))}function Dr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(kr(t,e))}function Ar(t,e,n,i,r,o,a,s,l,u,h){var l=l*(Iv/180),c=Mv(l)*(t-n)/2+Tv(l)*(e-i)/2,p=-1*Tv(l)*(t-n)/2+Mv(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Cv(d),s*=Cv(d)),(r===o?-1:1)*Cv((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+Mv(l)*r-Tv(l)*d,n=(e+i)/2+Tv(l)*r+Mv(l)*d,e=Dr([1,0],[(c-r)/a,(p-d)/s]),i=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Dr(i,c);kr(i,c)<=-1&&(r=Iv),(r=1<=kr(i,c)?0:r)<0&&(p=Math.round(r/Iv*1e6)/1e6,r=2*Iv+p%2*Iv),h.addData(u,t,n,a,s,e,r,l,o)}function Pr(){return null!==Av&&Av.apply(this,arguments)||this}function Or(t){return null!=t.setData}function Lr(t,e){var n=function(t){var e=new Mm;if(t){var n,i=0,r=0,o=i,a=r,s=Mm.CMD,l=t.match(kv);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(Dv)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,C=i,T=r,M=void 0,I=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,m,v,C,T,i,r);break;case"s":m=i,v=r,M=e.len(),I=e.data,n===s.C&&(m+=i-I[M-4],v+=r-I[M-3]),p=s.C,C=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,m,v,C,T,i,r);break;case"Q":C=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"q":C=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"T":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,M=e.len(),I=e.data,n===s.Q&&(m+=i-I[M-4],v+=r-I[M-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Ar(C=i,T=r,i=d[y++],r=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Ar(C=i,T=r,i+=d[y++],r+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=o,r=a),n=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Or(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=n,i=t;if(i){for(var r,o,a,s,l=e.data,u=e.len(),h=xv.M,c=xv.C,p=xv.L,d=xv.R,f=xv.A,g=xv.Q,y=0,m=0;y<u;){switch(r=l[y++],m=y,o=0,r){case h:case p:o=1;break;case c:o=3;break;case g:o=2;break;case f:var v=i[4],_=i[5],x=bv(i[0]*i[0]+i[1]*i[1]),w=bv(i[2]*i[2]+i[3]*i[3]),b=Sv(-i[1]/w,i[0]/x);l[y]*=x,l[y++]+=v,l[y]*=w,l[y++]+=_,l[y++]*=x,l[y++]*=w,l[y++]+=b,l[y++]+=b,m=y+=2;break;case d:s[0]=l[y++],s[1]=l[y++],at(s,s,i),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],at(s,s,i),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<o;a++){var S=wv[a];S[0]=l[y++],S[1]=l[y++],at(S,S,i),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Rr(t){return Pv.call(this,t)||this}function Er(t){return Ev.call(this,t)||this}function Nr(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/Yv(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,o=r-o,s=s*n-e*t,n=(c<0?-1:1)*Yv(Xv(0,o*o*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(r/o-1),y1:t*(r/o-1)}}function Br(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,w,b,S,C,T,M,I,k,D,A,P,O,L=Xv(e.r,0),R=Xv(e.r0||0,0),E=0<L;(E||0<R)&&(E||(L=R,R=0),L<R&&(E=L,L=R,R=E),E=e.startAngle,n=e.endAngle,isNaN(E)||isNaN(n)||(i=e.cx,r=e.cy,o=!!e.clockwise,m=jv(n-E),Zv<(a=Vv<m&&m%Vv)&&(m=a),Zv<L?Vv-Zv<m?(t.moveTo(i+L*Gv(E),r+L*Hv(E)),t.arc(i,r,L,E,n,!o),Zv<R&&(t.moveTo(i+R*Gv(n),r+R*Hv(n)),t.arc(i,r,R,n,E,o))):(C=S=b=w=_=v=c=h=k=I=M=T=u=l=s=a=void 0,p=L*Gv(E),d=L*Hv(E),f=R*Gv(n),g=R*Hv(n),(y=Zv<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(x(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=jv(L-R)/2,T=qv(e,l),M=qv(e,u),I=qv(e,a),k=qv(e,s),v=h=Xv(T,M),_=c=Xv(I,k),Zv<h||Zv<c)&&(w=L*Gv(n),b=L*Hv(n),S=R*Gv(E),C=R*Hv(E),m<Fv)&&(e=function(t,e,n,i,r,o,a,s){var l=(s-=o)*(n-=t)-(a-=r)*(i-=e);if(!(l*l<Zv))return[t+(l=(a*(e-o)-s*(t-r))/l)*n,e+l*i]}(p,d,S,C,w,b,f,g))&&(T=p-e[0],M=d-e[1],I=w-e[0],k=b-e[1],m=1/Hv(Wv((T*I+M*k)/(Yv(T*T+M*M)*Yv(I*I+k*k)))/2),T=Yv(e[0]*e[0]+e[1]*e[1]),v=qv(h,(L-T)/(1+m)),_=qv(c,(R-T)/(m-1))),y?Zv<v?(D=qv(l,v),A=qv(u,v),P=Nr(S,C,p,d,L,D,o),O=Nr(w,b,f,g,L,A,o),t.moveTo(i+P.cx+P.x0,r+P.cy+P.y0),v<h&&D===A?t.arc(i+P.cx,r+P.cy,v,Uv(P.y0,P.x0),Uv(O.y0,O.x0),!o):(0<D&&t.arc(i+P.cx,r+P.cy,D,Uv(P.y0,P.x0),Uv(P.y1,P.x1),!o),t.arc(i,r,L,Uv(P.cy+P.y1,P.cx+P.x1),Uv(O.cy+O.y1,O.cx+O.x1),!o),0<A&&t.arc(i+O.cx,r+O.cy,A,Uv(O.y1,O.x1),Uv(O.y0,O.x0),!o))):(t.moveTo(i+p,r+d),t.arc(i,r,L,E,n,!o)):t.moveTo(i+p,r+d),Zv<R&&y?Zv<_?(D=qv(a,_),P=Nr(f,g,w,b,R,-(A=qv(s,_)),o),O=Nr(p,d,S,C,R,-D,o),t.lineTo(i+P.cx+P.x0,r+P.cy+P.y0),_<c&&D===A?t.arc(i+P.cx,r+P.cy,_,Uv(P.y0,P.x0),Uv(O.y0,O.x0),!o):(0<A&&t.arc(i+P.cx,r+P.cy,A,Uv(P.y0,P.x0),Uv(P.y1,P.x1),!o),t.arc(i,r,R,Uv(P.cy+P.y1,P.cx+P.x1),Uv(O.cy+O.y1,O.cx+O.x1),o),0<D&&t.arc(i+O.cx,r+O.cy,D,Uv(O.y1,O.x1),Uv(O.y0,O.x0),!o))):(t.lineTo(i+f,r+g),t.arc(i,r,R,n,E,o)):t.lineTo(i+f,r+g)):t.moveTo(i,r),t.closePath()))}function zr(t){return zv.call(this,t)||this}function Fr(t){return Qv.call(this,t)||this}function Vr(t,e,n){var i=e.smooth,r=e.points;if(r&&2<=r.length){if(i)for(var o=function(t,e,n,i){var r,o,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)st(h,h,t[p]),lt(c,c,t[p]);st(h,h,i[0]),lt(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push(K(t[p]));continue}r=t[p-1],o=t[p+1]}Q(s,o,r),et(s,s,e);var g=it(f,r),y=it(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),et(l,s,-g),et(u,s,y),$([],f,l)),g=$([],f,u);i&&(lt(m,m,h),st(m,m,c),lt(g,g,h),st(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(r,i,n,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(n?a:a-1);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;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function Hr(t){return e_.call(this,t)||this}function Gr(t){return r_.call(this,t)||this}function Wr(t){return s_.call(this,t)||this}function Ur(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Bt:Nt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Bt:Nt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Wt:Gt)(t.x1,t.cpx1,t.x2,e),(n?Wt:Gt)(t.y1,t.cpy1,t.y2,e)]}function jr(t){return d_.call(this,t)||this}function Yr(t){return g_.call(this,t)||this}function Xr(){var t=null!==v_&&v_.apply(this,arguments)||this;return t.type="compound",t}function qr(t){this.colorStops=t||[]}function Zr(t,e,n,i,r,o){return r=w_.call(this,r)||this,r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==n?1:n,r.y2=null==i?0:i,r.type="linear",r.global=o||!1,r}function Kr(t,e,n,i,r){return i=S_.call(this,i)||this,i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=r||!1,i}function $r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new iy;for(n=0;n<2;n++)this._axes[n]=new iy;t&&this.fromBoundingRect(t,e)}function Qr(){var t=null!==C_&&C_.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function Jr(t,e,n,i,r,o,a){var s,l,u,h,c,p,d=!1,f=(w(r)?(a=o,o=r,r=null):T(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=r=void 0,c=l?(r=R(l.duration,200),h=R(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=u&&(null!=u.duration&&(r=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(r=w(r)?r(s):r)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),o&&o())}function to(t,e,n,i,r,o){Jr("update",t,e,n,i,r,o)}function eo(t,e,n,i,r,o){Jr("enter",t,e,n,i,r,o)}function no(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 io(t,e,n,i,r,o){no(t)||Jr("leave",t,e,n,i,r,o)}function ro(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),io(t,{style:{opacity:0}},e,n,i)}function oo(t){return Bm.extend(t)}function ao(t,e){return E_(t,e)}function so(t,e){R_[t]=e}function lo(t){if(R_.hasOwnProperty(t))return R_[t]}function uo(t,e,n,i){return t=new Ov(Lr(t,e)),n&&("center"===i&&(n=co(n,t.getBoundingRect())),fo(t,n)),t}function ho(t,e,n){var i=new Wm({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(co(e,t)))}});return i}function co(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function po(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}return(e=new Bm(e)).createPathProxy(),e.buildPath=function(t){var e;Or(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function fo(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function go(t,e){for(var n=Ue([]);t&&t!==e;)Ye(n,t.getLocalTransform(),n),t=t.parent;return n}function yo(t,e,n){return e&&!d(e)&&(e=ty.getLocalTransform(e)),at([],t,e=n?Ke([],e):e)}function mo(t){return!t.isGroup}function vo(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var r,o;t&&e&&(o={},t.traverse(function(t){mo(t)&&t.anid&&(o[t.anid]=t)}),r=o,e.traverse(function(t){var e,o;mo(t)&&t.anid&&(e=r[t.anid])&&(o=i(t),t.attr(i(e)),to(t,o,n,nv(t).dataIndex))}))}function _o(t,e){return g(t,function(t){var n=t[0],n=O_(n,e.x),t=(n=L_(n,e.x+e.width),t[1]),t=O_(t,e.y);return[n,L_(t,e.y+e.height)]})}function xo(t,e){var n=O_(t.x,e.x),i=L_(t.x+t.width,e.x+e.width),r=O_(t.y,e.y),t=L_(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}}function wo(t,e,n){var e=l({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),u(i,n),new Wm(e)):uo(t.replace("path://",""),e,n,"center")}function bo(t,e,n,i,r,o,a,s){var l,n=n-t,i=i-e,a=a-r,s=s-o,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(r=((l=t-r)*i-n*(t=e-o))/u)<0||1<r||(i=(l*s-a*t)/u)<0||1<i)}function So(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=b(e)?{formatter:e}:e,r=n.mainType,n=n.componentIndex,o={componentType:r,name:i,$vars:["name"]},a=(o[r+"Index"]=n,t.formatterParamsExtra),t=(a&&f(v(a),function(t){X(o,t)||(o[t]=a[t],o.$vars.push(t))}),nv(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:u({content:i,formatterParams:o},e)}}function Co(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function To(t,e){if(t)if(x(t))for(var n=0;n<t.length;n++)Co(t[n],e);else Co(t,e)}function Mo(t,e){for(var n=0;n<hv.length;n++){var i=hv[n],r=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Io(t,e,n){for(var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?w(t.defaultText)?t.defaultText(o,t,n):t.defaultText:i},u=0;u<hv.length;u++){var h=hv[u],c=e[h];l[h]=R(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function ko(t,e,n,i){n=n||z_;for(var r=t instanceof Qm,o=!1,a=0;a<cv.length;a++)if((p=e[cv[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Qm,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Io(n,e),u=e.normal,h=!!u.getShallow("show"),c=Ao(u,i&&i.normal,n,!1,!r);for(c.text=l.normal,r||t.setTextConfig(Po(u,n,!1)),a=0;a<hv.length;a++){var p,d,f,g=hv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!R(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Ao(p,i&&i[g],n,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=Po(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(G_(s).setLabelText=function(t){t=Io(n,e,t),Mo(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Do(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<hv.length;i++){var r=hv[i];n[r]=t.getModel([r,e])}return n}function Ao(t,e,n,i,r){var o,a={},s=a,u=t,h=n,c=i,p=r;h=h||z_;var d,t=u.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||z_).rich;if(n){e=e||{};for(var i=v(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}(u);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(o=u.getModel(["rich",y]),Oo(d[y]={},o,f,h,c,p,!1,!0));return d&&(s.rich=d),(t=u.get("overflow"))&&(s.overflow=t),null!=(t=u.get("minMargin"))&&(s.margin=t),Oo(s,u,f,h,c,p,!0,!1),e&&l(a,e),a}function Po(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=R(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=r&&(r*=Math.PI/180,i.rotation=r),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Oo(t,e,n,i,r,o,a,s){n=!r&&n||z_;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=R(e.getShallow("opacity"),n.opacity),u=("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),R(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),R(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),R(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=r||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<F_.length;p++){var d=F_[p];null!=(f=R(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<V_.length;p++)d=V_[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<H_.length;p++){var f,d=H_[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType"),null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Lo(t,e,n,i,r){var o,a,s,l=G_(t);l.valueAnimation&&l.prevValue!==l.value&&(o=l.defaultInterpolatedText,a=R(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?eo:to)(t,{percent:1},i,e,null,function(i){var u=ei(n,l.precision,a,s,i),i=(l.interpolatedValue=1===i?null:u,Io({labelDataIndex:e,labelFetcher:r,defaultText:o?o(u):u+""},l.statesModels,u));Mo(t,i)}))}function Ro(){}function Eo(){}function No(){}function Bo(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function zo(t){return[t||"",tx++].join("_")}function Fo(t,e){t=t.toUpperCase(),ox[t]=new J_(e),rx[t]=e}function Vo(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ho(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 Go(t,e,n,i){var t=Dn(t),r=t[jo(n)](),o=t[Yo(n)]()+1,a=Math.floor((o-1)/4)+1,s=t[Xo(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[qo(n)](),h=(u-1)%12+1,c=t[Zo(n)](),p=t[Ko(n)](),t=t[$o(n)](),n=(i instanceof J_?i:ox[i||ax]||ox[ix]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,r%100+"").replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[o-1]).replace(/{MMM}/g,d[o-1]).replace(/{MM}/g,Vo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Vo(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Vo(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Vo(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Vo(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Vo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Vo(t,3)).replace(/{S}/g,t+"")}function Wo(t,e){var t=Dn(t),n=t[Yo(e)]()+1,i=t[Xo(e)](),r=t[qo(e)](),o=t[Zo(e)](),a=t[Ko(e)](),t=0===t[$o(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===i;return r&&1===n?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Uo(t,e,n){var i=C(t)?Dn(t):t;switch(e=e||Wo(t,n)){case"year":return i[jo(n)]();case"half-year":return 6<=i[Yo(n)]()?1:0;case"quarter":return Math.floor((i[Yo(n)]()+1)/4);case"month":return i[Yo(n)]();case"day":return i[Xo(n)]();case"half-day":return i[qo(n)]()/24;case"hour":return i[qo(n)]();case"minute":return i[Zo(n)]();case"second":return i[Ko(n)]();case"millisecond":return i[$o(n)]()}}function jo(t){return t?"getUTCFullYear":"getFullYear"}function Yo(t){return t?"getUTCMonth":"getMonth"}function Xo(t){return t?"getUTCDate":"getDate"}function qo(t){return t?"getUTCHours":"getHours"}function Zo(t){return t?"getUTCMinutes":"getMinutes"}function Ko(t){return t?"getUTCSeconds":"getSeconds"}function $o(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Qo(t){return t?"setUTCMonth":"setMonth"}function Jo(t){return t?"setUTCDate":"setDate"}function ta(t){return t?"setUTCHours":"setHours"}function ea(t){return t?"setUTCMinutes":"setMinutes"}function na(t){return t?"setUTCSeconds":"setSeconds"}function ia(t){return t?"setUTCMilliseconds":"setMilliseconds"}function ra(t){var e;return Rn(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function oa(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}function aa(t){return null==t?"":(t+"").replace(mx,function(t,e){return vx[e]})}function sa(t,e,n){function i(t){return t&&F(t)?t:"-"}function r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?Dn(t):t;if(!isNaN(+o))return Go(o,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?S(t)?i(t):C(t)&&r(t)?t+"":"-":r(o=Ln(t))?ra(o):S(t)?i(t):"boolean"==typeof t?t+"":"-"}function la(t,e){return"{"+t+(null==e?"":e)+"}"}function ua(t,e,n){var i=(e=x(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=_x[o];t=t.replace(la(a),la(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(la(_x[l],s),n?aa(u):u)}return t}function ha(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,r=(e=t.extraCssText,t.renderMode||"html");return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+aa(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+aa(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ca(t,e){return e=e||"transparent",b(t)?t:T(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function pa(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}function da(t,e,n,i,r){var o=0,a=0,s=(null==i&&(i=1/0),null==r&&(r=1/0),0);e.eachChild(function(l,u){var h,c,p,d=l.getBoundingRect(),u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(c=d.width+(u?-u.x+d.x:0),i<(h=o+c)||l.newline?(o=0,h=c,a+=s+n,d.height):Math.max(s,d.height)):(c=d.height+(u?-u.y+d.y:0),r<(p=a+c)||l.newline?(o+=s+n,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=p+n)})}function fa(t,e,n){n=yx(n||0);var i=e.width,r=e.height,o=bn(t.left,i),a=bn(t.top,r),e=bn(t.right,i),s=bn(t.bottom,r),l=bn(t.width,i),u=bn(t.height,r),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-o),isNaN(u)&&(u=r-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/r<p?l=.8*i:u=.8*r),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(o)&&(o=i-e-l-c),isNaN(a)&&(a=r-s-u-h),t.left||t.right){case"center":o=i/2-l/2-n[3];break;case"right":o=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h}return o=o||0,a=a||0,isNaN(l)&&(l=i-c-o-(e||0)),isNaN(u)&&(u=r-h-a-(s||0)),p=new py(o+n[3],a+n[0],l,u),p.margin=n,p}function ga(t){return t=t.layoutMode||t.constructor.layoutMode,T(t)?t:t?{type:t}:null}function ya(t,e,n){function i(n,i){var a={},l=0,u={},h=0;if(xx(n,function(e){u[e]=t[e]}),xx(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null);else if(2!==h&&l){if(!(2<=l))for(var c=0;c<n.length;c++){var p=n[c];if(!r(a,p)&&r(t,p)){a[p]=t[p];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){xx(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize,n=(x(s)||(s=[s,s]),i(Sx[0],0)),l=i(Sx[1],1);a(Sx[0],t,n),a(Sx[1],t,l)}function ma(t){return e={},(n=t)&&e&&xx(bx,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e;var e,n}function va(t,e,n){return t=Tx.call(this,t,e,n)||this,t.uid=zo("ec_cpt_model"),t}function _a(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function xa(t,e,n){function i(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function r(t){return t=t.dimsDef,t?t.length:1}var o,a,s,l,u,h={},c=wa(e);return c&&t&&(o=[],a=[],e=e.ecModel,e=Yx(e).datasetMap,c=c.uid+"_"+n.seriesLayoutBy,f(t=t.slice(),function(e,n){e=T(e)?e:t[n]={name:e},"ordinal"===e.type&&null==s&&(s=n,l=r(e)),h[e.name]=[]}),u=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var n,l=t.name,t=r(t);null==s?(n=u.valueWayDim,i(h[l],n,t),i(a,n,t),u.valueWayDim+=t):s===e?(i(h[l],0,t),i(o,0,t)):(n=u.categoryWayDim,i(h[l],n,t),i(a,n,t),u.categoryWayDim+=t)}),o.length&&(h.itemName=o),a.length)&&(h.seriesName=a),h}function wa(t){if(!t.get("data",!0))return Jn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Oy).models[0]}function ba(t,e){function n(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?jx.Might:jx.Not:e&&"-"!==t?jx.Must:void 0}var i,r,o,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,u=t.dimensionsDefine,h=t.startIndex,c=e;if(!I(a)){if(u&&(T(u=u[c])?(r=u.name,o=u.type):b(u)&&(r=u)),null!=o)return"ordinal"===o?jx.Must:jx.Not;if(s===zx){var p=a;if(l===Ux){for(var d=p[c],f=0;f<(d||[]).length&&f<5;f++)if(null!=(i=n(d[h+f])))return i}else for(f=0;f<p.length&&f<5;f++){var g=p[h+f];if(g&&null!=(i=n(g[c])))return i}}else if(s===Fx){var y=a;if(!r)return jx.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(i=n(v[r])))return i}else if(s===Vx){if(u=a,!r)return jx.Not;if(!(d=u[r])||I(d))return jx.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(i=n(d[f])))return i}else if(s===Bx)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=Hn(v=m[f]);if(!x(_))return jx.Not;if(null!=(i=n(_[c])))return i}}return jx.Not}function Sa(){}function Ca(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function Ta(){return null!==Rx&&Rx.apply(this,arguments)||this}function Ma(t,e,n){var i,r;return x(e)?(i=W(),f(e,function(t){null!=t&&null!=jn(t,null)&&i.set(t,!0)}),m(n,function(e){return e&&i.get(e[t])})):(r=jn(e,null),m(n,function(e){return e&&null!=r&&e[t]===r}))}function Ia(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function ka(t){var e=W();return t&&f(Fn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Da(t){f(tw,function(e){this[e]=If(t[e],t)},this)}function Aa(){this._coordinateSystems=[]}function Pa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Oa(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=sw.length;n<i;n++){var r=sw[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function La(t,e,n){var i,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(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).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.blurScope)}function Ra(t){La(t,"itemStyle"),La(t,"lineStyle"),La(t,"areaStyle"),La(t,"label"),La(t,"labelLine"),La(t,"upperLabel"),La(t,"edgeLabel")}function Ea(t,e){var n=aw(t)&&t[e],i=aw(n)&&n.textStyle;if(i)for(var r=0,o=Ay.length;r<o;r++){var a=Ay[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Na(t){t&&(Ra(t),Ea(t,"label"),t.emphasis)&&Ea(t.emphasis,"label")}function Ba(t){return x(t)?t:t?[t]:[]}function za(t){return(x(t)?t[0]:t)||{}}function Fa(t,e){ow(Ba(t.series),function(t){if(aw(t)&&aw(t)){Oa(t),Ra(t),Ea(t,"label"),Ea(t,"upperLabel"),Ea(t,"edgeLabel"),t.emphasis&&(Ea(t.emphasis,"label"),Ea(t.emphasis,"upperLabel"),Ea(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(Oa(e),Na(e)),t.markLine),i=(n&&(Oa(n),Na(n)),t.markArea),r=(i&&Na(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!I(o))for(var a=0;a<o.length;a++)Na(o[a]);f(t.categories,function(t){Ra(t)})}if(r&&!I(r))for(a=0;a<r.length;a++)Na(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Na(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)x(l[a])?(Na(l[a][0]),Na(l[a][1])):Na(l[a]);"gauge"===t.type?(Ea(t,"axisLabel"),Ea(t,"title"),Ea(t,"detail")):"treemap"===t.type?(La(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ra(t)})):"tree"===t.type&&Ra(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ow(n,function(e){ow(Ba(t[e]),function(t){t&&(Ea(t,"axisLabel"),Ea(t.axisPointer,"label"))})}),ow(Ba(t.parallel),function(t){t=t&&t.parallelAxisDefault,Ea(t,"axisLabel"),Ea(t&&t.axisPointer,"label")}),ow(Ba(t.calendar),function(t){La(t,"itemStyle"),Ea(t,"dayLabel"),Ea(t,"monthLabel"),Ea(t,"yearLabel")}),ow(Ba(t.radar),function(t){Ea(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)}),ow(Ba(t.geo),function(t){aw(t)&&(Na(t),ow(Ba(t.regions),function(t){Na(t)}))}),ow(Ba(t.timeline),function(t){Na(t),La(t,"label"),La(t,"itemStyle"),La(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){T(t)&&(La(t,"label"),La(t,"itemStyle"))})}),ow(Ba(t.toolbox),function(t){La(t,"iconStyle"),ow(t.feature,function(t){La(t,"iconStyle")})}),Ea(za(t.axisPointer),"label"),Ea(za(t.tooltip).axisPointer,"label")}function Va(t){t&&f(lw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ha(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<hw.length;n++){var i=hw[n][1],r=hw[n][0];null!=e[i]&&(e[r]=e[i])}}function Ga(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Wa(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Ua(t,e){Fa(t,e),t.series=Fn(t.series),f(t.series,function(t){if(T(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Ga(t.label),(e=t.data)&&!I(e))for(var i=0;i<e.length;i++)Ga(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");if(null!=r){for(var o,a=t,s="itemStyle.color",l=s.split(","),h=a,c=0;c<l.length-1;c++)null==h[o=l[c]]&&(h[o]={}),h=h[o];null!=h[l[c]]||(h[l[c]]=r)}}else if("bar"===n){if(Ha(t),Ha(t.backgroundStyle),Ha(t.emphasis),(e=t.data)&&!I(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Ha(e[i]),Ha(e[i]&&e[i].emphasis))}else"sunburst"===n?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Wa(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Wa)):"graph"===n||"sankey"===n?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===n&&(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),Va(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(uw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){Va(t)})})}function ja(t){f(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,function(o,l,u){var h,c,p=a.get(e.stackedDimension,u);if(isNaN(p))return r;s?c=a.getRawIndex(u):h=a.get(e.stackedByDimension,u);for(var d,f,g,y=NaN,m=n-1;0<=m;m--){var v=t[m];if(0<=(c=s?c:v.data.rawIndexOf(v.stackedByDimension,h))&&(v=v.data.getByRawIndex(v.stackResultDimension,c),0<=p&&0<v||p<=0&&v<0)){d=p,f=v,g=void 0,g=Math.max(Cn(d),Cn(f)),d+=f,p=Iy<g?d:Sn(d,g),y=v;break}}return i[0]=p,i[1]=y,i})})}function Ya(t){return t instanceof cw}function Xa(t,e,n){n=n||Za(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Ka(r),startIndex:a,dimensionsDetectedCount:o};var s;return e===zx?(s=t,"auto"===i||null==i?$a(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},n,s,10):a=C(i)?i:i?1:0,r||1!==a||(r=[],$a(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Ux?s.length:s[0]?s[0].length:null):e===Fx?r=r||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););var i;if(e)return i=[],f(e,function(t,e){i.push(e)}),i}(t):e===Vx?r||(r=[],f(t,function(t,e){r.push(e)})):e===Bx&&(i=Hn(t[0]),o=x(i)&&i.length||1),{startIndex:a,dimensionsDefine:Ka(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new cw({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:a(e)})}function qa(t){return new cw({data:t,sourceFormat:I(t)?Hx:Bx})}function Za(t){var e=Gx;if(I(t))e=Hx;else if(x(t)){0===t.length&&(e=zx);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(x(r)){e=zx;break}if(T(r)){e=Fx;break}}}}else if(T(t))for(var o in t)if(X(t,o)&&d(t[o])){e=Vx;break}return e}function Ka(t){var e;if(t)return e=W(),g(t,function(t,n){var i,t={name:(t=T(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(i=e.get(t.name))?t.name+="-"+i.count++:e.set(t.name,{count:1})),t})}function $a(t,e,n,i){if(e===Ux)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function Qa(t){return(t=t.sourceFormat)===Fx||t===Vx}function Ja(t,e){var t=Ya(t)?t:qa(t),n=(this._source=t,this._data=t.data);t.sourceFormat===Hx&&(this._offset=0,this._dimSize=e,this._data=n),Jx(this,n,t)}function ts(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function es(t,e,n,i){return t[i]}function ns(t,e){return yw[ss(t,e)]}function is(t,e,n){return t.length}function rs(t,e){return mw[ss(t,e)]}function os(t,e,n){return t[e]}function as(t){return vw[t]}function ss(t,e){return t===zx?t+"_"+e:t}function ls(t,e,n){if(t){var i,r,e=t.getRawDataItem(e);if(null!=e)return i=(r=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=r.getDimensionProperty(t),as(i)(e,t,n)):(r=e,i===Bx?Hn(e):r)}}function us(){}function hs(t){var e,n;return T(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function cs(t){return new Mw(t)}function ps(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ds(){return ww<xw?ww++:null}function fs(){var t=ww%Cw*bw+Math.ceil(ww/Cw),t=xw<=ww?null:t<Sw?t:ww;return ww++,t}function gs(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||C(t)||null==t||"-"===t?t:+Dn(t))||""===t?NaN:+t}function ys(t){return kw.get(t)}function ms(t,e){C(e)||Bn(""),this._opFn=Dw[t],this._rvalFloat=Ln(e)}function vs(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function _s(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ln(e)}function xs(){}function ws(t){return Ms(t.sourceFormat)||Bn(""),t.data}function bs(t){var e=t.sourceFormat,n=t.data;if(Ms(e)||Bn(""),e===zx){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Fx){for(i=[],r=0,o=n.length;r<o;r++)i.push(l({},n[r]));return i}}function Ss(t,e,n){if(null!=n)return C(n)||!isNaN(n)&&!X(e,n)?t[n]:X(e,n)?e[n]:void 0}function Cs(t){return a(t)}function Ts(t,e){var n=Fn(t),t=n.length;t||Bn("");for(var i=0,r=t;i<r;i++)e=function(t,e){e.length||Bn(""),T(t)||Bn("");var n=t.type,i=Ew.get(n);return i||Bn(""),n=g(e,function(t){var e=t,t=i,n=new Rw,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==Wx&&Bn(""),[]),l={};if(c=e.dimensionsDefine)f(c,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(X(l,n)&&Bn(""),l[n]=e)});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=ns(o,Wx),c=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,a,s,t)},n.getRawData=If(ws,null,e)),n.cloneRawData=If(bs,null,e),rs(o,Wx)),p=(n.count=If(c,null,r,a,s),as(o)),d=(n.retrieveValue=function(t,e){return t=h(r,a,s,t),d(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=s[e])?p(t,e,n.name):void 0});return n.getDimensionInfo=If(Ss,null,s,l),n.cloneAllDimensionInfo=If(Cs,null,s),n}),g(Fn(i.transform({upstream:n[0],upstreamList:n,config:a(t.config)})),function(t,n){T(t)||Bn(""),t.data||Bn(""),Ms(Za(t.data))||Bn("");var i=e[0],n=i&&0===n&&!t.dimensions?((n=i.startIndex)&&(t.data=i.data.slice(0,n).concat(t.data)),{seriesLayoutBy:Wx,sourceHeader:n,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:Wx,sourceHeader:0,dimensions:t.dimensions};return Xa(t.data,n,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function Ms(t){return t===zx||t===Fx}function Is(t){return 65535<t?Nw:Bw}function ks(){return[1/0,-1/0]}function Ds(t,e,n,i,r){if(n=Fw[n||"float"],r){var o=t[e],a=o&&o.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(i)}function As(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}function Ps(t,e,n,i){return gs(t[i],this._dimensions[i])}function Os(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Ls(t){t.option.transform&&V(t.option.transform)}function Rs(t){return"series"===t.mainType}function Es(t){throw new Error(t)}function Ns(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+aa(i+"")+"px;color:"+aa(n)+";font-weight:"+aa(r+""),valueStyle:"font-size:"+aa(a+"")+"px;color:"+aa(o)+";font-weight:"+aa(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}function Bs(t,e){return e.type=t,e}function zs(t){return"section"===t.type}function Fs(t){return zs(t)?Vs:Hs}function Vs(t,e,n,i){var r,o=e.noHeader,a=(u=function t(e){var n,i,r;return zs(e)?(n=0,i=e.blocks.length,r=1<i||0<i&&!e.noHeader,f(e.blocks,function(e){var i=t(e);n<=i&&(n=i+ +(r&&(!i||zs(e)&&!e.noHeader)))}),n):0}(e),{html:Ww[u],richText:Uw[u]}),s=[],u=e.blocks||[],h=(z(!u||x(u)),u=u||[],t.orderMode),c=(e.sortBlocks&&h&&(u=u.slice(),X(c={valueAsc:"asc",valueDesc:"desc"},h)?(r=new Pw(c[h],null),u.sort(function(t,e){return r.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===h&&u.reverse()),f(u,function(n,r){var o=e.valueFormatter,o=Fs(n)(o?l(l({},t),{valueFormatter:o}):t,n,0<r?a.html:0,i);null!=o&&s.push(o)}),"richText"===t.renderMode?s.join(a.richText):Ws(s.join(""),o?n:a.html));return o?c:(h=sa(e.header,"ordinal",t.useUTC),u=Ns(i,t.renderMode).nameStyle,"richText"===t.renderMode?Us(t,h,u)+a.richText+c:Ws('<div style="'+u+";"+Gw+';">'+aa(h)+"</div>"+c,n))}function Hs(t,e,n,i){var r,o,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return g(t=x(t)?t:[t],function(t,e){return sa(t,x(o)?o[e]:o,d)})};if(!u||!h)return r=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":sa(p,"ordinal",d),o=e.valueType,f=h?[]:f(e.value),e=!c||!u,a=!c&&u,i=Ns(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":r)+(u?"":Us(t,p,s))+(h?"":function(t,e,n,i,r){return r=[r],i=i?10:20,n&&r.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,r)}(t,f,e,a,i)):Ws((c?"":r)+(u?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+aa(p)+"</span>")+(h?"":function(t,e,n,i){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=x(t)?t:[t],'<span style="'+e+";"+i+'">'+g(t,aa).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,i)),n)}function Gs(t,e,n,i,r,o){if(t)return Fs(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Ws(t,e){return'<div style="margin: '+e+"px 0 0;"+Gw+';">'+t+'<div style="clear:both"></div></div>'}function Us(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function js(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function Ys(){this.richTextStyles={},this._nextStyleNameId=En()}function Xs(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(u?p.push(Bs("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(h.push(t),c.push(e.type)))}var n,i,r,o,a,s,l,u,h,c,p,d=t.series,g=t.dataIndex,t=t.multipleSeries,m=d.getData(),v=m.mapDimensionsAll("defaultedTooltip"),_=v.length,w=d.getRawValue(g),b=x(w),S=(S=g,ca((C=d).getData().getItemVisual(S,"style")[C.visualDrawType]));1<_||b&&!_?(C=w,o=g,a=v,s=S,l=d.getData(),u=y(C,function(t,e,n){return n=l.getDimensionInfo(n),t||n&&!1!==n.tooltip&&null!=n.displayName},!1),h=[],c=[],p=[],a.length?f(a,function(t){e(ls(l,o,t),t)}):f(C,e),n=(a={inlineValues:h,inlineValueTypes:c,blocks:p}).inlineValueTypes,i=a.blocks,r=(a=a.inlineValues)[0]):_?(C=m.getDimensionInfo(v[0]),r=a=ls(m,g,v[0]),n=C.type):r=a=b?w[0]:w;var _=Yn(d),v=_&&d.name||"",C=m.getName(g),b=t?v:C;return Bs("section",{header:v,noHeader:t||!_,sortParam:r,blocks:[Bs("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:n})].concat(i||[])})}function qs(t,e){return t.getName(e)||t.getId(e)}function Zs(){var t=null!==Xw&&Xw.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function Ks(t){var e,n,i=t.name;Yn(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],f(t,function(t){t=e.getDimensionInfo(t),t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function $s(t){return t.model.getRawData().count()}function Qs(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),Js}function Js(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function tl(t,e){f(U(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,_(el,e))})}function el(t,e){return t=nl(t),t&&t.setOutputEnd((e||this).count()),e}function nl(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}function il(){this.group=new wy,this.uid=zo("viewComponent")}function rl(){var t=Kn();return function(e){var n=t(e),e=e.pipelineContext,i=!!n.large,r=!!n.progressiveRender,o=n.large=!(!e||!e.large),n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==o&&r==n)&&"reset"}}function ol(){this.group=new wy,this.uid=zo("viewChart"),this.renderTask=cs({plan:ll,reset:ul}),this.renderTask.context={view:this}}function al(t,e,n){t&&Cr(t)&&("emphasis"===e?ur:hr)(t,n)}function sl(t,e,n){var i,r=Zn(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,i=null==(i=rv[e])&&iv<=32?rv[e]=iv++:i):null;null!=r?f(Fn(r),function(e){al(t.getItemGraphicEl(e),n,o)}):t.eachItemGraphicEl(function(t){al(t,n,o)})}function ll(t){return $w(t.model)}function ul(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&Kw(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Jw[o]}function hl(t,e,n){function i(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o=(new Date).getTime(),s=this,l=t;var d=u||e,f=u||n;u=null,a=o-(f?h:c)-d,clearTimeout(p),f?p=setTimeout(i,d):0<=a?i():p=setTimeout(i,-a),h=o}var o,a,s,l,u,h=0,c=0,p=null;return e=e||0,r.clear=function(){p&&(clearTimeout(p),p=null)},r.debounceNextCall=function(t){u=t},r}function cl(t,e,n,i){var r=t[e];if(r){var o=r[tb]||r,a=r[nb];if(r[eb]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=hl(o,n,"debounce"===i))[tb]=o,r[nb]=i,r[eb]=n}}}function pl(t,e){var n=t[e];n&&n[tb]&&(n.clear&&n.clear(),t[e]=n[tb])}function dl(t,e){return(t=t.visualStyleMapper||rb[e])||(console.warn("Unkown style type '"+e+"'."),rb.itemStyle)}function fl(t,e){return(t=t.visualDrawType||ob[e])||(console.warn("Unkown style type '"+e+"'."),"fill")}function gl(t,e,n,i){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function yl(t){t.overallReset(t.ecModel,t.api,t.payload)}function ml(t){return t.overallProgress&&vl}function vl(){this.agent.dirty(),this.getDownstream().dirty()}function _l(){this.agent&&this.agent.dirty()}function xl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wl(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Fn(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return bl(e)}):hb}function bl(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 Sl(t){return t.data.count()}function Cl(t,e){for(var n in e.prototype)t[n]=q}function Tl(){return{axisLine:{lineStyle:{color:db}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function Ml(){}function Il(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,i,a=t.seriesIndex,s=t.option.selectedMap,u=r.selected,h=0;h<u.length;h++)u[h].seriesIndex===a&&(i=Zn(e=t.getData(),r.fromActionPayload),n.trigger(o,{type:o,seriesId:t.id,name:x(i)?e.getName(i[0]):e.getName(i),selected:b(s)?s:l({},s)}))})}function kl(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function Dl(){this._id="__ec_inner_"+mb++}function Al(t,e){var n;"image"!==this.type&&(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 Pl(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?ho(t.slice(8),new py(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?uo(t.slice(7),{},new py(e,n,i,r),a?"center":"cover"):new Mb({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=Al,o&&a.setColor(o),a}function Ol(t,e){if(null!=t)return[bn((t=x(t)?t:[t,t])[0],e[0])||0,bn(R(t[1],t[0]),e[1])||0]}function Ll(t,e,n){for(var i,r,o,a,s,l,u,h,c,p="radial"===e.type?(i=t,r=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==r.x?.5:r.x,h=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(u=u*a+o.x,h=h*s+o.y,c*=l),i.createRadialGradient(u,h,0,u,h,c)):(r=t,a=n,o=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),o=isNaN(o)?0:o,l=isNaN(l)?1:l,i=isNaN(i)?0:i,u=isNaN(u)?0:u,r.createLinearGradient(o,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Rl(t){return parseInt(t,10)}function El(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[r]||Rl(n[i])||Rl(t.style[i]))-(Rl(n[o])||0)-(Rl(n[e])||0)|0)}function Nl(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(r=n.lineDash,i=n.lineWidth,r&&"solid"!==r&&0<i?"dashed"===r?[4*i,2*i]:"dotted"===r?[i]:C(r)?[r]:x(r)?r:null:null),r=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=g(i,function(t){return t/e}),r/=e),[i,r]}function Bl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function zl(t){return"string"==typeof t&&"none"!==t}function Fl(t){return null!=(t=t.fill)&&"none"!==t}function Vl(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function Hl(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Gl(t,e,n){var n=hi(e.image,e.__image,n);if(pi(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Af),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}function Wl(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(Yl(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Yy.opacity:o),!i&&e.blend===n.blend||(a||(Yl(t,r),a=!0),t.globalCompositeOperation=e.blend||Yy.blend);for(var s=0;s<kb.length;s++){var l=kb[s];!i&&e[l]===n[l]||(a||(Yl(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(Yl(t,r),a=!0),t.shadowColor=e.shadowColor||Yy.shadowColor),a}function Ul(t,e,n,i,r){var o=Xl(e,r.inHover),a=i?null:n&&Xl(n,r.inHover)||{};if(o!==a){var s=Wl(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(Yl(t,r),s=!0),zl(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(Yl(t,r),s=!0),zl(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(Yl(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(Yl(t,r),s=!0),t.lineWidth=n);for(var l=0;l<Db.length;l++){var u=Db[l],h=u[0];!i&&o[h]===a[h]||(s||(Yl(t,r),s=!0),t[h]=o[h]||u[1])}}}function jl(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}function Yl(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Xl(t,e){return e&&t.__hoverStyle||t.style}function ql(t,e){Zl(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zl(t,e,n,i){var r=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,a)){if(a&&a.length&&(Yl(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){Yl(t,n),t.save();for(var u=o,h=t,a=n,c=!1,p=0;p<u.length;p++){var d=u[p],c=c||d.isZeroArea();jl(h,d),h.beginPath(),d.buildPath(h,d.shape),h.clip()}a.allClipped=c,s=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,C,T,M,I,k,D,A,P,O,L,R,E,N,a=n.prevEl,B=(a||(l=s=!0),e instanceof Bm&&e.autoBatch&&(o=e.style,B=Fl(o),f=Bl(o),!(o.lineDash||!(+B^+f)||B&&"string"!=typeof o.fill||f&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),s=(s||(f=r,o=a.transform,f&&o?f[0]!==o[0]||f[1]!==o[1]||f[2]!==o[2]||f[3]!==o[3]||f[4]!==o[4]||f[5]!==o[5]:f||o)?(Yl(t,n),jl(t,e)):B||Yl(t,n),Xl(e,n.inHover));if(e instanceof Bm)n.lastDrawType!==Ab&&(l=!0,n.lastDrawType=Ab),Ul(t,e,a,l,n),B&&(n.batchFill||n.batchStroke)||t.beginPath(),r=t,o=e,G=B,k=Bl(m=s),D=Fl(m),A=m.strokePercent,P=A<1,O=!o.path,o.silent&&!P||!O||o.createPathProxy(),L=o.path||Ib,R=o.__dirty,G||(v=m.fill,N=m.stroke,_=D&&!!v.colorStops,x=k&&!!N.colorStops,w=D&&!!v.image,b=k&&!!N.image,E=M=T=C=S=void 0,(_||x)&&(E=o.getBoundingRect()),_&&(S=R?Ll(r,v,E):o.__canvasFillGradient,o.__canvasFillGradient=S),x&&(C=R?Ll(r,N,E):o.__canvasStrokeGradient,o.__canvasStrokeGradient=C),w&&(T=R||!o.__canvasFillPattern?Gl(r,v,o):o.__canvasFillPattern,o.__canvasFillPattern=T),b&&(M=R||!o.__canvasStrokePattern?Gl(r,N,o):o.__canvasStrokePattern,o.__canvasStrokePattern=T),_?r.fillStyle=S:w&&(T?r.fillStyle=T:D=!1),x?r.strokeStyle=C:b&&(M?r.strokeStyle=M:k=!1)),E=o.getGlobalScale(),L.setScale(E[0],E[1],o.segmentIgnoreThreshold),r.setLineDash&&m.lineDash&&(I=(v=Nl(o))[0],H=v[1]),N=!0,(O||R&ng)&&(L.setDPR(r.dpr),P?L.setContext(null):(L.setContext(r),N=!1),L.reset(),o.buildPath(L,o.shape,G),L.toStatic(),o.pathUpdated()),N&&L.rebuildPath(r,P?A:1),I&&(r.setLineDash(I),r.lineDashOffset=H),G||(m.strokeFirst?(k&&Hl(r,m),D&&Vl(r,m)):(D&&Vl(r,m),k&&Hl(r,m))),I&&r.setLineDash([]),B&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof Fm)n.lastDrawType!==Ob&&(l=!0,n.lastDrawType=Ob),Ul(t,e,a,l,n),_=t,S=e,null!=(T=(w=s).text)&&(T+=""),T&&(_.font=w.font||cf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,C=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Nl(S))[0],C=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=C),w.strokeFirst?(Bl(w)&&_.strokeText(T,w.x,w.y),Fl(w)&&_.fillText(T,w.x,w.y)):(Fl(w)&&_.fillText(T,w.x,w.y),Bl(w)&&_.strokeText(T,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof Wm)n.lastDrawType!==Pb&&(l=!0,n.lastDrawType=Pb),b=a,M=l,Wl(t,Xl(e,(E=n).inHover),b&&Xl(b,E.inHover),M,E),v=t,O=s,(o=(R=e).__image=hi(O.image,R.__image,R,R.onload))&&pi(o)&&(N=O.x||0,L=O.y||0,P=R.getWidth(),R=R.getHeight(),A=o.width/o.height,null==P&&null!=R?P=R*A:null==R&&null!=P?R=P/A:null==P&&null==R&&(P=o.width,R=o.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(o,g,y,O.sWidth,O.sHeight,N,L,P,R)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(o,g,y,P-g,R-y,N,L,P,R)):v.drawImage(o,N,L,P,R));else if(e.getTemporalDisplayables){n.lastDrawType!==Lb&&(l=!0,n.lastDrawType=Lb);var z,F,V=t,H=e,G=n,W=H.getDisplayables(),U=H.getTemporalDisplayables(),j=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:G.viewWidth,viewHeight:G.viewHeight,inHover:G.inHover});for(z=H.getCursor(),F=W.length;z<F;z++)(Y=W[z]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),Zl(V,Y,j,z===F-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;for(var Y,X=0,q=U.length;X<q;X++)(Y=U[X]).beforeBrush&&Y.beforeBrush(),Y.innerBeforeBrush(),Zl(V,Y,j,X===q-1),Y.innerAfterBrush(),Y.afterBrush&&Y.afterBrush(),j.prevEl=Y;H.clearTemporalDisplayables(),H.notClear=!0,V.restore()}B&&i&&Yl(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~eg,e.__isRendered=!1}function Kl(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type,e=(t.dirty&&Rb.delete(t),Rb.get(t));if(e)return e;for(var o,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}),e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[n],h=!0,c=0;c<Nb.length;++c){var p=a[Nb[c]];if(null!=p&&!x(p)&&!b(p)&&!C(p)&&"boolean"!=typeof p){h=!1;break}l.push(p)}h&&(o=l.join(",")+(r?"-svg":""),w=Eb.get(o))&&(r?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(C(e))return[[o=Math.ceil(e),o]];for(var n=!0,i=0;i<e.length;++i)if(!C(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i){var o;C(e[i])?(o=Math.ceil(e[i]),r.push([o,o])):(o=g(e[i],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t))return[e=Math.ceil(t),e];var e=g(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),m=function t(e){if(!e||0===e.length)return[["rect"]];if(b(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!b(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)b(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),v=function(t){return g(t,$l)}(f),_=$l(y),w=!r&&df.createCanvas(),S=r&&{tag:"g",attrs:{},key:"dcl",children:[]},T=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=Nn(t,v[e]);for(var i=1,e=0,n=m.length;e<n;++e)i=Nn(i,m[e].length);t*=i;var r=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();w&&(w.width=T.width*n,w.height=T.height*n,d=w.getContext("2d")),d&&(d.clearRect(0,0,w.width,w.height),a.backgroundColor)&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,w.width,w.height));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(!(M<=0))for(var k=-_,D=0,A=0,P=0;k<T.height;){if(D%2==0){for(var O=A/2%m.length,L=0,R=0,E=0;L<2*T.width;){for(var N,B,z,F,V,H=0,I=0;I<f[P].length;++I)H+=f[P][I];if(H<=0)break;R%2==0&&(B=.5*(1-a.symbolSize),N=L+f[P][R]*B,B=k+y[D]*B,z=f[P][R]*a.symbolSize,F=y[D]*a.symbolSize,V=E/2%m[O].length,function(t,e,o,s,l){var u=r?1:n,l=Pl(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?(t=i.painter.renderOneToVNode(l))&&S.children.push(t):ql(d,l)}(N,B,z,F,m[O][V])),L+=f[P][R],++E,++R===f[P].length&&(R=0)}++P===f.length&&(P=0)}k+=y[D],++A,++D===y.length&&(D=0)}return h&&Eb.put(o,w||S),s.image=w,s.svgElement=S,s.svgWidth=T.width,s.svgHeight=T.height,e.rotation=a.rotation,e.scaleX=e.scaleY=r?1:1/n,Rb.set(t,e),t.dirty=!1,e}function $l(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function Ql(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return tu(this,t,e);this.id}}function Jl(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return tu(this,t,e)}}function tu(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Bf.prototype[e].apply(t,n)}function eu(){return null!==jb&&jb.apply(this,arguments)||this}function nu(t,e,n){function i(t,e){return t.__prio-e.__prio}var r=hS.call(this,new fb)||this,t=(r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},b(e)&&(e=_S[e]),r._dom=t,r._zr=_n(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect})),n=(r._ssr=n.ssr,r._throttledZrFlush=hl(If(t.flush,t),17),(e=a(e))&&Ua(e,!0),r._theme=e,r._locale=b(e=n.locale||ax)?(n=rx[e.toUpperCase()]||{},e===ex||e===nx?a(n):s(a(n),a(rx[ix]),!1)):s(a(e),a(rx[ix]),!1),r._coordSysMgr=new nw,r._api=aS(r));return At(vS,i),At(yS,i),r._scheduler=new ub(r,n,yS,vS),r._messageCenter=new cS,r._initEvents(),r.resize=If(r.resize,r),t.animation.on("frame",r._onframe,r),eS(t,r),nS(t,r),V(r),r}function iu(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function ru(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===uv&&t.states.emphasis?e.push("emphasis"):t.hoverState===lv&&t.states.blur&&e.push("blur"),t.useStates(e)}function ou(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)r=Math.max(t(l[u],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);return o&&(o.z=n,o.zlevel=i,isFinite(r))&&(o.z2=r+2),a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1)),r}(t,n,i,-1/0),!0}))}function au(t,e){e.eachRendered(function(t){var e,n;no(t)||(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 su(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,o;t.states&&t.states.emphasis&&(no(t)||(t instanceof Bm&&((o=ov(n=t)).normalFill=n.style.fill,o.normalStroke=n.style.stroke,n=n.states.select||{},o.selectFill=n.style&&n.style.fill||null,o.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(o=t.prevStates)&&t.useStates(o),i&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&ru(t)))})}function lu(t){bS[t]=!1}function uu(t){return wS[(e=TS,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function hu(t,e){_S[t]=e}function cu(t){h(mS,t)<0&&mS.push(t)}function pu(t,e){xu(yS,t,e,2e3)}function du(t){gu("afterinit",t)}function fu(t){gu("afterupdate",t)}function gu(t,e){Bb.on(t,e)}function yu(t,e,n){w(e)&&(n=e,e="");var i=T(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,gS[e]||(z(Wb.test(i)&&Wb.test(e)),fS[i]||(fS[i]={action:n,actionInfo:t}),gS[e]=i)}function mu(t,e){nw.register(t,e)}function vu(t,e){xu(vS,t,e,1e3,"layout")}function _u(t,e){xu(vS,t,e,3e3,"visual")}function xu(t,e,n,i,r){(w(e)||T(e))&&(n=e,e=i),0<=h(MS,n)||(MS.push(n),(i=ub.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function wu(t,e){xS[t]=e}function bu(t,e,n){var i=zb.registerMap;i&&i(t,e,n)}function Su(t){var e=(t=a(t)).type,n=(e||Bn(""),e.split(":")),i=(2!==n.length&&Bn(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Ew.set(e,t)}function Cu(t){return null==t?0:t.length||1}function Tu(t){return t}function Mu(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Tu,this._newKeyGetter=i||Tu,this.context=r,this._diffModeMultiple="multiple"===o}function Iu(t,e){this._encode=t,this._schema=e}function ku(t,e){var n={},i=n.encode={},r=W(),o=[],a=[],s={},l=(f(t.dimensions,function(e){var n,l,u=t.getDimensionInfo(e),h=u.coordDim;h&&(n=u.coordDimIndex,Du(i,h)[n]=e,u.isExtraCoord||(r.set(h,1),"ordinal"!==(l=u.type)&&"time"!==l&&(o[0]=e),Du(s,h)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip)&&a.push(e),Nx.each(function(t,e){var n=Du(i,e),e=u.otherDims[e];null!=e&&!1!==e&&(n[e]=u.name)})}),[]),u={},h=(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,i.label),h=(h&&h.length&&(o=h.slice()),i.tooltip);return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new ES(s,e),n}function Du(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Au(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Pu(t){return t instanceof FS}function Ou(t){for(var e=W(),n=0;n<(t||[]).length;n++){var i=t[n],i=T(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Lu(t){var e=BS(t);return e.dimNameMap||(e.dimNameMap=Ou(t.dimensionsDefine))}function Ru(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"];for(var n,i,r=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(Pu(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=b(c)?new NS({name:c}):c instanceof NS?c:new NS(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(o[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),r&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=W(),f(a,function(t){i.set(o[t].storeDimIndex,t)}))}function Eu(t,e){function n(t){var e,n,i,r=x[t];return r<0?(e=T(e=h[t])?e:{name:e},n=new NS,null!=(i=e.name)&&null!=m.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),x[t]=p.length,n.storeDimIndex=t,p.push(n),n):p[r]}function i(t,e,n){null!=Nx.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,c.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Ya(t)||(t=qa(t));for(var o,a,s=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],c=W(),p=[],d=(g=t,o=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,o.length,h.length,v||0),f(o,function(t){T(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=h===t.dimensionsDefine,m=y?Lu(t):Ou(h),v=e.encodeDefine,_=W(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new zw(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)n(w);_.each(function(t,e){var r,t=Fn(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(r=_.set(e,[]),f(t,function(t,o){null!=(t=b(t)?m.get(t):t)&&t<d&&i(n(r[o]=t),e,o)}))});var S=0;f(s,function(t){b(t)?(a=t,o={}):(a=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=l({},o)).ordinalMeta=t,e=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var e,r,o,a,s=_.get(a);if(!1!==s){if(!(s=Fn(s)).length)for(var h=0;h<(e&&e.length||1);h++){for(;S<d&&null!=n(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=n(t),y&&null!=o.type&&(t.type=o.type),i(u(t,o),a,s),null==t.name&&e&&(T(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),r&&u(t.otherDims,r)})}});var C=e.generateCoord,M=null!=(I=e.generateCoordCount),I=C?I||1:0,k=C||"value";if(g)f(p,function(t){r(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var D=0;D<d;D++){var A=n(D);null==A.coordDim&&(A.coordDim=function(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}(k,c,M),A.coordDimIndex=0,(!C||I<=0)&&(A.isExtraCoord=!0),I--),r(A),null!=A.type||ba(t,D)!==jx.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}for(var P=p,O=W(),L=0;L<P.length;L++){var R=P[L],E=R.name,N=O.get(E)||0;0<N&&(R.name=E+(N-1)),N++,O.set(E,N)}return new FS({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Nu(t){return"category"===t.get("type")}function Bu(t,e,n){var i,r,o,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,g=(Pu(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e,!(!t||!t.get("stack")));return f(i,function(t,e){b(t)&&(i[e]=t={name:t}),g&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,f(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(u,n),t.storeDimIndex=o.ensureCalculationDimension(l,n)),r.appendCalculationDimension(e),r.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function zu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Fu(t,e){return zu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Vu(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=qa(t)):h=(i=u.getSource()).sourceFormat===Bx,function(t){var e=t.get("coordinateSystem"),n=new YS(e);if(e=XS[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(r=t,c=(c=e).get("coordinateSystem"),c=nw.get(c),p=(p=r&&r.coordSysDims?g(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=w(p)?p:p?_(xa,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=Eu(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(a=t)&&f(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=Bu(e,{schema:p,store:n}),c=new jS(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==Bx||x(Hn(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}function Hu(t){this._setting=t||{},this._extent=[1/0,-1/0]}function Gu(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ZS}function Wu(t){return T(t)&&null!=t.value?t.value:t+""}function Uu(t){return"interval"===t.type||"log"===t.type}function ju(t,e,n,i){var r={},o=t[1]-t[0],o=r.interval=On(o/e,!0),e=(null!=n&&o<n&&(o=r.interval=n),null!=i&&i<o&&(o=r.interval=i),r.intervalPrecision=Xu(o)),n=r.niceTickExtent=[Sn(Math.ceil(t[0]/o)*o,e),Sn(Math.floor(t[1]/o)*o,e)];return i=n,o=t,isFinite(i[0])||(i[0]=o[0]),isFinite(i[1])||(i[1]=o[1]),qu(i,0,o),qu(i,1,o),i[0]>i[1]&&(i[0]=i[1]),r}function Yu(t){var e=Math.pow(10,Pn(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Sn(t*e)}function Xu(t){return Cn(t)+2}function qu(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Zu(t,e){return t>=e[0]&&t<=e[1]}function Ku(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function $u(t,e){return t*(e[1]-e[0])+e[0]}function Qu(t){var t=$S.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new KS({}))&&(e=new KS({categories:g(e,function(t){return T(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function Ju(){var t=null!==JS&&JS.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function th(t){return x(t)?nC?new Float32Array(t):t:new iC(t)}function eh(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function nh(t){return t.dim+t.index}function ih(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function rh(t){var e,n,i=function(t){var e,n={},i=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),i=e.dim+"_"+e.index,r=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a<s;++a){var l=o.get(r,a);n[i]?n[i].push(l):n[i]=[l]}}),{});for(e in n)if(n.hasOwnProperty(e)){var r=n[e];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];0<s&&(o=null===o?s:Math.min(o,s))}i[e]=o}}return i}(t),r=[];return f(t,function(t){var e,n,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent(),s=(e="category"===o.type?o.getBandWidth():"value"===o.type||"time"===o.type?(e=o.dim+"_"+o.index,e=i[e],s=Math.abs(a[1]-a[0]),n=o.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?s/n*e:s):(n=t.getData(),Math.abs(a[1]-a[0])/n.count()),bn(t.get("barWidth"),e)),a=bn(t.get("barMaxWidth"),e),l=bn(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),u=t.get("barGap"),h=t.get("barCategoryGap");r.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:u,barCategoryGap:h,axisKey:nh(o),stackId:eh(t)})}),e={},f(r,function(t,n){var i=t.axisKey,r=t.bandWidth,r=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks,i=(e[i]=r,t.stackId),a=(o[i]||r.autoWidthCount++,o[i]=o[i]||{width:0,maxWidth:0},t.barWidth),a=(a&&!o[i].width&&(o[i].width=a,a=Math.min(r.remainedWidth,a),r.remainedWidth-=a),t.barMaxWidth),a=(a&&(o[i].maxWidth=a),t.barMinWidth),o=(a&&(o[i].minWidth=a),t.barGap),i=(null!=o&&(r.gap=o),t.barCategoryGap);null!=i&&(r.categoryGap=i)}),n={},f(e,function(t,e){n[e]={};var i,r=t.stacks,o=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(r).length,a=Math.max(35-4*s,15)+"%"),bn(a,o)),l=bn(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),p=(f(r,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,u-=e+l*e,h--):(e=c,n&&n<e&&(e=Math.min(n,u)),(e=i&&e<i?i:e)!==c&&(t.width=e,u-=e+l*e,h--))}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),0),d=(f(r,function(t,e){t.width||(t.width=c),p+=(i=t).width*(1+l)}),i&&(p-=i.width*l),-p/2);f(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function oh(t){return t=rC.call(this,t)||this,t.type="time",t}function ah(t,e){return 30<(t/=e?lx:sx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function sh(){var t=null!==sC&&sC.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new eC,t._interval=0,t}function lh(t,e){return hC(t,Cn(e))}function uh(t,e,n){this._prepareParams(t,e,n)}function hh(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function ch(t,e){var n,i,r,o,a,s=t.type,l=(l=e,u=(h=t).getExtent(),(c=h.rawExtentInfo)||(c=new yC(h,l,u),h.rawExtentInfo=c),c.calculate()),u=(t.setBlank(l.isBlank),l.min),h=l.max,c=e.ecModel;return c&&"time"===s&&(t=ih("bar",c),n=!1,f(t,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(s=rh(t),c=u,t=h,s=s,a=(a=(i=e).axis.getExtent())[1]-a[0],void 0!==(s=function(t,e,n){if(t&&e)return t=t[nh(e)],t}(s,i.axis))&&(r=1/0,f(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,f(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(i=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/i*a),u=(s={min:c,max:t}).min,h=s.max),{extent:[u,h],fixMin:l.minFixed,fixMax:l.maxFixed}}function ph(t,e){var n=ch(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof gC&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function dh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new QS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new oC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(qS.getClass(e)||eC)}}function fh(t){var e,n,i,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=r,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):b(r)?(n=r,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):w(r)?(e=r,function(n,i){return null!=o&&(i=n.value-o),e(gh(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function gh(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function yh(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent(),a=n instanceof QS?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=fh(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:o[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new py(f.x,f.y,p,c));r?r.union(g):r=g}return r}}function mh(t){return t=t.get("interval"),null==t?"auto":t}function vh(t){return"category"===t.type&&0===mh(t.getLabelModel())}function _h(){}function xh(t){x(t)?f(t,function(t){xh(t)}):0<=h(xC,t)||(xC.push(t),(t=w(t)?{install:t}:t).install(wC))}function wh(t,e){return Math.abs(t-e)<bC}function bh(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Ti(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return wh(r[0],s[0])&&wh(r[1],s[1])||(i+=Ti(r[0],r[1],s[0],s[1],e,n)),0!==i}}function Sh(t,e){for(var n=0;n<t.length;n++)at(t[n],t[n],e)}function Ch(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];(o=i?i.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(st(e,e,o),lt(n,n,o))}}function Th(t){this.name=t}function Mh(t,e,n){return t=CC.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function Ih(t,e){return t=TC.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function kh(t,e,n){for(var i=0;i<t.length;i++)t[i]=Dh(t[i],e[i],n)}function Dh(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function Ah(t,e){var n,i,r;return g(m((t=(n=t).UTF8Encoding?(null==(r=(i=n).UTF8Scale)&&(r=1024),f(i.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Dh(i,n,r);break;case"Polygon":case"MultiLineString":kh(i,n,r);break;case"MultiPolygon":f(i,function(t,e){return kh(t,n[e],r)})}}),i.UTF8Encoding=!1,i):n).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new MC(o[0],o.slice(1)));break;case"MultiPolygon":f(i.coordinates,function(t){t[0]&&r.push(new MC(t[0],t.slice(1)))});break;case"LineString":r.push(new IC([i.coordinates]));break;case"MultiLineString":r.push(new IC(i.coordinates))}return t=new kC(n[e||"name"],r,n.cp),t.properties=n,t})}function Ph(t){return"category"===t.type?(r=(i=t).getLabelModel(),o=Lh(i,r),!r.get("show")||i.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(e=t).scale.getTicks(),n=fh(e),{labels:g(r,function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}})});var e,n,i,r,o}function Oh(t,e){var n,i,r,o,a,s;return"category"===t.type?(e=e,o=Rh(n=t,"ticks"),a=mh(e),(s=Eh(o,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=w(a)?zh(n,a,!0):"auto"===a?(s=Lh(n,n.getLabelModel()),r=s.labelCategoryInterval,g(s.labels,function(t){return t.tickValue})):Bh(n,r=a,!0),Nh(o,a,{ticks:i,tickCategoryInterval:r}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Lh(t,e){var n,i=Rh(t,"labels"),e=mh(e),r=Eh(i,e);return r||Nh(i,e,{labels:w(e)?zh(t,e):Bh(t,n="auto"===e?null!=(i=DC(r=t).autoInterval)?i:DC(r).autoInterval=r.calculateCategoryInterval():e),labelCategoryInterval:n})}function Rh(t,e){return DC(t)[e]||(DC(t)[e]=[])}function Eh(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Nh(t,e,n){return t.push({key:e,value:n}),n}function Bh(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}for(var r=fh(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),e=a[0],h=o.count(),h=(0!==e&&1<u&&2<h/u&&(e=Math.round(Math.ceil(e/u)*u)),vh(t)),t=s.get("showMinLabel")||h,s=s.get("showMaxLabel")||h,c=(t&&e!==a[0]&&i(a[0]),e);c<=a[1];c+=u)i(c);return s&&c-u!==a[1]&&i(a[1]),l}function zh(t,e,n){var i=t.scale,r=fh(t),o=[];return f(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 Fh(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Vh(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function Hh(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-r)*(u-r)+(s-o)*(s-o))}function Gh(t,e,n,i,r,o,a){return n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),n=t+n,i=e+i,t=a[0]=Math.min(Math.max(r,t),n),n=a[1]=Math.min(Math.max(o,e),i),Math.sqrt((t-r)*(t-r)+(n-o)*(n-o))}function Wh(t,e,n){for(var i,r,o,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case OC.M:p=f=m[x++],d=g=m[x++];break;case OC.L:b=Hh(p,d,m[x],m[x+1],v,_,RC,!0),p=m[x++],d=m[x++];break;case OC.C:b=Ht(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,RC),p=m[x++],d=m[x++];break;case OC.Q:b=Yt(p,d,m[x++],m[x++],m[x],m[x+1],v,_,RC),p=m[x++],d=m[x++];break;case OC.A:var S=m[x++],C=m[x++],T=m[x++],M=m[x++],I=m[x++],k=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(I)*T+S,P=Math.sin(I)*M+C;x<=1&&(f=A,g=P),P=(A=I)+k,D=D,a=(v-S)*(o=M)/T+S,s=_,l=RC,c=h=u=void 0,a-=i=S,s-=r=C,u=Math.sqrt(a*a+s*s),h=(a/=u)*o+i,c=(s/=u)*o+r,b=Math.abs(A-P)%PC<1e-4||((P=D?(D=A,A=Ci(P),Ci(D)):(A=Ci(A),Ci(P)))<A&&(P+=PC),(D=Math.atan2(s,a))<0&&(D+=PC),A<=D&&D<=P)||A<=D+PC&&D+PC<=P?(l[0]=h,l[1]=c,u-o):(c=((D=o*Math.cos(A)+i)-a)*(D-a)+((h=o*Math.sin(A)+r)-s)*(h-s))<(i=((u=o*Math.cos(P)+i)-a)*(u-a)+((A=o*Math.sin(P)+r)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(I+k)*T+S,d=Math.sin(I+k)*M+C;break;case OC.R:b=Gh(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,RC);break;case OC.Z:b=Hh(p,d,f,g,v,_,RC,!0),p=f,d=g}b<y&&(y=b,n.set(RC[0],RC[1]))}return y}function Uh(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||LC,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&Ke([],h),p=e.get("length2")||0;u&&BC.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=b=w=x=_=v=m=void 0,y),v=0,_=s,x=EC,w=zC,b=_.width,S=_.height;switch(m){case"top":x.set(_.x+b/2,_.y-v),w.set(0,-1);break;case"bottom":x.set(_.x+b/2,_.y+S+v),w.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),w.set(-1,0);break;case"right":x.set(_.x+b+v,_.y+S/2),w.set(1,0)}iy.scaleAndAdd(NC,EC,zC,p),NC.transform(c),y=t.getBoundingRect(),y=u?u.distance(NC):t instanceof Bm?Wh(NC,t.path,BC):(m=BC,d=Gh((d=y).x,y.y,y.width,y.height,NC.x,NC.y,RC),m.set(RC[0],RC[1]),d),y<l&&(l=y,NC.transform(h),BC.transform(h),BC.toArray(o[0]),NC.toArray(o[1]),EC.toArray(o[2]))}i=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,EC.fromArray(i[0]),NC.fromArray(i[1]),BC.fromArray(i[2]),iy.sub(zC,EC,NC),iy.sub(FC,BC,NC),e=zC.len(),f=FC.len(),e<.001||f<.001||(zC.scale(1/e),FC.scale(1/f),e=zC.dot(FC),Math.cos(r)<e&&(f=Hh(NC.x,NC.y,BC.x,BC.y,EC.x,EC.y,VC,!1),HC.fromArray(VC),HC.scaleAndAdd(FC,f/Math.tan(Math.PI-r)),e=BC.x!==NC.x?(HC.x-NC.x)/(BC.x-NC.x):(HC.y-NC.y)/(BC.y-NC.y),isNaN(e)||(e<0?iy.copy(HC,NC):1<e&&iy.copy(HC,BC),HC.toArray(i[1]))))),n.setShape({points:o})}}}function jh(t,e,n,i){var r="normal"===n,n=r?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());r?t.useStyle(e):n.style=e}function Yh(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=Of(i[0],i[1]),r=Of(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=ot([],i[1],i[0],n/e),n=ot([],i[1],i[2],n/r),r=ot([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var o=1;o<i.length;o++)t.lineTo(i[o][0],i[o][1])}function Xh(t){for(var e=[],n=0;n<t.length;n++){var i,r,o,a,s,l,u=t[n];u.defaultAttr.ignore||(r=(i=u.label).getComputedTransform(),o=i.getBoundingRect(),a=!r||r[1]<1e-5&&r[2]<1e-5,l=i.style.margin||0,(s=o.clone()).applyTransform(r),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new D_(o,r):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:o,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:r}))}return e}function qh(t,e,n,i,r,o){function a(){_=w.rect[e]-i,x=r-b.rect[e]-b.rect[n]}function s(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(l(e*n,0,c),(e+=t)<0&&u(-e*n,1)):u(-t*n,1))}function l(n,i,r){0!==n&&(d=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;s<c;s++){var u=t[s-1].rect,u=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(u),a+=u}if(a){var h=Math.min(Math.abs(i)/a,r);if(0<i)for(s=0;s<c-1;s++)l(o[s]*h,0,s+1);else for(s=c-1;0<s;s--)l(-o[s-1]*h,s,c)}}function h(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(c-1))),i=0;i<c-1;i++)if(0<e?l(n,0,i+1):l(-n,c-i-1,c),(t-=n)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p=0,d=!1,f=0,g=0;g<c;g++){var y,m=t[g],v=m.rect;(y=v[e]-p)<0&&(v[e]-=y,m.label[e]-=y,d=!0),f+=Math.max(-y,0),p=v[e]+v[n]}0<f&&o&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&u(-_,.8),x<0&&u(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&h(-_),x<0&&h(x),d}}function Zh(t){function e(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var n=[],i=(t.sort(function(t,e){return e.priority-t.priority}),new py(0,0,0,0)),r=0;r<t.length;r++){for(var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine,c=(i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05,o.obb),p=!1,d=0;d<n.length;d++){var f=n[d];if(i.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new D_(f.localRect,f.transform)),(c=c||new D_(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function Kh(t,e){var n=t.label,e=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:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}function $h(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function Qh(){this._labelList=[],this._chartViewList=[]}function Jh(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(qC(e).labelManager||(qC(e).labelManager=new XC)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=qC(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function tc(t,e,n){var i=df.createCanvas(),r=e.getWidth(),e=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=e*n,i}function ec(t,e,n){var i,r=ZC.call(this)||this,t=(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,n=n||Yg,"string"==typeof t?i=tc(t,e,n):T(t)&&(t=(i=t).id),r.id=t,(r.dom=i).style);return t&&(Y(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=n,r}function nc(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=l({},n||{}),this.dpr=n.devicePixelRatio||Yg,this._singleCanvas=r,(this.root=t).style&&(Y(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new KC(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[$C]=o).zlevel=$C,e.push($C),this._domRoot=t):(this._width=El(t,0,n),this._height=El(t,1,n),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}function ic(){var t=null!==JC&&JC.apply(this,arguments)||this;return t.type="dataset",t}function rc(){var t=null!==eT&&eT.apply(this,arguments)||this;return t.type="dataset",t}function oc(t){t.registerComponentModel(tT),t.registerComponentView(nT)}function ac(){var t=null!==iT&&iT.apply(this,arguments)||this;return t.type=ac.type,t.hasSymbolVisual=!0,t}function sc(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=ls(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;a<i.length;a++)o.push(ls(t,e,i[a]));return o.join(" ")}}function lc(t,e,n,i){var r=oT.call(this)||this;return r.updateData(t,e,n,i),r}function uc(t,e){this.parent.drift(t,e)}function hc(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 cc(t){return(t=null==t||T(t)?t:{isIgnore:t})||{}}function pc(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Do(t),cursorStyle:t.get("cursor")}}function dc(t){this.group=new wy,this._SymbolCtor=t||aT}function fc(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]),n}(r,n),i=i.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(i),s="x"===r||"radius"===r?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return zu(e,t[0])&&(l=!0,t[0]=u),zu(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:r,baseAxisDim:i,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gc(t,e,n,i){var r=NaN,o=(t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function yc(t,e){return isNaN(t)||isNaN(e)}function mc(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(r<=d||d<0)break;if(yc(g,y)){if(l){d+=o;continue}break}if(d===n)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<i;)f++,d+=o,x=e[2*(_+=o)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;yc(x,w)&&b<i;)b++,x=e[2*(_+=o)],w=e[2*_+1];var S,C,T,M,I,k,D,A,P,m=0,v=0,O=void 0,L=void 0;i<=b||yc(x,w)?(D=g,A=y):(m=x-u,v=w-h,S=g-u,C=x-g,T=y-h,M=w-y,k=I=void 0,L="x"===s?(D=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,A=y,O=g+P*(k=Math.abs(C))*a,y):"y"===s?(A=y-(P=0<v?1:-1)*(I=Math.abs(T))*a,O=D=g,y+P*(k=Math.abs(M))*a):(I=Math.sqrt(S*S+T*T),D=g-m*a*(1-(S=(k=Math.sqrt(C*C+M*M))/(k+I))),A=y-v*a*(1-S),L=y+v*a*S,O=uT(O=g+m*a*S,hT(x,g)),L=uT(L,hT(w,y)),O=hT(O,uT(x,g)),A=y-(v=(L=hT(L,uT(w,y)))-y)*I/k,D=uT(D=g-(m=O-g)*I/k,hT(u,g)),A=uT(A,hT(h,y)),O=g+(m=g-(D=hT(D,uT(u,g))))*k/I,y+(v=y-(A=hT(A,uT(h,y))))*k/I)),t.bezierCurveTo(c,p,D,A,g,y),c=O,p=L}else t.lineTo(g,y)}u=g,h=y,d+=o}return f}function vc(t){return t=sT.call(this,t)||this,t.type="ec-polyline",t}function _c(){return null!==dT&&dT.apply(this,arguments)||this}function xc(t){return t=gT.call(this,t)||this,t.type="ec-polygon",t}function wc(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function bc(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 Sc(t,e){var t=bc(t),n=t[0],t=t[1],e=bc(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Cc(t){return C(t)?t:t?.5:0}function Tc(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,r=[],o=0,a=[],s=[],l=[];o<t.length-2;o+=2)switch(l[0]=t[o+2],l[1]=t[o+3],s[0]=t[o],s[1]=t[o+1],r.push(s[0],s[1]),n){case"end":a[i]=l[i],a[1-i]=s[1-i],r.push(a[0],a[1]);break;case"middle":var u=[];a[i]=u[i]=(s[i]+l[i])/2,a[1-i]=s[1-i],u[1-i]=l[1-i],r.push(a[0],a[1]),r.push(u[0],u[1]);break;default:a[i]=s[i],a[1-i]=l[1-i],r.push(a[0],a[1])}return r.push(t[o++],t[o++]),r}function Mc(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=i.length-1;0<=o;o--){var a,s=t.getDimensionInfo(i[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=i[o];break}}if(r){var l=e.getAxis(a),e=g(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=r.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){function n(t,e,n){var i=t.coord;return{coord:n,color:he((n-i)/(e.coord-i),[t.color,e.color])}}for(var i,r,o=[],a=t.length,s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)i=l;else{if(e<u){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}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;return d<.001?"transparent":(f(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"}),e=new b_(0,0,0,0,n,!0),e[a]=p,e[a+"2"]=u,e)}}}function Ic(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var r,o,a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),r=(isNaN(i)&&(i=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*aT.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return r=e.mapDimension(a.dim),o={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function kc(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function Dc(t,e){return[t[2*e],t[2*e+1]]}function Ac(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<hv.length;e++)if(t.get([hv[e],"endLabel","show"]))return 1}function Pc(t,e,n,i){var r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},x=Ac(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,l=e.getBaseAxis().isHorizontal(),h=n,c=i,p=function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(u=e).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||2,f-=v/2,g-=v/2,y+=v,m+=v,f=Math.floor(f),y=Math.round(y),_=new qm({shape:{x:f,y:g,width:y,height:m}}),h&&(h=(v=u.getBaseAxis()).isHorizontal(),u=v.inverse,h?(u&&(_.shape.x+=y),_.shape.width=0):(u||(_.shape.y+=m),_.shape.height=0),v=w(d)?function(t){d(t,_)}:null,eo(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,v)),h=_,i.get("clip",!0)||(u=h.shape,y=Math.max(u.width,u.height),l?(u.y-=y,u.height+=2*y):(u.x-=y,u.width+=2*y)),x&&x(1,h),h):(m=n,f=i,c=(g=e).getArea(),p=Sn(c.r0,1),v=Sn(c.r,1),l=new $v({shape:{cx:Sn(g.cx,1),cy:Sn(g.cy,1),r0:p,r:v,startAngle:c.startAngle,endAngle:c.endAngle,clockwise:c.clockwise}}),m&&("angle"===g.getBaseAxis().dim?l.shape.endAngle=c.startAngle:l.shape.r=p,eo(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Oc(){return null!==mT&&mT.apply(this,arguments)||this}function Lc(){return null!==wT&&wT.apply(this,arguments)||this}function Rc(){return null!==ST&&ST.apply(this,arguments)||this}function Ec(t,e,i,r){f(MT,function(o,a){function l(){var t=null!==u&&u.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var u,h=s(s({},TT[a],!0),r,!0),h=(n(l,u=i),l.prototype.mergeDefaultAndTheme=function(t,e){var n=ga(this),i=n?ma(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=Nc(t),n&&ya(t,i,n)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=KS.createByAxisModel(this))},l.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=e+"Axis."+a,l.defaultOption=h,l);t.registerComponentModel(h)}),t.registerSubTypeDefaulter(e+"Axis",Nc)}function Nc(t){return t.type||(t.data?"category":"value")}function Bc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function zc(t){return"interval"===t.type||"time"===t.type}function Fc(){var t=null!==kT&&kT.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=IT,t}function Vc(t,e,n,i,r){return t=AT.call(this,t,e,n)||this,t.index=0,t.type=i||"value",t.position=r||"bottom",t}function Hc(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),L(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}function Gc(t){return"cartesian2d"===t.get("coordinateSystem")}function Wc(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(n,i){var r=i.replace(/Model$/,""),r=t.getReferringComponents(r,Oy).models[0];e[i]=r}),e}function Uc(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IT,this._initCartesian(t,e,n),this.model=t}function jc(t,e){return t.getCoordSysModel()===e}function Yc(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)Xc(a[n])&&(o=a[n]);else for(var s in a)if(a.hasOwnProperty(s)&&Xc(a[s])&&!i[r(a[s])]){o=a[s];break}o&&(i[r(o)]=!0)}}function Xc(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function qc(t,e){this.group=new wy,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new wy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function Zc(t){t&&(t.ignore=!0)}function Kc(t,e){var n,i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r)return qe(n=Ue([]),n,-t.rotation),i.applyTransform(Ye([],n,t.getLocalTransform())),r.applyTransform(Ye([],n,e.getLocalTransform())),i.intersect(r)}function $c(t){return"middle"===t||"center"===t}function Qc(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(at(a,a,e),at(s,s,e)),new h_({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));u.anid=r+"_"+t[l].tickValue,o.push(u)}return o}function Jc(t,e){var n,i,r,o,s,l,h,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=c,e=e,r=(i=t).getComponent("tooltip"),o=i.getComponent("axisPointer"),s=o.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,r,p){var d,g=p.model.getModel("axisPointer",o),y=g.get("show");y&&("auto"!==y||e||np(g))&&(null==r&&(r=g.get("triggerTooltip")),y=(g=e?function(t,e,n,i,r,o){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!o,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===r&&(r=s.get(["label","show"]),e.show=null==r||r,o||(r=l.lineStyle=s.get("crossStyle"))&&u(e,r.textStyle)),t.model.getModel("axisPointer",new J_(l,n,i))}(p,c,o,i,e,r):g).get("snap"),e=ip(p.model),d=r||y||"category"===p.type,r=n.axesInfo[e]={key:e,axis:p,coordSys:t,axisPointerModel:g,triggerTooltip:r,involveSeries:d,snap:y,useHandle:np(g),seriesModels:[],linkGroup:null},h[e]=r,n.seriesInvolved=n.seriesInvolved||d,null!=(y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(tp(o[i+"AxisId"],n.id)||tp(o[i+"AxisIndex"],n.componentIndex)||tp(o[i+"AxisName"],n.name))return r}}(s,p)))&&((g=l[y]||(l[y]={axesInfo:{}})).axesInfo[e]=r,g.mapper=s[y].mapper,r.linkGroup=g)}var h,c,p,d,g;t.axisPointerEnabled&&(p=ip(t.model),h=n.coordSysAxesInfo[p]={},c=(n.coordSysMap[p]=t).model.getModel("tooltip",r),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&r&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(h=c,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&f(h.coordSysAxesInfo[ip(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),c}function tp(t,e){return"all"===t||x(t)&&0<=h(t,e)||t===e}function ep(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ip(t)]}function np(t){return!!t.get(["handle","show"])}function ip(t){return t.type+"||"+t.id}function rp(){var t=null!==LT&&LT.apply(this,arguments)||this;return t.type=rp.type,t}function op(){var t=null!==RT&&RT.apply(this,arguments)||this;return t.type=op.type,t.axisPointerClass="CartesianAxisPointer",t}function ap(){var t=null!==ET&&ET.apply(this,arguments)||this;return t.type=ap.type,t}function sp(){var t=null!==XT&&XT.apply(this,arguments)||this;return t.type=YT.type,t}function lp(){var t=null!==ZT&&ZT.apply(this,arguments)||this;return t.type="grid",t}function up(){var t=null!==QT&&QT.apply(this,arguments)||this;return t.type=up.type,t.layoutMode={type:"box",ignoreSize:!0},t}function hp(){var t=null!==tM&&tM.apply(this,arguments)||this;return t.type=hp.type,t}function cp(){var t=null!==nM&&nM.apply(this,arguments)||this;return t.type=cp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function pp(){var t=null!==iM&&iM.apply(this,arguments)||this;return t.type=pp.type,t.newlineDisabled=!1,t}function dp(t,e,n,i){yp(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),gp(t,e,n,i)}function fp(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function gp(t,e,n,i){fp(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function yp(t,e,n,i){fp(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function mp(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function vp(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),f(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),r.hasOwnProperty(t)?r[t]=r[t]&&e:r[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function _p(t){t.registerComponentModel(rM),t.registerComponentView(lM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,mp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(vp,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(vp,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(vp,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(vp,"select")),t.registerAction("legendUnSelect","legendunselected",_(vp,"unSelect"))}function xp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=xp.type,t}function wp(t,e,n){var i=[1,1];i[t.getOrient().index]=0,ya(e,n,{type:"box",ignoreSize:!!i})}function bp(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.type=bp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Sp(){this._dragging=!1,this.animationThreshold=15}function Cp(t,e,n,i){!function t(e,n){var i;return T(e)&&T(n)?(i=!0,f(n,function(n,r){i=i&&t(e[r],n)}),!!i):e===n}(yM(n).lastProp,i)&&(yM(n).lastProp=i,e?to(n,i,t):(n.stopAnimation(),n.attr(i)))}function Tp(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Mp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Ip(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 kp(t,e,n,i,r){var o=Dp(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=yx(n.get("padding")||0),s=n.getFont(),l=on(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Ao(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function Dp(t,e,n,i,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:gh(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)}),b(r)?a=r.replace("{value}",a):w(r)&&(a=r(o))),a}function Ap(t,e,n){var i=We();return qe(i,i,n.rotation),Xe(i,i,n.position),yo([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Pp(){return null!==_M&&_M.apply(this,arguments)||this}function Op(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function Lp(t){return"x"===t.dim?0:1}function Rp(){var t=null!==bM&&bM.apply(this,arguments)||this;return t.type=Rp.type,t}function Ep(t,e,n){function i(t,e){o.on(t,function(t){function n(t){var e=r[t.type];e?e.push(t):(t.dispatchAction=n,i.dispatchAction(t))}i=a;var i,r,s={dispatchAction:n,pendings:r={showTip:[],hideTip:[]}};TM(CM(o).records,function(n){n&&e(n,t,s.dispatchAction)});var l,u=s.pendings,h=a,c=u.showTip.length,p=u.hideTip.length;c?l=u.showTip[c-1]:p&&(l=u.hideTip[p-1]),l&&(l.dispatchAction=null,h.dispatchAction(l))})}var r,o,a;af.node||(r=e.getZr(),CM(r).records||(CM(r).records={}),a=e,CM(o=r).initialized||(CM(o).initialized=!0,i("click",_(Bp,"click")),i("mousemove",_(Bp,"mousemove")),i("globalout",Np)),(CM(r).records[t]||(CM(r).records[t]={})).handler=n)}function Np(t,e,n){t.handler("leave",null,n)}function Bp(t,e,n,i){e.handler(t,n,i)}function zp(t,e){af.node||(e=e.getZr(),(CM(e).records||{})[t]&&(CM(e).records[t]=null))}function Fp(){var t=null!==MM&&MM.apply(this,arguments)||this;return t.type=Fp.type,t}function Vp(t,e){var n,i,r,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Zn(n=e.getData(),t))||s<0||x(s)?{point:[]}:(i=n.getItemGraphicEl(s),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(n.getValues(g(r.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}function Hp(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||If(n.dispatchAction,n),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return Yp(x)&&(x=Vp({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),i=Yp(x),r=w.axesInfo,o=S.axesInfo,a="leave"===v||Yp(x),s={},e={list:[],map:{}},u={showPointer:_(Wp,l={}),showTooltip:_(Up,e)},f(S.coordSysMap,function(t,e){var n=i||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var o=t.axis,l=function(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}}(r,t);a||!n||r&&!l||null!=(l=null!=(l=l&&l.value)||i?l:o.pointToData(x))&&Gp(t,l,u,!1,s)})}),h={},f(o,function(t,e){var n=t.linkGroup;n&&!l[e]&&f(n.axesInfo,function(e,i){var i=l[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,jp(e),jp(t)))),h[t.key]=i)})}),f(h,function(t,e){Gp(o[e],t,u,!0,s)}),c=l,w=o,p=s.axesInfo=[],f(w,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),v=e,w=t,e=b,Yp(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=o,w=(t=n).getZr(),b="axisPointerLastHighlights",d=kM(w)[b]||{},g=kM(w)[b]={},f(e,function(t,e){t=t.axisPointerModel.option,"show"===t.status&&f(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),y=[],m=[],f(d,function(t,e){g[e]||m.push(t)}),f(g,function(t,e){d[e]||y.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function Gp(t,e,n,i,r){var o,a,s,u,h,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,u=s.dim,h=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData)var r=t.getAxisTooltipData(i,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=t.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;r=t.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=a-r,(n=Math.abs(i))<=p)&&((n<p||0<=i&&d<0)&&(p=n,d=i,h=r,c.length=0),f(o,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(o={payloadBatch:c,snapToValue:h}).snapToValue,(g=o.payloadBatch)[0]&&null==r.seriesIndex&&l(r,g[0]),!i&&t.snap&&m.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,o,y)):n.showPointer(t,e))}function Wp(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Up(t,e,n,i){var r,o,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(r=ip(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function jp(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function Yp(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Xp(t){HT.registerAxisPointerClass("CartesianAxisPointer",xM),t.registerComponentModel(SM),t.registerComponentView(IM),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!x(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Jc(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Hp)}function qp(){var t=null!==DM&&DM.apply(this,arguments)||this;return t.type=qp.type,t}function Zp(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function Kp(t){if(af.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}function $p(t,e){if(!t)return e;e=oa(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}function Qp(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return af.transformSupported?(i="translate"+((i=af.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+LM+":"+i+";":[["top",0],["left",0],[PM,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function Jp(t,e,n){var i,r,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=js(t,"html");return o.push("box-shadow:"+h+"px "+c+"px "+l+"px "+u),e&&a&&o.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,n||(l=" "+h+"s "+c,u+=af.transformSupported?","+LM+l:",left"+l+",top"+l),OM+":"+u)),s&&o.push("background-color:"+s),f(["width","color","radius"],function(e){var n="border-"+e,i=oa(n),i=t.get(i);null!=i&&o.push(n+":"+i+("color"===e?"":"px"))}),o.push((r=[],e=(i=p).get("fontSize"),(a=i.getTextColor())&&r.push("color:"+a),r.push("font:"+i.getFont()),e&&r.push("line-height:"+Math.round(3*e/2)+"px"),a=i.get("textShadowColor"),e=i.get("textShadowBlur")||0,n=i.get("textShadowOffsetX")||0,h=i.get("textShadowOffsetY")||0,a&&e&&r.push("text-shadow:"+n+"px "+h+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=i.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=d&&o.push("padding:"+yx(d).join("px ")+"px"),o.join(";")+";"}function td(t,e,n,i,r){var o,a,s=e&&e.painter;n?(n=s&&s.getViewportRoot())&&(o=t,a=document.body,dt(Vf,n,i,r,!0))&&dt(o,a,Vf[0],Vf[1]):(t[0]=i,t[1]=r,(n=s&&s.getViewportRootOffset())&&(t[0]+=n.offsetLeft,t[1]+=n.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ed(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,af.wxa)return null;var i=document.createElement("div"),r=(i.domBelongToZr=!0,this.el=i,this._zr=e.getZr()),n=this._appendToBody=n&&n.appendToBody,o=(td(this._styleCoord,r,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t,this);i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=r.handler,vt(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}function nd(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),od(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function id(t){return Math.max(0,t)}function rd(t){var e=id(t.shadowBlur||0),n=id(t.shadowOffsetX||0),t=id(t.shadowOffsetY||0);return{left:id(e-n),right:id(e+n),top:id(e-t),bottom:id(e+t)}}function od(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ad(){var t=null!==NM&&NM.apply(this,arguments)||this;return t.type=ad.type,t}function sd(t,e,n){for(var i=e.ecModel,r=n?(r=new J_(n,i,i),new J_(e.option,r,i)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(b(a=a instanceof J_?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new J_(a,r,i))}return r}function ld(t,e){return t.dispatchAction||If(e.dispatchAction,e)}function ud(t){return"center"===t||"middle"===t}function hd(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&Bn("")}function cd(){}function pd(){}function dd(){}function fd(){}function gd(){}function yd(t,e){if(!0===t||!1===t)return(n=new GM).value=t,n;var n;if(vd(t)||Bn(""),t.and)return md("and",t,e);if(t.or)return md("or",t,e);if(t.not)return n=e,vd(o=(o=t).not)||Bn(""),(l=new jM).child=yd(o,n),l.child||Bn(""),l;for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=v(i),l=i.parser,u=l?ys(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=X(VM,p)?VM[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Ow("eq"===t,e):X(Dw,t)?new Aw(t,e):null}(c,p)||"reg"===c&&new HM(p))||Bn(""),a.push(c))}return a.length||Bn(""),(l=new YM).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a,l}function md(t,e,n){return e=e[t],x(e)||Bn(""),e.length||Bn(""),t=new("and"===t?WM:UM),t.children=g(e,function(t){return yd(t,n)}),t.children.length||Bn(""),t}function vd(t){return T(t)&&!d(t)}function _d(t,e){this._cond=yd(t,e)}function xd(){}function wd(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof Wm)t("opacity",r);else if(null!=(o=(o=e).fill)&&o!==iI?(t("fill",(o=de(e.fill)).color),o=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r,(i||o<1)&&t("fill-opacity",o)):t("fill",iI),null!=(o=(o=e).stroke)&&o!==iI){var o=de(e.stroke),a=(t("stroke",o.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,o=null!=e.strokeOpacity?e.strokeOpacity*o.opacity*r:o.opacity*r,r=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||r)&&t("paint-order",r?"stroke":"fill"),(i||o<1)&&t("stroke-opacity",o),e.lineDash?(r=(a=Nl(n))[0],o=a[1],r&&(o=rI(o||0),t("stroke-dasharray",r.join(",")),o||i)&&t("stroke-dashoffset",o)):i&&t("stroke-dasharray",iI);for(var s=0;s<oI.length;s++){var l=oI[s];(i||e[l]!==Rm[l])&&(l=e[l]||Rm[l])&&t(aI[s],l)}}else i&&t("stroke",iI)}function bd(t){return document.createElementNS(sI,t)}function Sd(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function Cd(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i];!1!==r&&(!0!==r&&null!=r&&(i+='="'+r+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(r,e.attrs)+(e.text||"")+(i?n+g(i,t).join(n)+n:"")+"</"+r+">"}(t)}function Td(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Md(t,e,n,i){return Sd("svg","root",{width:t,height:e,xmlns:sI,"xmlns:xlink":lI,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}function Id(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function kd(t){return b(t)?cI[t]?"cubic-bezier("+cI[t]+")":Xt(t)?t:"":""}function Dd(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof __){if(u=function(t,e,n){var i,r,t=t.shape.paths,o={};if(f(t,function(t){var e=Td(n.zrId),t=(e.animation=!0,Dd(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,u,h=t[r=e[s-1]];for(l in h){var c=h[l];o[l]=o[l]||{d:""},o[l].d+=c.d||""}for(u in a){var p=a[u].animation;0<=p.indexOf(r)&&(i=p)}}}),i)return e.d=!1,t=Id(o,n),i.replace(r,t)}(t,e,n))a.push(u);else if(!o)return}else if(!o)return;for(var s,u,h,c={},p=0;p<o;p++){var d=r[p],g=[d.getMaxTime()/1e3+"s"],y=kd(d.getClip().easing),_=d.getDelay(),y=(g.push(y||"linear"),_&&g.push(_/1e3+"s"),d.getLoop()&&g.push("infinite"),g.join(" "));c[y]=c[y]||[y,[]],c[y][1].push(d)}for(s in c)(u=function(r){function o(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/r*100)+"%",p=kd(h.easing),d=h.rawValue;(b(d)||C(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,u=r[1],h=u.length,c={},p={},d={},f="animation-timing-function",g=0;g<h;g++)(O=(P=u[g]).targetName)?"shape"===O&&o(P,p):i||o(P,c);for(A in c){var y={},_=(Je(y,t),l(y,c[A]),be(y)),x=c[A][f];d[A]=_?{transform:_}:{},_=d[A],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[pI]=a+"px "+y+"px"),x&&(d[A][f]=x)}var w,S,T,M=!0;for(A in p){d[A]=d[A]||{};var I=!s,x=p[A][f],k=(s=I?new Mm:s).len(),D=(s.reset(),d[A].d=(S=p[A],T=s,D=void 0,D=l({},(w=t).shape),l(D,S),w.buildPath(T,D),(S=new nI).reset(we(w)),T.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==D){M=!1;break}x&&(d[A][f]=x)}if(!M)for(var A in d)delete d[A].d;if(!i)for(var P,O,g=0;g<h;g++)"style"===(O=(P=u[g]).targetName)&&o(P,d,function(t){return dI[t]});for(var L,R=v(d),E=!0,g=1;g<R.length;g++){var N=R[g-1],B=R[g];if(d[N][pI]!==d[B][pI]){E=!1;break}L=d[N][pI]}if(E&&L){for(var A in d)d[A][pI]&&delete d[A][pI];e[pI]=L}if(m(R,function(t){return 0<v(d[t]).length}).length)return Id(d,n)+" "+r[0]+" both"}(c[s]))&&a.push(u);a.length&&(h=n.zrId+"-cls-"+n.cssClassIdx++,n.cssNodes["."+h]={animation:a.join(",")},e.class=h)}function Ad(t){return t&&b(t.src)}function Pd(t){return t&&w(t.toDataURL)}function Od(t,e,n,i){wd(function(r,o){var a,s,l,u,h,c,p,d="fill"===r||"stroke"===r;if(d&&(g=o)&&("linear"===g.type||"radial"===g.type)){var f,g=t,y=r,m=i,v={gradientUnits:(I=(I=e)[y]).global?"userSpaceOnUse":"objectBoundingBox"};if(ve(I))f="linearGradient",v.x1=I.x,v.y1=I.y,v.x2=I.x2,v.y2=I.y2;else{if(!_e(I))return;f="radialGradient",v.cx=R(I.x,.5),v.cy=R(I.y,.5),v.r=R(I.r,.5)}for(var _=I.colorStops,x=[],w=0,S=_.length;w<S;++w){var C=100*ye(_[w].offset)+"%",T=de(_[w].color),M=T.color,T=T.opacity,C={offset:C};C["stop-color"]=M,T<1&&(C["stop-opacity"]=T),x.push(Sd("stop",w+"",C))}var I=Cd(Sd(f,"",v,x)),k=m.gradientCache,D=k[I];D||(D=m.zrId+"-g"+m.gradientIdx++,k[I]=D,v.id=D,m.defs[D]=Sd(f,D,v,x)),g[y]=xe(D)}else d&&(me(k=o)||(k=k)&&k.svgElement)?(I=t,m=r,f=i,g=(v=n).style[m],y={patternUnits:"userSpaceOnUse"},me(g)?(l=g.imageWidth,u=g.imageHeight,h=void 0,b(p=g.image)?h=p:Ad(p)?h=p.src:Pd(p)&&(h=p.toDataURL()),"undefined"==typeof Image?(z(l,p="Image width/height must been given explictly in svg-ssr renderer."),z(u,p)):null!=l&&null!=u||(c=function(t,e){var n,i;t&&(n=t.elm,i=t.attrs.width=l||e.width,t=t.attrs.height=u||e.height,n)&&(n.setAttribute("width",i),n.setAttribute("height",t))},(p=hi(h,null,v,function(t){c(s,t),c(a,t)}))&&p.width&&p.height&&(l=l||p.width,u=u||p.height)),a=Sd("image","img",{href:h,width:l,height:u}),y.width=l,y.height=u):g.svgElement&&(a=g.svgElement,y.width=g.svgWidth,y.height=g.svgHeight),a&&(y.patternTransform=be(g),s=Sd("pattern","",y,[a]),v=Cd(s),p=f.patternCache,(h=p[v])||(h=f.zrId+"-p"+f.patternIdx++,p[v]=h,y.id=h,s=f.defs[h]=Sd("pattern",h,y,[a])),I[m]=xe(h))):t[r]=o},e,n,!1);var r=t,o=i;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(u=n).style)){var a=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(u),s=o.shadowCache,l=s[a];if(!l){var u=u.getGlobalScale(),h=u[0],u=u[1];if(!h||!u)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=de(f.shadowColor),g=f.opacity,f=f.color,d=d/2/h+" "+d/2/u;l=o.zrId+"-s"+o.shadowIdx++,o.defs[l]=Sd("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Sd("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}r.filter=xe(l)}}function Ld(t){return fe(t[0]-1)&&fe(t[1])&&fe(t[2])&&fe(t[3]-1)}function Rd(t,e,n){var i;!e||fe((i=e)[4])&&fe(i[5])&&Ld(e)||(i=n?10:1e4,t.transform=Ld(e)?"translate("+fI(e[4]*i)/i+" "+fI(e[5]*i)/i+")":"matrix("+ge((n=e)[0])+","+ge(n[1])+","+ge(n[2])+","+ge(n[3])+","+ye(n[4])+","+ye(n[5])+")")}function Ed(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(fI(i[o][0]*n)/n),r.push(fI(i[o][1]*n)/n);e.points=r.join(" ")}function Nd(t){return!t.smooth}function Bd(t,e){var n,i,r,o=t.style,a=t.shape,s=gI[t.type],l={},u=e.animation,h="path",c=t.style.strokePercent,p=e.compress&&we(t)||4;return!s||e.willUpdate||s[1]&&!s[1](a)||u&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||c<1?(t.path||t.createPathProxy(),u=t.path,t.shapeChanged()&&(u.beginPath(),t.buildPath(u,t.shape),t.pathUpdated()),n=u.getVersion(),r=(i=t).__svgPathBuilder,i.__svgPathVersion===n&&r&&c===i.__svgPathStrokePercent||((r=r||(i.__svgPathBuilder=new nI)).reset(p),u.rebuildPath(r,c),r.generateStr(),i.__svgPathVersion=n,i.__svgPathStrokePercent=c),l.d=r.getStr()):(h=t.type,u=Math.pow(10,p),s[0](a,l,u)),Rd(l,t.transform),Od(l,o,t,e),e.animation&&Dd(t,l,e),Sd(h,t.id+"",l)}function zd(t,e){if(t instanceof Bm)return Bd(t,e);if(t instanceof Wm){var n=t,i=e,r=n.style,o=r.image;if(o&&!b(o)&&(Ad(o)?o=o.src:Pd(o)&&(o=o.toDataURL())),o)return a=r.x||0,s=r.y||0,o={href:o,width:r.width,height:r.height},a&&(o.x=a),s&&(o.y=s),Rd(o,n.transform),Od(o,r,n,i),i.animation&&Dd(n,o,i),Sd("image",n.id+"",o)}else if(t instanceof Fm){var a=t,s=e,r=a.style,i=r.text;if(null!=i&&(i+=""),i&&!isNaN(r.x)&&!isNaN(r.y)){var n=r.font||cf,o=r.x||0,l=(t=r.y||0,e=ln(n),"top"===(l=r.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":Tg[r.textAlign]||r.textAlign};if(Fi(r)){var t="",u=r.fontStyle,h=Bi(r.fontSize);if(!parseFloat(h))return;var c=r.fontFamily||hf,p=r.fontWeight;t+="font-size:"+h+";font-family:"+c+";",u&&"normal"!==u&&(t+="font-style:"+u+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),o&&(e.x=o),l&&(e.y=l),Rd(e,a.transform),Od(e,r,a,s),s.animation&&Dd(a,e,s),Sd("text",a.id+"",e,void 0,i)}}}function Fd(t){return document.createTextNode(t)}function Vd(t,e,n){t.insertBefore(e,n)}function Hd(t,e){t.removeChild(e)}function Gd(t,e){t.appendChild(e)}function Wd(t){return t.parentNode}function Ud(t){return t.nextSibling}function jd(t,e){t.textContent=e}function Yd(t){return void 0===t}function Xd(t){return void 0!==t}function qd(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Zd(t){var e,n=t.children,i=t.tag;if(Xd(i)){var r=t.elm=bd(i);if(Qd(vI,t),x(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&Gd(r,Zd(o))}else Xd(t.text)&&!T(t.text)&&Gd(r,Fd(t.text))}else t.elm=Fd(t.text);return t.elm}function Kd(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&Vd(t,Zd(o),e)}}function $d(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(Xd(r.tag)?Hd(Wd(r.elm),r.elm):Hd(t,r.elm))}}function Qd(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==mI?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(uI,n,a):n.charCodeAt(3)===yI?i.setAttributeNS(hI,n,a):n.charCodeAt(5)===yI?i.setAttributeNS(lI,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function Jd(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,p=n[0],d=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==p?p=n[++s]:null==d?d=n[--c]:qd(u,p)?(tf(u,p),u=e[++a],p=n[++s]):qd(h,d)?(tf(h,d),h=e[--l],d=n[--c]):qd(u,d)?(tf(u,d),Vd(t,u.elm,Ud(h.elm)),u=e[++a],d=n[--c]):(qd(h,p)?(tf(h,p),Vd(t,h.elm,u.elm),h=e[--l]):(Yd(i)&&(i=function(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}(e,a,l)),Yd(r=i[p.key])||(o=e[r]).tag!==p.tag?Vd(t,Zd(p),u.elm):(tf(o,p),e[r]=void 0,Vd(t,o.elm,u.elm))),p=n[++s]);(a<=l||s<=c)&&(l<a?Kd(t,null==n[c+1]?null:n[c+1].elm,n,s,c):$d(t,e,a,l))}function tf(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Qd(t,e),Yd(e.text)?Xd(i)&&Xd(r)?i!==r&&Jd(n,i,r):Xd(r)?(Xd(t.text)&&jd(n,""),Kd(n,null,r,0,r.length-1)):Xd(i)?$d(n,i,0,i.length-1):Xd(t.text)&&jd(n,""):t.text!==e.text&&(Xd(i)&&$d(n,i,0,i.length-1),jd(n,e.text)))}function ef(t,e,n){var i;this.type="svg",this.refreshHover=nf(),this.configLayer=nf(),this.storage=e,this._opts=n=l({},n),this.root=t,this._id="zr"+_I++,this._oldVNode=Md(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=bd("svg"),Qd(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function nf(){return function(){}}var rf=function(t,e){return(rf=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)},of=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},af=new function(){this.browser=new of,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};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(af.wxa=!0,af.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?af.worker=!0:"undefined"==typeof navigator?(af.node=!0,af.svgSupported=!0):(Sf=navigator.userAgent,Rf=(Pf=af).browser,Mf=Sf.match(/Firefox\/([\d.]+)/),mf=Sf.match(/MSIE\s([\d.]+)/)||Sf.match(/Trident\/.+?rv:(([\d.]+))/),bf=Sf.match(/Edge?\/([\d.]+)/),Sf=/micromessenger/i.test(Sf),Mf&&(Rf.firefox=!0,Rf.version=Mf[1]),mf&&(Rf.ie=!0,Rf.version=mf[1]),bf&&(Rf.edge=!0,Rf.version=bf[1],Rf.newEdge=18<+bf[1].split(".")[0]),Sf&&(Rf.weChat=!0),Pf.svgSupported="undefined"!=typeof SVGRect,Pf.touchEventsSupported="ontouchstart"in window&&!Rf.ie&&!Rf.edge,Pf.pointerEventsSupported="onpointerdown"in window&&(Rf.edge||Rf.ie&&11<=+Rf.version),Pf.domSupported="undefined"!=typeof document,Mf=document.documentElement.style,Pf.transform3dSupported=(Rf.ie&&"transition"in Mf||Rf.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Mf)&&!("OTransition"in Mf),Pf.transformSupported=Pf.transform3dSupported||Rf.ie&&9<=+Rf.version);var sf,lf,uf=12,hf="sans-serif",cf=uf+"px "+hf,pf=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),df={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(sf||(n=df.createCanvas(),sf=n&&n.getContext("2d")),sf)return lf!==e&&(lf=sf.font=e||cf),sf.measureText(t);t=t||"",e=e||cf;var n=/^([0-9]*?)px$/.exec(e),i=+(n&&n[1])||uf,r=0;if(0<=e.indexOf("mono"))r=i*t.length;else for(var o=0;o<t.length;o++){var a=pf[t[o]];r+=null==a?i:a*i}return{width:r}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),gf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),yf=Object.prototype.toString,mf=Array.prototype,vf=mf.forEach,_f=mf.filter,xf=mf.slice,wf=mf.map,bf=function(){}.constructor,Sf=bf?bf.prototype:null,Cf="__proto__",Tf=2311,Mf=df.createCanvas,If=Sf&&w(Sf.bind)?Sf.call.bind(Sf.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(xf.call(arguments)))}},kf="__ec_primitive__";G.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},G.prototype.set=function(t,e){return this.data[t]=e},G.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},G.prototype.keys=function(){return v(this.data)},G.prototype.removeKey=function(t){delete this.data[t]};var Df=G,Af=180/Math.PI,Pf=Object.freeze({__proto__:null,HashMap:Df,RADIAN_TO_DEGREE:Af,assert:z,bind:If,clone:a,concatArray:U,createCanvas:Mf,createHashMap:W,createObject:j,curry:_,defaults:u,disableUserSelect:Y,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},guid:r,hasOwn:X,indexOf:h,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:M,isDom:k,isFunction:w,isGradientObject:D,isImagePatternObject:A,isNumber:C,isObject:T,isPrimitive:H,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:o,map:g,merge:s,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=s(n,t[i],e);return n},mixin:p,noop:q,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:R,retrieve3:E,setAsPrimitive:V,slice:N,trim:F}),Of=it,Lf=rt,Rf=Object.freeze({__proto__:null,add:$,applyTransform:at,clone:K,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Z,dist:Of,distSquare:Lf,distance:it,distanceSquare:rt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:J,lenSquare:tt,length:J,lengthSquare:tt,lerp:ot,max:lt,min:st,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:nt,scale:et,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:Q}),Ef=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Nf=(ut.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ef(e,t),"dragstart",t.event))},ut.prototype._drag=function(t){var e,n,i,r,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y,this._x=e,this._y=n,o.drift(i,r,t),this.handler.dispatchToElement(new Ef(o,t),"drag",t.event),i=this.handler.findHover(e,n,o).target,r=this._dropTarget,o!==(this._dropTarget=i))&&(r&&i!==r&&this.handler.dispatchToElement(new Ef(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new Ef(i,t),"dragenter",t.event)},ut.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ef(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ef(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ut);ht.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){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;o={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=r[t].length-1,i=r[t][e],i&&i.callAtLast?r[t].splice(e,0,o):r[t].push(o)}return this},ht.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ht.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},ht.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;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)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},ht.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;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))}}r&&r.afterTrigger&&r.afterTrigger(t)}return this};var Bf=ht,zf=Math.log(2),Ff="___zrEVENTSAVED",Vf=[],Hf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gf=[],Wf=af.browser.firefox&&+af.browser.version.split(".")[0]<39,Uf=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},jf=(_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;o<a;o++){var s=i[o],l=gt(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 Yf)if(Yf.hasOwnProperty(e)&&(e=Yf[e](this._track,t)))return e},_t),Yf={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=xt(n)/xt(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};n(bt,Xf=Bf),bt.prototype.dispose=function(){},bt.prototype.setCursor=function(){};var Xf,qf,Zf=bt,Kf=function(t,e){this.x=t,this.y=e},$f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qf=(n(St,qf=Bf),St.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f($f,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},St.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Ct(this,e,n),r=this._hovered,o=r.target,i=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target),this._hovered=i?new Kf(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==o&&this.dispatchToElement(i,"mouseover",t)},St.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})},St.prototype.resize=function(){this._hovered=new Kf(0,0)},St.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},St.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},St.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},St.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o={type:e,event:n,target:(t=t).target,topTarget:t.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:wt};i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=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)}))}},St.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new Kf(t,e),o=i.length-1;0<=o;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(!(o=!!i.ignoreClip||o)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}a=i.__hostTarget,i=a||i.parent}return!r||"silent"}return!1}(i[o],t,e))&&(r.topTarget||(r.topTarget=i[o]),"silent"!==a)){r.target=i[o];break}}return r},St.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new jf);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new Kf).target=i.target,this.dispatchToElement(n,e,i.event))},St);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Qf.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ct(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).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||4<Of(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Jf=32,tg=7,eg=1,ng=4,ig=!1;Lt.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Lt.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Lt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,At(n,Ot)},Lt.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),r=(o=r).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=eg),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else i=t,e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Pt(),i.z=0),isNaN(i.z2)&&(Pt(),i.z2=0),isNaN(i.zlevel)&&(Pt(),i.zlevel=0),this._displayList[this._displayListLen++]=i;i=t.getDecalElement&&t.getDecalElement(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextGuideLine(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextContent(),i&&this._updateAndAddDisplayable(i,e,n)}},Lt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Lt.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=h(this._roots,t);0<=i&&this._roots.splice(i,1)}},Lt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Lt.prototype.getRoots=function(){return this._roots},Lt.prototype.dispose=function(){this._displayList=null,this._roots=null};var rg=Lt,og=af.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},ag={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:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-ag.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ag.bounceIn(2*t):.5*ag.bounceOut(2*t-1)+.5}},sg=Math.pow,lg=Math.sqrt,ug=1e-8,hg=lg(3),cg=1/3,pg=Z(),dg=Z(),fg=Z(),gg=/cubic-bezier\(([0-9,\.e ]+)\)/;qt.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},qt.prototype.pause=function(){this._paused=!0},qt.prototype.resume=function(){this._paused=!1},qt.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:ag[t]||Xt(t)};var yg=qt,mg=function(t){this.value=t},vg=(Zt.prototype.insert=function(t){return t=new mg(t),this.insertEntry(t),t},Zt.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Zt.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--},Zt.prototype.len=function(){return this._len},Zt.prototype.clear=function(){this.head=this.tail=null,this._len=0},Zt);Kt.prototype.put=function(t,e){var n,i,r=this._list,o=this._map,a=null;return null==o[t]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new mg(e),n.key=t,r.insertEntry(n),o[t]=n),a},Kt.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},Kt.prototype.clear=function(){this._list.clear(),this._map={}},Kt.prototype.len=function(){return this._list.len()};var _g=Kt,xg={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]},wg=new _g(20),bg=null,Sg=Object.freeze({__proto__:null,fastLerp:ue,fastMapToColor:ue,lerp:he,lift:le,lum:pe,mapToColor:he,modifyAlpha:function(t,e){if((t=ae(t))&&null!=e)return t[3]=Qt(e),ce(t,"rgba")},modifyHSL:function(t,e,n,i){var r=ae(t);if(t)return r=function(t){var e,n,i,r,o,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),r=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=o=0:(a=r<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?o=u-l:e===i?o=1/3+s-u:n===i&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),h=[360*o,a,r],null!=t[3]&&h.push(t[3]),h}(r),null!=e&&(r[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(r[1]=te(n)),null!=i&&(r[2]=te(i)),ce(se(r),"rgba")},parse:ae,random:function(){return ce([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:ce,toHex:function(t){if(t=ae(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),Cg=Math.round,Tg={left:"start",right:"end",center:"middle",middle:"middle"},Mg=af.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(t))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},Ig=Array.prototype.slice,kg=[0,0,0,0],Dg=(Pe.prototype.isFinished=function(){return this._finished},Pe.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Pe.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Pe.prototype.getAdditiveTrack=function(){return this._additiveTrack},Pe.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,r=this.keyframes,o=r.length,a=!1,s=6,u=e,h=(d(e)?(1==(s=i=d((i=e)&&i[0])?2:1)&&!C(e[0])||2==i&&!C(e[0][0]))&&(a=!0):C(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(i=ae(e))&&(u=i,s=3):s=0:D(e)&&((h=l({},u)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:ae(t.color)}}),ve(e)?s=4:_e(e)&&(s=5),u=h),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:u,rawValue:e,percent:0});return n&&(h.easing=n,h.easingFunc=w(n)?n:ag[n]||Xt(n)),r.push(h),h},Pe.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),r=n.length,o=n[r-1],a=this.discrete,s=Ae(i),l=De(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;if(h.percent=h.time/t,!a)if(s&&u!==r-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:Ig.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=C=S=b=w=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,w=d.length,b=h.length,S=b<w?h:d,h=Math.min(w,b),C=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(w,b);T++)S.push({offset:C.offset,color:C.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var M=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-M:3===i?n[u].additiveValue=Te([],n[u].value,M,-1):Ae(i)&&(n[u].additiveValue=(1===i?Te:Me)([],n[u].value,M,-1))}},Pe.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,h-1);0<=y&&!(u[y].percent<=e);y--);y=f(y,h-2)}else{for(y=d;y<h&&!(u[y].percent>e);y++);y=f(y-1,h-2)}i=u[y+1],n=u[y]}n&&i&&(this._lastFr=y,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?kg:t[c],(Ae(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:Ae(l)?(1===l?Ce:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Se(e[a][s],n[a][s],i)}})(f,n[s],i[s],r):De(l)?(d=n[s],o=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Se(d.x,o.x,r),y:Se(d.y,o.y,r),colorStops:g(d.colorStops,function(t,e){return e=o.colorStops[e],{offset:Se(t.offset,e.offset,r),color:ke(Ce([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Se(d.x2,o.x2,r),t[c].y2=Se(d.y2,o.y2,r)):t[c].r=Se(d.r,o.r,r)):p?(Ce(f,n[s],i[s],r),a||(t[c]=ke(f))):(l=Se(n[s],i[s],r),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Pe.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(ae(t[n],kg),Te(kg,kg,i,1),t[n]=ke(kg)):1===e?Te(t[n],t[n],i,1):2===e&&Me(t[n],t[n],i,1)},Pe);Oe.prototype.getMaxTime=function(){return this._maxTime},Oe.prototype.getDelay=function(){return this._delay},Oe.prototype.getLoop=function(){return this._loop},Oe.prototype.getTarget=function(){return this._target},Oe.prototype.changeTarget=function(t){this._target=t},Oe.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,v(e),n)},Oe.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=r[a])){var s,l=r[a]=new Dg(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&ke(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Ie(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Ie(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},Oe.prototype.pause=function(){this._clip.pause(),this._paused=!0},Oe.prototype.resume=function(){this._clip.resume(),this._paused=!1},Oe.prototype.isPaused=function(){return!!this._paused},Oe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Oe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},Oe.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)},Oe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},Oe.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},Oe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,n=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,u=l.length;s.prepare(r,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[u-1])&&(n._target[s.propName]=a.rawValue),s.setFinished()):i.push(s))}return i.length||this._force?(e=new yg({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(n._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(n._target,t);var a=n._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Oe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Oe.prototype.delay=function(t){return this._delay=t,this},Oe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Oe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Oe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Oe.prototype.getClip=function(){return this._clip},Oe.prototype.getTrack=function(t){return this._tracks[t]},Oe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},Oe.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},Oe.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];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[r]=Ie(o.rawValue))}}},Oe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var n=0;n<e.length;n++){var i,r=e[n],o=this._tracks[r];o&&1<(i=o.keyframes).length&&(i=i.pop(),o.addKeyframe(i.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var Ag=Oe;n(Re,Pg=Bf),Re.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},Re.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Re.prototype.removeClip=function(t){var e,n;t.animation&&(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)},Re.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Re.prototype.update=function(t){for(var e=Le()-this._pausedTime,n=e-this._time,i=this._head;i;)var r=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),r);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},Re.prototype._startLoop=function(){var t=this;this._running=!0,og(function e(){t._running&&(og(e),t._paused||t.update())})},Re.prototype.start=function(){this._running||(this._time=Le(),this._pausedTime=0,this._startLoop())},Re.prototype.stop=function(){this._running=!1},Re.prototype.pause=function(){this._paused||(this._pauseStart=Le(),this._paused=!0)},Re.prototype.resume=function(){this._paused&&(this._pausedTime+=Le()-this._pauseStart,this._paused=!1)},Re.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},Re.prototype.isFinished=function(){return null==this._head},Re.prototype.animate=function(t,e){return e=e||{},this.start(),t=new Ag(t,e.loop),this.addAnimator(t),t};var Pg,Og,Lg,Rg=Re,Eg=af.domSupported,Ng=(Og={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:jg=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(jg,function(t){var e=t.replace("mouse","pointer");return Og.hasOwnProperty(e)?e:t})}),Bg=["mousemove","mouseup"],zg=["pointermove","pointerup"],Fg=!1,Vg=function(t,e){this.stopPropagation=q,this.stopImmediatePropagation=q,this.preventDefault=q,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Hg={mousedown:function(t){t=vt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vt(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=vt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Be(this,(t=vt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Fg=!0,t=vt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Fg||(t=vt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ne(t=vt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Hg.mousemove.call(this,t),Hg.mousedown.call(this,t)},touchmove:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"change"),Hg.mousemove.call(this,t)},touchend:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"end"),Hg.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Hg.click.call(this,t)},pointerdown:function(t){Hg.mousedown.call(this,t)},pointermove:function(t){Ee(t)||Hg.mousemove.call(this,t)},pointerup:function(t){Hg.mouseup.call(this,t)},pointerout:function(t){Ee(t)||Hg.mouseout.call(this,t)}},Gg=(f(["click","dblclick","contextmenu"],function(t){Hg[t]=function(e){e=vt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){Ee(t)||Gg.mousemove.call(this,t)},pointerup:function(t){Gg.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))}}),Wg=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ug=(n(Ge,Lg=Bf),Ge.prototype.dispose=function(){He(this._localHandlerScope),Eg&&He(this._globalHandlerScope)},Ge.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},Ge.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Eg&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Fe(this,e):He(e))},Ge),jg=1,Yg=jg=af.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):jg,Xg="#333",qg="#ccc",jg=Object.freeze({__proto__:null,clone:function(t){var e=We();return je(e,t),e},copy:je,create:We,identity:Ue,invert:Ke,mul:Ye,rotate:qe,scale:Ze,translate:Xe}),Zg=Ue,Kg=[],$g=[],Qg=We(),Jg=Math.abs,ty=(Qe.prototype.getLocalTransform=function(t){return Qe.getLocalTransform(this,t)},Qe.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Qe.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Qe.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Qe.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Qe.prototype.needLocalTransform=function(){return $e(this.rotation)||$e(this.x)||$e(this.y)||$e(this.scaleX-1)||$e(this.scaleY-1)||$e(this.skewX)||$e(this.skewY)},Qe.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||We(),e?this.getLocalTransform(n):Zg(n),t&&(e?Ye(n,t,n):je(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Zg(n)},Qe.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Kg),n=((Kg[1]-(n=Kg[1]<0?-1:1))*i+n)/Kg[1]||0,t[0]*=i=((Kg[0]-(e=Kg[0]<0?-1:1))*i+e)/Kg[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||We(),Ke(this.invTransform,t)},Qe.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Qe.prototype.setLocalTransform=function(t){var e,n,i,r;t&&(r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0)},Qe.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Ye($g,e.invTransform,t),t=$g),e=this.originX,n=this.originY,(e||n)&&(Qg[4]=e,Qg[5]=n,Ye($g,t,Qg),$g[4]-=e,$g[5]-=n,t=$g),this.setLocalTransform(t))},Qe.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[0]=1,t[1]=1),t},Qe.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&at(t,t,e),t},Qe.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&at(t,t,e),t},Qe.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Jg(t[0]-1)&&1e-10<Jg(t[3]-1)?Math.sqrt(Jg(t[0]*t[3]-t[2]*t[1])):1},Qe.prototype.copyTransform=function(t){Je(this,t)},Qe.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,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*r-c*(s=i+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&qe(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Qe.initDefaultProps=((_y=Qe.prototype).scaleX=_y.scaleY=_y.globalScaleRatio=1,void(_y.x=_y.y=_y.originX=_y.originY=_y.skewX=_y.skewY=_y.rotation=_y.anchorX=_y.anchorY=0)),Qe),ey=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];tn.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},tn.prototype.clone=function(){return new tn(this.x,this.y)},tn.prototype.set=function(t,e){return this.x=t,this.y=e,this},tn.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},tn.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},tn.prototype.scale=function(t){this.x*=t,this.y*=t},tn.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},tn.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},tn.prototype.dot=function(t){return this.x*t.x+this.y*t.y},tn.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},tn.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},tn.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},tn.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},tn.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},tn.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},tn.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},tn.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},tn.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},tn.set=function(t,e,n){t.x=e,t.y=n},tn.copy=function(t,e){t.x=e.x,t.y=e.y},tn.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},tn.lenSquare=function(t){return t.x*t.x+t.y*t.y},tn.dot=function(t,e){return t.x*e.x+t.y*e.y},tn.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},tn.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},tn.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},tn.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},tn.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};var ny,iy=tn,ry=Math.min,oy=Math.max,ay=new iy,sy=new iy,ly=new iy,uy=new iy,hy=new iy,cy=new iy,py=(en.prototype.union=function(t){var e=ry(t.x,this.x),n=ry(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=oy(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=oy(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},en.prototype.applyTransform=function(t){en.applyTransform(this,this,t)},en.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=We();return Xe(i,i,[-this.x,-this.y]),Ze(i,i,[e,n]),Xe(i,i,[t.x,t.y]),i},en.prototype.intersect=function(t,e){if(!t)return!1;t instanceof en||(t=en.create(t));var n,i,r,o,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,r=Math.abs(p-f),o=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(r,o),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,r<o?iy.set(cy,-r,0):iy.set(cy,o,0)):l<n&&(n=l,r<o?iy.set(hy,r,0):iy.set(hy,-o,0)),h<y||t<d?i<u&&(i=u,a<s?iy.set(cy,0,-a):iy.set(cy,0,s)):l<n&&(n=l,a<s?iy.set(hy,0,a):iy.set(hy,0,-s))),e&&iy.copy(e,m?hy:cy),m},en.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},en.prototype.clone=function(){return new en(this.x,this.y,this.width,this.height)},en.prototype.copy=function(t){en.copy(this,t)},en.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},en.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},en.prototype.isZero=function(){return 0===this.width||0===this.height},en.create=function(t){return new en(t.x,t.y,t.width,t.height)},en.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},en.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],r=n[3],o=n[4],a=n[5],t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(ay.x=ly.x=e.x,ay.y=uy.y=e.y,sy.x=uy.x=e.x+e.width,sy.y=ly.y=e.y+e.height,ay.transform(n),uy.transform(n),sy.transform(n),ly.transform(n),t.x=ry(ay.x,sy.x,ly.x,uy.x),t.y=ry(ay.y,sy.y,ly.y,uy.y),o=oy(ay.x,sy.x,ly.x,uy.x),a=oy(ay.y,sy.y,ly.y,uy.y),t.width=o-t.x,t.height=a-t.y):t!==e&&en.copy(t,e)},en),dy={},fy="__zr_normal__",gy=ey.concat(["ignore"]),yy=y(ey,function(t,e){return t[e]=!0,t},{ignore:!1}),my={},vy=new py(0,0,0,0),_y=(cn.prototype._init=function(t){this.attr(t)},cn.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},cn.prototype.beforeUpdate=function(){},cn.prototype.afterUpdate=function(){},cn.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},cn.prototype.updateInnerText=function(t){var e,n,i,r,o,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,r=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=vy,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(my,t,u):hn(my,t,u),e.x=my.x,e.y=my.y,n=my.align,i=my.verticalAlign,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*u.width,.5*u.height):(a=un(o[0],u.width),un(o[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],h||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(r=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=eg,r&&c.dirtyStyle(!0))},cn.prototype.canBeInsideText=function(){return!0},cn.prototype.getInsideTextFill=function(){return"#fff"},cn.prototype.getInsideTextStroke=function(t){return"#000"},cn.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qg:Xg},cn.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&ae(e),i=(n=n||[255,255,255,1])[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ce(n,"rgba")},cn.prototype.traverse=function(t,e){},cn.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},cn.prototype.hide=function(){this.ignore=!0,this.markRedraw()},cn.prototype.show=function(){this.ignore=!1,this.markRedraw()},cn.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(T(t))for(var n=v(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},cn.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;i.getLoop()||r&&r!==fy||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},cn.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,gy)},cn.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])}},cn.prototype.hasState=function(){return 0<this.currentStates.length},cn.prototype.getState=function(t){return this.states[t]},cn.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},cn.prototype.clearStates=function(t){this.useState(fy,!1,t)},cn.prototype.useState=function(t,e,n,i){var r=t===fy,a=this.hasState();if(a||!r){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=h(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!r?this.stateProxy(t):s)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&l&&0<l.duration,l),i=this._textContent,l=this._textGuide,i&&i.useState(t,e,n,a),l&&l.useState(t,e,n,a),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg),s;o("State "+t+" not exists.")}}},cn.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;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[o-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg)}}else this.clearStates()},cn.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},cn.prototype.removeState=function(t){var e,t=h(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},cn.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=h(i,t),r=0<=h(i,e);0<=t?r?i.splice(t,1):i[t]=e:n&&!r&&i.push(e),this.useStates(i)},cn.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},cn.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];l(n,r),r.textConfig&&l(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},cn.prototype._applyStateObj=function(t,e,n,i,r,o){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=l({},(i?this:n).textConfig),l(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),u=!1,h=0;h<gy.length;h++){var c=gy[h],p=r&&yy[c];e&&null!=e[c]?p?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(p?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(h=0;h<this.animators.length;h++){var d=this.animators[h],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}u&&this._transitionState(t,s,o)},cn.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},cn.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},cn.prototype.getClipPath=function(){return this._clipPath},cn.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},cn.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},cn.prototype.getTextContent=function(){return this._textContent},cn.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ty,this._attachComponent(t),this._textContent=t,this.markRedraw())},cn.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},cn.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},cn.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},cn.prototype.getTextGuideLine=function(){return this._textGuide},cn.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},cn.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},cn.prototype.markRedraw=function(){this.__dirty|=eg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},cn.prototype.dirty=function(){this.markRedraw()},cn.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},cn.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)}},cn.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)}},cn.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new Ag(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},cn.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);0<=n&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},cn.prototype.updateDuringAnimation=function(t){this.markRedraw()},cn.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},cn.prototype.animateTo=function(t,e,n){dn(this,t,e,n)},cn.prototype.animateFrom=function(t,e,n){dn(this,t,e,n,!0)},cn.prototype._transitionState=function(t,e,n,i){for(var r=dn(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},cn.prototype.getBoundingRect=function(){return null},cn.prototype.getPaintRect=function(){return null},cn.initDefaultProps=((ny=cn.prototype).type="element",ny.name="",ny.ignore=ny.silent=ny.isGroup=ny.draggable=ny.dragging=ny.ignoreClip=ny.__inHover=!1,ny.__dirty=eg,void(Object.defineProperty&&(pn("position","_legacyPos","x","y"),pn("scale","_legacyScale","scaleX","scaleY"),pn("origin","_legacyOrigin","originX","originY")))),cn);p(_y,Bf),p(_y,ty),n(mn,xy=_y),mn.prototype.childrenRef=function(){return this._children},mn.prototype.children=function(){return this._children.slice()},mn.prototype.childAt=function(t){return this._children[t]},mn.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},mn.prototype.childCount=function(){return this._children.length},mn.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},mn.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},mn.prototype.replace=function(t,e){return t=h(this._children,t),0<=t&&this.replaceAt(e,t),this},mn.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},mn.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},mn.prototype.remove=function(t){var e=this.__zr,n=this._children,i=h(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},mn.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},mn.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},mn.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},mn.prototype.addSelfToZr=function(t){xy.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},mn.prototype.removeSelfFromZr=function(t){xy.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},mn.prototype.getBoundingRect=function(t){for(var e=new py(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(py.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var xy,wy=mn;wy.prototype.type="group";var by={},Sy={};vn.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},vn.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},vn.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},vn.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return pe(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=pe(e[r].color,1);return(n/=i)<.4}}return!1}(t)},vn.prototype.getBackgroundColor=function(){return this._backgroundColor},vn.prototype.setDarkMode=function(t){this._darkMode=t},vn.prototype.isDarkMode=function(){return this._darkMode},vn.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},vn.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},vn.prototype.flush=function(){this._flush(!1)},vn.prototype._flush=function(t){var e,n=Le(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Le());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},vn.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},vn.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},vn.prototype.refreshHover=function(){this._needsRefreshHover=!0},vn.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},vn.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},vn.prototype.clearAnimation=function(){this.animation.clear()},vn.prototype.getWidth=function(){return this.painter.getWidth()},vn.prototype.getHeight=function(){return this.painter.getHeight()},vn.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},vn.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},vn.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},vn.prototype.off=function(t,e){this.handler.off(t,e)},vn.prototype.trigger=function(t,e){this.handler.trigger(t,e)},vn.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof wy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},vn.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Sy[t]};var Cy,Ty=vn,My=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Sy)Sy.hasOwnProperty(t)&&Sy[t].dispose();Sy={}},getInstance:function(t){return Sy[t]},init:_n,registerPainter:xn,version:"5.3.0"}),Iy=20,ky=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Dy="series\0",Ay=["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"],Py=En(),Oy={useDefault:!0,enableAll:!1,enableNone:!1},Ly=".",Ry="___EC__COMPONENT__CONTAINER___",Ey="___EC__EXTENDED_CLASS___",Ny=Math.round(10*Math.random()),By=li([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zy=(ui.prototype.getAreaStyle=function(t,e){return By(this,t,e)},ui),Fy=new _g(50),Vy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Hy=function(){},Gy=function(t){this.tokens=[],t&&(this.tokens=t)},Wy=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Uy=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),jy="__zr_style_"+Math.round(10*Math.random()),Yy={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},qy=(Yy[jy]=!0,["z","z2","invisible"]),Zy=["invisible"],_y=(n(_i,Cy=_y),_i.prototype._init=function(t){for(var e=v(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):Cy.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},_i.prototype.beforeBrush=function(){},_i.prototype.afterBrush=function(){},_i.prototype.innerBeforeBrush=function(){},_i.prototype.innerAfterBrush=function(){},_i.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return Ky.copy(t.getBoundingRect()),t.transform&&Ky.applyTransform(t.transform),$y.width=e,$y.height=n,!Ky.intersect($y)}(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},_i.prototype.contain=function(t,e){return this.rectContain(t,e)},_i.prototype.traverse=function(t,e){t.call(e,this)},_i.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},_i.prototype.getPaintRect=function(){var t,e,n,i,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new py(0,0,0,0)),r?py.applyTransform(o,t,r):o.copy(t),(e||n||i)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(i),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+i-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},_i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new py(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},_i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},_i.prototype.animateStyle=function(t){return this.animate("style",t)},_i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},_i.prototype.attrKV=function(t,e){"style"!==t?Cy.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},_i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},_i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},_i.prototype.dirty=function(){this.dirtyStyle()},_i.prototype.styleChanged=function(){return!!(2&this.__dirty)},_i.prototype.styleUpdated=function(){this.__dirty&=-3},_i.prototype.createStyle=function(t){return j(Yy,t)},_i.prototype.useStyle=function(t){t[jy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},_i.prototype.isStyleObject=function(t){return t[jy]},_i.prototype._innerSaveToNormal=function(t){Cy.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,qy)},_i.prototype._applyStateObj=function(t,e,n,i,r,o){Cy.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.style?r?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(r){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=v(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Zy:qy,h=0;h<d.length;h++)p=d[h],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},_i.prototype._mergeStates=function(t){for(var e,n=Cy.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(n.style=e),n},_i.prototype._mergeStyle=function(t,e){return l(t,e),t},_i.prototype.getAnimationStyleProps=function(){return Xy},_i.initDefaultProps=((_y=_i.prototype).type="displayable",_y.invisible=!1,_y.z=0,_y.z2=0,_y.zlevel=0,_y.culling=!1,_y.cursor="pointer",_y.rectHover=!1,_y.incremental=!1,_y._rect=null,_y.dirtyRectTolerance=0,void(_y.__dirty=2|eg)),_i),Ky=new py(0,0,0,0),$y=new py(0,0,0,0),Qy=Math.min,Jy=Math.max,tm=Math.sin,em=Math.cos,nm=2*Math.PI,im=Z(),rm=Z(),om=Z(),am=[],sm=[],lm={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},um=[],hm=[],cm=[],pm=[],dm=[],fm=[],gm=Math.min,ym=Math.max,mm=Math.cos,vm=Math.sin,_m=Math.abs,xm=Math.PI,wm=2*xm,bm="undefined"!=typeof Float32Array,Sm=[];bi.prototype.increaseVersion=function(){this._version++},bi.prototype.getVersion=function(){return this._version},bi.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=_m(n/Yg/t)||0,this._uy=_m(n/Yg/e)||0)},bi.prototype.setDPR=function(t){this.dpr=t},bi.prototype.setContext=function(t){this._ctx=t},bi.prototype.getContext=function(){return this._ctx},bi.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},bi.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},bi.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(lm.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},bi.prototype.lineTo=function(t,e){var n=_m(t-this._xi),i=_m(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(lm.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},bi.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(lm.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},bi.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(lm.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},bi.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Sm[0]=i,Sm[1]=r,s=o,(l=wi((a=Sm)[0]))<0&&(l+=wm),h=l-a[0],u=a[1],u+=h,!s&&wm<=u-l?u=l+wm:s&&wm<=l-u?u=l-wm:!s&&u<l?u=l+(wm-wi(l-u)):s&&l<u&&(u=l-(wm-wi(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(r=Sm[1])-(i=Sm[0]);return this.addData(lm.A,t,e,n,n,i,h,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=mm(r)*n+t,this._yi=vm(r)*n+e,this},bi.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},bi.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(lm.R,t,e,n,i),this},bi.prototype.closePath=function(){this._drawPendingPt(),this.addData(lm.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},bi.prototype.fill=function(t){t&&t.fill(),this.toStatic()},bi.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},bi.prototype.len=function(){return this._len},bi.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!bm||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},bi.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();for(bm&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},bi.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},bi.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},bi.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}},bi.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,bm)&&11<this._len&&(this.data=new Float32Array(t))},bi.prototype.getBoundingRect=function(){cm[0]=cm[1]=dm[0]=dm[1]=Number.MAX_VALUE,pm[0]=pm[1]=fm[0]=fm[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,r=0,o=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(r=n=e[a],o=i=e[a+1]),s){case lm.M:n=r=e[a++],i=o=e[a++],dm[0]=r,dm[1]=o,fm[0]=r,fm[1]=o;break;case lm.L:xi(n,i,e[a],e[a+1],dm,fm),n=e[a++],i=e[a++];break;case lm.C:C=S=b=w=x=_=v=m=y=g=f=d=p=c=h=u=void 0;var u=n,h=i,c=e[a++],p=e[a++],d=e[a++],f=e[a++],g=e[a],y=e[a+1],m=dm,v=fm,_=Ft,x=Nt,w=_(u,c,d,g,am);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var b=0;b<w;b++){var S=x(u,c,d,g,am[b]);m[0]=Qy(S,m[0]),v[0]=Jy(S,v[0])}for(w=_(h,p,f,y,sm),b=0;b<w;b++){var C=x(h,p,f,y,sm[b]);m[1]=Qy(C,m[1]),v[1]=Jy(C,v[1])}m[0]=Qy(u,m[0]),v[0]=Jy(u,v[0]),m[0]=Qy(g,m[0]),v[0]=Jy(g,v[0]),m[1]=Qy(h,m[1]),v[1]=Jy(h,v[1]),m[1]=Qy(y,m[1]),v[1]=Jy(y,v[1]),n=e[a++],i=e[a++];break;case lm.Q:_=n,F=i,P=e[a++],I=e[a++],A=e[a],T=e[a+1],D=dm,O=fm,t=k=t=M=void 0,M=Gt,t=Jy(Qy((k=Ut)(_,P,A),1),0),k=Jy(Qy(k(F,I,T),1),0),P=M(_,P,A,t),t=M(F,I,T,k),D[0]=Qy(_,A,P),D[1]=Qy(F,T,t),O[0]=Jy(_,A,P),O[1]=Jy(F,T,t),n=e[a++],i=e[a++];break;case lm.A:var T,M=e[a++],I=e[a++],k=e[a++],D=e[a++],A=e[a++],P=e[a++]+A,O=(a+=1,!e[a++]),L=(l&&(r=mm(A)*k+M,o=vm(A)*D+I),U=T=W=G=H=V=F=z=B=N=E=R=L=void 0,M),R=I,E=k,N=D,B=A,z=P,F=O,V=dm,H=fm,G=st,W=lt;if((T=Math.abs(B-z))%nm<1e-4&&1e-4<T)V[0]=L-E,V[1]=R-N,H[0]=L+E,H[1]=R+N;else{im[0]=em(B)*E+L,im[1]=tm(B)*N+R,rm[0]=em(z)*E+L,rm[1]=tm(z)*N+R,G(V,im,rm),W(H,im,rm),(B%=nm)<0&&(B+=nm),(z%=nm)<0&&(z+=nm),z<B&&!F?z+=nm:B<z&&F&&(B+=nm),F&&(T=z,z=B,B=T);for(var U=0;U<z;U+=Math.PI/2)B<U&&(om[0]=em(U)*E+L,om[1]=tm(U)*N+R,G(V,om,V),W(H,om,H))}n=mm(P)*k+M,i=vm(P)*D+I;break;case lm.R:xi(r=n=e[a++],o=i=e[a++],r+e[a++],o+e[a++],dm,fm);break;case lm.Z:n=r,i=o}st(cm,cm,dm),lt(pm,pm,fm)}return 0===a&&(cm[0]=cm[1]=pm[0]=pm[1]=0),new py(cm[0],cm[1],pm[0]-cm[0],pm[1]-cm[1])},bi.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=r=t[c],s=o=t[c+1]),-1);switch(p){case lm.M:r=a=t[c++],o=s=t[c++];break;case lm.L:var g=t[c++],y=(_=t[c++])-o;(_m(I=g-r)>n||_m(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);break;case lm.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Nt(t,n,r,a,d),d=Nt(e,i,o,s,d),g=f-u,y=d-h;c+=Math.sqrt(g*g+y*y),u=f,h=d}return c}(r,o,m,v,g,_,x,w),r=x,o=w;break;case lm.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,p=Gt(t,n,r,c),c=Gt(e,i,o,c),d=p-s,f=c-l;u+=Math.sqrt(d*d+f*f),s=p,l=c}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),r=g,o=_;break;case lm.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],C=t[c++],T=t[c++],M=T+C;c+=1,t[c++],d&&(a=mm(C)*b+x,s=vm(C)*S+w),f=ym(b,S)*gm(wm,Math.abs(T)),r=mm(M)*b+x,o=vm(M)*S+w;break;case lm.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case lm.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},bi.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var _=h[v++],x=1===v;switch(x&&(n=r=h[v],i=o=h[v+1]),_!==lm.L&&0<m&&(t.lineTo(l,u),m=0),_){case lm.M:n=r=h[v++],i=o=h[v++],t.moveTo(r,o);break;case lm.L:var w=h[v++],b=h[v++],S=_m(w-r),C=_m(b-o);if(c<S||p<C){if(f){if(s<g+(G=a[y++])){var T=(s-g)/G;t.lineTo(r*(1-T)+w*T,o*(1-T)+b*T);break t}g+=G}t.lineTo(w,b),r=w,o=b,m=0}else S=S*S+C*C,m<S&&(l=w,u=b,m=S);break;case lm.C:var M=h[v++],I=h[v++],k=h[v++],D=h[v++],C=h[v++],S=h[v++];if(f){if(s<g+(G=a[y++])){Vt(r,M,k,C,T=(s-g)/G,um),Vt(o,I,D,S,T,hm),t.bezierCurveTo(um[1],hm[1],um[2],hm[2],um[3],hm[3]);break t}g+=G}t.bezierCurveTo(M,I,k,D,C,S),r=C,o=S;break;case lm.Q:if(M=h[v++],I=h[v++],k=h[v++],D=h[v++],f){if(s<g+(G=a[y++])){jt(r,M,k,T=(s-g)/G,um),jt(o,I,D,T,hm),t.quadraticCurveTo(um[1],hm[1],um[2],hm[2]);break t}g+=G}t.quadraticCurveTo(M,I,k,D),r=k,o=D;break;case lm.A:var A=h[v++],P=h[v++],O=h[v++],L=h[v++],R=h[v++],E=h[v++],N=h[v++],B=!h[v++],z=L<O?O:L,F=.001<_m(O-L),V=R+E,H=!1;if(f&&(s<g+(G=a[y++])&&(V=R+E*(s-g)/G,H=!0),g+=G),F&&t.ellipse?t.ellipse(A,P,O,L,N,R,V,B):t.arc(A,P,z,R,V,B),H)break t;x&&(n=mm(R)*O+A,i=vm(R)*L+P),r=mm(V)*O+A,o=vm(V)*L+P;break;case lm.R:n=r=h[v],i=o=h[v+1],w=h[v++],b=h[v++];var G,E=h[v++],F=h[v++];if(f){if(s<g+(G=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+gm(N,E),b),0<(N-=E)&&t.lineTo(w+E,b+gm(N,F)),0<(N-=F)&&t.lineTo(w+ym(E-N,0),b+F),0<(N-=E)&&t.lineTo(w,b+ym(F-N,0));break t}g+=G}t.rect(w,b,E,F);break;case lm.Z:if(f){if(s<g+(G=a[y++])){T=(s-g)/G,t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}g+=G}t.closePath(),r=n,o=i}}},bi.prototype.clone=function(){var t=new bi,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},bi.CMD=lm,bi.initDefaultProps=((Rv=bi.prototype)._saveData=!0,Rv._ux=0,Rv._uy=0,Rv._pendingPtDist=0,void(Rv._version=0));var Cm,Tm,Mm=bi,Im=2*Math.PI,km=2*Math.PI,Dm=Mm.CMD,Am=2*Math.PI,Pm=1e-4,Om=[-1,-1,-1],Lm=[-1,-1],Rm=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Yy),Em={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xy.style)},Nm=ey.concat(["invisible","culling","z","z2","zlevel","parent"]),Bm=(n(Di,Cm=_y),Di.prototype.update=function(){var t=this,e=(Cm.prototype.update.call(this),this.style);if(e.decal){var n,i=this._decalEl=this._decalEl||new Di,r=(i.buildPath===Di.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0,i.style);for(n in e)r[n]!==e[n]&&(r[n]=e[n]);r.fill=e.fill?e.decal:null,r.decal=null,r.shadowColor=null,e.strokeFirst&&(r.stroke=null);for(var o=0;o<Nm.length;++o)i[Nm[o]]=this[Nm[o]];i.__dirty|=eg}else this._decalEl&&(this._decalEl=null)},Di.prototype.getDecalElement=function(){return this._decalEl},Di.prototype._init=function(t){var e=v(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var r=e[i],o=t[r];"style"===r?this.style?l(this.style,o):this.useStyle(o):"shape"===r?l(this.shape,o):Cm.prototype.attrKV.call(this,r,o)}this.style||this.useStyle({})},Di.prototype.getDefaultStyle=function(){return null},Di.prototype.getDefaultShape=function(){return{}},Di.prototype.canBeInsideText=function(){return this.hasFill()},Di.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=pe(e,0))?Xg:.2<t?"#eee":qg;if(e)return qg}return Xg},Di.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==pe(t,0)<.4)return e}},Di.prototype.buildPath=function(t,e,n){},Di.prototype.pathUpdated=function(){this.__dirty&=~ng},Di.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Di.prototype.createPathProxy=function(){this.path=new Mm(!1)},Di.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Di.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Di.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,r=!n;return r&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&ng)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||r)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,r=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,r=Math.max(r,null==i?4:i)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):n},Di.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)){if(n=this.path,this.hasStroke()&&(i=r.lineWidth,1e-10<(r=r.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),ki(n,i/r,!0,t,e))))return!0;if(this.hasFill())return ki(n,0,!1,t,e)}return!1},Di.prototype.dirtyShape=function(){this.__dirty|=ng,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Di.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Di.prototype.animateShape=function(t){return this.animate("shape",t)},Di.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Di.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Cm.prototype.attrKV.call(this,t,e)},Di.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:l(n,t),this.dirtyShape(),this},Di.prototype.shapeChanged=function(){return!!(this.__dirty&ng)},Di.prototype.createStyle=function(t){return j(Rm,t)},Di.prototype._innerSaveToNormal=function(t){Cm.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},Di.prototype._applyStateObj=function(t,e,n,i,r,o){Cm.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.shape?r?i?a=e.shape:(a=l({},n.shape),l(a,e.shape)):(a=l({},(i?this:n).shape),l(a,e.shape)):s&&(a=n.shape),a)if(r){this.shape=l({},this.shape);for(var u={},h=v(a),c=0;c<h.length;c++){var p=h[c];"object"==typeof a[p]?this.shape[p]=a[p]:u[p]=a[p]}this._transitionState(t,{shape:u},o)}else this.shape=a,this.dirtyShape()},Di.prototype._mergeStates=function(t){for(var e,n=Cm.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.shape&&this._mergeStyle(e=e||{},r.shape)}return e&&(n.shape=e),n},Di.prototype.getAnimationStyleProps=function(){return Em},Di.prototype.isZeroArea=function(){return!1},Di.extend=function(t){function e(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}n(e,i=Di),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var i,r,o=e;for(r in t)"function"==typeof t[r]&&(o.prototype[r]=t[r]);return o},Di.initDefaultProps=((Rv=Di.prototype).type="path",Rv.strokeContainThreshold=5,Rv.segmentIgnoreThreshold=0,Rv.subPixelOptimize=!1,Rv.autoBatch=!1,void(Rv.__dirty=2|eg|ng)),Di),zm=u({strokeFirst:!0,font:cf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rm),Fm=(n(Ai,Tm=_y),Ai.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Ai.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ai.prototype.createStyle=function(t){return j(zm,t)},Ai.prototype.setBoundingRect=function(t){this._rect=t},Ai.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=on(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Ai.initDefaultProps=void(Ai.prototype.dirtyRectTolerance=10),Ai);Fm.prototype.type="tspan";var Vm=u({x:0,y:0},Yy),Hm={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xy.style)};n(Pi,Gm=_y),Pi.prototype.createStyle=function(t){return j(Vm,t)},Pi.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},Pi.prototype.getWidth=function(){return this._getSize("width")},Pi.prototype.getHeight=function(){return this._getSize("height")},Pi.prototype.getAnimationStyleProps=function(){return Hm},Pi.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new py(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Gm,Wm=Pi;Wm.prototype.type="image";var Um,jm=Math.round,Ym=function(){this.x=0,this.y=0,this.width=0,this.height=0},Xm={},qm=(n(Ei,Um=Bm),Ei.prototype.getDefaultShape=function(){return new Ym},Ei.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=Li(Xm,e,this.style)).x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,r,o)},Ei.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Ei);qm.prototype.type="rect";var Zm,Km={fill:"#000"},$m={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},Xy.style)},Qm=(n(Ni,Zm=_y),Ni.prototype.childrenRef=function(){return this._children},Ni.prototype.update=function(){Zm.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Ni.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Zm.prototype.updateTransform.call(this)},Ni.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Zm.prototype.getLocalTransform.call(this,t)},Ni.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Zm.prototype.getComputedTransform.call(this)},Ni.prototype._updateSubTexts=function(){var t;this._childCursor=0,Vi(t=this.style),f(t.rich,Vi),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Ni.prototype.addSelfToZr=function(t){Zm.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Ni.prototype.removeSelfFromZr=function(t){Zm.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Ni.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new py(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Ni.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Km},Ni.prototype.setTextContent=function(t){},Ni.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},l(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Ni.prototype._mergeRich=function(t,e){for(var n=v(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},l(t[r],e[r])}},Ni.prototype.getAnimationStyleProps=function(){return $m},Ni.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},Ni.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||cf,i=e.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=ln(o),l=R(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,i=(n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?vi(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=R(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=fi(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=gi(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(nn(n[f],o),g);return null==c&&(c=g),t=g,r&&(h+=r[0]+r[2],t+=r[1]+r[3],c+=r[1]+r[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(Ui(e),e),o=ji(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=sn(f,r.contentHeight,y),_=((o||i)&&(t=an(d,l,g),f=sn(f,s,y),o)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=Wi(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2])),0),o=!1,x=(Gi(("fill"in e?e:(o=!0,p)).fill)),w=(Hi("stroke"in e?e.stroke:a||p.autoStroke&&!o?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),C=r.calculatedLineHeight,T=0;T<h.length;T++){var M=this._getOrCreateChild(Fm),I=M.createStyle();M.useStyle(I),I.text=h[T],I.x=m,I.y=v,g&&(I.textAlign=g),I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,b&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=w,I.fill=x,w&&(I.lineWidth=e.lineWidth||_,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=n,zi(I,e),v+=c,S&&M.setBoundingRect(new py(an(I.x,e.width,I.textAlign),sn(I.y,C,I.textBaseline),u,C))}},Ni.prototype._updateRichTexts=function(){for(var t=this.style,e=yi(Ui(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=an(a,i,u),u=sn(s,r,l),h=a,c=u,p=(o&&(h+=o[3],c+=o[0]),h+n),d=(ji(t)&&this._renderBackground(t,t,a,u,i,r),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=h,b=p,S=m-1,C=void 0;x<m&&(!(C=y[x]).align||"left"===C.align);)this._placeToken(C,t,v,c,w,"left",d),_-=C.width,w+=C.width,x++;for(;0<=S&&"right"===(C=y[S]).align;)this._placeToken(C,t,v,c,b,"right",d),_-=C.width,b-=C.width,S--;for(w+=(n-(w-h)-(p-b)-_)/2;x<=S;)C=y[x],this._placeToken(C,t,v,c,w+C.width/2,"center",d),w+=C.width,x++;c+=v}},Ni.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&ji(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 l=!!s.backgroundColor,i=t.textPadding,n=(i&&(r=Wi(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Fm)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Gi(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Hi("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=r,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=o,i.textBaseline="middle",i.font=t.font||cf,i.opacity=E(s.opacity,e.opacity,1),zi(i,s),l&&(i.lineWidth=E(s.lineWidth,e.lineWidth,p),i.lineDash=R(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new py(an(i.x,c,i.textAlign),sn(i.y,h,i.textBaseline),c,h))},Ni.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(qm)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=r,l.height=o,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=R(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Wm)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=r,l.height=o),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=R(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=E(t.opacity,e.opacity,1)},Ni.makeFont=function(t){var e="";return(e=Fi(t)?[t.fontStyle,t.fontWeight,Bi(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Ni),Jm={left:!0,right:1,center:1},tv={top:1,bottom:1,middle:1},ev=["fontStyle","fontWeight","fontSize","fontFamily"],nv=Kn(),iv=1,rv={},ov=Kn(),av=Kn(),sv=0,lv=1,uv=2,hv=["emphasis","blur","select"],cv=["normal","emphasis","blur","select"],pv="highlight",dv="downplay",fv="select",gv="unselect",yv="toggleSelect",mv=new _g(100),vv=["emphasis","blur","select"],_v={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},xv=Mm.CMD,wv=[[],[],[]],bv=Math.sqrt,Sv=Math.atan2,Cv=Math.sqrt,Tv=Math.sin,Mv=Math.cos,Iv=Math.PI,kv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Dv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;n(Pr,Av=Bm),Pr.prototype.applyTransform=function(t){};var Av,Pv,Ov=Pr,Lv=function(){this.cx=0,this.cy=0,this.r=0},Rv=(n(Rr,Pv=Bm),Rr.prototype.getDefaultShape=function(){return new Lv},Rr.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)},Rr);Rv.prototype.type="circle";var Ev,Nv=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Bv=(n(Er,Ev=Bm),Er.prototype.getDefaultShape=function(){return new Nv},Er.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-a,n-o,i-e,n,i-e),t.bezierCurveTo(n+o,i-e,n+r,i-a,n+r,i),t.bezierCurveTo(n+r,i+a,n+o,i+e,n,i+e),t.bezierCurveTo(n-o,i+e,n-r,i+a,n-r,i),t.closePath()},Er);Bv.prototype.type="ellipse";var zv,Fv=Math.PI,Vv=2*Fv,Hv=Math.sin,Gv=Math.cos,Wv=Math.acos,Uv=Math.atan2,jv=Math.abs,Yv=Math.sqrt,Xv=Math.max,qv=Math.min,Zv=1e-4,Kv=function(){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},$v=(n(zr,zv=Bm),zr.prototype.getDefaultShape=function(){return new Kv},zr.prototype.buildPath=function(t,e){Br(t,e)},zr.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},zr);$v.prototype.type="sector";var Qv,Jv=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},t_=(n(Fr,Qv=Bm),Fr.prototype.getDefaultShape=function(){return new Jv},Fr.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)},Fr);t_.prototype.type="ring";var e_,n_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},i_=(n(Hr,e_=Bm),Hr.prototype.getDefaultShape=function(){return new n_},Hr.prototype.buildPath=function(t,e){Vr(t,e,!0)},Hr);i_.prototype.type="polygon";var r_,o_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},a_=(n(Gr,r_=Bm),Gr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Gr.prototype.getDefaultShape=function(){return new o_},Gr.prototype.buildPath=function(t,e){Vr(t,e,!1)},Gr);a_.prototype.type="polyline";var s_,l_={},u_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},h_=(n(Wr,s_=Bm),Wr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Wr.prototype.getDefaultShape=function(){return new u_},Wr.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=Oi(l_,e,this.style)).x1,i=o.y1,r=o.x2,o):(n=e.x1,i=e.y1,r=e.x2,e)).y2;var n,i,r,o,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(r=n*(1-e)+r*e,o=i*(1-e)+o*e),t.lineTo(r,o))},Wr.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Wr);h_.prototype.type="line";var c_=[],p_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};n(jr,d_=Bm),jr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jr.prototype.getDefaultShape=function(){return new p_},jr.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,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(jt(n,a,r,e,c_),a=c_[1],r=c_[2],jt(i,s,o,e,c_),s=c_[1],o=c_[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Vt(n,a,l,r,e,c_),a=c_[1],l=c_[2],r=c_[3],Vt(i,s,u,o,e,c_),s=c_[1],u=c_[2],o=c_[3]),t.bezierCurveTo(a,s,l,u,r,o)))},jr.prototype.pointAt=function(t){return Ur(this.shape,t,!1)},jr.prototype.tangentAt=function(t){return t=Ur(this.shape,t,!0),nt(t,t)};var d_,f_=jr;f_.prototype.type="bezier-curve";var g_,y_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},m_=(n(Yr,g_=Bm),Yr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Yr.prototype.getDefaultShape=function(){return new y_},Yr.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+n,l*r+i),t.arc(n,i,r,o,a,!e)},Yr);m_.prototype.type="arc",n(Xr,v_=Bm),Xr.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()},Xr.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)},Xr.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Xr.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Xr.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bm.prototype.getBoundingRect.call(this)};var v_,__=Xr;qr.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var x_=qr;n(Zr,w_=x_);var w_,b_=Zr;n(Kr,S_=x_);var S_,C_,x_=Kr,T_=[0,0],M_=[0,0],I_=new iy,k_=new iy,D_=($r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,t),n[3].set(r,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(iy.sub(i[0],n[1],n[0]),iy.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},$r.prototype.intersect=function(t,e){var n=!0,i=!e;return I_.set(1/0,1/0),k_.set(0,0),!this._intersectCheckOneSide(this,t,I_,k_,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,I_,k_,i,-1)&&(n=!1,i)||i||iy.copy(e,n?I_:k_),n},$r.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,T_),this._getProjMinMaxOnAxis(s,e._corners,M_),T_[1]<M_[0]||M_[1]<T_[0]){if(a=!1,r)return a;var u=Math.abs(M_[0]-T_[1]),h=Math.abs(T_[0]-M_[1]);Math.min(u,h)>i.len()&&(u<h?iy.scale(i,l,-u*o):iy.scale(i,l,h*o))}else n&&(u=Math.abs(M_[0]-T_[1]),h=Math.abs(T_[0]-M_[1]),Math.min(u,h)<n.len())&&(u<h?iy.scale(n,l,u*o):iy.scale(n,l,-h*o))}return a},$r.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},$r),A_=[],_y=(n(Qr,C_=_y),Qr.prototype.traverse=function(t,e){t.call(e,this)},Qr.prototype.useStyle=function(){this.style={}},Qr.prototype.getCursor=function(){return this._cursor},Qr.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Qr.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Qr.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Qr.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Qr.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},Qr.prototype.getDisplayables=function(){return this._displayables},Qr.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Qr.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Qr.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},Qr.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new py(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(A_)),t.union(i)}this._rect=t}return this._rect},Qr.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++)if(this._displayables[i].contain(t,e))return!0;return!1},Qr),P_=Kn(),O_=Math.max,L_=Math.min,R_={},E_=function(t,e){function i(t){return t=r.call(this,t)||this,t.applyTransform=o.applyTransform,t.buildPath=o.buildPath,t}var r,o=Lr(t,e);return n(i,r=Ov),i},N_=Ri;so("circle",Rv),so("ellipse",Bv),so("sector",$v),so("ring",t_),so("polygon",i_),so("polyline",a_),so("rect",qm),so("line",h_),so("bezierCurve",f_),so("arc",m_);var B_=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Rv,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:h_,LinearGradient:b_,OrientedBoundingRect:D_,Path:Bm,Point:iy,Polygon:i_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:$v,Text:Qm,applyTransform:yo,clipPointsByRect:_o,clipRectByRect:xo,createIcon:wo,extendPath:ao,extendShape:oo,getShapeClass:lo,getTransform:go,groupTransition:vo,initProps:eo,isElementRemoved:no,lineLineIntersect:bo,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(bo(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:ho,makePath:uo,mergePath:po,registerShape:so,removeElement:io,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||ro(t,e,n,i)}):ro(t,e,n,i)},resizePath:fo,setTooltipConfig:So,subPixelOptimize:N_,subPixelOptimizeLine:function(t){return Oi(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Li(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=yo(["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},traverseElements:To,updateProps:to}),z_={},F_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],V_=["align","lineHeight","width","height","tag","verticalAlign"],H_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],G_=Kn(),W_=["textStyle","color"],U_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],j_=new Qm,N_=(Ro.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(W_):null)},Ro.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),F([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},Ro.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<U_.length;n++)e[U_[n]]=this.getShallow(U_[n]);return j_.useStyle(e),j_.update(),j_.getBoundingRect()},Ro),Y_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],X_=li(Y_),q_=(Eo.prototype.getLineStyle=function(t){return X_(this,t)},Eo),Z_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],K_=li(Z_),$_=(No.prototype.getItemStyle=function(t,e){return K_(this,t,e)},No);Bo.prototype.init=function(t,e,n){},Bo.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Bo.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Bo.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Bo.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Bo(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Bo.prototype.isEmpty=function(){return null==this.option},Bo.prototype.restoreData=function(){},Bo.prototype.clone=function(){return new this.constructor(a(this.option))},Bo.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Bo.prototype.resolveParentPath=function(t){return t},Bo.prototype.isAnimationEnabled=function(){if(!af.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Bo.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var Q_,J_=Bo;ii(J_),px=J_,Q_=["__\0is_clz",Ny++].join("_"),px.prototype[Q_]=!0,px.isInstance=function(t){return!(!t||!t[Q_])},p(J_,q_),p(J_,$_),p(J_,zy),p(J_,N_);var tx=Math.round(10*Math.random()),ex="ZH",nx="EN",ix=nx,rx={},ox={},ax=af.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(ex)?ex:ix;Fo(nx,{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:". "}}}}),Fo(ex,{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:""}}}});var sx=1e3,lx=60*sx,ux=60*lx,hx=24*ux,Ny=365*hx,cx={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}"},px="{yyyy}-{MM}-{dd}",dx={year:"{yyyy}",month:"{yyyy}-{MM}",day:px,hour:px+" "+cx.hour,minute:px+" "+cx.minute,second:px+" "+cx.second,millisecond:cx.none},fx=["year","month","day","hour","minute","second","millisecond"],gx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],yx=B,mx=/([&<>"'])/g,vx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_x=["a","b","c","d","e","f","g"],xx=f,bx=["left","right","top","bottom","width","height"],Sx=[["width","left","right"],["height","top","bottom"]],Cx=da;_(da,"vertical"),_(da,"horizontal");var Tx,Mx,Ix,kx,Dx=Kn(),Ax=(n(va,Tx=J_),va.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},va.prototype.mergeDefaultAndTheme=function(t,e){var n=ga(this),i=n?ma(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),n&&ya(t,i,n)},va.prototype.mergeOption=function(t,e){s(this.option,t,!0);var n=ga(this);n&&ya(this.option,t,n)},va.prototype.optionUpdated=function(t,e){},va.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Ey])return t.defaultOption;var e=Dx(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={},a=n.length-1;0<=a;a--)o=s(o,n[a],!0);e.defaultOption=o}return e.defaultOption},va.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Jn(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},va.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},va.prototype.getZLevelKey=function(){return""},va.prototype.setZLevel=function(t){this.option.zlevel=t},va.protoInitialize=((q_=va.prototype).type="component",q_.id="",q_.name="",q_.mainType="",q_.subType="",void(q_.componentIndex=0)),va);ri(Ax,J_),si(Ax),Ix={},(Mx=Ax).registerSubTypeDefaulter=function(t,e){t=ni(t),Ix[t.main]=e},Mx.determineSubType=function(t,e){var n,i=e.type;return i||(n=ni(t).main,Mx.hasSubTypes(t)&&Ix[n]&&(i=Ix[n](e))),i},kx=function(t){var e=[];return f(Ax.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return ni(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e},Ax.topologicalTravel=function(t,e,n,i){function r(t){0===--u[t].entryCount&&c.push(t)}function o(t){p[t]=!0,r(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,n,i=_a(s,t),r=i.originalDeps=kx(t),r=(e=a,n=[],f(r,function(t){0<=h(e,t)&&n.push(t)}),n);i.entryCount=r.length,0===i.entryCount&&l.push(t),f(r,function(e){h(i.predecessor,e)<0&&i.predecessor.push(e);var n=_a(s,e);h(n.successor,e)<0&&n.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},u=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=u[d],y=!!p[d];y&&(n.call(i,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?o:r)}f(p,function(){throw new Error("")})}};var Px,Ox,Lx,Rx,$_="",zy=("undefined"!=typeof navigator&&($_=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Ex={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zy,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zy,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zy,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zy,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zy,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zy,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$_.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},Nx=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Bx="original",zx="arrayRows",Fx="objectRows",Vx="keyedColumns",Hx="typedArray",Gx="unknown",Wx="column",Ux="row",jx={Must:1,Might:2,Not:3},Yx=Kn(),Xx=W(),qx=Kn(),Zx=(Kn(),Sa.prototype.getColorFromPalette=function(t,e,n){var i=Fn(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=qx;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=null!=n&&r?Ca(r,n):i)||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},Sa.prototype.clearColorPalette=function(){var t,e;(e=qx)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Sa),Kx="\0_ec_inner",$x=(n(Ta,Rx=J_),Ta.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new J_(i),this._locale=new J_(r),this._optionManager=o},Ta.prototype.setOption=function(t,e,n){e=ka(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Ta.prototype.resetOption=function(t,e){return this._resetOption(t,ka(e))},Ta.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Lx(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&f(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Ta.prototype.mergeOption=function(t){this._mergeOption(t,null)},Ta.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],u=W(),h=e&&e.replaceMergeMainTypeMap;Yx(this).datasetMap=W(),f(t,function(t,e){null!=t&&(Ax.hasClass(e)?e&&(o.push(e),u.set(e,!0)):n[e]=null==n[e]?a(t):s(n[e],t,!0))}),h&&h.each(function(t,e){Ax.hasClass(e)&&!u.get(e)&&(o.push(e),u.set(e,!0))}),Ax.topologicalTravel(o,Ax.getAllClassMainTypes(),function(e){var o,a=function(t,e,n){return(e=(e=Xx.get(e))&&e(t))?n.concat(e):n}(this,e,Fn(t[e])),s=i.get(e),u=s?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Gn(s,a,u),c=(qn(s,e,Ax),n[e]=null,i.set(e,null),r.set(e,0),[]),p=[],d=0;f(s,function(t,n){var i=t.existing,r=t.newOption;if(r){var a=Ax.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(o)return;o=!0}i&&i.constructor===a?(i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1)):(n=l({componentIndex:n},t.keyInfo),l(i=new a(r,this,this,n),n),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),d++):(c.push(void 0),p.push(void 0))},this),n[e]=c,i.set(e,p),r.set(e,d),"series"===e&&Px(this)},this),this._seriesIndices||Px(this)},Ta.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,n){if(Ax.hasClass(n)){for(var i=Fn(e),r=i.length,o=!1,a=r-1;0<=a;a--)i[a]&&!Xn(i[a])?o=!0:(i[a]=null,o||r--);i.length=r,t[n]=i}}),delete t[Kx],t},Ta.prototype.getTheme=function(){return this._theme},Ta.prototype.getLocaleModel=function(){return this._locale},Ta.prototype.setUpdatePayload=function(t){this._payload=t},Ta.prototype.getUpdatePayload=function(){return this._payload},Ta.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0])return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},Ta.prototype.queryComponents=function(t){var e,n,i,r,o,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],f(Fn(e),function(t){r[t]&&o.push(r[t])})):o=null!=n?Ma("id",n,r):null!=i?Ma("name",i,r):m(r,function(t){return!!t}),Ia(o,t)):[]},Ta.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,r=(r=i+"Index",o=i+"Id",e=i+"Name",!(n=n)||null==n[r]&&null==n[o]&&null==n[e]?null:{mainType:i,index:n[r],id:n[o],name:n[e]}),o=r?this.queryComponents(r):m(this._componentsMap.get(i),function(t){return!!t});return n=Ia(o,t),t.filter?m(n,t.filter):n},Ta.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(w(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=b(t)?i.get(t):T(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Ta.prototype.getSeriesByName=function(t){var e=jn(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Ta.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Ta.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},Ta.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},Ta.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Ta.prototype.eachSeries=function(t,e){Ox(this),f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},Ta.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},Ta.prototype.eachSeriesByType=function(t,e,n){Ox(this),f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},Ta.prototype.eachRawSeriesByType=function(t,e,n){return f(this.getSeriesByType(t),e,n)},Ta.prototype.isSeriesFiltered=function(t){return Ox(this),null==this._seriesIndicesMap.get(t.componentIndex)},Ta.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Ta.prototype.filterSeries=function(t,e){Ox(this);var n=[];f(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=W(n)},Ta.prototype.restoreData=function(t){Px(this);var e=this._componentsMap,n=[];e.each(function(t,e){Ax.hasClass(e)&&n.push(e)}),Ax.topologicalTravel(n,Ax.getAllClassMainTypes(),function(n){f(e.get(n),function(e){!e||"series"===n&&function(t,e){var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}(e,t)||e.restoreData()})})},Ta.internalField=(Px=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=W(e)},Ox=function(t){},void(Lx=function(t,e){t.option={},t.option[Kx]=1,t._componentsMap=W({series:[]}),t._componentsCount=W();var n,i,r=e.aria;T(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,f(r,function(t,e){"colorLayer"===e&&i||Ax.hasClass(e)||("object"==typeof t?n[e]=n[e]?s(n[e],t,!1):a(t):null==n[e]&&(n[e]=t))}),s(e,Ex,!1),t._mergeOption(e,null)})),Ta);p($x,Zx);var Qx,Jx,tw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ew={},nw=(Aa.prototype.create=function(t,e){var n=[];f(ew,function(i,r){i=i.create(t,e),n=n.concat(i||[])}),this._coordinateSystems=n},Aa.prototype.update=function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},Aa.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Aa.register=function(t,e){ew[t]=e},Aa.get=function(t){return ew[t]},Aa),iw=/^(min|max)?(.+)$/,rw=(Pa.prototype.setOption=function(t,e,n){t&&(f(Fn(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Fn(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var i=this._optionBackup,t=function(t,e,n){function i(t){f(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,p=!!(u||l||s&&s.timeline);return s?(o=s).timeline||(o.timeline=l):((p||c)&&(t.options=t.media=null),o=t),c&&x(h)&&f(h,function(t){t&&t.option&&(t.query?a.push(t):r=r||t)}),i(o),f(u,i),f(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},Pa.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},Pa.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?a(n[t.getCurrentIndex()]):e},Pa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(i.length||r){for(var l,u,h=0,c=i.length;h<c;h++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return f(t,function(t,e){var n,e=e.match(iw);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(r=!1))}),r}(i[h].query,e,n)||o.push(h);(o=!o.length&&r?[-1]:o).length&&(l=o,u=this._currentMediaIndices,l.join(",")!==u.join(","))&&(s=g(o,function(t){return a((-1===t?r:i[t]).option)})),this._currentMediaIndices=o}return s},Pa),ow=f,aw=T,sw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],lw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],uw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],hw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],cw=function(t){this.data=t.data||(t.sourceFormat===Vx?{}:[]),this.sourceFormat=t.sourceFormat||Gx,this.seriesLayoutBy=t.seriesLayoutBy||Wx,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&&ba(this,n)===jx.Must&&(i.type="ordinal")}};Ja.prototype.getSource=function(){return this._source},Ja.prototype.count=function(){return 0},Ja.prototype.getItem=function(t,e){},Ja.prototype.appendData=function(t){},Ja.prototype.clean=function(){},Ja.protoInitialize=((N_=Ja.prototype).pure=!1,void(N_.persistent=!0)),Ja.internalField=(Jx=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;l(t,Qx[ss(r,o)]),r===Hx?(t.getItem=pw,t.count=fw,t.fillStorage=dw):(i=ns(r,o),t.getItem=If(i,null,e,a,n),i=rs(r,o),t.count=If(i,null,e,a,n))},pw=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},dw=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;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],p=0;p<h;p++){var d=r[p*o+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},fw=function(){return this._data?this._data.length/this._dimSize:0},(N_={})[zx+"_"+Wx]={pure:!0,appendData:ts},N_[zx+"_"+Ux]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},N_[Fx]={pure:!0,appendData:ts},N_[Vx]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},N_[Bx]={appendData:ts},N_[Hx]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Qx=N_));var pw,dw,fw,gw=Ja;(px={})[zx+"_"+Wx]=function(t,e,n,i){return t[i+e]},px[zx+"_"+Ux]=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},px[Fx]=es,px[Vx]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},px[Bx]=es;var yw=px;(q_={})[zx+"_"+Wx]=function(t,e,n){return Math.max(0,t.length-e)},q_[zx+"_"+Ux]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},q_[Fx]=is,q_[Vx]=function(t,e,n){return t=t[n[0].name],t?t.length:0},q_[Bx]=is;var mw=q_;(zy={})[zx]=os,zy[Fx]=function(t,e,n){return t[n]},zy[Vx]=os,zy[Bx]=function(t,e,n){return t=Hn(t),t instanceof Array?t[e]:t},zy[Hx]=os;var vw=zy,_w=/\{@(.+?)\}/g,$_=(us.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"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},us.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),n=this.getDataParams(t,n);return o&&(n.value=o.interpolatedValue),null!=i&&x(n.value)&&(n.value=n.value[i]),w(r=r||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(n.status=e,n.dimensionIndex=i,r(n)):b(r)?ua(r,n).replace(_w,function(e,n){var i=n.length,i=("["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),ls(a,t,n));return null!=(i=o&&x(o.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?o.interpolatedValue[n]:i)?i+"":""}):void 0},us.prototype.getRawValue=function(t,e){return ls(this.getData(e),t)},us.prototype.formatTooltip=function(t,e,n){},us);ps.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var n,i,r=this._upstream,o=t&&t.skip,a=(this._dirty&&r&&((a=this.context).data=a.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(n=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;if(a===l&&s===u||(n="reset"),!this._dirty&&"reset"!==n||(this._dirty=!1,i=this._doReset(o)),this._modBy=l,this._modDataCount=u,a=t&&t.step,this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!o&&(i||h<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,l,u);else this._doProgress(p,h,c,l,u)}this._dueIndex=c,s=null!=this._settedOutputEnd?this._settedOutputEnd:c,this._outputDueEnd=s}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},ps.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ps.prototype._doProgress=function(t,e,n,i,r){Iw.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Iw.next},this.context)},ps.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),x(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},ps.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ps.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},ps.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ps.prototype.getUpstream=function(){return this._upstream},ps.prototype.getDownstream=function(){return this._downstream},ps.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var xw,ww,bw,Sw,Cw,Tw,Mw=ps,Iw=Tw={reset:function(t,e,n,i){ww=t,xw=e,bw=n,Sw=i,Cw=Math.ceil(Sw/bw),Tw.next=1<bw&&0<Sw?fs:ds}},kw=W({number:function(t){return parseFloat(t)},time:function(t){return+Dn(t)},trim:function(t){return b(t)?F(t):t}}),Dw={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},Aw=(ms.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(Ln(t),this._rvalFloat)},ms);vs.prototype.evaluate=function(t,e){var n=C(t)?t:Ln(t),i=C(e)?e:Ln(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=b(t),o=b(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var Pw=vs;_s.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Ln(t)===this._rvalFloat),this._isEQ?n:!n};var Ow=_s;xs.prototype.getRawData=function(){throw new Error("not supported")},xs.prototype.getRawDataItem=function(t){throw new Error("not supported")},xs.prototype.cloneRawData=function(){},xs.prototype.getDimensionInfo=function(t){},xs.prototype.cloneAllDimensionInfo=function(){},xs.prototype.count=function(){},xs.prototype.retrieveValue=function(t,e){},xs.prototype.retrieveValueFromItem=function(t,e){},xs.prototype.convertValue=gs;var Lw,Rw=xs,Ew=W(),N_="undefined",Nw=typeof Uint32Array==N_?Array:Uint32Array,Bw=typeof Uint16Array==N_?Array:Uint16Array,zw=typeof Int32Array==N_?Array:Int32Array,px=typeof Float64Array==N_?Array:Float64Array,Fw={float:px,int:zw,ordinal:Array,number:Array,time:px};As.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=Lw[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],Qa(i),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},As.prototype.getProvider=function(){return this._provider},As.prototype.getSource=function(){return this._provider.getSource()},As.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 Fw[e||"float"](this._rawCount),this._rawExtent[r]=ks(),r},As.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length,s=(0===o&&(r[t]=ks()),r[t]),l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},As.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},As.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},As.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},As.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;l<r;l++)Ds(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<r;p++){var d=i[p],f=Lw.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,o[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},As.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;u<a;u++){var h=o[u];s[u]||(s[u]=ks()),Ds(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=r[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},As.prototype.count=function(){return this._count},As.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},As.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;r<o;r++)n.push(this.get(i[r],e));return n},As.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},As.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},As.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},As.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){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;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},As.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(i){null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<o||c===o&&0<=h&&a<0)&&(o=c,a=h,s=0),h===a)&&(r[s++]=l)}r.length=s}return r},As.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;r<n;r++)i[r]=t[r];else i=new e(t.buffer,0,n)}else for(i=new(e=Is(this._rawCount))(this.count()),r=0;r<i.length;r++)i[r]=r;return i},As.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Is(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},As.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=v(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Is(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===r){for(var d=c[i[0]],f=0;f<n;f++)(u<=(_=d[f])&&_<=h||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===r){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var _=d[f],x=g[f];(u<=_&&_<=h||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===r)for(f=0;f<o;f++){var w=e.getRawIndex(f);(u<=(_=c[i[0]][w])&&_<=h||isNaN(_))&&(a[s++]=w)}else for(f=0;f<o;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<r;S++){var C=i[S];((_=c[C][w])<t[C][0]||_>t[C][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},As.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},As.prototype.modify=function(t,e){this._updateDims(this,t,e)},As.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]]=ks();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},As.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Is(this._rawCount))(Math.ceil(o/s)+2);u[a++]=l;for(var h=1;h<o-1;h+=s){for(var c=Math.min(h+s,o-1),p=Math.min(h+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[b=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,o),v=h-1,_=r[l],x=-1,w=c,g=c;g<m;g++){var b,y=r[b=this.getRawIndex(g)];isNaN(y)||x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,w=b)}l=u[a++]=w}return u[a++]=this.getRawIndex(o-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},As.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]=ks(),c=new(Is(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},As.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;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=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},As.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ks();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var r,o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,a]},As.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},As.prototype.clone=function(t,e){var n,i,r=new As,o=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(n=o[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},As.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=a(this._extent),t._rawExtent=a(this._rawExtent)},As.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},As.prototype._getRawIdxIdentity=function(t){return t},As.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},As.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},As.internalField=void(Lw={arrayRows:Ps,objectRows:function(t,e,n,i){return gs(t[e],this._dimensions[i])},keyedColumns:Ps,original:function(t,e,n,i){return t=t&&(null==t.value?t:t.value),gs(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Vw=As;Os.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Os.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Os.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Os.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Os.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Rs(s)?(i=s,r=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=I(o=i.get("data",!0))?Hx:Bx,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=R(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=R(i.sourceHeader,r.sourceHeader),i=R(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[Xa(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[Xa(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Os.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&Es(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Es(""),o.push(e),s.push(t._getVersionSign())}),i?e=Ts(i,o,n.componentIndex):null!=r&&(e=[new cw({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Os.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}},Os.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Os.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Os.prototype._innerGetDataStore=function(t,e,n){var i,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],Rs(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new Vw).initData(new gw(e,t.length),t),o[n]=r),r},Os.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Rs(e)?(t=wa(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Jn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Oy).models:[],function(t){return t.getSourceManager()})},Os.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Rs(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var Hw=Os,Gw="line-height:1",Ww=[0,10,20,30],Uw=["","\n","\n\n","\n\n\n"];Ys.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Ys.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=ha({color:e,type:t,renderMode:n,markerId:i});return b(e)?e:(this.richTextStyles[i]=e.style,e.content)},Ys.prototype.wrapRichTextStyle=function(t,e){var n={},e=(x(e)?f(e,function(t){return l(n,t)}):l(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var jw=Ys,Yw=Kn();n(Zs,Xw=Ax),Zs.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=cs({count:$s,reset:Qs}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Yw(this).sourceManager=new Hw(this)).prepareSource(),t=this.getInitialData(t,n),tl(t,this),this.dataTask.context.data=t,Yw(this).dataBeforeProcessed=t,Ks(this),this._initSelectedMapFromData(t)},Zs.prototype.mergeDefaultAndTheme=function(t,e){var n=ga(this),i=n?ma(t):{},r=this.subType;Ax.hasClass(r),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Vn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ya(t,i,n)},Zs.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ga(this),n=(n&&ya(this.option,t,n),Yw(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));tl(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Yw(this).dataBeforeProcessed=n,Ks(this),this._initSelectedMapFromData(n)},Zs.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Vn(t[n],"label",e)},Zs.prototype.getInitialData=function(t,e){},Zs.prototype.appendData=function(t){this.getRawData().appendData(t.data)},Zs.prototype.getData=function(t){var e=nl(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):Yw(this).data},Zs.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},Zs.prototype.setData=function(t){var e,n=nl(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Yw(this).data=t},Zs.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return W(t)},Zs.prototype.getSourceManager=function(){return Yw(this).sourceManager},Zs.prototype.getSource=function(){return this.getSourceManager().getSource()},Zs.prototype.getRawData=function(){return Yw(this).dataBeforeProcessed},Zs.prototype.getColorBy=function(){return this.get("colorBy")||"series"},Zs.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},Zs.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},Zs.prototype.formatTooltip=function(t,e,n){return Xs({series:this,dataIndex:t,multipleSeries:e})},Zs.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!af.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},Zs.prototype.restoreData=function(){this.dataTask.dirty()},Zs.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Zx.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Zs.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Zs.prototype.getProgressive=function(){return this.get("progressive")},Zs.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Zs.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Zs.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)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=qs(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},Zs.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)},Zs.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},Zs.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[qs(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},Zs.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},Zs.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,r=e.length;if(i&&r)if("series"===i)n.selectedMap="all";else if("multiple"===i){T(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=qs(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=qs(t,i=e[r-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},Zs.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),0<e.length&&this._innerSelect(t,e))},Zs.registerClass=function(t){return Ax.registerClass(t)},Zs.protoInitialize=((q_=Zs.prototype).type="series.__base__",q_.seriesIndex=0,q_.ignoreStyleOnData=!1,q_.hasSymbolVisual=!1,q_.defaultSymbol="circle",q_.visualStyleAccessPath="itemStyle",void(q_.visualDrawType="fill"));var Xw,qw=Zs;p(qw,$_),p(qw,Zx),ri(qw,Ax),il.prototype.init=function(t,e){},il.prototype.render=function(t,e,n,i){},il.prototype.dispose=function(t,e){},il.prototype.updateView=function(t,e,n,i){},il.prototype.updateLayout=function(t,e,n,i){},il.prototype.updateVisual=function(t,e,n,i){},il.prototype.blurSeries=function(t,e){},il.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Zw=il;ii(Zw),si(Zw);var Kw=Kn(),$w=rl(),Qw=(ol.prototype.init=function(t,e){},ol.prototype.render=function(t,e,n,i){},ol.prototype.highlight=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&sl(t,i,"emphasis")},ol.prototype.downplay=function(t,e,n,i){(t=t.getData(i&&i.dataType))&&sl(t,i,"normal")},ol.prototype.remove=function(t,e){this.group.removeAll()},ol.prototype.dispose=function(t,e){},ol.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},ol.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},ol.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},ol.prototype.eachRendered=function(t){To(this.group,t)},ol.markUpdateMethod=function(t,e){Kw(t).updateMethod=e},ol.protoInitialize=void(ol.prototype.type="chart"),ol);ii(Qw),si(Qw);var Jw={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)}}},tb="\0__throttleOriginMethod",eb="\0__throttleRate",nb="\0__throttleType",ib=Kn(),rb={itemStyle:li(Z_,!0),lineStyle:li(Y_,!0)},ob={lineStyle:"stroke",itemStyle:"fill"},zy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=dl(t,i)(r),r=r.getShallow("decal"),a=(r&&(n.setVisual("decal",r),r.dirty=!0),fl(t,i)),r=o[a],s=w(r)?r:null,i="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!i||(r=t.getColorFromPalette(t.name,null,e.getSeriesCount()),o[a]||(o[a]=r,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||w(o.fill)?r:o.fill,o.stroke="auto"===o.stroke||w(o.stroke)?r:o.stroke),n.setVisual("style",o),n.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=l({},o);r[a]=s(i),e.setItemVisual(n,"style",r)}}}},ab=new J_,N_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,i,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=dl(t,n),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var o=t.getRawDataItem(e);o&&o[n]&&(ab.option=o[n],o=i(ab),l(t.ensureUniqueItemVisual(e,"style"),o),ab.option.decal&&(t.setItemVisual(e,"decal",ab.option.decal),ab.option.decal.dirty=!0),r in o)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},px={performRawSeries:!0,overallReset:function(t){var e=W();t.eachSeries(function(t){var n,i=t.getColorBy();t.isColorBySeries()||(i=t.type+"-"+i,(n=e.get(i))||e.set(i,n={}),ib(t).scope=n)}),t.eachSeries(function(e){var n,i,r,o,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(n=e.getRawData(),i={},r=e.getData(),o=ib(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=fl(e,a),r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a,l=i[t];r.getItemVisual(l,"colorFromPalette")&&(l=r.ensureUniqueItemVisual(l,"style"),t=n.getName(t)||t+"",a=n.count(),l[s]=e.getColorFromPalette(t,o,a))}))})}},sb=Math.PI;gl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},gl.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},gl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},gl.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},gl.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();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)})},gl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;f(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});z(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},gl.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)},gl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},gl.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},gl.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;f(t,function(t,s){var l,u,h,c,p;i.visualType&&i.visualType!==t.visualType||(l=(u=a._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((c=u.agentStubMap).each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n),p=a.getPerformArgs(u,i.block),c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)):l&&l.each(function(s,l){r(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(o=!0)}))}),this.unfinished=o||this.unfinished},gl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},gl.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},gl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},gl.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,r=s.set(r,a&&a.get(r)||cs({plan:xl,reset:wl,count:Sl}));r.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,r)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=W(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):e?n.eachRawSeriesByType(e,r):l&&l(n,i).each(r)},gl.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,cs({reset:ml,onDirty:_l})));e.context={model:t,overallProgress:h},e.agent=a,e.__block=h,o._pipe(t,e)}var o=this,a=e.overallTask=e.overallTask||cs({reset:yl}),s=(a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},a.agentStubMap),l=a.agentStubMap=W(),e=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;z(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,r):u?u(n,i).each(r):(h=!1,f(n.getSeries(),r)),c&&a.dirty()},gl.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},gl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){lb=null;try{t(cb,pb)}catch(t){}return lb}(t)}:t).uid=zo("stageHandler"),e&&(t.visualType=e),t};var lb,ub=gl,hb=bl(0),cb={},pb={};Cl(cb,$x),Cl(pb,Da),cb.eachSeriesByType=cb.eachRawSeriesByType=function(t){lb=t},cb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(lb=t.subType)};var q_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],$_={color:q_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],q_]},db="#B9B8CE",Z_="#100C2A",Y_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],q_={darkMode:!0,color:Y_,backgroundColor:Z_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:db}},textStyle:{color:db},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:db}},dataZoom:{borderColor:"#71708A",textStyle:{color:db},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:db}},timeline:{lineStyle:{color:db},label:{color:db},controlStyle:{color:db,borderColor:db}},calendar:{itemStyle:{color:Z_},dayLabel:{color:db},monthLabel:{color:db},yearLabel:{color:db}},timeAxis:Tl(),logAxis:Tl(),valueAxis:Tl(),categoryAxis:Tl(),line:{symbol:"circle"},graph:{color:Y_},gauge:{title:{color:db},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:db},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},fb=(q_.categoryAxis.splitLine.show=!1,Ml.prototype.normalizeQuery=function(t){var e,n,i,r={},o={},a={};return b(t)?(e=ni(t),r.mainType=e.main||null,r.subType=e.sub||null):(n=["Index","Name","Id"],i={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<n.length;l++){var u=n[l],h=e.lastIndexOf(u);0<h&&h===e.length-u.length&&"data"!==(h=e.slice(0,h))&&(r.mainType=h,r[u.toLowerCase()]=t,s=!0)}i.hasOwnProperty(e)&&(o[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:r,dataQuery:o,otherQuery:a}},Ml.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i,r,o,a,s,l=this.eventInfo;return!l||(i=l.targetEl,r=l.packedEvent,o=l.model,l=l.view,!o)||!l||(a=e.cptQuery,s=e.dataQuery,n(a,o,"mainType")&&n(a,o,"subType")&&n(a,o,"index","componentIndex")&&n(a,o,"name")&&n(a,o,"id")&&n(s,r,"name")&&n(s,r,"dataIndex")&&n(s,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,i,r)))},Ml.prototype.afterTrigger=function(){this.eventInfo=null},Ml),gb=["symbol","symbolSize","symbolRotate","symbolOffset"],yb=gb.concat(["symbolKeepAspect"]),Z_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i,r={},o={},a=!1,s=0;s<gb.length;s++){var u=gb[s],h=t.get(u);w(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t))return i=v(o),{dataEach:a?function(e,n){for(var r=t.getRawValue(n),a=t.getDataParams(n),s=0;s<i.length;s++){var l=i[s];e.setItemVisual(n,l,o[l](r,a))}}:null}}}},Y_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<yb.length;i++){var r=yb[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}},mb=Math.round(9*Math.random()),vb="function"==typeof Object.defineProperty,_b=(Dl.prototype.get=function(t){return this._guard(t)[this._id]},Dl.prototype.set=function(t,e){return t=this._guard(t),vb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Dl.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Dl.prototype.has=function(t){return!!this._guard(t)[this._id]},Dl.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Dl),xb=Bm.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,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i+e),t.lineTo(n-r,i+e),t.closePath()}}),wb=Bm.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,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i),t.lineTo(n,i+e),t.lineTo(n-r,i),t.closePath()}}),bb=Bm.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,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=i-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),u=Math.cos(a),h=.6*r,c=.7*r;t.moveTo(n-s,e+o),t.arc(n,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+o+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+o+u*h,n-s,e+o),t.closePath()}}),Sb=Bm.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,e=e.y,i=i/3*2;t.moveTo(r,e),t.lineTo(r+i,e+n),t.lineTo(r,e+n/4*3),t.lineTo(r-i,e+n),t.lineTo(r,e),t.closePath()}}),Cb={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){n=Math.min(n,i),r.x=t,r.y=e,r.width=n,r.height=n},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}},Tb={},Mb=(f({line:h_,rect:qm,roundRect:qm,square:qm,circle:Rv,diamond:wb,pin:bb,arrow:Sb,triangle:xb},function(t,e){Tb[e]=new t}),Bm.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=hn(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,r=e.symbolType;"none"!==r&&(i=(i=Tb[r])||Tb[r="rect"],Cb[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}})),Ib=new Mm(!0),kb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Db=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Ab=1,Pb=2,Ob=3,Lb=4,Rb=new _b,Eb=new _g(100),Nb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],Bb=new Bf,zb={},Fb="undefined"!=typeof window,wb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Vb="__flagInMainProcess",Hb="__pendingUpdate",Gb="__needsUpdateStatus",Wb=/^[a-zA-Z0-9_]+$/,Ub="__connectUpdateStatus";n(eu,jb=Bf);var jb,Yb,Xb,qb,Zb,Kb,$b,Qb,Jb,tS,eS,nS,iS,rS,oS,aS,sS,lS,uS,hS,cS=eu,bb=cS.prototype,pS=(bb.on=Jl("on"),bb.off=Jl("off"),n(nu,hS=Bf),nu.prototype._onframe=function(){if(!this._disposed){uS(this);var t=this._scheduler;if(this[Hb]){var e=this[Hb].silent;this[Vb]=!0;try{Yb(this),Zb.update.call(this,null,this[Hb].updateParams)}catch(t){throw this[Vb]=!1,this[Hb]=null,t}this._zr.flush(),this[Vb]=!1,this[Hb]=null,Jb.call(this,e),tS.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),$b(this,i),t.performVisualTasks(i),oS(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},nu.prototype.getDom=function(){return this._dom},nu.prototype.getId=function(){return this.id},nu.prototype.getZr=function(){return this._zr},nu.prototype.isSSR=function(){return this._ssr},nu.prototype.setOption=function(t,e,n){if(!this[Vb])if(this._disposed)this.id;else{T(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Vb]=!0,this._model&&!e||(e=new rw(this._api),a=this._theme,(s=this._model=new $x).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},mS);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[Hb]={silent:i,updateParams:s},this[Vb]=!1,this.getZr().wakeUp();else{try{Yb(this),Zb.update.call(this,null,s)}catch(t){throw this[Hb]=null,this[Vb]=!1,t}this._ssr||this._zr.flush(),this[Hb]=null,this[Vb]=!1,Jb.call(this,i),tS.call(this,i)}}},nu.prototype.setTheme=function(){},nu.prototype.getModel=function(){return this._model},nu.prototype.getOption=function(){return this._model&&this._model.getOption()},nu.prototype.getWidth=function(){return this._zr.getWidth()},nu.prototype.getHeight=function(){return this._zr.getHeight()},nu.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fb&&window.devicePixelRatio||1},nu.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},nu.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},nu.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},nu.prototype.getSvgDataURL=function(){var t;if(af.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},nu.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,f(r,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId],t.group.ignore||(n.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(n,function(t){t.group.ignore=!1}),r;this.id},nu.prototype.getConnectedDataURL=function(t){var e,n,i,r,o,s,l,u,h,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,bS[n]?(s=o=1/0,u=l=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f(wS,function(c,p){var d;c.group===n&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),o=i(c.left,o),s=i(c.top,s),l=r(c.right,l),u=r(c.bottom,u),h.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(o*=c),d=(u*=c)-(s*=c),g=df.createCanvas(),(y=_n(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(h,function(t){var e=t.left-o,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()):(t.connectedBackgroundColor&&y.add(new qm({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(h,function(t){t=new Wm({style:{x:t.left*c-o,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},nu.prototype.convertToPixel=function(t,e){return Kb(this,"convertToPixel",t,e)},nu.prototype.convertFromPixel=function(t,e){return Kb(this,"convertFromPixel",t,e)},nu.prototype.containPixel=function(t,e){var n;if(!this._disposed)return f($n(this._model,t),function(t,i){0<=i.indexOf("Models")&&f(t,function(t){var r=t.coordinateSystem;r&&r.containPoint?n=n||!!r.containPoint(e):"seriesModels"===i&&(r=this._chartsMap[t.__viewId])&&r.containPoint&&(n=n||r.containPoint(e,t))},this)},this),!!n;this.id},nu.prototype.getVisual=function(t,e){var t=$n(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},nu.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},nu.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},nu.prototype._initEvents=function(){var t,e,n,i=this;f(dS,function(t){function e(e){var n,r,o,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&kl(s,function(t){var e,t=nv(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(n=l({},t.eventData),1)},!0),n&&(r=n.componentType,o=n.componentIndex,"markLine"!==r&&"markPoint"!==r&&"markArea"!==r||(r="series",o=n.seriesIndex),o=(r=r&&null!=o&&a.getComponent(r,o))&&i["series"===r.mainType?"_chartsMap":"_componentsMap"][r.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:r,view:o},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),f(gS,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),f(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Il("map","selectchanged",e,i,t),Il("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Il("map","selected",e,i,t),Il("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Il("map","unselected",e,i,t),Il("pie","unselected",e,i,t))})},nu.prototype.isDisposed=function(){return this._disposed},nu.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},nu.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ti(this.getDom(),TS,""),e=(t=this)._api,n=t._model,f(t._componentsViews,function(t){t.dispose(n,e)}),f(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 wS[t.id])},nu.prototype.resize=function(t){if(!this[Vb])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[Hb]&&(null==n&&(n=this[Hb].silent),e=!0,this[Hb]=null),this[Vb]=!0;try{e&&Yb(this),Zb.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[Vb]=!1,t}this[Vb]=!1,Jb.call(this,n),tS.call(this,n)}}},nu.prototype.showLoading=function(t,e){this._disposed?this.id:(T(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),xS[t]&&(t=xS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},nu.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},nu.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=gS[t.type],e},nu.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(T(e)||(e={silent:!!e}),fS[t.type]&&this._model&&(this[Vb]?this._pendingActions.push(t):(n=e.silent,Qb.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&af.browser.weChat&&this._throttledZrFlush(),Jb.call(this,n),tS.call(this,n))))},nu.prototype.updateLabelLayout=function(){Bb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},nu.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},nu.internalField=(Yb=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Xb(t,!0),Xb(t,!1),e.plan()},Xb=function(t,e){function n(t){var n,u=t.__requireNewView,h=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),u=!u&&a[h];u||(n=ni(t.type),(u=new(e?Zw.getClass(n.main,n.sub):Qw.getClass(n.sub))).init(i,l),a[h]=u,o.push(u),s.add(u.group)),t.__viewId=u.__id=h,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(u,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;for(e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n),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)}},qb=function(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,l,t._api,n)}var a,s,l=t._model;l.setUpdatePayload(n),i?((a={})[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"],a={mainType:i,query:a},r&&(a.subType=r),null!=(r=n.excludeSeriesId)&&(s=W(),f(Fn(r),function(t){null!=(t=jn(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var i,r,o=s&&null!==s.get(e.id);if(!o)if(Mr(n))if(e instanceof qw){if(n.type===pv&&!n.notBlur&&!e.get(["emphasis","disabled"])){var o=e,a=n,l=t._api,u=o.seriesIndex,h=o.getData(a.dataType);if(h){var a=(x(a=Zn(h,a))?a[0]:a)||0,c=h.getItemGraphicEl(a);if(!c)for(var p=h.count(),d=0;!c&&d<p;)c=h.getItemGraphicEl(d++);c?yr(u,(a=nv(c)).focus,a.blurScope,l):(a=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=a&&yr(u,a,o,l))}}}else u=vr(e.mainType,e.componentIndex,n.name,t._api),a=u.focusSelf,o=u.dispatchers,n.type===pv&&a&&!n.notBlur&&mr(e.mainType,e.componentIndex,t._api),o&&f(o,function(t){(n.type===pv?ur:hr)(t)});else Tr(n)&&e instanceof qw&&(l=e,o=n,t._api,Tr(o)&&(i=o.dataType,x(r=Zn(l.getData(i),o))||(r=[r]),l[o.type===yv?"toggleSelect":o.type===fv?"select":"unselect"](r,i)),_r(e),lS(t))},t),l&&l.eachComponent(a,function(e){s&&null!==s.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),o)},Zb={prepareAndUpdate:function(t){Yb(this),Zb.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),$b(this,n),o.update(n,i),iu(n),a.performVisualTasks(n,t),iS(this,n,i,t,e),o=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),r.setBackgroundColor(o),null!=a&&"auto"!==a&&r.setDarkMode(a),Bb.trigger("afterupdate",n,i))},updateTransform:function(t){var e,n,i=this,r=this._model,o=this._api;r&&(r.setUpdatePayload(t),e=[],r.eachComponent(function(n,a){"series"!==n&&(n=i.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,r,o,t))&&a.update)&&e.push(n)}),n=W(),r.eachSeries(function(e){var a=i._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,r,o,t))&&a.update)&&n.set(e.uid,1)}),iu(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:n}),oS(this,r,o,t,{},n),Bb.trigger("afterupdate",r,o))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Qw.markUpdateMethod(t,"updateView"),iu(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),iS(this,e,this._api,t,{}),Bb.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),Qw.markUpdateMethod(t,"updateVisual"),iu(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,r){"series"!==i&&(i=e.getViewOfComponentModel(r))&&i.__alive&&i.updateVisual(r,n,e._api,t)}),n.eachSeries(function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)}),Bb.trigger("afterupdate",n,this._api))},updateLayout:function(t){Zb.update.call(this,t)}},Kb=function(t,e,n,i){if(t._disposed)t.id;else for(var r=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=$n(r,n),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](r,a,i)))return l}},$b=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Qb=function(t,e){var n,i,r=this,o=this.getModel(),a=t.type,s=t.escapeConnect,h=fS[a],c=h.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&ni(p[0]),p=(this[Vb]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=u(l({},e),t)).batch=null,e})),[]),_=Tr(t),x=Mr(t);if(x&&gr(this._api),f(p,function(e){var i,o;(n=(n=h.action(e,r._model,r._api))||l({},e)).type=c.event||n.type,v.push(n),x?(i=(o=Qn(t)).queryOptionMap,o=o.mainTypeSpecified?i.keys()[0]:"series",qb(r,d,e,o),lS(r)):_?(qb(r,d,e,"series"),lS(r)):y&&qb(r,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[Hb]?(Yb(this),Zb.update.call(this,t),this[Hb]=null):Zb[d].call(this,t)}catch(e){throw this[Vb]=!1,e}n=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[Vb]=!1,e||((p=this._messageCenter).trigger(n.type,n),_&&(m={type:"selectchanged",escapeConnect:s,selected:(i=[],o.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,n=t.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:t.seriesIndex},null!=e&&(n.dataType=e),i.push(n))})}),i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},Jb=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Qb.call(this,n,t)}},tS=function(t){t||this.trigger("updated")},eS=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Hb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},nS=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a=kl(t.target,Cr);a&&(a=a,n=t,t=e._api,i=nv(a),r=(o=vr(i.componentMainType,i.componentIndex,i.componentHighDownName,t)).dispatchers,o=o.focusSelf,r?(o&&mr(i.componentMainType,i.componentIndex,t),f(r,function(t){return sr(t,n)})):(yr(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&mr(i.componentMainType,i.componentIndex,t),sr(a,n)),lS(e))}).on("mouseout",function(t){var n,i,r=kl(t.target,Cr);r&&(r=r,n=t,gr(t=e._api),(i=vr((i=nv(r)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?f(i,function(t){return lr(t,n)}):lr(r,n),lS(e))}).on("click",function(t){var n,t=kl(t.target,function(t){return null!=nv(t).dataIndex},!0);t&&(n=t.selected?"unselect":"select",t=nv(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},iS=function(t,e,n,i,r){var o,a,s,l,u,h,c;u=[],c=!(h=[]),(o=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:r})}),c&&(At(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),rS(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive=!1}),oS(t,e,n,i,r),f(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},rS=function(t,e,n,i,r,o){f(o||t._componentsViews,function(t){var r=t.__model;au(0,t),t.render(r,e,n,i),ou(r,t),su(r,t)})},oS=function(t,e,n,i,r,o){var a,s,u,h,c=t._scheduler,p=(r=l(r||{},{updatedSeries:e.getSeries()}),Bb.trigger("series:beforeupdate",e,n,r),!1);e.eachSeries(function(e){var n,r=t._chartsMap[e.__viewId],a=(r.__alive=!0,r.renderTask);c.updatePayload(a,i),au(0,r),o&&o.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),r.group.silent=!!e.get("silent"),a=r,n=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=n)}),_r(e)}),c.unfinished=p||c.unfinished,Bb.trigger("series:layoutlabels",e,n,r),Bb.trigger("series:transition",e,n,r),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];ou(e,n),su(e,n)}),s=e,u=(a=t)._zr.storage,h=0,u.traverse(function(t){t.isGroup||h++}),h>s.get("hoverLayerThreshold")&&!af.node&&!af.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Bb.trigger("series:afterupdate",e,n,r)},lS=function(t){t[Gb]=!0,t.getZr().wakeUp()},uS=function(t){t[Gb]&&(t.getZr().storage.traverse(function(t){no(t)||ru(t)}),t[Gb]=!1)},aS=function(t){function e(){return null!==i&&i.apply(this,arguments)||this}return n(e,i=Da),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){ur(e,n),lS(t)},e.prototype.leaveEmphasis=function(e,n){hr(e,n),lS(t)},e.prototype.enterBlur=function(e){nr(e,$i),lS(t)},e.prototype.leaveBlur=function(e){cr(e),lS(t)},e.prototype.enterSelect=function(e){pr(e),lS(t)},e.prototype.leaveSelect=function(e){dr(e),lS(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);var i},void(sS=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][Ub]=e}f(gS,function(n,i){t._messageCenter.on(i,function(n){var i,r;!bS[t.group]||0===t[Ub]||n&&n.escapeConnect||(i=t.makeActionFromEvent(n),r=[],f(wS,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),f(r,function(t){1!==t[Ub]&&t.dispatchAction(i)}),e(r,2))})})})),nu),Sb=pS.prototype,dS=(Sb.on=Ql("on"),Sb.off=Ql("off"),Sb.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),fS={},gS={},yS=[],mS=[],vS=[],_S={},xS={},wS={},bS={},SS=+new Date,CS=+new Date,TS="_echarts_instance_";xb=lu;var MS=[];_u(2e3,zy),_u(4500,N_),_u(4500,px),_u(2e3,Z_),_u(4500,Y_),_u(7e3,function(t,e){t.eachRawSeries(function(n){var i;!t.isSeriesFiltered(n)&&((i=n.getData()).hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Kl(n,e))}),n=i.getVisual("decal"))&&(i.getVisual("style").decal=Kl(n,e))})}),cu(Ua),pu(900,function(t){var e=W();t.eachSeries(function(t){var n,i=t.get("stack");i&&(i=e.get(i)||e.set(i,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(t))}),e.each(ja)}),wu("default",function(t,e){u(e=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,i=new wy,r=new qm({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=(i.add(r),new Qm({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001})),a=new qm({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new m_({shape:{startAngle:-sb/2,endAngle:-sb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*sb/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*sb/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,i=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),l=t.getHeight()/2;e.showSpinner&&n.setShape({cx:i,cy:l}),a.setShape({x:i-s,y:l-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}),yu({type:pv,event:pv,update:pv},q),yu({type:dv,event:dv,update:dv},q),yu({type:fv,event:fv,update:fv},q),yu({type:gv,event:gv,update:gv},q),yu({type:yv,event:yv,update:yv},q),hu("light",$_),hu("dark",q_),Mu.prototype.add=function(t){return this._add=t,this},Mu.prototype.update=function(t){return this._update=t,this},Mu.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Mu.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Mu.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Mu.prototype.remove=function(t){return this._remove=t,this},Mu.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Mu.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,s=i[o],l=n[s],u=Cu(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},Mu.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=Cu(l),c=Cu(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)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(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},Mu.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Cu(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},Mu.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[i](t[o],o);r||(n[o]=l),e&&(0===(s=Cu(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var IS=Mu;Iu.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Iu.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var kS,DS,AS,PS,OS,LS,RS,ES=Iu,NS=function(t){this.otherDims={},null!=t&&l(this,t)},BS=Kn(),zS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},FS=(Au.prototype.isDimensionOmitted=function(){return this._dimOmitted},Au.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Lu(this.source))},Au.prototype.getSourceDimensionIndex=function(t){return R(this._dimNameMap.get(t),-1)},Au.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Au.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Qa(this.source),n=!(30<t),i="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),r.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(zS[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Au.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];r&&r.storeDimIndex===e?(r.isCalculationCoord||(i=r.name),n++):(r=this.getSourceDimension(e))&&(i=r.name),t.push(i)}return t},Au.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Au),VS=T,HS=g,GS="undefined"==typeof Int32Array?Array:Int32Array,WS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],US=["_approximateExtent"],jS=(Ru.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},Ru.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},Ru.prototype._recognizeDimIndex=function(t){if(C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Ru.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Ru.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Ru.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]}},Ru.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Ru.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},Ru.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Ru.prototype.getStore=function(){return this._store},Ru.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof Vw?t:i)||(r=this.dimensions,t=Ya(t)||d(t)?new gw(t,r.length):t,i=new Vw,r=HS(r,function(t){return{type:o._dimInfos[t].type,property:t}}),i.initData(t,r,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=ku(this,this._schema),this.userOutput=this._dimSummary.userOutput},Ru.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Ru.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<i;o++)this._nameList[o]=e[o-n],r&&RS(this,o)},Ru.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)}},Ru.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Hx&&!t.fillStorage},Ru.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),r=this._idList;if(n.getSource().sourceFormat===Bx&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!T(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=jn(s,null)),l=l.id,null==r[a])&&null!=l&&(r[a]=jn(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)RS(this,a);kS(this)}},Ru.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Ru.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Ru.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Ru.prototype.setCalculationInfo=function(t,e){VS(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Ru.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?AS(this,this._nameDimIdx,t):e)?"":e},Ru.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Ru.prototype.getId=function(t){return DS(this,this.getRawIndex(t))},Ru.prototype.count=function(){return this._store.count()},Ru.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},Ru.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},Ru.prototype.getIndices=function(){return this._store.getIndices()},Ru.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Ru.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Ru.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Ru.prototype.getValues=function(t,e){var n=this,i=this._store;return x(t)?i.getValues(HS(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},Ru.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},Ru.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},Ru.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Ru.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Ru.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Ru.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},Ru.prototype.each=function(t,e,n){w(t)&&(n=e,e=t,t=[]),n=n||this,t=HS(PS(t),this._getStoreDimIndex,this),this._store.each(t,n?If(e,n):e)},Ru.prototype.filterSelf=function(t,e,n){return w(t)&&(n=e,e=t,t=[]),n=n||this,t=HS(PS(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?If(e,n):e),this},Ru.prototype.selectRange=function(t){var e=this,n={};return f(v(t),function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]}),this._store=this._store.selectRange(n),this},Ru.prototype.mapArray=function(t,e,n){w(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},Ru.prototype.map=function(t,e,n,i){return n=n||i||this,i=HS(PS(t),this._getStoreDimIndex,this),t=LS(this),t._store=this._store.map(i,n?If(e,n):e),t},Ru.prototype.modify=function(t,e,n,i){n=n||i||this,i=HS(PS(t),this._getStoreDimIndex,this),this._store.modify(i,n?If(e,n):e)},Ru.prototype.downSample=function(t,e,n,i){var r=LS(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},Ru.prototype.lttbDownSample=function(t,e){var n=LS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},Ru.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Ru.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new J_(t,e,e&&e.ecModel)},Ru.prototype.diff=function(t){var e=this;return new IS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return DS(t,e)},function(t){return DS(e,t)})},Ru.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Ru.prototype.setVisual=function(t,e){this._visual=this._visual||{},VS(t)?l(this._visual,t):this._visual[t]=e},Ru.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Ru.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Ru.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(x(n=this.getVisual(e))?n=n.slice():VS(n)&&(n=l({},n)),i[e]=n),n},Ru.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,VS(e)?l(i,e):i[e]=n},Ru.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Ru.prototype.setLayout=function(t,e){VS(t)?l(this._layout,t):this._layout[t]=e},Ru.prototype.getLayout=function(t){return this._layout[t]},Ru.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Ru.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l(this._itemLayouts[t]||{},e):e},Ru.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Ru.prototype.setItemGraphicEl=function(t,e){var n,i,r,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,r=t,(a=e)&&((o=nv(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,"group"===a.type)&&a.traverse(function(t){t=nv(t),t.seriesIndex=n,t.dataIndex=r,t.dataType=i}),this._graphicEls[t]=e},Ru.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Ru.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},Ru.prototype.cloneShallow=function(t){return t=t||new Ru(this._schema||HS(this.dimensions,this._getDimInfo,this),this.hostModel),OS(t,this),t._store=this._store,t},Ru.prototype.wrapMethod=function(t,e){var n=this[t];w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(N(arguments)))})},Ru.internalField=(kS=function(t){var e=t._invertedIndicesMap;f(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new GS(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},AS=function(t,e,n){return jn(t._getCategory(e,n),null)},DS=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?AS(t,t._idDimIdx,e):n)?"e\0\0"+e:n},PS=function(t){return t=x(t)?t:null!=t?[t]:[]},LS=function(t){var e=new Ru(t._schema||HS(t.dimensions,t._getDimInfo,t),t.hostModel);return OS(e,t),e},OS=function(t,e){f(WS.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,f(US,function(n){t[n]=a(e[n])}),t._calculationInfo=l({},e._calculationInfo)},void(RS=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=r&&(n[e]=a=AS(t,r,e)),null==s&&null!=o&&(i[e]=s=AS(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+r),i[e]=s)})),Ru),YS=function(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t},XS={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Oy).models[0],t=t.getReferringComponents("yAxis",Oy).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),Nu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Nu(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",Oy).models[0],e.coordSysDims=["single"],n.set("single",t),Nu(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",Oy).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),Nu(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Nu(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=r.getComponent("parallelAxis",t),s=o[a];n.set(s,t),Nu(t)&&(i.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};Hu.prototype.getSetting=function(t){return this._setting[t]},Hu.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Hu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Hu.prototype.getExtent=function(){return this._extent.slice()},Hu.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Hu.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Hu.prototype.isBlank=function(){return this._isBlank},Hu.prototype.setBlank=function(t){this._isBlank=t};var qS=Hu;si(qS);var ZS=0,KS=(Gu.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Wu);return new Gu({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Gu.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Gu.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return b(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},Gu.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},Gu);n(Qu,$S=qS),Qu.prototype.parse=function(t){return b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},Qu.prototype.contain=function(t){return Zu(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},Qu.prototype.normalize=function(t){return Ku(t=this._getTickNumber(this.parse(t)),this._extent)},Qu.prototype.scale=function(t){return t=Math.round($u(t,this._extent)),this.getRawOrdinalNumber(t)},Qu.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},Qu.prototype.getMinorTicks=function(t){},Qu.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[n[r]=s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}},Qu.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},Qu.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},Qu.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},Qu.prototype.count=function(){return this._extent[1]-this._extent[0]+1},Qu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Qu.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},Qu.prototype.getOrdinalMeta=function(){return this._ordinalMeta},Qu.prototype.calcNiceTicks=function(){},Qu.prototype.calcNiceExtent=function(){},Qu.type="ordinal";var $S,QS=Qu;qS.registerClass(QS);var JS,tC=Sn,eC=(n(Ju,JS=qS),Ju.prototype.parse=function(t){return t},Ju.prototype.contain=function(t){return Zu(t,this._extent)},Ju.prototype.normalize=function(t){return Ku(t,this._extent)},Ju.prototype.scale=function(t){return $u(t,this._extent)},Ju.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},Ju.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])},Ju.prototype.getInterval=function(){return this._interval},Ju.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xu(t)},Ju.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(e){n[0]<i[0]&&o.push(t?{value:tC(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=tC(a+e,r))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:i[1];n[1]>s&&o.push(t?{value:tC(s+e,r)}:{value:n[1]})}return o},Ju.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)/t;s<t-1;){var h=tC(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},Ju.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Cn(t.value)||0:"auto"===e&&(e=this._intervalPrecision),ra(tC(t.value,e,!0)))},Ju.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];isFinite(r)&&(r<0&&i.reverse(),r=ju(i,t,e,n),this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent)},Ju.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=tC(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=tC(Math.ceil(e[1]/n)*n))},Ju.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},Ju.type="interval",Ju);qS.registerClass(eC);var nC="undefined"!=typeof Float32Array,iC=nC?Float32Array:Array;n(oh,rC=eC),oh.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Go(t.value,dx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ho(this._minLevelUnit))]||dx.second,e,this.getSetting("locale"))},oh.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale"),o=null;if(b(n))o=n;else if(w(n))o=n(t.value,e,{level:t.level});else{var a=l({},cx);if(0<t.level)for(var s=0;s<fx.length;++s)a[fx[s]]="{primary|"+a[fx[s]]+"}";var h=n?!1===n.inherit?n:u(n,a):a,c=Wo(t.value,i);if(h[c])o=h[c];else if(h.inherit){for(s=gx.indexOf(c)-1;0<=s;--s)if(h[c]){o=h[c];break}o=o||a.none}x(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return Go(new Date(t.value),o,i,r)},oh.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,n,i){for(var r=gx,o=0,a=[],s=[],l=0,u=0,h=0;h<r.length&&o++<1e4;++h){var c=Ho(r[h]);if(function(t){return t===Ho(t)}(r[h])){!function(t,r,o){var a=[],s=!r.length;if(!function(t,e,n,i){function r(t){return Uo(c,t,i)===Uo(p,t,i)}function o(){return r("year")}function a(){return o()&&r("month")}function s(){return a()&&r("day")}function l(){return s()&&r("hour")}function u(){return l()&&r("minute")}function h(){return u()&&r("second")}var c=Dn(e),p=Dn(n);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&r("millisecond")}}(Ho(t),i[0],i[1],n)){s&&(r=[{value:function(t,e,n){var i=new Date(t);switch(Ho(e)){case"year":case"month":i[Qo(n)](0);case"day":i[Jo(n)](1);case"hour":i[ta(n)](0);case"minute":i[ea(n)](0);case"second":i[na(n)](0),i[ia(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var l,u,h=0;h<r.length-1;h++){var c=r[h].value,p=r[h+1].value;if(c!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/hx/365)),f=jo(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,d=6<(u/=30*hx)?6:3<u?3:2<u?2:1,f=Yo(n),g=Qo(n);break;case"week":case"half-week":case"day":u=e,d=16<(u/=hx)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,f=Xo(n),g=Jo(n);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=ux)?12:6<l?6:3.5<l?4:2<l?2:1,f=qo(n),g=ta(n);break;case"minute":d=ah(e,!0),f=Zo(n),g=ea(n);break;case"second":d=ah(e,!1),f=Ko(n),g=na(n);break;case"millisecond":d=On(e,!0),f=$o(n),g=ia(n)}C=S=b=w=x=_=v=m=y=void 0;for(var y=d,m=c,v=p,_=f,x=g,w=a,b=new Date(m),S=m,C=b[_]();S<v&&S<=i[1];)w.push({value:S}),b[x](C+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<o.length&&0===h&&o.unshift({value:o[0].value-d})}}for(h=0;h<a.length;h++)o.push(a[h])}}(r[h],a[a.length-1]||[],s);if(c!==(r[h+1]?Ho(r[h+1]):null)){if(s.length){u=l,s.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<s.length;++d){var f=s[d].value;0!==d&&s[d-1].value===f||(p.push(s[d]),f>=i[0]&&f<=i[1]&&l++)}if(1.5*(c=(i[1]-i[0])/e)<l&&c/1.5<u)break;if(a.push(p),c<l||t===r[h])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,h=0;h<y.length;++h)for(var x=y[h],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-h});v.sort(function(t,e){return t.value-e.value});for(var b=[],h=0;h<v.length;++h)0!==h&&v[h].value===v[h-1].value||b.push(v[h]);return b}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},oh.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=hx,n[1]+=hx),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-hx),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},oh.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),aC.length),t=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=1+r:i=r}return n}(aC,this._approxInterval,0,i),i-1);this._interval=aC[t][1],this._minLevelUnit=aC[Math.max(t-1,0)][0]},oh.prototype.parse=function(t){return C(t)?t:+Dn(t)},oh.prototype.contain=function(t){return Zu(this.parse(t),this._extent)},oh.prototype.normalize=function(t){return Ku(this.parse(t),this._extent)},oh.prototype.scale=function(t){return $u(t,this._extent)},oh.type="time";var rC,oC=oh,aC=[["second",sx],["minute",lx],["hour",ux],["quarter-day",6*ux],["half-day",12*ux],["day",1.2*hx],["half-week",3.5*hx],["week",7*hx],["month",31*hx],["quarter",95*hx],["half-year",Ny/2],["year",Ny]];qS.registerClass(oC);var sC,lC=qS.prototype,uC=eC.prototype,hC=Sn,cC=Math.floor,pC=Math.ceil,dC=Math.pow,fC=Math.log,gC=(n(sh,sC=qS),sh.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return g(uC.getTicks.call(this,t),function(t){var t=t.value,e=Sn(dC(this.base,t)),e=t===n[0]&&this._fixMin?lh(e,i[0]):e;return{value:t===n[1]&&this._fixMax?lh(e,i[1]):e}},this)},sh.prototype.setExtent=function(t,e){var n=this.base;t=fC(t)/fC(n),e=fC(e)/fC(n),uC.setExtent.call(this,t,e)},sh.prototype.getExtent=function(){var t=this.base,e=lC.getExtent.call(this);return e[0]=dC(t,e[0]),e[1]=dC(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=lh(e[0],t[0])),this._fixMax&&(e[1]=lh(e[1],t[1])),e},sh.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=fC(t[0])/fC(e),t[1]=fC(t[1])/fC(e),lC.unionExtent.call(this,t)},sh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},sh.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=An(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[Sn(pC(e[0]/i)*i),Sn(cC(e[1]/i)*i)],this._interval=i,this._niceExtent=t}},sh.prototype.calcNiceExtent=function(t){uC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},sh.prototype.parse=function(t){return t},sh.prototype.contain=function(t){return Zu(t=fC(t)/fC(this.base),this._extent)},sh.prototype.normalize=function(t){return Ku(t=fC(t)/fC(this.base),this._extent)},sh.prototype.scale=function(t){return t=$u(t,this._extent),dC(this.base,t)},sh.type="log",sh);_b=gC.prototype,_b.getMinorTicks=uC.getMinorTicks,_b.getLabel=uC.getLabel,qS.registerClass(gC),uh.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,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),r=(w(r)?this._modelMinNum=hh(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=hh(t,r)),this._modelMaxRaw=e.get("max",!0));w(r)?this._modelMaxNum=hh(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=hh(t,r)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[un(t[0],1),un(t[1],1)]},uh.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,e=(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),O(a)||O(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),r=this._determinedMax;return null!=n&&(a=n,l=!0),null!=r&&(s=r,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},uh.prototype.modifyDataMinMax=function(t,e){this[vC[t]]=e},uh.prototype.setDeterminedMinMax=function(t,e){this[mC[t]]=e},uh.prototype.freeze=function(){this.frozen=!0};var yC=uh,mC={min:"_determinedMin",max:"_determinedMax"},vC={min:"_dataMin",max:"_dataMax"};_h.prototype.getNeedCrossZero=function(){return!this.option.scale},_h.prototype.getCoordSysModel=function(){};var _C=_h,bb=Object.freeze({__proto__:null,createDimensions:function(t,e){return Eu(t,e).dimensions},createList:function(t){return Vu(null,t)},createScale:function(t,e){var n=e;return(e=dh(n=e instanceof J_?n:new J_(e))).setExtent(t[0],t[1]),ph(e,n),e},createSymbol:Pl,createTextStyle:function(t,e){return Ao(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:zu,enableDataStack:Bu,getStackedDimension:Fu},enableHoverEmphasis:xr,getECData:nv,getLayoutRect:fa,mixinAxisModelCommonMethods:function(t){p(t,_C)}}),xC=[],wC={registerPreprocessor:cu,registerProcessor:pu,registerPostInit:du,registerPostUpdate:fu,registerUpdateLifecycle:gu,registerAction:yu,registerCoordinateSystem:mu,registerLayout:vu,registerVisual:_u,registerTransform:Su,registerLoading:wu,registerMap:bu,registerImpl:function(t,e){zb[t]=e},PRIORITY:wb,ComponentModel:Ax,ComponentView:Zw,SeriesModel:qw,ChartView:Qw,registerComponentModel:function(t){Ax.registerClass(t)},registerComponentView:function(t){Zw.registerClass(t)},registerSeriesModel:function(t){qw.registerClass(t)},registerChartView:function(t){Qw.registerClass(t)},registerSubTypeDefaulter:function(t,e){Ax.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){xn(t,e)}},bC=1e-8,SC=[];Th.prototype.setCenter=function(t){this._center=t},Th.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},Sb=Th;var CC,TC,MC=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},IC=function(t){this.type="linestring",this.points=t},kC=(n(Mh,CC=Sb),Mh.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,o=o&&o.length;n<o&&(t=r,n=o)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},Mh.prototype.getBoundingRect=function(t){var e,n,i=this._rect;return i&&!t||(e=[1/0,1/0],n=[-1/0,-1/0],f(this.geometries,function(i){"polygon"===i.type?Ch(i.exterior,e,n,t):f(i.points,function(i){Ch(i,e,n,t)})}),isFinite(e[0])&&isFinite(e[1])&&isFinite(n[0])&&isFinite(n[1])||(e[0]=e[1]=n[0]=n[1]=0),i=new py(e[0],e[1],n[0]-e[0],n[1]-e[1]),t)||(this._rect=i),i},Mh.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(bh(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(bh(s[l],t[0],t[1]))continue t;return!0}}}return!1},Mh.prototype.transformTo=function(t,e,n,i){for(var r=this.getBoundingRect(),o=r.width/r.height,o=(n?i=i||n/o:n=o*i,new py(t,e,n,i)),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(Sh(u.exterior,a),f(u.interiors,function(t){Sh(t,a)})):f(u.points,function(t){Sh(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},Mh.prototype.cloneShallow=function(t){return t=new Mh(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Mh);n(Ih,TC=Sb),Ih.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ue(SC),i=t;i&&!i.isGeoSVGGraphicRoot;)Ye(n,i.getLocalTransform(),n),i=i.parent;return Ke(n,n),at(e,e,n),e};var zy=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,n){if(!t[e])return 0;var i=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),n=g(t,function(t){return(isNaN(t)?0:t)/i*r*100}),o=100*r,a=g(n,function(t){return Math.floor(t)}),s=y(a,function(t,e){return t+e},0),l=g(n,function(t,e){return t-a[e]});s<o;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/r},getPixelPrecision:Mn,getPrecision:Cn,getPrecisionSafe:Tn,isNumeric:Rn,isRadianAroundZero:kn,linearMap:wn,nice:On,numericToNumber:Ln,parseDate:Dn,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e-=n)?i+e*(t[n]-i):i},quantity:An,quantityExponent:Pn,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t},remRadian:In,round:Sn}),N_=Object.freeze({__proto__:null,format:Go,parse:Dn}),px=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Rv,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:h_,LinearGradient:b_,Polygon:i_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:$v,Text:Qm,clipPointsByRect:_o,clipRectByRect:xo,createIcon:wo,extendPath:ao,extendShape:oo,getShapeClass:lo,getTransform:go,initProps:eo,makeImage:ho,makePath:uo,mergePath:po,registerShape:so,resizePath:fo,updateProps:to}),Z_=Object.freeze({__proto__:null,addCommas:ra,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:aa,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Dn(e))[(n=n?"getUTC":"get")+"FullYear"](),r=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",Vo(r,2)).replace("M",r).replace("yyyy",i).replace("yy",i%100+"").replace("dd",Vo(o,2)).replace("d",o).replace("hh",Vo(a,2)).replace("h",a).replace("mm",Vo(s,2)).replace("m",s).replace("ss",Vo(l,2)).replace("s",l).replace("SSS",Vo(e,3))},formatTpl:ua,getTextRect:function(t,e,n,i,r,o,a,s){return new Qm({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:ha,normalizeCssArray:yx,toCamelCase:oa,truncateText:di}),Y_=Object.freeze({__proto__:null,bind:If,clone:a,curry:_,defaults:u,each:f,extend:l,filter:m,indexOf:h,inherits:c,isArray:x,isFunction:w,isObject:T,isString:b,map:g,merge:s,reduce:y}),DC=Kn(),AC=[0,1],$_=(Fh.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},Fh.prototype.containData=function(t){return this.scale.contain(t)},Fh.prototype.getExtent=function(){return this._extent.slice()},Fh.prototype.getPixelPrecision=function(t){return Mn(t||this.scale.getExtent(),this._extent)},Fh.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Fh.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Vh(n=n.slice(),i.count()),wn(t,AC,n,e)},Fh.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&Vh(n=n.slice(),i.count()),wn(t,n,AC,e));return this.scale.scale(i)},Fh.prototype.pointToData=function(t,e){},Fh.prototype.getTicksCoords=function(t){function e(t,e){return t=Sn(t),e=Sn(e),s?e<t:t<e}var n,i,r,o,a,s,l,u=(t=t||{}).tickModel||this.getTickModel(),h=g(Oh(this,u).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),u=u.get("alignWithLabel");return n=this,i=h,u=u,t=t.clamp,l=i.length,n.onBand&&!u&&l&&(u=n.getExtent(),1===l?(i[0].coord=u[0],r=i[1]={coord:u[0]}):(a=i[l-1].tickValue-i[0].tickValue,o=(i[l-1].coord-i[0].coord)/a,f(i,function(t){t.coord-=o/2}),n=1+(a=n.scale.getExtent())[1]-i[l-1].tickValue,r={coord:i[l-1].coord+o*n},i.push(r)),s=u[0]>u[1],e(i[0].coord,u[0])&&(t?i[0].coord=u[0]:i.shift()),t&&e(u[0],i[0].coord)&&i.unshift({coord:u[0]}),e(u[1],r.coord)&&(t?r.coord=u[1]:i.pop()),t)&&e(r.coord,u[1])&&i.push({coord:u[1]}),h},Fh.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),g(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Fh.prototype.getViewLabels=function(){return Ph(this).labels},Fh.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Fh.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Fh.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Fh.prototype.calculateCategoryInterval=function(){r=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()},e=fh(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(r=d.scale).getExtent(),r=r.count();if(i[1]-i[0]<1)return 0;for(var o=1,a=(40<r&&(o=Math.max(1,Math.floor(r/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=o)var c=1.3*(p=on(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=DC(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-r)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=r,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},Fh),PC=2*Math.PI,OC=Mm.CMD,LC=["top","right","bottom","left"],RC=[],EC=new iy,NC=new iy,BC=new iy,zC=new iy,FC=new iy,VC=[],HC=new iy,GC=["align","verticalAlign","width","height","fontSize"],WC=new ty,UC=Kn(),jC=Kn(),YC=["x","y","rotation"],XC=(Qh.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Qh.prototype._addLabel=function(t,e,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(py.applyTransform(u,u,l),l?WC.setLocalTransform(l):(WC.x=WC.y=WC.rotation=WC.originX=WC.originY=0,WC.scaleX=WC.scaleY=1),i.__hostTarget),h=(l&&(o=l.getBoundingRect().plain(),h=l.getComputedTransform(),py.applyTransform(o,o,h)),o&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:WC.x,y:WC.y,scaleX:WC.scaleX,scaleY:WC.scaleY,rotation:WC.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Qh.prototype.addLabelsOfSeries=function(t){var e=this,n=(this._chartViewList.push(t),t.__model),i=n.get("labelLayout");(w(i)||v(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),t=nv(t);r&&!r.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,r,i)})},Qh.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=w(r.layoutOption)?r.layoutOption(Kh(r,a)):r.layoutOption,u=(r.computedLayoutOption=l=l||{},Math.PI/180),h=(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]}),!1);null!=l.x?(o.x=bn(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=bn(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),UC(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<GC.length;p++){var d=GC[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){Uh(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},Qh.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),n=Xh(this._labelList),i=m(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=m(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});qh(i,"x","width",0,e,void 0),qh(r,"y","height",0,t,void 0),Zh(m(n,function(t){return t.layoutOption.hideOverlap}))},Qh.prototype.processLabelsOverall=function(){var t=this;f(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=!o&&a?UC(a).needsUpdateLabelLine:o)&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},Qh.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=nv(t),r=i.dataIndex;if(n&&null!=r){var n=e.getData(i.dataType),e=n.getItemModel(r),i={},r=n.getItemVisual(r,"style"),n=n.getVisual("drawType"),r=(i.stroke=r[n],e.getModel("labelLine")),o=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<hv.length;i++){var r=hv[i];n[r]=t.getModel([r,e])}return n}(e),n=i,s=o.getTextGuideLine(),l=o.getTextContent();if(l){for(var e=a.normal,h=e.get("show"),c=l.ignore,p=0;p<cv.length;p++){var d,f=cv[p],g=a[f],y="normal"===f;g&&(d=g.get("show"),(y?c:R(l.states[f]&&l.states[f].ignore,c))||!R(d,h)?(d=y?s:s&&s.states.normal)&&(d.ignore=!0):(s||(s=new a_,o.setTextGuideLine(s),y||!c&&h||jh(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),jh(s,!1,f,g)))}s&&(u(s.style,n),s.style.fill=null,n=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=Yh)}else s&&o.removeTextGuideLine();Uh(t,r)}},Qh.prototype._animateLabels=function(t,e){var n,i,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||no(t))||(o=(r=UC(s)).oldLayout,n=(i=nv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=h(t,"select")&&s.attr(r.oldLayoutSelect),0<=h(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),to(s,a,e,n)):(s.attr(a),G_(s).valueAnimation||(t=R(s.style.opacity,1),s.style.opacity=0,eo(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&($h(t=r.oldLayoutSelect={},a,YC),$h(t,s.states.select,YC)),s.states.emphasis&&($h(t=r.oldLayoutEmphasis={},a,YC),$h(t,s.states.emphasis,YC)),Lo(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=jC(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),to(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,eo(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},Qh),qC=Kn();xh(Jh),n(ec,ZC=Bf),ec.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},ec.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},ec.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},ec.prototype.setUnpainted=function(){this.__firstTimePaint=!0},ec.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=tc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},ec.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new py(0,0,0,0)).copy(t),a.push(e);else{for(var e,n=!1,i=1/0,r=0,o=0;o<a.length;++o){var h=a[o];if(h.intersect(t)){var c=new py(0,0,0,0);c.copy(h),c.union(t),a[o]=c,n=!0;break}l&&(u.copy(t),u.union(h),c=t.width*t.height,h=h.width*h.height,(h=u.width*u.height-c-h)<i)&&(i=h,r=o)}l&&(a[r].union(t),n=!0),n||((e=new py(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o,a=[],s=this.maxRepaintRectCount,l=!1,u=new py(0,0,0,0),h=this.__startIndex;h<this.__endIndex;++h)(c=t[h])&&(d=c.shouldBePainted(n,i,!0,!0),(p=c.__isRendered&&(c.__dirty&eg||!d)?c.getPrevPaintRect():null)&&r(p),o=d&&(c.__dirty&eg||!c.__isRendered)?c.getPaintRect():null)&&r(o);for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c,p,d=(c=e[h]).shouldBePainted(n,i,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&r(p)}do{for(var f=!1,h=0;h<a.length;)if(a[h].isZero())a.splice(h,1);else{for(var g=h+1;g<a.length;)a[h].intersect(a[g])?(f=!0,a[h].union(a[g]),a.splice(g,1)):g++;h++}}while(f);return this._paintRects=a},ec.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},ec.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)},ec.prototype.clear=function(t,e,n){function i(t,n,i,r){var a;o.clearRect(t,n,i,r),e&&"transparent"!==e&&(a=void 0,D(e)?(a=e.__canvasGradient||Ll(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a):A(e)&&(a=Gl(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(p,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height,l=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,h=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h)),this.domBack);!n||l?i(0,0,a,s):n.length&&f(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})};var ZC,KC=ec,$C=314159;nc.prototype.getType=function(){return"canvas"},nc.prototype.isSingleCanvas=function(){return this._singleCanvas},nc.prototype.getViewportRoot=function(){return this._domRoot},nc.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},nc.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,a=i[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},nc.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},nc.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;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Zl(i,a,r,o===e-1))}i&&i.restore()}},nc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},nc.prototype.paintOne=function(t,e){ql(t,e)},nc.prototype._paintList=function(t,e,n,i){var r,o,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,og(function(){a._paintList(t,e,n,i)})))},nc.prototype._compositeManually=function(){var t=this.getLayer($C).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)})},nc.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],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||n)&&r.push(s)}for(var l=!0,u=!1,h=this,c=0;c<r.length;c++)!function(a){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(p=y;p<d.__endIndex;p++){var r=t[p];if(r.__inHover&&(u=!0),i._doPaintEl(r,d,o,e,n,p===d.__endIndex-1),m&&15<Date.now()-v)break}n.prevElClipPaths&&f.restore()}var c,p,d=r[a],f=d.ctx,g=o&&d.createRepaintRects(t,e,h._width,h._height),y=n?d.__startIndex:d.__drawIndex,m=!n&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!n)||d.clear(!1,a,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex),g)if(0===g.length)p=d.__endIndex;else for(var _=h.dpr,x=0;x<g.length;++x){var w=g[x];f.save(),f.beginPath(),f.rect(w.x*_,w.y*_,w.width*_,w.height*_),f.clip(),s(w),f.restore()}else f.save(),s(),f.restore();d.__drawIndex=p,d.__drawIndex<d.__endIndex&&(l=!1)}(c);return af.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:u}},nc.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx,n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(Zl(e,t,r,o),t.setPrevPaintRect(n))):Zl(e,t,r,o)},nc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=$C);var n=this._layers[t];return n||((n=new KC("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?s(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},nc.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},nc.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)}},nc.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)}},nc.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)}},nc.prototype.getLayers=function(){return this._layers},nc.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var i,r=null,a=0,s=0;s<t.length;s++){var l,u=(l=t[s]).zlevel,h=void 0;i!==u&&(i=u,a=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):h=this.getLayer(u+(0<a?.01:0),this._needsManuallyCompositing),h.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+h.id),h!==r&&(h.__used=!0,h.__startIndex!==s&&(h.__dirty=!0),h.__startIndex=s,h.incremental?h.__drawIndex=-1:h.__drawIndex=s,e(s),r=h),l.__dirty&eg&&!l.__inHover&&(h.__dirty=!0,h.incremental)&&h.__drawIndex<0&&(h.__drawIndex=s)}e(s),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},nc.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},nc.prototype._clearLayer=function(t){t.clear()},nc.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},nc.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?s(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+.01||s(this._layers[r],n[t],!0)}}},nc.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))},nc.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=El(r,0,i),e=El(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",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($C).resize(t,e)}return this},nc.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},nc.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},nc.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[$C].dom;var e=new KC("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),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;s<l;s++){var u=a[s];Zl(n,u,o,s===l-1)}return e.dom},nc.prototype.getWidth=function(){return this._width},nc.prototype.getHeight=function(){return this._height};var QC=nc;n(ic,JC=Ax),ic.prototype.init=function(t,e,n){JC.prototype.init.call(this,t,e,n),this._sourceManager=new Hw(this),Ls(this)},ic.prototype.mergeOption=function(t,e){JC.prototype.mergeOption.call(this,t,e),Ls(this)},ic.prototype.optionUpdated=function(){this._sourceManager.dirty()},ic.prototype.getSourceManager=function(){return this._sourceManager},ic.type="dataset",ic.defaultOption={seriesLayoutBy:Wx};var JC,tT=ic;n(rc,eT=Zw),rc.type="dataset";var eT,nT=rc;xh([function(t){t.registerPainter("canvas",QC)},oc]),xh(Jh),n(ac,iT=qw),ac.prototype.getInitialData=function(t){return Vu(null,this,{useEncodeDefaulter:!0})},ac.prototype.getLegendIcon=function(t){var e=new wy,n=Pl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,r=.8*t.itemHeight,r=Pl(n,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),i=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return r.rotation=i*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),e},ac.type="series.line",ac.dependencies=["grid","polar"],ac.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};var iT,rT=ac;n(lc,oT=wy),lc.prototype._createSymbol=function(t,e,n,i,r){this.removeAll(),r=Pl(t,-1,-1,2,2,null,r),r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=uc,this._symbolType=t,this.add(r)},lc.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},lc.prototype.getSymbolType=function(){return this._symbolType},lc.prototype.getSymbolPath=function(){return this.childAt(0)},lc.prototype.highlight=function(){ur(this.childAt(0))},lc.prototype.downplay=function(){hr(this.childAt(0))},lc.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},lc.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},lc.prototype.updateData=function(t,e,n,i){this.silent=!1;var r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=lc.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,r)):((o=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?o.attr(a):to(o,a,l,e),P_(s=o).oldStyle=s.style),this._updateCommon(t,e,u,n,i),h&&(o=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,eo(o,a,l,e))),c&&this.childAt(0).stopAnimation("leave"),this._seriesModel=l},lc.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,u,h,c,p,d,f=this.childAt(0),g=t.hostModel,y=(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,u=i.focus,h=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,m=i.cursorStyle,c=i.emphasisDisabled),i&&!t.hasItemOption||(o=(y=(i=i&&i.itemModel?i.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),h=y.get("blurScope"),c=y.get("disabled"),p=Do(i),d=y.getShallow("scale"),m=i.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),i=(f.attr("rotation",(y||0)*Math.PI/180||0),Ol(t.getItemVisual(e,"symbolOffset"),n)),y=(i&&(f.x=i[0],f.y=i[1]),m&&f.attr("cursor",m),t.getItemVisual(e,"style")),i=y.fill,m=(f instanceof Wm?(m=f.style,f.useStyle(l({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},y))):(f.__isEmptyBrush?f.useStyle(l({},y)):f.useStyle(y),f.style.decal=null,f.setColor(i,r&&r.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),r&&r.useNameLabel);ko(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):sc(t,e)},inheritColor:i,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,m=f.ensureState("emphasis"),m.style=o,f.ensureState("select").style=a,f.ensureState("blur").style=s,d&&(v=Math.max(1.1,3/this._sizeY),m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v),this.setSymbolScale(1),wr(this,u,h,c)},lc.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},lc.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,r=nv(this).dataIndex,o=e&&e.animation;this.silent=n.silent=!0,e&&e.fadeLabel?(e=n.getTextContent())&&io(e,{style:{opacity:0}},i,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}}):n.removeTextContent(),io(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:r,cb:t,removeOpt:o})},lc.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var oT,aT=lc;dc.prototype.updateData=function(t,e){this._progressiveEls=null,e=cc(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=pc(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r,a=u(i);hc(t,a,i,e)&&((r=new o(t,i,s,l)).setPosition(a),t.setItemGraphicEl(i,r),n.add(r))}).update(function(h,c){var p,d,c=r.getItemGraphicEl(c),f=u(h);hc(t,f,h,e)?(p=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(n.remove(c),(c=new o(t,h,s,l)).setPosition(f)):(c.updateData(t,h,s,l),d={x:f[0],y:f[1]},a?c.attr(d):to(c,d,i)),n.add(c),t.setItemGraphicEl(h,c)):n.remove(c)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._getSymbolPoint=u,this._data=t},dc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()})},dc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pc(t),this._data=null,this.group.removeAll()},dc.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=cc(n);for(var r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);hc(e,a,r,n)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},dc.prototype.eachRendered=function(t){To(this._progressiveEls||this.group,t)},dc.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var sT,lT=dc,uT=Math.min,hT=Math.max,cT=function(){this.smooth=0,this.smoothConstraint=!0},pT=(n(vc,sT=Bm),vc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},vc.prototype.getDefaultShape=function(){return new cT},vc.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;0<r&&yc(n[2*r-2],n[2*r-1]);r--);for(;i<r&&yc(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=mc(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},vc.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=Mm.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,h=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:var c,u=r[l++],h=r[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case o.C:u=r[l++],h=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[l++],y=a?zt(n,u,p,f,t,s):zt(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Nt(i,h,d,g,_):Nt(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},vc);n(_c,dT=cT);var dT,fT=_c;n(xc,gT=Bm),xc.prototype.getDefaultShape=function(){return new fT},xc.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(;0<o&&yc(n[2*o-2],n[2*o-1]);o--);for(;r<o&&yc(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=mc(t,n,r,o,o,1,e.smooth,a,e.connectNulls);mc(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var gT,yT=xc;n(Oc,mT=Qw),Oc.prototype.init=function(){var t=new wy,e=new lT;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Oc.prototype.render=function(t,e,n){function i(t){r._changePolyState(t)}var r=this,o=t.coordinateSystem,a=this.group,s=t.getData(),l=t.getModel("lineStyle"),h=t.getModel("areaStyle"),c=s.getLayout("points")||[],p="polar"===o.type,d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,m=this._lineGroup,v=t.get("animation"),_=!h.isEmpty(),x=h.get("origin"),w=fc(o,s,x),w=_&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=th(2*i),o=0;o<i;o++){var a=gc(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(o,s,w),b=t.get("showSymbol"),S=b&&!p&&Ic(t,s,o),C=this._data,T=(C&&C.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),C.setItemGraphicEl(e,null))}),b||f.remove(),a.add(m),!p&&t.get("step")),M=(o&&o.getArea&&t.get("clip",!0)&&(null!=(I=o.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I,Mc(s,o,n)||s.getVisual("style")[s.getVisual("drawType")]),d=(g&&d.type===o.type&&T===this._step?(_&&!y?y=this._newPolygon(c,w):y&&!_&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,o,ca(M)),(d=m.getClipPath())?eo(d,{shape:Pc(this,o,!1,t).shape},t):m.setClipPath(Pc(this,o,!0,t)),b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),wc(this._stackedOnPoints,w)&&wc(this._points,c)||(v?this._doUpdateAnimation(s,w,o,n,T,x):(T&&(c=Tc(c,o,T),w=w&&Tc(w,o,T)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))):(b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(s,o,I),T&&(c=Tc(c,o,T),w=w&&Tc(w,o,T)),g=this._newPolyline(c),_&&(y=this._newPolygon(c,w)),p||this._initOrUpdateEndLabel(t,o,ca(M)),m.setClipPath(Pc(this,o,!0,t))),t.getModel("emphasis")),n=d.get("focus"),b=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(u(l.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),br(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),nv(g).seriesIndex=t.seriesIndex,wr(g,n,b,f),Cc(t.get("smooth"))),v=t.get("smoothMonotone"),I=t.get("connectNulls");g.setShape({smooth:S,smoothMonotone:v,connectNulls:I}),y&&(_=s.getCalculationInfo("stackedOnSeries"),p=0,y.useStyle(u(h.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),_&&(p=Cc(_.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:p,smoothMonotone:v,connectNulls:I}),br(y,t,"areaStyle"),nv(y).seriesIndex=t.seriesIndex,wr(y,n,b,f)),s.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=s,this._coordSys=o,this._stackedOnPoints=w,this._points=c,this._step=T,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},Oc.prototype.packEventData=function(t,e){nv(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Oc.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Zn(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel"),h=t.get("z"),s=((l=new aT(r,o)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,r.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Qw.prototype.highlight.call(this,t,e,n,i)},Oc.prototype.downplay=function(t,e,n,i){var r,o=t.getData(),a=Zn(o,i);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):Qw.prototype.downplay.call(this,t,e,n,i)},Oc.prototype._changePolyState=function(t){var e=this._polygon;ir(this._polyline,t),e&&ir(e,t)},Oc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new pT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Oc.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new yT({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},Oc.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse,o=("cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0),t.hostModel),s=o.get("animationDuration"),l=(w(s)&&(s=s(null)),o.get("animationDelay")||0),u=w(l)?l(null):l;t.eachItemGraphicEl(function(t,o){var h,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=h=void 0,n&&(f=r?(p=n,d=e.pointToCoord(d),i?(h=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(h=p.r0,c=p.r,d[0])):i?(h=n.x,c=n.x+n.width,t.x):(h=n.y+n.height,c=n.y,t.y)),p=c===h?0:(f-h)/(c-h),a&&(p=1-p),d=w(l)?l(o):s*p+u,f=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d}),f&&f.animateFrom({style:{opacity:0}},{duration:300,delay:d}),t.disableLabelAnimation=!0)})},Oc.prototype._initOrUpdateEndLabel=function(t,e,n){var i,r,o,a=t.getModel("endLabel");Ac(t)?(i=t.getData(),r=this._polyline,(o=i.getLayout("points"))?(this._endLabel||((this._endLabel=new Qm({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),0<=(o=kc(o))&&(ko(r,Do(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){if(null==n)return sc(i,t);var r=i,o=n,a=r.mapDimensionsAll("defaultedLabel");if(!x(o))return o+"";for(var s=[],l=0;l<a.length;l++){var u=r.getDimensionIndex(a[l]);0<=u&&s.push(o[u])}return s.join(" ")},enableTextSetter:!0},(n=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}})),r.textConfig.position=null)):(r.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Oc.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=r||e<=i&&r<=e){l=u;break}s=u}i=r}return{range:[s,l],t:(e-i)/(r-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Dc(s,p[0]),m.attr({x:y[0]+h,y:y[1]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=ei(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Dc(s,v=1===t||0<i.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+o})),r)&&G_(m).setLabelText(d)},Oc.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,e=function(t,e,n,i,r,o){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=fc(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],C=y[1+b],T=m[w],M=m[w+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),h.push(n[b],n[1+b]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,C=g.dataDimsForPoint,T=r.dataToPoint([e.get(C[0],S),e.get(C[1],S)]),w=2*S,l.push(T[0],T[1]),u.push(m[w],m[w+1]),M=gc(g,r,e,S),h.push(M[0],M[1]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var I=th(o=l.length),k=th(o),D=th(o),A=th(o),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,R=2*O;I[L]=l[R],I[1+L]=l[1+R],k[L]=u[R],k[1+L]=u[1+R],D[L]=h[R],D[1+L]=h[1+R],A[L]=c[R],A[1+L]=c[1+R],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:D,stackedOnNext:A,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),u=e.current,h=e.stackedOnCurrent,c=e.next,p=e.stackedOnNext;if(r&&(u=Tc(e.current,n,r),h=Tc(e.stackedOnCurrent,n,r),c=Tc(e.next,n,r),p=Tc(e.stackedOnNext,n,r)),3e3<Sc(u,c)||s&&3e3<Sc(h,p))a.stopAnimation(),a.setShape({points:c}),s&&(s.stopAnimation(),s.setShape({points:c,stackedOnPoints:p}));else{a.shape.__points=e.current,a.shape.points=u;for(var d,n={shape:{points:c}},f=(e.current!==u&&(n.shape.__points=e.next),a.stopAnimation(),to(a,n,l),s&&(s.setShape({points:u,stackedOnPoints:h}),s.stopAnimation(),to(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points)&&(s.shape.points=a.shape.points),[]),g=e.status,y=0;y<g.length;y++)"="===g[y].cmd&&(d=t.getItemGraphicEl(g[y].idx1))&&f.push({el:d,ptIdx:y});a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<f.length;e++){var n=f[e].el,i=2*f[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},Oc.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},Oc.type="line";var mT,vT=Oc,_T={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]}},xT=function(t){return Math.round(t.length/2)};xh(function(t){var e;t.registerChartView(vT),t.registerSeriesModel(rT),t.registerLayout((e=!0,{seriesType:"line",plan:rl(),reset:function(t){var n,i,r,o,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,u=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),n=t.length,i=s.getCalculationInfo("stackResultDimension"),zu(s,t[0])&&(t[0]=i),zu(s,t[1])&&(t[1]=i),r=s.getStore(),o=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),n&&{progress:function(t,e){for(var i=t.end-t.start,s=u&&th(i*n),h=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===n?(f=r.get(o,p),l.dataToPoint(f,null,c)):(h[0]=r.get(o,p),h[1]=r.get(a,p),l.dataToPoint(h,null,c)),u?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}u&&e.setLayout("points",s)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),1<(n=Math.round(s/i)))&&("lttb"===o&&t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/n)),s=void 0,b(o)?s=_T[o]:w(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/n,s,xT))}})}),n(Lc,wT=Ax),Lc.type="grid",Lc.dependencies=["xAxis","yAxis"],Lc.layoutMode="box",Lc.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"};var wT,bT=Lc;n(Rc,ST=Ax),Rc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Oy).models[0]},Rc.type="cartesian2dAxis";var ST,CT=Rc;p(CT,_C);var q_={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)"]}}},Ny=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},q_),_b=s({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}}},q_),TT={category:Ny,value:_b,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_b),log:u({logBase:10},_b)},MT={value:1,category:1,time:1,log:1};Bc.prototype.getAxis=function(t){return this._axes[t]},Bc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},Bc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},Bc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var IT=["x","y"];n(Fc,kT=Bc),Fc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;zc(r)&&zc(o)&&(r=r.getExtent(),o=o.getExtent(),i=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-r[0]*t,r=i[1]-o[0]*e,i=this._transform=[t,0,0,e,n,r],this._invTransform=Ke([],i))},Fc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Fc.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]))},Fc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Fc.prototype.dataToPoint=function(t,e,n){n=n||[];var i,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?at(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(r,e)),n[1]=i.toGlobalCoord(i.dataToCoord(o,e)),n)},Fc.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e},Fc.prototype.pointToData=function(t,e){var n,i,r=[];return this._invTransform?at(r,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),r[0]=n.coordToData(n.toLocalCoord(t[0]),e),r[1]=i.coordToData(i.toLocalCoord(t[1]),e),r)},Fc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Fc.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]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new py(n,i,t,e)};var kT,DT=Fc;n(Vc,AT=$_),Vc.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Vc.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},Vc.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Vc.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var AT,PT=Vc,OT=Math.log;Uc.prototype.getRect=function(){return this._rect},Uc.prototype.update=function(t,e){function n(t){var e,n=v(t),i=n.length;if(i){for(var r=[],o=i-1;0<=o;o--){var a=t[+n[o]],s=a.model,l=a.scale;Uu(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(ph(l,s),Uu(l)&&(e=a))}r.length&&(e||ph((e=r.pop()).scale,e.model),f(r,function(t){var n=t.scale,t=t.model,i=e.scale,r=eC.prototype,o=r.getTicks.call(i),a=r.getTicks.call(i,!0),s=o.length-1,i=r.getInterval.call(i),l=(t=ch(n,t)).extent,u=t.fixMin,t=t.fixMax,h=("log"===n.type&&(h=OT(n.base),l=[OT(l[0])/h,OT(l[1])/h]),n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:t}),r.getExtent.call(n)),c=(u&&(l[0]=h[0]),t&&(l[1]=h[1]),r.getInterval.call(n)),p=l[0],d=l[1];if(u&&t)c=(d-p)/s;else if(u)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=Yu(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=Yu(c),p=l[1]-c*s;else h=(c=s<n.getTicks().length-1?Yu(c):c)*s,(p=Sn((d=Math.ceil(l[1]/c)*c)-h))<0&&0<=l[0]?(p=0,d=Sn(h)):0<d&&l[1]<=0&&(d=0,p=-Sn(h));u=(o[0].value-a[0].value)/i,t=(o[s].value-a[s].value)/i,r.setExtent.call(n,p+c*u,d+c*t),r.setInterval.call(n,c),(u||t)&&r.setNiceExtent.call(n,p+c,d-c)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};f(i.x,function(t){Yc(i,"y",t,r)}),f(i.y,function(t){Yc(i,"x",t,r)}),this.resize(this.model,e)},Uc.prototype.resize=function(t,e,n){function i(){f(a,function(t){var e,n,i=t.isHorizontal(),r=i?[0,o.width]:[0,o.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),r=t,e=i?o.x:o.y,a=r.getExtent(),n=a[0]+a[1],r.toGlobalCoord="x"===r.dim?function(t){return t+e}:function(t){return n-t+e},r.toLocalCoord="x"===r.dim?function(t){return t-e}:function(t){return n-t+e}})}var r=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),o=fa(r,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=o,this._axesList);i(),n&&(f(a,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=yh(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i))}),i()),f(this._coordsList,function(t){t.calcAffineTransform()})},Uc.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},Uc.prototype.getAxes=function(){return this._axesList.slice()},Uc.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];T(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},Uc.prototype.getCartesians=function(){return this._coordsList.slice()},Uc.prototype.convertToPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},Uc.prototype.convertFromPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},Uc.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Oy).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Oy).models[0],t=t.gridModel,a=this._coordsList;return i?h(a,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},Uc.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},Uc.prototype._initCartesian=function(t,e,n){function i(e){return function(n,i){var r,u;jc(n,t)&&(r=n.get("position"),"x"===e?"top"!==r&&"bottom"!==r&&(r=a.bottom?"top":"bottom"):"left"!==r&&"right"!==r&&(r=a.left?"right":"left"),a[r]=!0,u="category"===(r=new PT(e,dh(n),[0,0],n.get("type"),r)).type,r.onBand=u&&n.get("boundaryGap"),r.inverse=n.get("inverse"),(n.axis=r).model=n,r.grid=o,r.index=i,o._axesList.push(r),s[e][i]=r,l[e]++)}}var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,n){f(s.y,function(i,o){var o="x"+n+"y"+o,a=new DT(o);a.master=r,a.model=t,r._coordsMap[o]=a,r._coordsList.push(a),a.addAxis(e),a.addAxis(i)})}):(this._axesMap={},this._axesList=[])},Uc.prototype._updateScale=function(t,e){function n(t,e){var n,i,r;f((n=t,i=e.dim,r={},f(n.mapDimensionsAll(i),function(t){r[Fu(n,t)]=!0}),v(r)),function(n){e.scale.unionExtentFromData(t,n)})}f(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var i,r;Gc(t)&&(r=(i=Wc(t)).xAxisModel,i=i.yAxisModel,jc(r,e))&&jc(i,e)&&(r=this.getCartesian(r.componentIndex,i.componentIndex),i=t.getData(),t=r.getAxis("x"),r=r.getAxis("y"),n(i,t),n(i,r))},this)},Uc.prototype.getTooltipAxes=function(t){var e=[],n=[];return f(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),i=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,i)<0&&n.push(i)}),{baseAxes:e,otherAxes:n}},Uc.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var o=new Uc(i,t,e);o.name="grid_"+r,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){var e,n,i;Gc(t)&&(e=(n=Wc(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),n},Uc.dimensions=IT;var LT,RT,ET,NT=Uc,BT=Math.PI,zT=(qc.prototype.hasBuilder=function(t){return!!FT[t]},qc.prototype.add=function(t){FT[t](this.opt,this.axisModel,this.group,this._transformGroup)},qc.prototype.getGroup=function(){return this.group},qc.innerTextLayout=function(t,e,n){var i,e=In(e-t),t=kn(e)?(i=0<n?"top":"bottom","center"):kn(e-BT)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<BT?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},qc.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},qc.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},qc),FT={axisLine:function(t,e,n,i){var r,o,a,s,u,h=e.get(["axisLine","show"]);(h="auto"===h&&t.handleAutoShown?t.handleAutoShown("axisLine"):h)&&(h=e.axis.getExtent(),i=i.transform,r=[h[0],0],h=[h[1],0],i&&(at(r,r,i),at(h,h,i)),o=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),(i=new h_({subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:h[0],y2:h[1]},style:o,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",n.add(i),null!=(a=e.get(["axisLine","symbol"])))&&(i=e.get(["axisLine","symbolSize"]),b(a)&&(a=[a,a]),(b(i)||C(i))&&(i=[i,i]),e=Ol(e.get(["axisLine","symbolOffset"])||0,i),s=i[0],u=i[1],f([{rotate:t.rotation+Math.PI/2,offset:e[0],r:0},{rotate:t.rotation-Math.PI/2,offset:e[1],r:Math.sqrt((r[0]-h[0])*(r[0]-h[0])+(r[1]-h[1])*(r[1]-h[1]))}],function(e,i){var l;"none"!==a[i]&&null!=a[i]&&(i=Pl(a[i],-s/2,-u/2,s,u,o.stroke,!0),l=e.r+e.offset,i.attr({rotation:e.rotate,x:r[0]+l*Math.cos(t.rotation),y:r[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i))}))},axisTickLabel:function(t,e,n,i){var r,o,a,s,l,h=function(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 a=o.getModel("lineStyle"),i=i.tickDirection*o.get("length"),s=Qc(r.getTicksCoords(),e.transform,i,u(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),c=function(t,e,n,i){var r,o,a,s,l,u,h,c,p=n.axis,d=L(i.axisLabelShow,n.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return r=n.getModel("axisLabel"),o=r.get("margin"),d=p.getViewLabels(),a=(L(i.labelRotate,r.get("rotate"))||0)*BT/180,s=zT.innerTextLayout(i.rotation,a,i.labelDirection),l=n.getCategories&&n.getCategories(!0),u=[],h=zT.isLabelSilent(n),c=n.get("triggerEvent"),f(d,function(a,d){var f="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,g=a.formattedLabel,y=a.rawLabel,m=r,v=(m=l&&l[f]&&T(v=l[f])&&v.textStyle?new J_(v.textStyle,r,n.ecModel):m).getTextColor()||n.get(["axisLine","lineStyle","color"]),_=p.dataToCoord(f),_=new Qm({x:_,y:i.labelOffset+i.labelDirection*o,rotation:s.rotation,silent:h,z2:10+(a.level||0),style:Ao(m,{text:g,align:m.getShallow("align",!0)||s.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||s.textVerticalAlign,fill:w(v)?v("category"===p.type?y:"value"===p.type?f+"":f,d):v})});_.anid="label_"+f,c&&((a=zT.makeAxisEventDataBase(n)).targetType="axisLabel",a.value=y,nv(_).eventData=a),e.add(_),_.updateTransform(),u.push(_),t.add(_),_.decomposeTransform()}),u}(n,i,e,t),p=(o=c,h=h,vh((r=e).axis)||(y=r.get(["axisLabel","showMinLabel"]),r=r.get(["axisLabel","showMaxLabel"]),h=h||[],_=(o=o||[])[0],m=o[1],a=o[o.length-1],o=o[o.length-2],s=h[0],v=h[1],l=h[h.length-1],h=h[h.length-2],!1===y?(Zc(_),Zc(s)):Kc(_,m)&&(y?(Zc(m),Zc(v)):(Zc(_),Zc(s))),!1===r?(Zc(a),Zc(l)):Kc(o,a)&&(r?(Zc(o),Zc(h)):(Zc(a),Zc(l)))),n),d=i,y=e,m=t.tickDirection,v=y.axis,_=y.getModel("minorTick");if(_.get("show")&&!v.scale.isBlank()){var x=v.getMinorTicksCoords();if(x.length)for(var v=_.getModel("lineStyle"),b=m*_.get("length"),S=u(v.getLineStyle(),u(y.getModel("axisTick").getLineStyle(),{stroke:y.get(["axisLine","lineStyle","color"])})),C=0;C<x.length;C++)for(var M=Qc(x[C],d.transform,b,S,"minorticks_"+C),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&Zh(Xh(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var r,o,a,s,l,u,h,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,r=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,o=(h=e.axis.getExtent())[0]>h[1]?-1:1,o=["start"===c?h[0]-o*u:"end"===c?h[1]+o*u:(h[0]+h[1])/2,$c(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*BT/180),$c(c)?a=zT.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var r,n=In(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=kn(n-BT/2)?(r=i?"bottom":"top","center"):kn(n-1.5*BT)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*BT&&BT/2<n?i?"left":"right":i?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:r}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=r.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=L(t.nameTruncateMaxWidth,c.maxWidth,s),So({el:t=new Qm({x:o[0],y:o[1],rotation:a.rotation,silent:zT.isLabelSilent(e),style:Ao(r,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:r.get("align")||a.textAlign,verticalAlign:r.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=zT.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,nv(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}},VT={},HT=(n(rp,LT=Zw),rp.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=ep(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=np(l),null==u&&(a.status=l?"show":"hide"),(u=o.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=r.axis.scale.isBlank()?"hide":"show"),LT.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},rp.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},rp.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},rp.prototype.dispose=function(t,e){this._disposeAxisPointer(e),LT.prototype.dispose.apply(this,arguments)},rp.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=rp.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=ep(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},rp.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},rp.registerAxisPointerClass=function(t,e){VT[t]=e},rp.getAxisPointerClass=function(t){return t&&VT[t]},rp.type="axis",rp),GT=Kn(),WT=["axisLine","axisTickLabel","axisName"],UT=["splitArea","splitLine","minorSplitLine"],Sb=(n(op,RT=HT),op.prototype.render=function(t,e,n,i){this.group.removeAll();var r,o,a=this._axisGroup;this._axisGroup=new wy,this.group.add(this._axisGroup),t.get("show")&&(o=Hc(r=t.getCoordSysModel(),t),o=new zT(t,l({handleAutoShown:function(e){for(var n=r.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Uu(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},o)),f(WT,o.add,o),this._axisGroup.add(o.getGroup()),f(UT,function(e){t.get([e,"show"])&&jT[e](this,this._axisGroup,t,r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||vo(a,this._axisGroup,t),RT.prototype.render.call(this,t,e,n,i))},op.prototype.remove=function(){GT(this).splitAreaColors=null},op.type="cartesianAxis",op),jT={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank())for(var n=n.getModel("splitLine"),o=n.getModel("lineStyle"),a=x(a=o.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=r.isHorizontal(),h=0,c=r.getTicksCoords({tickModel:n}),p=[],d=[],f=o.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),h++%a.length),m=c[g].tickValue;e.add(new h_({anid:null!=m?"line_"+c[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:u({stroke:a[y]},f),silent:!0}))}},minorSplitLine:function(t,e,n,i){var r=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),o=i.coordinateSystem.getRect(),a=r.isHorizontal(),s=r.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=r.toGlobalCoord(s[c][p].coord);a?(l[0]=d,l[1]=o.y,u[0]=d,u[1]=o.y+o.height):(l[0]=o.x,l[1]=d,u[0]=o.x+o.width,u[1]=d),e.add(new h_({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){var r=e,e=i,o=(i=n).axis;if(!o.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var h=a.length,c=GT(t).splitAreaColors,p=W(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=o.toGlobalCoord(l[0].coord),m=n.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=o.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=o.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),r.add(new qm({anid:null!=v?"area_"+v:null,shape:{x:_,y:w,width:b,height:S},style:u({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}GT(t).splitAreaColors=p}}}},YT=(n(ap,ET=Sb),ap.type="xAxis",ap);n(sp,XT=Sb),sp.type="yAxis";var XT,qT=sp;n(lp,ZT=Zw),lp.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new qm({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},lp.type="grid";var ZT,KT=lp,$T={offset:0};xh(function(t){t.registerComponentView(KT),t.registerComponentModel(bT),t.registerCoordinateSystem("cartesian2d",NT),Ec(t,"x",CT,$T),Ec(t,"y",CT,$T),t.registerComponentView(YT),t.registerComponentView(qT),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),n(up,QT=Ax),up.type="title",up.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var QT,JT=up;n(hp,tM=Zw),hp.prototype.render=function(t,e,n){var i,r,o,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),r=t.getModel("subtextStyle"),h=t.get("textAlign"),c=R(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Qm({style:Ao(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new Qm({style:Ao(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,r.silent=!a&&!s,o&&u.on("click",function(){pa(o,"_"+t.get("target"))}),a&&r.on("click",function(){pa(a,"_"+t.get("subtarget"))}),nv(u).eventData=nv(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(r),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=fa(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),r.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new qm({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},hp.type="title";var tM,eM=hp;xh(function(t){t.registerComponentModel(JT),t.registerComponentView(eM)}),n(cp,nM=Ax),cp.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},cp.prototype.mergeOption=function(t,e){nM.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},cp.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;x(e=!0===e?t.selector=["all","inverse"]:e)&&f(e,function(t,i){b(t)&&(t={type:t}),e[i]=s(t,(i=n,"all"===(t=t.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},cp.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},cp.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;n.push(o),i.legendVisualProvider&&(o=i.legendVisualProvider.getAllNames(),t.isSeriesFiltered(i)||(n=n.concat(o)),o.length)?e=e.concat(o):r=!0,r&&Yn(i)&&e.push(i.name)}),this._availableNames=n;var i=g(this.get("data")||e,function(t){return(b(t)||C(t))&&(t={name:t}),new J_(t,this,this.ecModel)},this);this._data=i},cp.prototype.getData=function(){return this._data},cp.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&f(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},cp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},cp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},cp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},cp.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},cp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=h(this._availableNames,t)},cp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},cp.type="legend.plain",cp.dependencies=["series"],cp.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var nM,iM,rM=cp,oM=_,aM=f,sM=wy,lM=(n(pp,iM=Zw),pp.prototype.init=function(){this.group.add(this._contentGroup=new sM),this.group.add(this._selectorGroup=new sM),this._isFirstRender=!0},pp.prototype.getContentGroup=function(){return this._contentGroup},pp.prototype.getSelectorGroup=function(){return this._selectorGroup},pp.prototype.render=function(t,e,n){var i,r,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(r=t.get("align"),i=t.get("orient"),r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===i?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(r,t,e,n,a,i,s=!a||s&&"auto"!==s?s:"horizontal"===i?"end":"start"),o=fa(e=t.getBoxLayoutParams(),i={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),o=fa(u({width:(r=this.layoutInner(t,r,o,l,a,s)).width,height:r.height},e),i,n),this.group.x=o.x-r.x,this.group.y=o.y-r.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=r,s=yx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new qm({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},pp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},pp.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),u=W(),h=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),aM(e.getData(),function(r,o){var a,p,d,f,g=r.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=n.getSeriesByName(g)[0],u.get(g)||(a?(p=(f=a.getData()).getVisual("legendLineStyle")||{},d=f.getVisual("legendIcon"),f=f.getVisual("style"),this._createItem(a,g,o,r,e,t,p,f,d,h).on("click",oM(dp,g,null,i,c)).on("mouseover",oM(gp,a.name,null,i,c)).on("mouseout",oM(yp,a.name,null,i,c)),u.set(g,!0)):n.eachRawSeries(function(n){var a,s,p;u.get(g)||n.legendVisualProvider&&(s=n.legendVisualProvider).containName(g)&&(p=s.indexOfName(g),a=s.getItemVisual(p,"style"),s=s.getItemVisual(p,"legendIcon"),(p=ae(a.fill))&&0===p[3]&&(p[3]=.2,a=l(l({},a),{fill:ce(p,"rgba")})),this._createItem(n,g,o,r,e,t,{},a,s,h).on("click",oM(dp,null,g,i,c)).on("mouseover",oM(gp,null,g,i,c)).on("mouseout",oM(yp,null,g,i,c)),u.set(g,!0))},this))):((p=new sM).newline=!0,s.add(p))},this),r&&this._createSelector(r,e,i,o,a)},pp.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();aM(t,function(t){var i=t.type,r=new Qm({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),ko(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),xr(r)})},pp.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u){var h=t.visualDrawType,c=r.get("itemWidth"),p=r.get("itemHeight"),d=r.isSelected(e),f=i.get("symbolRotate"),g=i.get("symbolKeepAspect"),y=i.get("icon"),a=function(t,e,n,i,r,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),aM(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var s=e.getModel("itemStyle").getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[r]),"inherit"===s.stroke&&(s.stroke=i[t]),"inherit"===s.opacity&&(s.opacity=("fill"===r?i:n).opacity),a(s,i);var r=e.getModel("lineStyle"),l=r.getLineStyle();return a(l,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===l.stroke&&(l.stroke=i.fill),o||(n=e.get("inactiveBorderWidth"),o=s[t],s.lineWidth="auto"===n?0<i.lineWidth&&o?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),l.stroke=r.get("inactiveColor"),l.lineWidth=r.get("inactiveWidth")),{itemStyle:s,lineStyle:l}}(l=y||l||"roundRect",i,a,s,h,d),s=new sM,h=i.getModel("textStyle"),y=(!w(t.getLegendIcon)||y&&"inherit"!==y?(y="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0,s.add(function(t){var e=t.icon||"roundRect",n=Pl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:c,itemHeight:p,icon:l,iconRotate:y,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g}))):s.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:f,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g})),"left"===o?c+5:-5),t=o,l=r.get("formatter"),f=e,a=(b(l)&&l?f=l.replace("{name}",null!=e?e:""):w(l)&&(f=l(e)),i.get("inactiveColor")),g=(s.add(new Qm({style:Ao(h,{text:f,x:y,y:p/2,fill:d?h.getTextColor():a,align:t,verticalAlign:"middle"})})),new qm({shape:s.getBoundingRect(),invisible:!0})),c=i.getModel("tooltip");return c.get("show")&&So({el:g,componentModel:r,itemName:e,itemTooltipOption:c.option}),s.add(g),s.eachChild(function(t){t.silent=!0}),g.silent=!u,this.getContentGroup().add(s),xr(s),s.__legendDataIndex=n,s},pp.prototype.layoutInner=function(t,e,n,i,r,o){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(Cx(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),r?(Cx("horizontal",p,t.get("selectorItemGap",!0)),a=[-(r=p.getBoundingRect()).x,-r.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===o?a[t]+=n[l]+s:d[t]+=r[l]+s,a[1-t]+=n[u]/2-r[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(o={x:0,y:0})[l]=n[l]+s+r[l],o[u]=Math.max(n[u],r[u]),o[h]=Math.min(0,r[h]+a[1-t]),o):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},pp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},pp.type="legend.plain",pp);n(xp,uM=rM),xp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},xp.prototype.init=function(t,e,n){var i=ma(t);uM.prototype.init.call(this,t,e,n),wp(this,t,i)},xp.prototype.mergeOption=function(t,e){uM.prototype.mergeOption.call(this,t,e),wp(this,this.option,t)},xp.type="legend.scroll",xp.defaultOption=(f_=rM.defaultOption,Rv={scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},s(s({},f_,!0),Rv,!0));var uM,hM,cM=xp,pM=wy,dM=["width","height"],fM=["x","y"],gM=(n(bp,hM=lM),bp.prototype.init=function(){hM.prototype.init.call(this),this.group.add(this._containerGroup=new pM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pM)},bp.prototype.resetInner=function(){hM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},bp.prototype.renderInner=function(t,e,n,i,r,o,a){function s(t,n){var r=t+"DataIndex",n=wo(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:If(l._pageGo,l,r,e,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});n.name=t,u.add(n)}var l=this,u=(hM.prototype.renderInner.call(this,t,e,n,i,r,o,a),this._controllerGroup),t=e.get("pageIconSize",!0),h=x(t)?t:[t,t],n=(s("pagePrev",0),e.getModel("pageTextStyle"));u.add(new Qm({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},bp.prototype.layoutInner=function(t,e,n,i,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=dM[l],h=fM[l],c=dM[1-l],p=fM[1-l],d=(r&&Cx("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(n),n=(r&&(y[u]=n[u]-f[u]-d),this._layoutContentAndController(t,i,y,l,u,c,p,h));return r&&("end"===o?g[l]+=n[u]+d:(t=f[u]+d,g[l]-=t,n[h]-=t),n[u]+=f[u]+d,g[1-l]+=n[p]+n[c]/2-f[c]/2,n[c]=Math.max(n[c],f[c]),n[p]=Math.min(n[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),n},bp.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(Cx(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Cx("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=R(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[r]-p[r]:e[i]+=p[r]+g),s[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[r]=(d?n:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[r],d?((e={x:0,y:0})[r]=Math.max(n[r]-p[r]-g,0),e[o]=f[o],u.setClipPath(new qm({shape:e})),u.__rectSize=e[r]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&to(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},bp.prototype._pageGo=function(t,e,n){null!=(t=this._getPageInfo(e)[t])&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},bp.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(f(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],i=n.childOfName(i);i&&(i.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=r?"pointer":"default")}),n.childOfName("pageText")),r=t.get("pageFormatter"),o=e.pageIndex,o=null!=o?o+1:0,a=e.pageCount;i&&r&&i.setStyle("text",b(r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):r({current:o,total:a}))},bp.prototype._getPageInfo=function(t){function e(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[s]+t[s],e:n+e[a],i:t.__legendDataIndex}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,t=t.getOrient().index,a=dM[t],s=fM[t],i=this._findTargetItemIndex(i),l=r.children(),u=l[i],h=l.length,c=h?1:0,p={contentPosition:[r.x,r.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(u){r=e(u),p.contentPosition[t]=-r.s;for(var d=i+1,f=r,g=r,y=null;d<=h;++d)(!(y=e(l[d]))&&g.e>f.s+o||y&&!n(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=i-1,f=r,g=r,y=null;-1<=d;--d)(y=e(l[d]))&&n(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},bp.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){i=i.__legendDataIndex,null==n&&null!=i&&(n=r),i===t&&(e=r)}),null!=e?e:n):0},bp.type="legend.scroll",bp);xh(function(t){xh(_p),t.registerComponentModel(cM),t.registerComponentView(gM),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var yM=Kn(),mM=a,vM=If;Sp.prototype.render=function(t,e,n,i){var r,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,r=this._handle,s&&"hide"!==s?(i&&i.show(),r&&r.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),i?(o=_(Cp,e,o),this.updatePointerEl(i,s,o),this.updateLabelEl(i,s,o,e)):(i=this._group=new wy,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),Ip(i,e,!0),this._renderHandle(a)):(i&&i.hide(),r&&r.hide()))},Sp.prototype.remove=function(t){this.clear(t)},Sp.prototype.dispose=function(t){this.clear(t)},Sp.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===i||null==i?(n=this.animationThreshold,o&&r.getBandWidth()>n||!!e&&(o=ep(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},Sp.prototype.makeElOption=function(t,e,n,i,r){},Sp.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=yM(t).pointerEl=new B_[r.type](mM(e.pointer)),t.add(r))},Sp.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=yM(t).labelEl=new Qm(mM(e.label)),t.add(e),Tp(e,i))},Sp.prototype.updatePointerEl=function(t,e,n){(t=yM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Sp.prototype.updateLabelEl=function(t,e,n,i){(t=yM(t).labelEl)&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),Tp(t,i))},Sp.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,i=this._handle=wo(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Uf(t.event)},onmousedown:vM(this._onHandleDragMove,this,0,0),drift:vM(this._onHandleDragMove,this),ondragend:vM(this._onHandleDragEnd,this)}),n.add(i)),Ip(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=r.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,cl(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(i&&n.remove(i),this._handle=null))},Sp.prototype._moveHandleToValue=function(t,e){Cp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Mp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Sp.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(Mp(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(Mp(t)),yM(n).lastProp=null,this._doDispatchAxisPointer())},Sp.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(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}]}))},Sp.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Sp.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),pl(this,"_doDispatchAxisPointer")},Sp.prototype.doClear=function(){},Sp.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},n(Pp,_M=Sp),Pp.prototype.makeElOption=function(t,e,n,i,r){var o,a,s=n.axis,l=s.grid,u=i.get("type"),h=Op(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=i).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=wM[u](s,c,h)).style=o,t.graphicKey=a.type,t.pointer=a),Hc(l.model,n));u=e,s=t,c=p,h=n,o=i,a=r,l=zT.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),kp(s,h,o,a,{position:Ap(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Pp.prototype.getHandleTransform=function(t,e,n){var i=Hc(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),Ap(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},Pp.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=Op(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var _M,xM=Pp,wM={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=Lp(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=Lp(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};n(Rp,bM=Ax),Rp.type="axisPointer",Rp.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}};var bM,SM=Rp,CM=Kn(),TM=f;n(Fp,MM=Zw),Fp.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Ep("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Fp.prototype.remove=function(t,e){zp("axisPointer",e)},Fp.prototype.dispose=function(t,e){zp("axisPointer",e)},Fp.type="axisPointer";var MM,IM=Fp,kM=Kn();n(qp,DM=Ax),qp.type="tooltip",qp.dependencies=["axisPointer"],qp.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}};var DM,AM=qp,PM=Kp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),OM=$p(Kp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),LM=$p(PM,"transform"),RM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(af.transform3dSupported?"will-change:transform;":"");ed.prototype.update=function(t){var e=this._container,n=(n="position",(i=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?n?i[n]:i:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},ed.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=RM+Jp(t,!this._firstShow,this._longHide)+Qp(r[0],r[1],!0)+"border-color:"+ca(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},ed.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,u,c,p="";if(b(r)&&"item"===n.get("trigger")&&!Zp(n)&&(n=n,i=i,p=b(r=r)&&"inside"!==r?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=ca(i),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",d=Math.max(1.5*Math.round(n),6),s="",l=LM+":",-1<h(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==r?225:45)+"deg)"),c=c*Math.PI/180,c=(u=d+n)*Math.abs(Math.cos(c))+u*Math.abs(Math.sin(c)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;",(s+=";"+r+":-"+Math.round(100*((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))o.innerHTML=t+p;else if(t){o.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==o&&o.appendChild(t[f]);p&&o.childNodes.length&&((d=document.createElement("div")).innerHTML=p,o.appendChild(d))}}},ed.prototype.setEnterable=function(t){this._enterable=t},ed.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},ed.prototype.moveTo=function(t,e){var n,i=this._styleCoord;td(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,f(Qp(i[0],i[1]),function(t){n[t[0]]=t[1]}))},ed.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},ed.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",af.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},ed.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},ed.prototype.isShow=function(){return this._show},ed.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var EM=ed;nd.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},nd.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},nd.prototype.setContent=function(t,e,n,i,r){var o=this,a=(T(t)&&Bn(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new Qm({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:js(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},nd.prototype.setEnterable=function(t){this._enterable=t},nd.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=rd(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},nd.prototype.moveTo=function(t,e){var n,i,r=this.el;r&&(od(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=id((i=r.style).borderWidth||0),i=rd(i),r.x=t+n+i.left,r.y=e+n+i.top,r.markRedraw())},nd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},nd.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},nd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},nd.prototype.isShow=function(){return this._show},nd.prototype.dispose=function(){this._zr.remove(this.el)};var NM,BM=nd,zM=new qm({shape:{x:-1,y:-1,width:2,height:2}}),FM=(n(ad,NM=Zw),ad.prototype.init=function(t,e){var n;!af.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?af.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new BM(e):new EM(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},ad.prototype.render=function(t,e,n){!af.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?cl(this,"_updatePosition",50,"fixRate"):pl(this,"_updatePosition"))},ad.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Ep("itemTooltip",this._api,If(function(e,n,i){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},ad.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},ad.prototype.manuallyShowTip=function(t,e,n,i){var r,o,a,s;i.from!==this.uid&&!af.node&&n.getDom()&&(r=ld(i,n),this._ticket="",s=i.dataByCoordSys,(o=function(t,e,n){var i=Qn(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,e=Jn(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse(function(e){var n=nv(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o))return{componentMainType:r,componentIndex:e.componentIndex,el:o}}}(i,e,n))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)):i.tooltip&&null!=i.x&&null!=i.y?((a=zM).x=i.x,a.y=i.y,a.update(),nv(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},r):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(o=Vp(i,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:i.position,positionDefault:"bottom"},r)):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)))},ad.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(ld(i,n))},ad.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&&(a=e.getSeriesByIndex(r))&&(e=sd([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0},ad.prototype._tryShow=function(t,e){var n,i,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):o?(kl(o,function(t){return null!=nv(t).dataIndex?(i=t,1):null!=nv(t).tooltipConfig&&(r=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},ad.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=If(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},ad.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=sd([e.tooltipOption],i),a=this._renderMode,s=[],u=Bs("section",{blocks:[],noHeader:!0}),h=[],c=new jw,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,r,o=n.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;o&&null!=p&&(e=Dp(p,o.axis,n,t.seriesDataIndices,t.valueLabelOpt),r=Bs("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),u.blocks.push(r),f(t.seriesDataIndices,function(u){var d,f=n.getSeriesByIndex(u.seriesIndex),u=u.dataIndexInside,g=f.getDataParams(u);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=gh(o.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",ca(g.color),a),(d=(u=hs(f.formatTooltip(u,!0,null))).frag)&&(f=sd([f],i).get("valueFormatter"),r.blocks.push(f?l({valueFormatter:f},d):d)),u.text&&h.push(u.text),s.push(g))}))})}),u.blocks.reverse(),h.reverse(),e.position),e=o.get("order"),e=Gs(u,c,a,e,n.get("useUTC"),o.get("textStyle")),e=(e&&h.unshift(e),"richText"===a?"\n\n":"<br/>"),d=h.join(e);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,d,s,Math.random()+"",r[0],r[1],p,null,c)})},ad.prototype._showSeriesItemTooltip=function(t,e,n){var i,r,o,a,s,u=this._ecModel,e=nv(e),h=e.seriesIndex,c=u.getSeriesByIndex(h),p=e.dataModel||c,d=e.dataIndex,e=e.dataType,f=p.getData(e),g=this._renderMode,y=t.positionDefault,m=sd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(i=p.getDataParams(d,e),r=new jw,i.marker=r.makeTooltipMarker("item",ca(i.color),g),y=hs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),o=y.frag,a=o?Gs(e?l({valueFormatter:e},o):o,r,g,c,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,r)}),n({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:h,from:this.uid}))},ad.prototype._showComponentItemTooltip=function(t,e,n){var i=nv(e),r=i.tooltipConfig.option||{},o=[r=b(r)?{content:r,formatter:r}:r],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&o.push(i),o.push({formatter:r.content}),t.positionDefault),s=sd(o,this._tooltipModel,i?{position:i}:null),l=s.get("content"),u=Math.random()+"",h=new jw;this._showOrMove(s,function(){var n=a(s.get("formatterParams")||{});this._showTooltipContent(s,l,n,u,t.offsetX,t.offsetY,t.position,e,h)}),n({type:"showTip",from:this.uid})},ad.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){var u,h,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&(u=this._tooltipContent,h=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=b(h)?(p=t.ecModel.get("useUTC"),e=h,ua(e=(d=x(n)?n[0]:n)&&d.axisType&&0<=d.axisType.indexOf("time")?Go(d.axisValue,e,p):e,n,!0)):w(h)?(d=If(function(e,i){e===this._ticket&&(u.setContent(i,l,t,c,a),this._updatePosition(t,a,r,o,u,n,s))},this),this._ticket=i,h(n,i,d)):h),u.setContent(e,l,t,c,a),u.show(t,c),this._updatePosition(t,a,r,o,u,n,s))},ad.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||x(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:x(e)?void 0:{color:i||e.color||e.borderColor}},ad.prototype._updatePosition=function(t,e,n,i,r,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=bn(e[0],l),i=bn(e[1],u)):T(e)?((o=e).width=h[0],o.height=h[1],n=(o=fa(o,{width:l,height:u})).x,i=o.y,p=c=null):(n=(s=b(e)&&a?function(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]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,r,o,a){var n=n.getSize(),s=n[0],n=n[1];return null!=o&&(i<t+s+o+2?t-=s+o:t+=o),null!=a&&(r<e+n+a?e-=n+a:e+=a),[t,e]}(n,i,r,l,u,c?null:20,p?null:20))[0],i=s[1]),c&&(n-=ud(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=ud(p)?h[1]/2:"bottom"===p?h[1]:0),Zp(t)&&(o=n,a=i,e=l,d=u,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),n=(s=[o,a])[0],i=s[1]),r.moveTo(n,i)},ad.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&f(n,function(n,o){var n=n.dataByAxis||[],a=(t[o]||{}).dataByAxis||[];(r=r&&n.length===a.length)&&f(n,function(t,n){var n=a[n]||{},o=t.seriesDataIndices||[],s=n.seriesDataIndices||[];(r=r&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&o.length===s.length)&&f(o,function(t,e){e=s[e],r=r&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),i&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,n=e[t],t=i[t];n&&t&&t.data!==n.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},ad.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},ad.prototype.dispose=function(t,e){!af.node&&e.getDom()&&(pl(this,"_updatePosition"),this._tooltipContent.dispose(),zp("itemTooltip",e))},ad.type="tooltip",ad);xh(function(t){xh(Xp),t.registerComponentModel(AM),t.registerComponentView(FM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},q),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},q)}),xh(oc);var VM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},HM=(hd.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!C(e)&&this._condVal.test(t+"")},hd);cd.prototype.evaluate=function(){return this.value};var GM=cd;pd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var WM=pd;dd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var UM=dd;fd.prototype.evaluate=function(){return!this.child.evaluate()};var jM=fd;gd.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var YM=gd;_d.prototype.evaluate=function(){return this._cond.evaluate()};var XM=_d,qM={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:W({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(X(t,"dimension")||Bn(""),i.getDimensionInfo(e));return t||Bn(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new XM(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},ZM={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Fn(t),n=(t.length||Bn(""),[]),t=(f(t,function(t){var i=t.dimension,r=t.order,o=t.parser,t=t.incomparable,i=(null==i&&Bn(""),"asc"!==r&&"desc"!==r&&Bn(""),t&&"min"!==t&&"max"!==t&&Bn(""),"asc"!==r&&"desc"!==r&&Bn(""),e.getDimensionInfo(i)),a=(i||Bn(""),o?ys(o):null);o&&!a&&Bn(""),n.push({dimIdx:i.index,parser:a,comparator:new Pw(r,t)})}),e.sourceFormat),i=(t!==zx&&t!==Fx&&Bn(""),[]),r=0,o=e.count();r<o;r++)i.push(e.getRawDataItem(r));return i.sort(function(t,i){for(var r=0;r<n.length;r++){var o=n[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(i,o.dimIdx),o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0}),{data:i}}};xh(function(t){t.registerTransform(qM),t.registerTransform(ZM)});var KM,$M=Math.sin,QM=Math.cos,JM=Math.PI,tI=2*Math.PI,eI=180/JM,nI=(xd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},xd.prototype.moveTo=function(t,e){this._add("M",t,e)},xd.prototype.lineTo=function(t,e){this._add("L",t,e)},xd.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},xd.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},xd.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},xd.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l,u=a-o,s=!s,h=Math.abs(u),c=fe(h-tI)||(s?tI<=u:tI<=-u),p=!1,p=!!c||!fe(h)&&JM<=(0<u?u%tI:u%tI+tI)==!!s,h=t+n*QM(o),u=e+i*$M(o),r=(this._start&&this._add("M",h,u),Math.round(r*eI));c?(c=1/this._p,this._add("A",n,i,r,1,+s,t+n*QM(o+(l=(s?1:-1)*(tI-c))),e+i*$M(o+l)),.01<c&&this._add("A",n,i,r,0,+s,h,u)):(o=t+n*QM(a),l=e+i*$M(a),this._add("A",n,i,r,+p,+s,o,l))},xd.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},xd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},xd.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},xd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},xd.prototype.getStr=function(){return this._str},xd),iI="none",rI=Math.round,oI=["lineCap","miterLimit","lineJoin"],aI=g(oI,function(t){return"stroke-"+t.toLowerCase()}),sI="http://www.w3.org/2000/svg",lI="http://www.w3.org/1999/xlink",uI="http://www.w3.org/2000/xmlns/",hI="http://www.w3.org/XML/1998/namespace",cI={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},pI="transform-origin",dI={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},fI=Math.round,gI={circle:[(KM=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<KM.length;i++){var r=KM[i],o=t[r[0]];null!=o&&(e[r[1]]=fI(o*n)/n)}})],polyline:[Ed,Nd],polygon:[Ed,Nd]},yI=58,mI=120,vI=Sd("",""),_I=0;ef.prototype.getType=function(){return this.type},ef.prototype.getViewportRoot=function(){return this._viewport},ef.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},ef.prototype.getSvgDom=function(){return this._svgDom},ef.prototype.refresh=function(){var t,e,n,i,r;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",qd(e=this._oldVNode,n=t)?tf(e,n):(r=Wd(i=e.elm),Zd(n),null!==r&&(Vd(r,n.elm,Ud(i)),$d(r,[e],0,0))),this._oldVNode=t)},ef.prototype.renderOneToVNode=function(t){return zd(t,Td(this._id))},ef.prototype.renderToVNode=function(t){t=t||{};var e,n,i,r,o,a=this.storage.getDisplayList(!0),s=this._backgroundColor,l=this._width,u=this._height,h=Td(this._id),c=(h.animation=t.animation,h.willUpdate=t.willUpdate,h.compress=t.compress,[]),p=(s&&"none"!==s?(p=(s=de(s)).color,s=s.opacity,this._bgVNode=Sd("rect","bg",{width:l,height:u,x:"0",y:"0",id:"0",fill:p,"fill-opacity":s}),c.push(this._bgVNode)):this._bgVNode=null,t.compress?null:this._mainVNode=Sd("g","main",{},[])),s=(this._paintList(a,h,p?p.children:c),p&&c.push(p),g(v(h.defs),function(t){return h.defs[t]}));return s.length&&c.push(Sd("defs","defs",{},s)),t.animation&&(e=h.cssNodes,n=h.cssAnims,i=(a=(a={newline:!0})||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=g(v(e),function(t){return t+r+g(v(e[t]),function(n){return n+":"+e[t][n]+";"}).join(i)+o}).join(i),p=g(v(n),function(t){return"@keyframes "+t+r+g(v(n[t]),function(e){return e+r+g(v(n[t][e]),function(i){var r=n[t][e][i];return i+":"+(r="d"===i?'path("'+r+'")':r)+";"}).join(i)+o}).join(i)+o}).join(i),s=a||p?["<![CDATA[",a,p,"]]>"].join(i):"")&&(a=Sd("style","stl",{},[],s),c.push(a)),Md(l,u,c,t.useViewBox)},ef.prototype.renderToString=function(t){return Cd(this.renderToVNode({animation:R((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:R(t.useViewBox,!0)}),{newline:!0})},ef.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e,n=this._bgVNode;n&&n.elm&&(e=(t=de(t)).color,t=t.opacity,n.elm.setAttribute("fill",e),t<1)&&n.elm.setAttribute("fill-opacity",t)},ef.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},ef.prototype._paintList=function(t,e,n){for(var i,r,o,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f<h;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=C&&C.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!C||y[_]!==C[_]);_--);for(var x=v-1;_<x;x--)i=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(r=y[w],o=b,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[r.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[r.id]=u]=Sd("clipPath",u,s,[Bd(r,a)])),o["clip-path"]=xe(u),Sd("g","clip-g-"+d++,b,[]));(i?i.children:n).push(S),i=c[p++]=S}var C=y,v=zd(g,e);v&&(i?i.children:n).push(v)}}},ef.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=El(i,0,n),e=El(i,1,n),r.style.display=""),(this._width!==t||this._height!==e)&&(this._width=t,this._height=e,r&&((i=r.style).width=t+"px",i.height=e+"px"),n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e))},ef.prototype.getWidth=function(){return this._width},ef.prototype.getHeight=function(){return this._height},ef.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},ef.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},ef.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(e=Mg(e))&&n+"base64,"+e:n+"charset=UTF-8,"+e},xn("svg",ef),e.Axis=$_,e.ChartView=Qw,e.ComponentModel=Ax,e.ComponentView=Zw,e.List=jS,e.Model=J_,e.PRIORITY=wb,e.SeriesModel=qw,e.color=Sg,e.connect=function(t){var e;return x(t)&&(e=t,t=null,f(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+CS++,f(e,function(e){e.group=t})),bS[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.3.0"},e.disConnect=lu,e.disconnect=xb,e.dispose=function(t){b(t)?t=wS[t]:t instanceof pS||(t=uu(t)),t instanceof pS&&!t.isDisposed()&&t.dispose()},e.env=af,e.extendChartView=function(t){return t=Qw.extend(t),Qw.registerClass(t),t},e.extendComponentModel=function(t){return t=Ax.extend(t),Ax.registerClass(t),t},e.extendComponentView=function(t){return t=Zw.extend(t),Zw.registerClass(t),t},e.extendSeriesModel=function(t){return t=qw.extend(t),qw.registerClass(t),t},e.format=Z_,e.getCoordinateSystemDimensions=function(t){if(t=nw.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=uu,e.getInstanceById=function(t){return wS[t]},e.getMap=function(t){var e=zb.getMap;return e&&e(t)},e.graphic=px,e.helper=bb,e.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=uu(t);if(r)return r}return(r=new pS(t,e,n)).id="ec_"+SS++,wS[r.id]=r,i&&ti(t,TS,r.id),sS(r),Bb.trigger("afterinit",r),r},e.innerDrawElementOnCanvas=ql,e.matrix=jg,e.number=zy,e.parseGeoJSON=Ah,e.parseGeoJson=Ah,e.registerAction=yu,e.registerCoordinateSystem=mu,e.registerLayout=vu,e.registerLoading=wu,e.registerLocale=Fo,e.registerMap=bu,e.registerPostInit=du,e.registerPostUpdate=fu,e.registerPreprocessor=cu,e.registerProcessor=pu,e.registerTheme=hu,e.registerTransform=Su,e.registerUpdateLifecycle=gu,e.registerVisual=_u,e.setCanvasCreator=function(t){i({createCanvas:t})},e.setPlatformAPI=i,e.throttle=hl,e.time=N_,e.use=xh,e.util=Y_,e.vector=Rf,e.version="5.3.0",e.zrUtil=Pf,e.zrender=My})}).call(e,n(862).Buffer)},1963: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},1964: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,n=t._self._c||e;return n("div",{staticClass:"chartContainer"},[n("div",{staticClass:"dataDisplay"},[n("div",{staticClass:"selectAge"},[n("div",{staticClass:"leftSelectAge"},[n("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),n("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[n("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),n("i",{staticClass:"dropDown"})]),t._v(" "),n("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),n("div",{class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"specialShowBox"},[n("div",{staticClass:"numShow"},[n("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][i])+"\n ")]),t._v(" "),n("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),n("div",{staticClass:"titleShow"},[n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()])]):t._e()]})]:[n("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"textShowBox"},[n("div",{staticClass:"iconblock"},[n("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),n("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"moneyShowBox"},[n("div",{staticClass:"numShow"},[n("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][i])+"\n ")]),t._v(" "),n("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()]):t._e()]})],2)]],2),t._v(" "),n("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),n("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?n("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e()],1)},r=[];i._withStripped=!0},1965:function(t,e,n){"use strict";function i(t){s||n(1966)}var r=n(1168),o=n(1967),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},1966:function(t,e){},1967: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,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[n("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[n("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),n("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),n("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[n("div",[n("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,i){return[t.showCol(i)?n("span",{key:"head-"+i,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),n("div",{staticClass:"cost-scroll"},[n("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?n("tbody",t._l(t.tables.rows,function(e,i){return n("tr",{key:"tr-"+i,staticClass:"table-tr "},[t._l(e,function(e,r){return[t.showCol(r)?n("td",{key:"td-"+i+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[n("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];i._withStripped=!0},1968: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=this,n=e.$createElement,i=e._self._c||n;return e.isShowChart?i("div",[i("benefit",{attrs:{renderData:e.renderData,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),i("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),i("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,n){t.setSelectIndex(n[0])}}})],1):e._e()},r=[];i._withStripped=!0},197:function(t,e,n){n(121)("observable")},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},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):{}}},216:function(t,e,n){"use strict";function i(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some(function(t,i,r){var o=e.call(this,t,i,r);if(o)return n=i,o}),n}function r(t){return t?JSON.parse(y()(t)):t}function o(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0!==t&&null!==t}function h(t){return"function"==typeof t}function c(t,e,n){function i(e){var n=y,i=m;return y=m=void 0,b=e,_=t.apply(i,n)}function r(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(h,e),S?i(t):_}function s(t){var n=t-w,i=t-b,r=e-n;return C?Math.min(r,v-i):r}function u(t){var n=t-w,i=t-b;return void 0===w||n>=e||n<0||C&&i>=v}function h(){var t=Date.now();if(u(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,T&&y?i(t):(y=m=void 0,_)}function p(){void 0!==x&&o(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),n=u(t),o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];if(y=s,m=this,w=t,n){if(void 0===x)return a(w);if(C)return x=r(h,e),i(w)}return void 0===x&&(x=r(h,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,C=!1,T=!0,M=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,l(n)&&(S=!!n.leading,C="maxWait"in n,v=C?Math.max(+n.maxWait||0,e):v,T="trailing"in n?!!n.trailing:T),g.cancel=p,g.flush=d,g.pending=f,g}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var n=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),i=e.match(n);return decodeURIComponent(i?i[2]:"")}n.d(e,"j",function(){return O}),e.c=i,e.b=r,e.e=o,e.i=a,e.h=s,e.f=u,e.g=h,e.a=c,e.d=p;var d=n(66),f=(n.n(d),n(187)),g=(n.n(f),n(93)),y=n.n(g),m="undefined"!=typeof window,v=m&&window.navigator.userAgent.toLowerCase(),_=v&&/msie|trident/.test(v),x=v&&v.indexOf("msie 9.0")>0,w=v&&v.indexOf("edge/")>0,b=v&&v.indexOf("android")>0,S=v&&/iphone|ipad|ipod|ios/.test(v),C=v&&/chrome\/\d+/.test(v)&&!w,T=v&&/MicroMessenger/i.test(v),M=v&&/wxwork/i.test(v),I=v&&/mucxiaoyusan/i.test(v),k=v&&/muckacabao/i.test(v),D=v&&/mucyanxuan/i.test(v),A=I||k,P=v&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(v),O={isIE:_,isMobile:P,isIE9:x,isEdge:w,isAndroid:b,isIOS:S,isChrome:C,isWx:T,isWxWork:M,isApp:A,isXysApp:I,isKcbApp:k,isYxApp:D};/MucWebAutoTester/.test(window.navigator.userAgent)},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(7),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(38),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(",")},282: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},29:function(t,e,n){var i=n(15);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(16),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},33:function(t,e,n){"use strict";var i=n(18),r=n(10),o=n(51),a=n(5),s=n(11),l=n(56),u=n(25),h=n(58),c=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,f,g,y,m){l(n,e,f);var v,_,x,w=function(t){if(!p&&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,C=!1,T=t.prototype,M=T[c]||T["@@iterator"]||g&&T[g],I=M||w(g),k=g?S?w("entries"):I:void 0,D="Array"==e?T.entries||M:M;if(D&&(x=h(D.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),i||"function"==typeof x[c]||a(x,c,d)),S&&M&&"values"!==M.name&&(C=!0,I=function(){return M.call(this)}),i&&!m||!p&&!C&&T[c]||a(T,c,I),s[e]=I,s[b]=d,g)if(v={values:S?I:w("values"),keys:y?I:w("keys"),entries:k},m)for(_ in v)_ in T||o(T,_,v[_]);else r(r.P+r.F*(p||C),e,v);return v}},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")}},37:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},38:function(t,e,n){var i=n(7),r=n(12),o=n(45)(!1),a=n(19)("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}},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(0).document;t.exports=i&&i.documentElement},44: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}},45:function(t,e,n){var i=n(12),r=n(31),o=n(46);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}}},46:function(t,e,n){var i=n(16),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},47:function(t,e,n){"use strict";var i=n(55)(!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})})},48:function(t,e){e.f={}.propertyIsEnumerable},49:function(t,e,n){var i=n(4),r=n(57),o=n(28),a=n(19)("IE_PROTO"),s=function(){},l=function(){var t,e=n(21)("iframe"),i=o.length;for(e.style.display="none",n(40).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)}},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}},50:function(t,e,n){n(64);for(var i=n(0),r=n(5),o=n(11),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],h=i[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},51:function(t,e,n){t.exports=n(5)},52:function(t,e,n){var i=n(44),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)]}},53:function(t,e){e.f=Object.getOwnPropertySymbols},55:function(t,e,n){var i=n(16),r=n(15);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)}}},56:function(t,e,n){"use strict";var i=n(49),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")}},57: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}},58:function(t,e,n){var i=n(7),r=n(29),o=n(19)("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}},59:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},64:function(t,e,n){"use strict";var i=n(65),r=n(59),o=n(11),a=n(12);t.exports=n(33)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},65:function(t,e){t.exports=function(){}},66:function(t,e,n){t.exports={default:n(68),__esModule:!0}},68:function(t,e,n){n(69),t.exports=n(2).Object.assign},69:function(t,e,n){var i=n(10);i(i.S+i.F,"Object",{assign:n(70)})},7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},70:function(t,e,n){"use strict";var i=n(3),r=n(26),o=n(53),a=n(48),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,p=a.f;u>h;)for(var d,f=l(arguments[h++]),g=c?r(f).concat(c(f)):r(f),y=g.length,m=0;y>m;)d=g[m++],i&&!p.call(f,d)||(n[d]=f[d]);return n}:u},71:function(t,e){},8: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 p=u.beforeCreate;u.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:u}}e.a=i},862: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?p(t,e,n,i):"string"==typeof e?h(t,e,n):d(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|f(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|f(e.length);t=r(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function p(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 d(t,e){if(o.isBuffer(e)){var n=0|f(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 f(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 U(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 U(t).length;e=(""+e).toLowerCase(),i=!0}}function m(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 k(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 v(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,p=0;p<l;p++)if(o(t,u+p)!==o(e,p)){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(U(e,t.length-n),t,n,i)}function S(t,e,n,i){return q(j(e),t,n,i)}function C(t,e,n,i){return S(t,e,n,i)}function T(t,e,n,i){return q(X(e),t,n,i)}function M(t,e,n,i){return q(Y(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 k(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 D(i)}function D(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+=W(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=G(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function G(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(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 j(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Y(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(863),$=n(864),Q=n(865);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)v(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)v(this,e,e+3),v(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)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.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 C(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(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:U(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(282))},863: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 p(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=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)h[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},864: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,p=n?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-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,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=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?p/l:p*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+d]=255&s,d+=f,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[n+d]=255&a,d+=f,a/=256,u-=8);t[n+d-f]|=128*g}},865:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},873:function(t,e){t.exports=n},9:function(t,e,n){var i=n(4),r=n(37),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}},93:function(t,e,n){t.exports={default:n(101),__esModule:!0}}})});