@xysfe/actui 1.10.38 → 1.10.40

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():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2116)}({0:function(t,e){var i=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(t,e,i){"use strict";function n(t,e,i,n,o,r,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var h="function"==typeof t?t.options:t;e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),r&&(h._scopeId=r);var u;if(a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):o&&(u=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(h.functional){h._injectStyles=u;var c=h.render;h.render=function(t,e){return u.call(e),c(t,e)}}else{var p=h.beforeCreate;h.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:h}}e.a=n},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){i(56),t.exports=i(0).Object.getOwnPropertySymbols},101:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var h=a.exec(l)[1];h=Object(r.a)(h),n[h]=t[l]}else i[l]=t[l];return e.on=Object(o.a)(n,e.on),e.props=Object(o.a)(i,e.props),e}e.a=n;var o=i(62),r=i(102),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},102:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var o=i(28),r=i.n(o),a=i(4),s=function(t){for(var e=!1,i=!1,n=!1,o=0;o<t.length;o++){var r=t[o];e&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,n=i,i=!0,o++):i&&n&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),n=i,i=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,n=i,i=r.toUpperCase()===r&&r.toLowerCase()!==r)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=r()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},103:function(t,e,i){"use strict";function n(t,e,i,n){var r=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(o.o)(i)&&(i=[i]),t(e,r,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){r=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var o=i(4)},1033:function(t,e,i){"use strict";var n=i(120),o=i(108),r=i(65),a=i(116),s=i(304),l=i(279),h=i(21),u=i(155);e.a={name:"ActPicker",mixins:[r.a,h.a,s.a,l.a,a.a],props:{pending:{type:Boolean,default:!1}},data:function(){return{finalData:this.data.slice()}},created:function(){this._values=[],this._indexes=this.selectedIndex},methods:{confirm:function(){if(this._canConfirm()){this.hide();var t=!1,e=[],i=this.finalData.length,n=this._values.length;n!==i&&(t=!0,n>i&&(this._values.length=this._indexes.length=i));for(var o=0;o<i;o++){var r=this._getSelectIndex(this.wheels[o]);this._indexes[o]=r;var a=null,s="";this.finalData[o].length&&(a=this.finalData[o][r][this.valueKey],s=this.finalData[o][r][this.textKey]),this._values[o]!==a&&(t=!0),this._values[o]=a,e[o]=s}this.$emit("select",this._values,this._indexes,e),t&&this.$emit("value-change",this._values,this._indexes,e)}},maskClick:function(){this.maskClosable&&this.cancel()},cancel:function(){this.hide(),this.$emit("cancel")},show:function(){var t=this;if(!this.isVisible)if(this.isVisible=!0,!this.wheels||this.dirty)this.$nextTick(function(){t.wheels=t.wheels||[];for(var e=t.$refs.wheelWrapper,i=0;i<t.finalData.length;i++)t._createWheel(e,i).enable(),t.wheels[i].wheelTo(t._indexes[i]);t.dirty&&t._destroyExtraWheels(),t.dirty=!1});else for(var e=0;e<this.finalData.length;e++)this.wheels[e].enable(),this.wheels[e].wheelTo(this._indexes[e])},hide:function(){if(this.isVisible){this.isVisible=!1;for(var t=0;t<this.finalData.length;t++)this.wheels[t].disable()}},setData:function(t,e){var i=this;this._indexes=e?[].concat(e):[],this.finalData=t.slice(),this.isVisible?this.$nextTick(function(){var t=i.$refs.wheelWrapper;i.finalData.forEach(function(e,n){i._createWheel(t,n),i.wheels[n].wheelTo(i._indexes[n])}),i._destroyExtraWheels()}):this.dirty=!0},refill:function(t){var e=this,i=[];return t.length?(t.forEach(function(t,n){i[n]=e.refillColumn(n,t)}),i):i},refillColumn:function(t,e){var i=this,n=this.$refs.wheelWrapper,o=n.children[t].querySelector(".act-picker-wheel-scroll"),r=!!this.wheels&&this.wheels[t],a=0;if(o&&r){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=r.getSelectedIndex();if(s.length)for(var h=s[l][this.valueKey],u=0;u<e.length;u++)if(e[u][this.valueKey]===h){a=u;break}this._indexes[t]=a,this.$nextTick(function(){r=i._createWheel(n,t),r.wheelTo(a)})}return a},scrollTo:function(t,e){var i=this.wheels[t];this._indexes[t]=e,i.wheelTo(e)},refresh:function(){var t=this;this.$nextTick(function(){t.wheels.forEach(function(t){t.refresh()})})},_createWheel:function(t,e){var i=this;if(this.wheels[e])this.wheels[e].refresh();else{var o=this.wheels[e]=new n.default(t.children[e],{wheel:{selectedIndex:this._indexes[e]||0,wheelWrapperClass:"act-picker-wheel-scroll",wheelItemClass:"act-picker-wheel-item"},swipeTime:this.swipeTime,observeDOM:!1,useTransition:u.a});o.on("scrollStart",function(){o.inScroll=!0}),o.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(o)),o.inScroll=!1})}return this.wheels[e]},_destroyExtraWheels:function(){var t=this.finalData.length;if(this.wheels.length>t){this.wheels.splice(t).forEach(function(t){t.destroy()})}},_canConfirm:function(){return!this.pending&&this.wheels.every(function(t){return!(t.inScroll||t.isInTransition)})},_getFlexOrder:function(t){return t[0]?t[0][this.orderKey]:0},_getSelectIndex:function(t){var e=t.y;return u.a?t.getSelectedIndex():e>t.minScrollY?0:e<t.maxScrollY?t.items.length-1:Math.round(Math.abs(e/t.itemHeight))}},beforeDestroy:function(){this.wheels&&this.wheels.forEach(function(t){t.destroy()}),this.wheels=null},components:{ActPopup:o.a}}},104:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},105:function(t,e,i){var n=i(26),o=i(3)("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},106:function(t,e,i){"use strict";var n=i(21),o=i(65);e.a={name:"ActPopup",mixins:[n.a,o.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},108:function(t,e,i){"use strict";function n(t){s||i(125)}var o=i(106),r=i(126),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,null,null);h.options.__file="src\\components\\common\\popup.vue",e.a=h.exports},11:function(t,e,i){var n=i(47),o=i(29);t.exports=function(t){return n(o(t))}},115:function(t,e,i){var n=i(105),o=i(3)("iterator"),r=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},116:function(t,e,i){"use strict";function n(t){t.preventDefault()}var o={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=o},117:function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},1197:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),o=i(1198);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createPicker=Object(n.a)(o.a,t)},e.default=o.a},1198:function(t,e,i){"use strict";function n(t){s||i(1199)}var o=i(1033),r=i(1200),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-65cf9f1c",null);h.options.__file="src\\components\\Picker\\src\\index.vue",e.a=h.exports},1199:function(t,e){},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(162);e.default=n.a},1200:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"act-picker-fade"}},[i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[i("transition",{attrs:{name:"act-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"act-picker-choose"},[i("span",{staticClass:"act-picker-cancel",style:{color:t.cancelColor},on:{click:t.cancel}},[t._v(t._s(t._cancelTxt))]),t._v(" "),i("span",{staticClass:"act-picker-confirm",style:{color:t.confirmColor},on:{click:t.confirm}},[t._v(t._s(t._confirmTxt))]),t._v(" "),i("div",{staticClass:"act-picker-title-group"},[i("h1",{staticClass:"act-picker-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.subtitle?i("h2",{staticClass:"act-picker-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])]),t._v(" "),i("div",{staticClass:"act-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"act-picker-wheel-wrapper"},t._l(t.finalData,function(e,n){return i("div",{key:n,style:{order:t._getFlexOrder(e)}},[i("ul",{staticClass:"act-picker-wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"act-picker-wheel-item",domProps:{innerHTML:t._s(e[t.textKey])}})}),0)])}),0)]),t._v(" "),i("div",{staticClass:"act-picker-footer"})])])],1)],1)},o=[];n._withStripped=!0},125:function(t,e){},126:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];n._withStripped=!0},13:function(t,e,i){var n=i(2),o=i(0),r=i(38),a=i(8),s=i(6),l=function(t,e,i){var h,u,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?o:o[e]||(o[e]={}),_=v.prototype,x=d?n:f?n[e]:(n[e]||{}).prototype;d&&(i=e);for(h in i)(u=!p&&x&&void 0!==x[h])&&s(v,h)||(c=u?x[h]:i[h],v[h]=d&&"function"!=typeof x[h]?i[h]:y&&u?r(c,n):m&&x[h]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?r(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[h]=c,t&l.R&&_&&!_[h]&&a(_,h,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},14:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(o.a)(i),l=Object(r.a)(e,t,s,n),h=l.$parent,u=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,u&&u.call(this),h.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var o=i(101),r=i(103)},143:function(t,e,i){t.exports={default:i(189),__esModule:!0}},15:function(t,e,i){var n=i(51),o=i(33);t.exports=Object.keys||function(t){return n(t,o)}},155:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(4),o=function(){var t=!0;if(n.H.isIOS){var e=Object(n.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},1585:function(t,e,i){"use strict";var n=i(66),o=i.n(n),r=i(143),a=i.n(r),s=i(4),l=i(2118),h=i(2125),u=i(2132),c=i(1197);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},agePickerData:[],selectIndex:10}},components:{benefit:h.a,GoldCostTable:u.a,goldPicker:c.default},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},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}},notShowLineTypes:{type:Array,default:function(){return[]}},benefitBtnShow:{type:Boolean,default:!0}},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.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var o=this.chartConfig[n];if(!o.colsType)return!1;(this.tables.colsType.includes(o.colsType)||this.tables.colsType.includes(o.colsType+""))&&(1==~~o.showType&&(t+=1),2==~~o.showType&&(e+=1),3==~~o.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,o,r,a){e=o,i=a,n=r}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),o=n.firstParamColsType,r=n.secondParamColsType,a=n.operator;if(void 0!==o&&void 0!==r&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,h=[];if(s=this.findTablesIndex(o,i.colsType),l=this.findTablesIndex(r,i.colsType),void 0!==s&&void 0!==l)return i.rows.forEach(function(t,e){var i=void 0;switch(a){case"+":i=t[s]+t[l];break;case"-":i=t[s]-t[l];break;case"/":i=t[s]/t[l];break;case"*":i=t[s]*t[l]}h.push(Number(i).toFixed(1))}),h}},initConfig:function(t,e){var i=this;if(t&&e){for(var n=[],o=[],r=[],h=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),u=Object(s.c)(h.showType2),c=Object(s.c)(h.showType3),p=t,d=Array.isArray(p),f=0,p=d?p:a()(p);;){var g;if(d){if(f>=p.length)break;g=p[f++]}else{if(f=p.next(),f.done)break;g=f.value}var y=g;(function(o){var a=void 0,p=o.colsType,d=i.findTablesIndex(p,e.colsType);if(!d)return"continue";var f=Number(o.showType),g=o.name||l.c[p],y=o.titleName||o.name||l.c[p],m=i.getExpressionData(o.tipsExpression,t,e),v=o.lineStyle,_=o.boxConfig;if(!(2!==f||v&&_)){u.length||(u=Object(s.c)(h.showType2));var x=u.shift();v=x.lineStyle,_=x.boxConfig}if(3===f&&!v){c.length||(c=Object(s.c)(h.showType3));v=c.shift().lineStyle}r.push(g);var w=[],b=o.multcolType||0;if(31===b){var S=o.multValues||[],T=i.findTablesIndex(b,e.colsType);T&&S.length&&(w=S.map(function(t){var i=e.rows.findIndex(function(e){return t===Math.floor(e[T])});return-1===i?{coord:[],value:0}:{coord:[i,e.rows[i][d]],value:t}}))}var M=!0;i.notShowLineTypes.includes(p)&&(M=!1),a={showType:f,colsType:p,name:g,titleName:y,problemText:o.problemText,tableRowIndex:d,lineStyle:v,boxConfig:_,tipsText:o.tipsText,markPoint:w,displayLine:M,negativeText:o.negativeText||""},m&&(a.expressionData=m),n.push(a)})(y)}var m=e.rows.map(function(t){for(var e=[],i=n,r=Array.isArray(i),s=0,i=r?i:a()(i);;){var l;if(r){if(s>=i.length)break;l=i[s++]}else{if(s=i.next(),s.done)break;l=s.value}var h=l;1===h.showType&&o.push(t[h.tableRowIndex]),e.push(t[h.tableRowIndex])}return e});return m.unshift(r),{chartConfig:n,dataSource:m,xAxisData:o}}}},watch:{tables:{handler:function(t){if(t&&o()(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}}}},1586:function(t,e,i){"use strict";var n=i(66),o=i.n(n),r=i(2127),a=i(4);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:r.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},benefitBtnShow:{type:Boolean,default:!0},unit:{default:"周岁",type:String},note:{default:"",type:String},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},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:{getNum:function(t,e,i){var n=Math.round(100*this.pureDataSource[t][e])/100;return n<0&&i.negativeText?i.negativeText:(this.percentageTypes.includes(Number(i.colsType))&&(n+="%"),n)},showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];this.dialog?this.dialog.setData(t,e):this.dialog=this.$createGoldDialog({title:t,content:e,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 i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+30))break;var o=parseInt(getComputedStyle(i).fontSize);if(o<=12)break;i.style.fontSize=o-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&o()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1587:function(t,e,i){"use strict";var n=i(66),o=i.n(n),r=i(143),a=i.n(r),s=i(104),l=i.n(s),h=i(4),u=i(2129);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],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=n/375*10;return n?t*o: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=this,e=[],i=[],n=this.getXAxisName(),o=this.getTooltipName(),r=0;r<this.chartConfig.length;r++){var s=this.chartConfig[r];if([2,3].includes(s.showType)&&s.displayLine){var c={};Object(h.o)(s.lineStyle.areaStyleColor)?c.color=new u.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(h.B)(s.lineStyle.areaStyleColor)&&(c.color=s.lineStyle.areaStyleColor),e.push({name:s.name,type:"line",smooth:!0,symbol:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:s.name},lineStyle:{width:1,color:s.lineStyle.lineColor},emphasis:{lineStyle:{color:s.lineStyle.lineColor}},zlevel:s.lineStyle.zIndex,z:s.lineStyle.zIndex,areaStyle:c.color?c:void 0,markPoint:{symbol:"circle",showSymbol:!0,symbolSize:[this.remToPxBased10Px(.8),this.remToPxBased10Px(.8)],symbolOffset:["-10%","-10%"],silent:!0,data:s.markPoint.map(function(e){return l()({itemStyle:{color:"#ffab11",borderWidth:t.remToPxBased10Px(.21),borderType:"solid",borderColor:"#FFEAC3"},label:{show:!0,position:"top",formatter:"{c}倍",backgroundColor:"#FFAB11",color:"#fff",borderRadius:t.remToPxBased10Px(.21),fontSize:t.remToPxBased10Px(1),width:t.remToPxBased10Px(2.8),height:t.remToPxBased10Px(1.5),borderWidth:t.remToPxBased10Px(.11),borderType:"solid",borderColor:"#FFEAC3",lineHeight:t.remToPxBased10Px(1.5)}},e)})}}),i.push({name:s.name,icon:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle"})}}var p={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.4)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:i,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,i,n,o){return t[0]>o.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,i=Array.isArray(e),n=0,e=i?e:a()(e);;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var s=r;if(s.seriesName===o){var l=s.encode.y[0],h=s.value[l];return o+"<br>"+h+"元"}}}},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:e};this.chart.setOption(p),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=u.init(this.$refs.chart,null,{renderer:"svg"}),this.setEcharts(),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[0]))})},watch:{dataSource:{handler:function(t){var e=this;o()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1588:function(t,e,i){"use strict";var n=i(120);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 i=document.querySelector(".cost-scroll");i&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new n.default(i,{})})}}}}},16:function(t,e){t.exports=!0},162:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var o=0;o<i.length;o++){var r=i[o];for(var a in r)t[a]=r[a]}return t}function r(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==N&&("standard"===N?"transitionEnd"===t?"transitionend":t:N+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function h(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function u(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function d(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function f(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),o(a,r)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var r={};n&&(r.screenX=n.screenX||0,r.screenY=n.screenY||0,r.clientX=n.clientX||0,r.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,o({bubbles:s,cancelable:l},r))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function y(t){g(t,"dblclick")}function m(t,e){e.firstChild?v(t,e.firstChild):e.appendChild(t)}function v(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,o,r,a){var s=t-e,l=Math.abs(s)/i,h=a.deceleration,u=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,d=a.swipeTime,f=d,g=p?4:15,y=t+l/h*(s<0?-1:1);return p&&u&&(y=Math.round(y/u)*u),y<n?(y=r?Math.max(n-r/4,n-r/g*l):n,f=c):y>o&&(y=r?Math.min(o+r/4,o+r/g*l):o,f=c),{destination:Math.round(y),duration:f}}function w(){}function b(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function M(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function C(t){if(t&&t.classList)return t.classList.contains("tombstone")}function I(t,e){var i=this;this.options=e,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function k(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||b("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||b("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var A=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,N=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),B=s("transform"),z=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),V=!1!==B,Y=P&&s("transition")in R,H={transform:B,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},W=1,X={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},G={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:F,disableTouch:!F,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},U={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},j=function(){return P?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),q=function(){return P?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),Z=1,K=-1,Q=1,$=-1,J=1,tt=3;M.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},M.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},M.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[H.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},M.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},M.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[H.transitionDuration]=t+"ms"},M.prototype.transitionTimingFunction=function(t){this.indicatorStyle[H.transitionTimingFunction]=t},M.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},M.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(l),this.scroller.trigger("beforeScrollStart")},M.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+i,r=this.y+n;this._pos(o,r)},M.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(h);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,o=void 0===n?U.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,a,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},M.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},M.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},M.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},M.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},M.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t),this._handleMoveEvents(t)},M.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},M.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;I.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,o=i.index;e<0?(n-=30,o+=10):(n-=10,o+=30),this.fill(n,o),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var o=this.items[n].node,r=this.items[n].data;o&&!C(o)||r||(t||(t=n),o&&this.scrollerEl.removeChild(o))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(C(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},I.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var n=this.items[i].node,o=this.items[i].data;if(n){if(!C(n)||!o)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var r=o?this.options.render(o,t.pop()):this._getTombStone();r.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(r),this.items[i].node=r}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var o=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,o[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var r=this.firstAttachedItem;r<this.lastAttachedItem;r++){var a=t[r];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[r].width/this.tombstoneWidth+", "+this.items[r].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[r].top&&(a||(this.items[r].node.style.transition=""),this.items[r].node.style.transform="translateY("+e+"px)"),this.items[r].top=e,e+=this.items[r].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=r(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=o({},G,t),this.translateZ=this.options.HWCompositing&&z?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&Y,this.options.useTransform=this.options.useTransform&&V,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),F&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,H.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],o=e&&!t.pulling?"none":"auto",r=0;r<n.length;r++)n[r].style.pointerEvents=o}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,o=!1,r=0;r<i.length;r++){var a=i[r];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){o=!0;break}}n?t.refresh():o&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,r=i.height;n===t&&o===r||this.refresh(),n=t,o=r,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,o=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(d(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=u(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(k),function(t){t.prototype._start=function(t){var e=X[t.type];if((e===W||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,o=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=o;var r=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&r<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(r>a+this.options.directionLockThreshold?this.directionLocked="h":a>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=o>0?K:o<0?Z:0;var l=this.x+i,h=this.y+o,u=!1,c=!1,p=!1,d=!1,f=this.options.bounce;!1!==f&&(u=void 0===f.top||f.top,c=void 0===f.bottom||f.bottom,p=void 0===f.left||f.left,d=void 0===f.right||f.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&d?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(h>this.minScrollY||h<this.maxScrollY)&&(h=h>this.minScrollY&&u||h<this.maxScrollY&&c?this.y+o/3:h>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,h),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===J&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>J&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,y=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,m=this.pointX-g,v=this.pointY-y;(m>document.documentElement.clientWidth-this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||v>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),o=e-this.absStartX,r=i-this.absStartY;if(this.directionX=o>0?$:o<0?Q:0,this.directionY=r>0?K:r<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,U.bounce)){this._translate(e,i),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),l=Math.abs(i-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&l<this.options.flickLimitDistance)return void this.trigger("flick");var h=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(l>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var u=!1,c=!1,p=!1,f=!1,g=this.options.bounce;!1!==g&&(u=void 0===g.top||g.top,c=void 0===g.bottom||g.bottom,p=void 0===g.left||g.left,f=void 0===g.right||g.right);var y=this.directionX===$&&p||this.directionX===Q&&f?this.wrapperWidth:0,m=this.directionY===K&&u||this.directionY===Z&&c?this.wrapperHeight:0,v=this.hasHorizontalScroll?x(this.x,this.startX,a,this.maxScrollX,this.minScrollX,y,this.options):{destination:e,duration:0},_=this.hasVerticalScroll?x(this.y,this.startY,a,this.maxScrollY,this.minScrollY,m,this.options):{destination:i,duration:0};e=v.destination,i=_.destination,h=Math.max(v.duration,_.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,h=this.options.wheel.adjustTime||400);var w=U.swipe;if(this.options.snap){var b=this._nearestSnap(e,i);this.currentPage=b,h=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-b.x),1e3),Math.min(Math.abs(i-b.y),1e3)),300),e=b.x,i=b.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||U.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(w=U.swipeBounce),void this.scrollTo(e,i,h,w);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var i=Math.abs(Math.round(this.y/this.itemHeight)),o=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+o]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,U.swipe),!0}if(!e){var r=this.options.dblclick,a=!1;if(r&&this.lastClickTime){var s=r.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,y(t))}return this.options.tap&&f(t,this.options.tap),this.options.click&&!d(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=j(t)}q(this.probeTimer),this.probeTimer=j(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[H.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[H.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,U.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,i){if(S(!r(t)&&!r(e),"Translate x or y is null or undefined."),r(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[H.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,o=void 0===n?25:n,a=0;a<this.items.length;a++){var s=o*(e/this.itemHeight+a);this.items[a].style[H.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,o){function r(){var d=n();if(d>=p)return a.isAnimating=!1,a._translate(t,e,u),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));d=(d-c)/i;var f=o(d),g=(t-s)*f+s,y=(e-l)*f+l,m=(u-h)*f+h;a._translate(g,y,m),a.isAnimating&&(a.animateTimer=j(r)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,h=this.lastScale,u=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),r()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&this.options.probeType===tt&&this._startProbe(),i||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,U.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,i,n.fn)},t.prototype.scrollToElement=function(t,e,i,n,o){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var r=u(t);r.left-=this.wrapperOffset.left,r.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),r.left-=i||0,r.top-=n||0,r.left=r.left>this.minScrollX?this.minScrollX:r.left<this.maxScrollX?this.maxScrollX:r.left,r.top=r.top>this.minScrollY?this.minScrollY:r.top<this.maxScrollY?this.maxScrollY:r.top,this.options.wheel&&(r.top=Math.round(r.top/this.itemHeight)*this.itemHeight),this.scrollTo(r.left,r.top,e,o)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var o=this.y,r=Math.round(o);return!this.hasVerticalScroll||r>this.minScrollY?o=this.minScrollY:r<this.maxScrollY&&(o=this.maxScrollY),(i!==this.x||o!==this.y)&&(this.scrollTo(i,o,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[H.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(k),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),o=0;o<i;o++){var r=n[o],a=A(r,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(k),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(m(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,o=e.stepY||t.wrapperHeight,r=0,a=void 0,s=void 0,l=void 0,h=0,u=void 0,c=0,d=void 0,f=void 0;if(n)for(u=n.length,d=-1;h<u;h++)f=p(n[h]),(0===h||f.left<=p(n[h-1]).left)&&(c=0,d++),t.pages[c]||(t.pages[c]=[]),r=Math.max(-f.left,t.maxScrollX),a=Math.max(-f.top,t.maxScrollY),s=r-Math.round(f.width/2),l=a-Math.round(f.height/2),t.pages[c][d]={x:r,y:a,width:f.width,height:f.height,cx:s,cy:l},r>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(o/2);r>-t.scrollerWidth;){for(t.pages[h]=[],u=0,a=0;a>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(r,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:o,cx:r-s,cy:a-l},a-=o,u++;r-=i,h++}t._checkSnapLoop();var g=e._loopX?1:0,y=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||y,0);var m=e.threshold;m%1==0?(t.snapThresholdX=m,t.snapThresholdY=m):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*m),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*m))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&b("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var o=0;o<n;o++)if(e>=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],o=this.options.snap;if(o&&this.pages&&this.pages.length&&(n=n||o.easing||U.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var r=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:r,y:a,pageX:t,pageY:e},this.scrollTo(r,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var o=this.options.snap;if(o&&this.pages&&this.pages.length){if(o.loop){var r=void 0;o._loopX?(r=this.pages.length-2,t>=r?t=r-1:t<0&&(t=0),t+=1):(r=this.pages[0].length-2,e>=r?e=r-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?o({},this.currentPage,{pageX:this.currentPage.pageX-1}):o({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(k),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,b("wheel option selectedIndex is required!"))}}(k),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,o=e.interactive,r=void 0!==o&&o;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:r},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:r},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(k),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,i=void 0===e?90:e,n=t.stop,o=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,o,this.options.bounceTime,U.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,U.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(k),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,i=this.options.pullUpLoad.threshold,n=void 0===i?0:i;this.movingDirectionY===Z&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(k),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(l),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(h)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var i=this.options.mouseWheel,n=i.speed,o=void 0===n?20:n,r=i.invert,a=void 0!==r&&r,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var h=void 0,u=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(h=-t.deltaX*o,u=-t.deltaY*o):(h=-t.deltaX,u=-t.deltaY);break;case"wheelDeltaX"in t:h=t.wheelDeltaX/120*o,u=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:h=u=t.wheelDelta/120*o;break;case"detail"in t:h=u=-t.detail/3*o;break;default:return}var c=a?-1:1;h*=c,u*=c,this.hasVerticalScroll||(h=u,u=0);var p=void 0,d=void 0;if(this.options.snap)return p=this.currentPage.pageX,d=this.currentPage.pageY,h>0?p--:h<0&&p++,u>0?d--:u<0&&d++,void this._goToPage(p,d);p=this.x+Math.round(this.hasHorizontalScroll?h:0),d=this.y+Math.round(this.hasVerticalScroll?u:0),this.movingDirectionX=this.directionX=h>0?-1:h<0?1:0,this.movingDirectionY=this.directionY=u>0?-1:u<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var f=this.y===d;this.scrollTo(p,d,l,U.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),f&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},l))}}}(k),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,i=void 0===e?1:e,n=t.min,o=void 0===n?1:n,r=t.max,a=void 0===r?4:r;this.scale=Math.min(Math.max(i,o),a),this.setScale(this.scale),this.scrollerStyle[H.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var o=t/(n||this.scale);this.setScale(t),this.refresh();var r=Math.round(this.startX-(e-this.relativeX)*(o-1)),a=Math.round(this.startY-(i-this.relativeY)*(o-1));r>this.minScrollX?r=this.minScrollX:r<this.maxScrollX&&(r=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===r&&this.y===a||this.scrollTo(r,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),o=n.left,r=n.top,a=e+o-this.x,s=i+r-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,o),this.startScale=this.scale;var r=c(this.wrapper),s=r.left,l=r.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY),r=a(n,o),s=r/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,h=l.min,u=void 0===h?1:h,c=l.max,p=void 0===c?4:c;s<u?s=.5*u*Math.pow(2,s/u):s>p&&(s=2*p*Math.pow(.5,p/s));var d=s/this.startScale,f=this.startX-(this.originX-this.relativeX)*(d-1),g=this.startY-(this.originY-this.relativeY)*(d-1);this.setScale(s),this.scrollTo(f,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,o=e.max,r=void 0===o?4:o,a=this.scale>r?r:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(k),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(k),k.Version="1.12.6",e.a=k},18:function(t,e){t.exports={}},189:function(t,e,i){i(54),i(52),t.exports=i(190)},190:function(t,e,i){var n=i(9),o=i(115);t.exports=i(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},2:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},21:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,i){e?t.show():i&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}}};e.a=n},2116:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),o=i(2117);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=Object(n.a)(o.a,t)},e.default=o.a},2117:function(t,e,i){"use strict";var n=i(1585),o=i(2135),r=i(1),a=Object(r.a)(n.a,o.a,o.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2118:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2119),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2120),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2121),zIndex:3}}]},o={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2122),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2123),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2124),zIndex:3}}]},r={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2119:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAgRJREFUSEtjZCACNDAwMMWbeomx/2MWYPj/jxFFCyPT/59Mfz8sPL3tVQMDwz9CxqFqRlP9StuB5w87tywhQ5DlWX5+fSx29cAXXHpwWvjM2E2D4T8rXgfhdAjj7/9SZ3fdwCaPYeAZY2NWqf8SKqT4CpfaZ4wv7picPfsbWR7FQmpaBrME3VIUC58ZeWtSw2foZkid23odJga3kFCcMfLzMYmunzWRmZ/HGdnAvx+/7H0dmJb//+Mn3CkUKU7BFhJKjRIHVkxl5OVxxOf7/5+/7H/hEJGNSw0s9YItxBeUkqc3HWVgYhIEG3TwJAPD7OUMDP//Q8xlZGRgSI1kYLA3h/D//Xv/3NTPGpeloKBlBGXqNCNvdWyKUHwWX8TA8OcvdrNYmBkYFvaB5fD5dNa5rTcZ75t6SbD/ZYT4AAmA4kxi37IrYCF8lsH0IFn6wilKB1uc/mT+/57xmbGvBkZxxcDAILZvxWRwAgEF46xlxCXe9CgGBjtzBlBCeuUUkYuhiZHpPyOu+JM8u+UaWENMASLOCFkLitMlE8Cqnhv7aGFTTtjC6HxC1qDKL5041CykepBSM9GkRYHzJN5EQ/dsQfeMD0pSdC3aQBbSvfAG+5JAk4Kq1RMs59K1AgZZSvcmBrUtJdiIQi4UCcUp3gKWlGYiskGEUi82S8luCCMbRs2mPgATfE9ommN9bQAAAABJRU5ErkJggg=="},2120:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAflJREFUSEtjZCAKNDBlhZaIMbH8E/j3j5ERWQsT0/////4wfZi2uucVA0PDP0LGoWhGV5wV+oqHgYlTlpAhKPL/vj+etlrsCy49OC1MC/6kwcKC6htiLf7z5///WWv5bmBTj2FhWtp/VpaPX1SINRyfuj/8PHdmzWL8jawGxUJqWgazBN1SFAuzwj9rUsNn6GZMW8l7HSYGt5BQnPHyMTDV9nFP5OZhdEY28OuX/3ubi77mf/7EgDOFIscp2EJCqbFnLs9UTm4GR3y+//6VYX9J8pdsnGqgqRdiIZ6gnLyM5ygTE4MgSN2V8z8Zdm36xvD/P8RYUBp28+Ni0DFkB/P//WN4nxv1xRqXpaCgZWRgaGDKCi9Wx6YI2Wf9ze8Z/v3FbhQTMwNDYS3YTQz4fDptZe9NxqzQLxIMTP8hqpEAKM46ZvFcAQnhswymBdnSirQvOljj9B/je8acyE8a6MUVyJCuOdyTQQkEFIw7N34jKvG6+0OCF5SQylK+5qJrAhWDjLjib+oKnmsgDX2N7+FxRshWUJwW1UMCKzviixY29QQt7G14T8geFPnihqFmIdWDlP6Jht7Zgu4ZfwCKtgEovEG+pGv1BMu5dK2Awb6kYnsG5gm8TQxqW0qwEYVcKBKKU3wFLEnNRGSDCDU9sFpKbkMY1TDqNfUBayRb+GkJOFQAAAAASUVORK5CYII="},2121:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2122:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAfxJREFUSEvVlrkvBFEcx79v7cQRLI1odBLr6MSxVCKOgtY/oEBEWFEim1CJWBsRFP4BrcYRUWER3boSnU7DIo7M2ifzxjBvd+Y9Ky+bmG7md3zmd733I/jFQ0PwoKChDPneEiQo4Uy8hOI18YCX0zsSQlLmjjdO0aah2kL4iipkTjh5/OmWhM6f3WxcgXS+3o8cTfhDrj/yoVMycXblJE9zSNfqNbxolRlF5aZcoN+QgTPdLuaASmEWJQXKA8PN1UoiS3FCgtFL69M3UFozzedB/0YEecXtnL+3xz2s941Cj7t3qK2mDCjtxqGdZeQWtQmjf3/ax0rnsKvOV/eaQFEqRw8OQDylzFFsE9idBSg1/RICdEwCdb3mO03eI9La6joSweglYUPta65yVLJHttgCJBPOvjxeYOzQlIkijUevCZ1rKIeWY0Zgf4yaDW/F2CcRzLKxQ5e76xxrqn/cE7oU8KcdV4aTwe0l1iBGGndmfte8XdNAbQ9gNNJq10iakZdQ4lq/saMLZhBu+qmZDGvUNHhsai0GapzU5cCFRhmGl4+f/Deg8pSqbJrOKXMmhU2T9bHI9uCzEymbRxsDylYJ1Yc3g8pWCpXXkzW5wtRmNv6ctuMFzKJUuc9YSNGKoRwqW6LseZDWVJTiTNZEDirrXifoXxdhHqxu1f8E1v4qfGBe9yAAAAAASUVORK5CYII="},2123:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAghJREFUSEtjZCACNDAwMJUkeIn9Y2AWYPz7jxFZy39mpv9MDH8/9CzY9qqBgeEfIeNQNKMrfhXqwMPJwS1LyBBk+e8/vj4WW33gCy49OC38FOmmwcjCitdBuAz9/+f3f77lu25gk8cw8H+aMeuX7xIqpPgKl1oezhd3GGed/Y0sjxofVLQMZgm6pSgWfo711qSGz9DN4F289TpMDG4hwTjj42Pi7pw1kZGbxxkllX79svdreVo+w6dPOFMocpyCLSSUGnmmr5jKwM3jiNf3X7/s/5IZkY1LDSz1gi3EF5Q8CzYdZWBiEgSp+3VwD8P32RMZGP7/h5jLyMjAmZrPwGbvAuH/+/f+S4KfNS5LQUHLCMrUxbHe6tgUIfvsY3wAA8OfP9jNYmFh4F+4ASKHx6e9i7feZPyS4CXx/y8j2AcogI+PiWfKsisgMbyWwTQhWfolJ0oHW5wyMv9/z/gpwVcDvbgCmcE9fcVkUAIBB+OsCUQlXs70AgY2OxeG/6CElBmRi64JVAwy4oo/nkVbroF9F+OLiDNC1jIyMvAv2QxW9SXORwubcsIWRvsQsgZFnn/plqFmIbWDlKqJJq0AnCfxJhq6Zwu6Z3y6F20gC+leeIMspWv1BMu5dK2AQZZSsz0D8wTeJga1LSXYiEIuFAnGKZ4SlqRmIrI5hFIvNjvJbggjG0bNpj4ANlBfOpfc/OcAAAAASUVORK5CYII="},2124:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2125:function(t,e,i){"use strict";function n(t){s||i(2126)}var o=i(1586),r=i(2131),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-8a13b6be",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=h.exports},2126:function(t,e){},2127:function(t,e,i){"use strict";function n(t){s||i(2128)}var o=i(1587),r=i(2130),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-5bf23e30",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=h.exports},2128:function(t,e){},2129:function(t,e,i){(function(t){!function(t,i){i(e)}(0,function(e){"use strict";function i(t,e){function i(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Af(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function n(t){for(var e in zf)t[e]&&(zf[e]=t[e])}function o(){return Kf++}function r(){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,i=Yf.call(t);if("[object Array]"===i){if(!Y(t))for(var e=[],n=0,o=t.length;n<o;n++)e[n]=a(t[n])}else if(Vf[i]){if(!Y(t)){var r=t.constructor;if(r.from)e=r.from(t);else for(e=new r(t.length),n=0,o=t.length;n<o;n++)e[n]=t[n]}}else if(!Ff[i]&&!Y(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Zf&&(e[s]=a(t[s]));return e}function s(t,e,i){if(!M(e)||!M(t))return i?a(e):t;for(var n in e){var o,r;e.hasOwnProperty(n)&&n!==Zf&&(o=t[n],!M(r=e[n])||!M(o)||x(r)||x(o)||k(r)||k(o)||C(r)||C(o)||Y(r)||Y(o)?!i&&n in t||(t[n]=a(e[n])):s(o,r,i))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==Zf&&(t[i]=e[i]);return t}function h(t,e,i){for(var n=v(e),o=0;o<n.length;o++){var r=n[o];(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n,o=t.prototype;for(n in i.prototype=e.prototype,t.prototype=new i,o)o.hasOwnProperty(n)&&(t.prototype[n]=o[n]);(t.prototype.constructor=t).superClass=e}function p(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o];"constructor"!==r&&(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}else h(t,e,i)}function d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Wf)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function g(t,e,i){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===Uf)return t.map(e,i);for(var n=[],o=0,r=t.length;o<r;o++)n.push(e.call(i,t[o],o,t));return n}function y(t,e,i,n){if(t&&e){for(var o=0,r=t.length;o<r;o++)i=e.call(n,i,t[o],o,t);return i}}function m(t,e,i){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===Xf)return t.filter(e,i);for(var n=[],o=0,r=t.length;o<r;o++)e.call(i,t[o],o,t)&&n.push(t[o]);return n}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}function _(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(Gf.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 T(t){return"number"==typeof t}function M(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function C(t){return!!Ff[Yf.call(t)]}function I(t){return!!Vf[Yf.call(t)]}function k(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function A(t){return null!=t.colorStops}function D(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 i=0,n=t.length;i<n;i++)if(null!=t[i])return t[i]}function E(t,e){return null!=t?t:e}function R(t,e,i){return null!=t?t:null!=e?e:i}function N(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Gf.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[Jf]=!0}function Y(t){return t[Jf]}function H(){this.data={}}function W(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=x(t),n=(this.data=new(eg?Map:tg),this);t instanceof W?t.each(e):t&&f(t,e)}function X(t){return new ig(t)}function G(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var o=t.length,n=0;n<e.length;n++)i[n+o]=e[n];return i}function U(t,e){var i,t=Object.create?Object.create(t):((i=function(){}).prototype=t,new i);return e&&l(t,e),t}function j(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function q(t,e){return t.hasOwnProperty(e)}function Z(){}function K(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Q(t){return[t[0],t[1]]}function $(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function J(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function tt(t){return Math.sqrt(et(t))}function et(t){return t[0]*t[0]+t[1]*t[1]}function it(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function nt(t,e){var i=tt(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ot(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 at(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function st(t,e,i){var n=e[0],e=e[1];return t[0]=i[0]*n+i[2]*e+i[4],t[1]=i[1]*n+i[3]*e+i[5],t}function lt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function ht(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[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 ct(t){t&&(this._$eventProcessor=t)}function pt(t,e,i,n,o,r){var a,s=n+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/cg),t[i][a];for(var h=n|1<<i,u=i+1;n&1<<u;)u++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[i][p]*pt(t,e-1,u,h,o|f,r),d++)}return r[s]=c}function dt(t,e){var i=[[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]]],n={},o=pt(i,8,0,0,0,n);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*pt(i,7,0===a?1:0,1<<a,1<<s,n)/o*e[a];return function(t,e,i){var n=e*r[6]+i*r[7]+1;t[0]=(e*r[0]+i*r[1]+r[2])/n,t[1]=(e*r[3]+i*r[4]+r[5])/n}}}function ft(t,e,i,n,o){if(e.getBoundingClientRect&&Pf.domSupported&&!gt(e)){var r=e[pg]||(e[pg]={}),e=function(t,e,i){for(var n=i?"invTrans":"trans",o=e[n],r=e.srcCoords,a=[],s=[],l=!0,h=0;h<4;h++){var u=t[h].getBoundingClientRect(),c=2*h,p=u.left,u=u.top;a.push(p,u),l=l&&r&&p===r[c]&&u===r[1+c],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&o?o:(e.srcCoords=a,e[n]=i?dt(s,a):dt(a,s))}(function(t,e){var i=e.markers;if(!i){i=e.markers=[];for(var n=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,h=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[h]+":0",n[1-l]+":auto",o[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}}return i}(e,r),r,o);if(e)return e(t,i,n),!0}return!1}function gt(t){return"CANVAS"===t.nodeName.toUpperCase()}function yt(t){return null==t?"":(t+"").replace(fg,function(t,e){return gg[e]})}function mt(t,e,i,n){return i=i||{},n?vt(t,e,i):vg&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):vt(t,e,i),i}function vt(t,e,i){if(Pf.domSupported&&t.getBoundingClientRect){var n,o=e.clientX,e=e.clientY;if(gt(t))return n=t.getBoundingClientRect(),i.zrX=o-n.left,void(i.zrY=e-n.top);if(ft(mg,t,o,e))return i.zrX=mg[0],void(i.zrY=mg[1])}i.zrX=i.zrY=0}function _t(t){return t||window.event}function xt(t,e,i){var n;return null==(e=_t(e)).zrX&&((n=e.type)&&0<=n.indexOf("touch")?(n=("touchend"!==n?e.targetTouches:e.changedTouches)[0])&&mt(t,n,e,i):(mt(t,e,e,i),n=function(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,t=t.deltaY;return null!=i&&null!=t?3*(0!==t?Math.abs(t):Math.abs(i))*(0<t||!(t<0)&&0<i?-1:1):e}(e),e.zrDelta=n?n/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&yg.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function wt(){this._track=[]}function bt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function St(){return[1,0,0,1,0,0]}function Tt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Mt(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 Ct(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],i=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=i,t}function It(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function kt(t,e,i,n){void 0===n&&(n=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],e=e[5],h=Math.sin(i),i=Math.cos(i);return t[0]=o*i+s*h,t[1]=-o*h+s*i,t[2]=r*i+l*h,t[3]=-r*h+i*l,t[4]=i*(a-n[0])+h*(e-n[1])+n[0],t[5]=i*(e-n[1])-h*(a-n[0])+n[1],t}function At(t,e,i){var n=i[0],i=i[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Dt(t,e){var i=e[0],n=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=i*a-r*n;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-n*s,t[3]=i*s,t[4]=(n*e-a*o)*s,t[5]=(r*o-i*e)*s,t):null}function Pt(t,e){this.x=t||0,this.y=e||0}function Ot(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function Lt(){_g(this.event)}function Et(){var t=null!==Eg&&Eg.apply(this,arguments)||this;return t.handler=null,t}function Rt(t,e,i,n,o){var r=Rg.call(this)||this;return r._hovered=new Bg(0,0),r.storage=t,r.painter=e,r.painterRoot=n,r._pointerSize=o,i=i||new Ng,r.proxy=null,r.setHandlerProxy(i),r._draggingMgr=new hg(r),r}function Nt(t,e,i,n,o){for(var r=t.length-1;0<=r;r--){var a=t[r],s=void 0;if(a!==o&&!a.ignore&&(s=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,o=void 0,r=!1;n;){if(!(r=!!n.ignoreClip||r)){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(o=!0),a=n.__hostTarget,n=a||n.parent}return!o||Lg}return!1}(a,i,n))&&(e.topTarget||(e.topTarget=a),s!==Lg)){e.target=a;break}}}function Bt(t,e,i){return t=t.painter,e<0||e>t.getWidth()||i<0||i>t.getHeight()}function zt(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o<i&&n(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<i&&0<=n(t[o],t[o-1]);)o++;return o-e}function Ft(t,e,i,n,o){for(n===e&&n++;n<i;n++){for(var r,a=t[n],s=e,l=n;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var h=n-s;switch(h){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<h;)t[s+h]=t[s+h-1],h--}t[s]=a}}function Vt(t,e,i,n,o,r){var a=0,s=0,l=1;if(0<r(t,e[i+o])){for(s=n-o;l<s&&0<r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[i+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);n=a,a=o-(l=s<l?s:l),l=o-n}for(a++;a<l;){var h=a+(l-a>>>1);0<r(t,e[i+h])?a=h+1:l=h}return l}function Yt(t,e,i,n,o,r){var a=0,s=0,l=1;if(r(t,e[i+o])<0){for(s=o+1;l<s&&r(t,e[i+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var h=a,a=o-(l=s<l?s:l),l=o-h}else{for(s=n-o;l<s&&0<=r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var u=a+(l-a>>>1);r(t,e[i+u])<0?l=u:a=u+1}return l}function Ht(t,e){function i(i){var l=n[i],h=o[i],u=n[i+1],c=o[i+1],i=(o[i]=h+c,i===a-3&&(n[i+1]=n[i+2],o[i+1]=o[i+2]),a--,Yt(t[u],t,l,h,0,e));if(l+=i,0!=(h-=i)&&0!==(c=Vt(t[l+h-1],t,u,c,c-1,e)))if(h<=c){var p=l,d=h,i=u,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=i,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=r;;){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!==(_=Yt(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=Vt(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--,Hg<=_||Hg<=x);if(w)break;b<0&&(b=0),b+=2}if((r=b)<1&&(r=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,T=h,M=u,C=c,I=0;for(I=0;I<C;I++)s[I]=t[M+I];var k=S+T-1,A=C-1,D=M+C-1,P=0,O=0;if(t[D--]=t[k--],0==--T)for(P=D-(C-1),I=0;I<C;I++)t[P+I]=s[I];else if(1===C){for(O=1+(D-=T),P=1+(k-=T),I=T-1;0<=I;I--)t[O+I]=t[P+I];t[D]=s[A]}else{for(var L=r;;){var E=0,R=0,N=!1;do{if(e(s[A],t[k])<0){if(t[D--]=t[k--],E++,(R=0)==--T){N=!0;break}}else if(t[D--]=s[A--],R++,E=0,1==--C){N=!0;break}}while((E|R)<L);if(N)break;do{if(0!=(E=T-Yt(s[A],t,S,T,T-1,e))){for(T-=E,O=1+(D-=E),P=1+(k-=E),I=E-1;0<=I;I--)t[O+I]=t[P+I];if(0===T){N=!0;break}}if(t[D--]=s[A--],1==--C){N=!0;break}if(0!=(R=C-Vt(t[k],s,0,C,C-1,e))){for(C-=R,O=1+(D-=R),P=1+(A-=R),I=0;I<R;I++)t[O+I]=s[P+I];if(C<=1){N=!0;break}}if(t[D--]=t[k--],0==--T){N=!0;break}}while(L--,Hg<=E||Hg<=R);if(N)break;L<0&&(L=0),L+=2}if((r=L)<1&&(r=1),1===C){for(O=1+(D-=T),P=1+(k-=T),I=T-1;0<=I;I--)t[O+I]=t[P+I];t[D]=s[A]}else{if(0===C)throw new Error;for(P=D-(C-1),I=0;I<C;I++)t[P+I]=s[I]}}}}var n,o,r=Hg,a=0,s=[];return n=[],o=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&o[t-1]<=o[t]+o[t+1]||2<=t&&o[t-2]<=o[t]+o[t-1])o[t-1]<o[t+1]&&t--;else if(o[t]>o[t+1])break;i(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&o[t-1]<o[t+1]&&t--,i(t)}},pushRun:function(t,e){n[a]=t,o[a]=e,a+=1}}}function Wt(t,e,i,n){var o=(n=n||t.length)-(i=i||0);if(!(o<2)){var r=0;if(o<Yg)Ft(t,i,n,i+(r=zt(t,i,n,e)),e);else{var a,s=Ht(t,e),l=function(t){for(var e=0;Yg<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=zt(t,i,n,e))<l&&(Ft(t,i,i+(a=l<(a=o)?l:o),i+r,e),r=a),s.pushRun(i,r),s.mergeRuns(),i+=r,0!=(o-=r));s.forceMergeRuns()}}}function Xt(){Gg||(Gg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Gt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Ut(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Gt}function jt(t){return-Qg<t&&t<Qg}function qt(t){return Qg<t||t<-Qg}function Zt(t,e,i,n,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*n+3*r*i)}function Kt(t,e,i,n,o){var r=1-o;return 3*(((e-t)*r+2*(i-e)*o)*r+(n-i)*o*o)}function Qt(t,e,i,n,o,r){var a,s,n=n+3*(e-i)-t,i=3*(i-2*e+t),e=3*(e-t),t=t-o,o=i*i-3*n*e,l=i*e-9*n*t,t=e*e-3*i*t,h=0;return jt(o)&&jt(l)?jt(i)?r[0]=0:0<=(a=-e/i)&&a<=1&&(r[h++]=a):jt(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-i/n+t)&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s)):0<e?(e=o*i+1.5*n*(-l-(t=Kg(e))),0<=(a=(-i-((t=(t=o*i+1.5*n*(-l+t))<0?-Zg(-t,Jg):Zg(t,Jg))+(e=e<0?-Zg(-e,Jg):Zg(e,Jg))))/(3*n))&&a<=1&&(r[h++]=a)):(t=(2*o*i-3*n*l)/(2*Kg(o*o*o)),e=Math.acos(t)/3,a=(-i-2*(l=Kg(o))*(t=Math.cos(e)))/(3*n),s=(-i+l*(t+$g*Math.sin(e)))/(3*n),o=(-i+l*(t-$g*Math.sin(e)))/(3*n),0<=a&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s),0<=o&&o<=1&&(r[h++]=o)),h}function $t(t,e,i,n,o){var r,a=6*i-12*e+6*t,n=9*e+3*n-3*t-9*i,i=3*e-3*t,e=0;return jt(n)?qt(a)&&0<=(r=-i/a)&&r<=1&&(o[e++]=r):jt(t=a*a-4*n*i)?o[0]=-a/(2*n):0<t&&(t=(-a-(i=Kg(t)))/(2*n),0<=(r=(-a+i)/(2*n))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Jt(t,e,i,n,o,r){var a=(e-t)*o+t,e=(i-e)*o+e,i=(n-i)*o+i,s=(e-a)*o+a,e=(i-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=i,r[7]=n}function te(t,e,i,n,o,r,a,s,l,h,u){var c,p,d,f,g=.005,y=1/0;ty[0]=l,ty[1]=h;for(var m=0;m<1;m+=.05)ey[0]=Zt(t,i,o,a,m),ey[1]=Zt(e,n,r,s,m),(d=ag(ty,ey))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,ey[0]=Zt(t,i,o,a,f=c-g),ey[1]=Zt(e,n,r,s,f),d=ag(ey,ty),0<=f&&d<y?(c=f,y=d):(iy[0]=Zt(t,i,o,a,p),iy[1]=Zt(e,n,r,s,p),f=ag(iy,ty),p<=1&&f<y?(c=p,y=f):g*=.5);return u&&(u[0]=Zt(t,i,o,a,c),u[1]=Zt(e,n,r,s,c)),Kg(y)}function ee(t,e,i,n){var o=1-n;return o*(o*t+2*n*e)+n*n*i}function ie(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function ne(t,e,i){return i=t+i-2*e,0==i?.5:(t-e)/i}function oe(t,e,i,n,o){var r=(e-t)*n+t,e=(i-e)*n+e,n=(e-r)*n+r;o[0]=t,o[1]=r,o[2]=n,o[3]=n,o[4]=e,o[5]=i}function re(t,e,i,n,o,r,a,s,l){var h,u=.005,c=1/0;ty[0]=a,ty[1]=s;for(var p=0;p<1;p+=.05)ey[0]=ee(t,i,o,p),ey[1]=ee(e,n,r,p),(y=ag(ty,ey))<c&&(h=p,c=y);for(var c=1/0,d=0;d<32&&!(u<1e-4);d++){var f=h-u,g=h+u,y=(ey[0]=ee(t,i,o,f),ey[1]=ee(e,n,r,f),ag(ey,ty));0<=f&&y<c?(h=f,c=y):(iy[0]=ee(t,i,o,g),iy[1]=ee(e,n,r,g),f=ag(iy,ty),g<=1&&f<c?(h=g,c=f):u*=.5)}return l&&(l[0]=ee(t,i,o,h),l[1]=ee(e,n,r,h)),Kg(c)}function ae(t){if(t=t&&ny.exec(t)){var e,t=t[1].split(","),i=+F(t[0]),n=+F(t[1]),o=+F(t[2]),r=+F(t[3]);if(!isNaN(i+n+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Qt(0,i,o,1,t,e)&&Zt(0,n,r,1,e[0])}}}function se(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||Z,this.ondestroy=t.ondestroy||Z,this.onrestart=t.onrestart||Z,t.easing&&this.setEasing(t.easing)}function le(){this._len=0}function he(t){this._list=new ay,this._maxSize=10,this._map={},this._maxSize=t}function ue(t){return(t=Math.round(t))<0?0:255<t?255:t}function ce(t){return t<0?0:1<t?1:t}function pe(t){return ue(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function de(t){return ce(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function fe(t,e,i){return i<0?i+=1:1<i&&--i,6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function ge(t,e,i){return t+(e-t)*i}function ye(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function me(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function ve(t,e){uy&&me(uy,e),uy=hy.put(t,uy||e.slice())}function _e(t,e){if(t){e=e||[];var i=hy.get(t);if(i)return me(e,i);if((i=(t+="").replace(/ /g,"").toLowerCase())in ly)return me(e,ly[i]),ve(t,e),e;var n=i.length;if("#"===i.charAt(0))return 4===n||5===n?0<=(o=parseInt(i.slice(1,4),16))&&o<=4095?(ye(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===n?parseInt(i.slice(4),16)/15:1),ve(t,e),e):void ye(e,0,0,0,1):7===n||9===n?0<=(o=parseInt(i.slice(1,7),16))&&o<=16777215?(ye(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===n?parseInt(i.slice(7),16)/255:1),ve(t,e),e):void ye(e,0,0,0,1):void 0;var o=i.indexOf("("),r=i.indexOf(")");if(-1!==o&&r+1===n){var n=i.substr(0,o),a=i.substr(o+1,r-(o+1)).split(","),s=1;switch(n){case"rgba":if(4!==a.length)return 3===a.length?ye(e,+a[0],+a[1],+a[2],1):ye(e,0,0,0,1);s=de(a.pop());case"rgb":return 3<=a.length?(ye(e,pe(a[0]),pe(a[1]),pe(a[2]),3===a.length?s:de(a[3])),ve(t,e),e):void ye(e,0,0,0,1);case"hsla":return 4!==a.length?void ye(e,0,0,0,1):(a[3]=de(a[3]),xe(a,e),ve(t,e),e);case"hsl":return 3!==a.length?void ye(e,0,0,0,1):(xe(a,e),ve(t,e),e);default:return}}ye(e,0,0,0,1)}}function xe(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=de(t[1]),o=de(t[2]),n=o<=.5?o*(n+1):o+n-o*n,o=2*o-n;return ye(e=e||[],ue(255*fe(o,n,i+1/3)),ue(255*fe(o,n,i)),ue(255*fe(o,n,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function we(t,e){var i=_e(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,255<i[n]?i[n]=255:i[n]<0&&(i[n]=0);return Te(i,4===i.length?"rgba":"rgb")}}function be(t,e,i){var n,o,r;if(e&&e.length&&0<=t&&t<=1)return i=i||[],t*=e.length-1,n=Math.floor(t),r=Math.ceil(t),o=e[n],e=e[r],i[0]=ue(ge(o[0],e[0],r=t-n)),i[1]=ue(ge(o[1],e[1],r)),i[2]=ue(ge(o[2],e[2],r)),i[3]=ce(ge(o[3],e[3],r)),i}function Se(t,e,i){var n,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,n=Math.floor(t),o=Math.ceil(t),a=_e(e[n]),e=_e(e[o]),a=Te([ue(ge(a[0],e[0],r=t-n)),ue(ge(a[1],e[1],r)),ue(ge(a[2],e[2],r)),ce(ge(a[3],e[3],r))],"rgba"),i?{color:a,leftIndex:n,rightIndex:o,value:t}:a}function Te(t,e){var i;if(t&&t.length)return i=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}function Me(t,e){return t=_e(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function Ce(t){var e;return b(t)?((e=dy.get(t))||(e=we(t,-.1),dy.put(t,e)),e):A(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:we(t.color,-.1)}}),e):t}function Ie(t){var e,i;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(i=_e(t))&&(t="rgb("+i[0]+","+i[1]+","+i[2]+")",e=i[3]):t="none",{color:t,opacity:null==e?1:e}}function ke(t){return t<1e-4&&-1e-4<t}function Ae(t){return fy(1e3*t)/1e3}function De(t){return fy(1e4*t)/1e4}function Pe(t){return t&&!!t.image}function Oe(t){return Pe(t)||(t=t)&&!!t.svgElement}function Le(t){return"linear"===t.type}function Ee(t){return"radial"===t.type}function Re(t){return t&&("linear"===t.type||"radial"===t.type)}function Ne(t){return"url(#"+t+")"}function Be(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ze(t){var e=t.x||0,i=t.y||0,n=(t.rotation||0)*ng,o=E(t.scaleX,1),r=E(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||i)&&s.push("translate("+e+"px,"+i+"px)"),n&&s.push("rotate("+n+")"),1===o&&1===r||s.push("scale("+o+","+r+")"),(a||t)&&s.push("skew("+fy(a*ng)+"deg, "+fy(t*ng)+"deg)"),s.join(" ")}function Fe(t,e,i){return(e-t)*i+t}function Ve(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=Fe(e[r],i[r],n);return t}function Ye(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+i[r]*n;return t}function He(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function We(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;n<e;n++)i.push(my.call(t[n]));return i}return my.call(t)}return t}function Xe(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 Ge(t){return 4===t||5===t}function Ue(t){return 1===t||2===t}function je(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function qe(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?r("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}function Ze(){return(new Date).getTime()}function Ke(t){var e=wy.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 Qe(t){return"pen"===(t=t.pointerType)||"touch"===t}function $e(t){t&&(t.zrByTouch=!0)}function Je(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function ti(t,e){var i=e.domHandlers;Pf.pointerEventsSupported?f(Iy.pointer,function(n){ii(e,n,function(e){i[n].call(t,e)})}):(Pf.touchEventsSupported&&f(Iy.touch,function(n){ii(e,n,function(o){var r;i[n].call(t,o),(r=e).touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),f(Iy.mouse,function(n){ii(e,n,function(o){o=_t(o),e.touching||i[n].call(t,o)})}))}function ei(t,e){function i(i){ii(e,i,function(n){var o;n=_t(n),Je(t,n.target)||(o=n,n=xt(t.dom,new Py(t,o),!0),e.domHandlers[i].call(t,n))},{capture:!0})}Pf.pointerEventsSupported?f(Ay,i):Pf.touchEventsSupported||f(ky,i)}function ii(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,t.domTarget.addEventListener(e,i,n)}function ni(t){var e,i,n,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(i=t.domTarget,o=a[n=e],r=t.listenerOpts[e],i.removeEventListener(n,o,r));t.mounted={}}function oi(t,e){var i=Sy.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=e,i._localHandlerScope=new Ey(t,Oy),Cy&&(i._globalHandlerScope=new Ey(document,Ly)),ti(i,i._localHandlerScope),i}function ri(t){return 5e-5<t||t<-5e-5}function ai(){}function si(t,e){for(var i=0;i<Gy.length;i++){var n=Gy[i];t[n]=e[n]}}function li(t,e){var i=Uy[e=e||Nf],n=(i=i||(Uy[e]=new sy(500))).get(t);return null==n&&(n=zf.measureText(t,e).width,i.put(t,n)),n}function hi(t,e,i,n){return t=li(t,e),e=di(e),i=ci(0,t,i),n=pi(0,e,n),new Og(i,n,t,e)}function ui(t,e,i,n){var o=((t||"")+"").split("\n");if(1===o.length)return hi(o[0],e,i,n);for(var r=new Og(0,0,0,0),a=0;a<o.length;a++){var s=hi(o[a],e,i,n);0===a?r.copy(s):r.union(s)}return r}function ci(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function pi(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function di(t){return li("国",t)}function fi(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function gi(t,e,i){var n=e.position||"inside",o=null!=e.distance?e.distance:5,r=i.height,a=i.width,s=r/2,l=i.x,h=i.y,u="left",c="top";if(n instanceof Array)l+=fi(n[0],i.width),h+=fi(n[1],i.height),c=u=null;else switch(n){case"left":l-=o,h+=s,u="right",c="middle";break;case"right":l+=o+a,h+=s,c="middle";break;case"top":l+=a/2,h-=o,u="center",c="bottom";break;case"bottom":l+=a/2,h+=r+o,u="center";break;case"inside":l+=a/2,h+=s,u="center",c="middle";break;case"insideLeft":l+=o,h+=s,c="middle";break;case"insideRight":l+=a-o,h+=s,u="right",c="middle";break;case"insideTop":l+=a/2,h+=o,u="center";break;case"insideBottom":l+=a/2,h+=r-o,u="center",c="bottom";break;case"insideTopLeft":l+=o,h+=o;break;case"insideTopRight":l+=a-o,h+=o,u="right";break;case"insideBottomLeft":l+=o,h+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,h+=r-o,u="right",c="bottom"}return(t=t||{}).x=l,t.y=h,t.align=u,t.verticalAlign=c,t}function yi(t){this.id=Kf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function mi(t,e,i,n){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[n]},set:function(e){t[n]=e}})}Object.defineProperty(Ty,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[i]=t[0],this[n]=t[1],this[e]=t,o(this,t)}})}function vi(t,e,i,n,o){function r(){h=!0,--l<=0&&(h?c&&c():p&&p())}function a(){--l<=0&&(h?c&&c():p&&p())}var s=[],l=(function t(e,i,n,o,r,a,s,l){for(var h=v(o),c=r.duration,p=r.delay,f=r.additive,g=r.setToFinal,y=!M(a),_=e.animators,x=[],w=0;w<h.length;w++){var b=h[w],S=o[b];null!=S&&null!=n[b]&&(y||a[b])?!M(S)||d(S)||A(S)?x.push(b):i?l||(n[b]=S,e.updateDuringAnimation(i)):t(e,b,n[b],S,r,a&&a[b],s,l):l||(n[b]=S,e.updateDuringAnimation(i),x.push(b))}var T=x.length;if(!f&&T)for(var C,I=0;I<_.length;I++)(k=_[I]).targetName===i&&k.stopTracks(x)&&(C=u(_,k),_.splice(C,1));if(r.force||(x=m(x,function(t){return!wi(o[t],n[t])}),T=x.length),0<T||r.force&&!s.length){var k,D=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(D={}),I=0;I<T;I++)b=x[I],P[b]=n[b],g?D[b]=o[b]:n[b]=o[b];else if(g)for(O={},I=0;I<T;I++)b=x[I],O[b]=We(n[b]),xi(n,o,b);(k=new xy(n,!1,!1,f?m(_,function(t){return t.targetName===i}):null)).targetName=i,r.scope&&(k.scope=r.scope),g&&D&&k.whenWithKeys(0,D,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:o,x).delay(p||0),e.addAnimator(k,i),s.push(k)}}(t,"",t,e,i=i||{},n,s,o),s.length),h=!1,c=i.done,p=i.aborted;l||c&&c(),0<s.length&&i.during&&s[0].during(function(t,e){i.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(r),g.aborted(a),i.force&&g.duration(i.duration),g.start(i.easing)}return s}function _i(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function xi(t,e,i){if(d(e[i]))if(d(t[i])||(t[i]=[]),I(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),_i(t[i],e[i],n))}else{var o=e[i],r=t[i],a=o.length;if(d(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?_i(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else _i(r,o,a);r.length=o.length}else t[i]=e[i]}function wi(t,e){return t===e||d(t)&&d(e)&&function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}(t,e)}function bi(t){var e=$y.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function Si(t,e,i){var n,o=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t,new Ug),a=i.renderer||"canvas",a=(tm[a]||(a=v(tm)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect,new tm[a](e,r,i,t)),e=i.ssr||a.ssrOnly,t=(this.storage=r,this.painter=a,Pf.node||Pf.worker||e?null:new Ry(a.getViewportRoot(),a.root)),s=i.useCoarsePointer;(null==s||"auto"===s?Pf.touchEventsSupported:!!s)&&(n=E(i.pointerSize,44)),this.handler=new Vg(r,a,t,a.root,n),this.animation=new My({stage:{update:e?null:function(){return o._flush(!0)}}}),e||this.animation.start()}function Ti(t,e){return t=new om(Kf++,t,e),em[t.id]=t}function Mi(t,e){tm[t]=e}function Ci(t){if("function"==typeof im)return im(t)}function Ii(t){im=t}function ki(t,e,i,n){var o=e[0],e=e[1],r=i[0],i=i[1],a=e-o,s=i-r;if(0==a)return 0==s?r:(r+i)/2;if(n)if(0<a){if(t<=o)return r;if(e<=t)return i}else{if(o<=t)return r;if(t<=e)return i}else{if(t===o)return r;if(t===e)return i}return(t-o)/a*s+r}function Ai(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 Di(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),am),t=(+t).toFixed(e),i?t:+t}function Pi(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,i=0;i<15;i++,e*=10)if(Math.round(t*e)/e===t)return i;return Oi(t)}function Oi(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),i=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)-i)}function Li(t,e){var i=Math.log,n=Math.LN10,t=Math.floor(i(t[1]-t[0])/n),i=Math.round(i(Math.abs(e[1]-e[0]))/n),e=Math.min(Math.max(-t+i,0),20);return isFinite(e)?e:20}function Ei(t){var e=2*Math.PI;return(t%e+e)%e}function Ri(t){return-1e-4<t&&t<1e-4}function Ni(t){var e,i;return t instanceof Date?t:b(t)?(e=sm.exec(t))?e[8]?(i=+e[4]||0,"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(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 Bi(t){return Math.pow(10,zi(t))}function zi(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Fi(t,e){var i=zi(t),n=Math.pow(10,i),o=t/n,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*n,-20<=i?+t.toFixed(i<0?-i:0):t}function Vi(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Yi(t){return!isNaN(Vi(t))}function Hi(){return Math.round(9*Math.random())}function Wi(t,e){return null==t?e:null==e?t:t*e/function t(e,i){return 0===i?e:t(i,e%i)}(t,e)}function Xi(t){throw new Error(t)}function Gi(t,e,i){return(e-t)*i+t}function Ui(t){return t instanceof Array?t:null==t?[]:[t]}function ji(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,o=i.length;n<o;n++){var r=i[n];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}function qi(t){return!M(t)||x(t)||t instanceof Date?t:t.value}function Zi(t,e,i){var n,o,r,a,s,l,h,u,c,p,d="normalMerge"===i,g="replaceMerge"===i,y="replaceAll"===i,m=(t=t||[],e=(e||[]).slice(),X()),i=(f(e,function(t,i){M(t)||(e[i]=null)}),function(t,e,i){var n=[];if("replaceAll"!==i)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),n.push({existing:"replaceMerge"===i||tn(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return n}(t,m,i));return(d||g)&&(n=i,o=t,r=m,f(a=e,function(t,e){var i,s,l;t&&null!=t.id&&(i=Qi(t.id),null!=(s=r.get(i)))&&(z(!(l=n[s]).newOption,'Duplicated option on id "'+i+'".'),l.newOption=t,l.existing=o[s],a[e]=null)})),d&&(s=i,f(l=e,function(t,e){if(t&&null!=t.name)for(var i=0;i<s.length;i++){var n=s[i].existing;if(!s[i].newOption&&n&&(null==n.id||null==t.id)&&!tn(t)&&!tn(n)&&Ki("name",n,t))return s[i].newOption=t,void(l[e]=null)}})),d||g?(u=i,c=g,f(e,function(t){if(t){for(var e,i=0;(e=u[i])&&(e.newOption||tn(e.existing)||e.existing&&null!=t.id&&!Ki("id",t,e.existing));)i++;e?(e.newOption=t,e.brandNew=c):u.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),i++}})):y&&(h=i,f(e,function(t){h.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=i,p=X(),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 i=t.existing,n=t.newOption,o=t.keyInfo;if(M(n)){if(o.name=null!=n.name?Qi(n.name):i?i.name:lm+e,i)o.id=Qi(i.id);else if(null!=n.id)o.id=Qi(n.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),i}function Ki(t,e,i){return e=$i(e[t],null),i=$i(i[t],null),null!=e&&null!=i&&e===i}function Qi(t){return $i(t,"")}function $i(t,e){return null==t?e:b(t)?t:T(t)||S(t)?t+"":e}function Ji(t){return!(!(t=t.name)||!t.indexOf(lm))}function tn(t){return t&&null!=t.id&&0===Qi(t.id).indexOf("\0_ec_\0")}function en(t,e,i){f(t,function(t){var n,o,r=t.newOption;M(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,r=r,t=t.existing,o=i,r.type||(t?t.subType:o.determineSubType(n,r))))})}function nn(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 on(){var t="__ec_inner_"+um++;return function(e){return e[t]||(e[t]={})}}function rn(t,e,i){var e=an(e,i),n=e.mainTypeSpecified,o=e.queryOptionMap,r=e.others,a=i?i.defaultMainType:null;return!n&&a&&o.set(a,{}),o.each(function(e,n){e=sn(t,n,e,{useDefault:a===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone}),r[n+"Models"]=e.models,r[n+"Model"]=e.models[0]}),r}function an(t,e){var i=b(t)?((i={})[t+"Index"]=0,i):t,n=X(),o={},r=!1;return f(i,function(t,i){var a;"dataIndex"===i||"dataIndexInside"===i?o[i]=t:(a=(i=i.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||"").toLowerCase(),!a||!i||e&&e.includeMainTypes&&u(e.includeMainTypes,a)<0||(r=r||!!a,(n.get(a)||n.set(a,{}))[i]=t))}),{mainTypeSpecified:r,queryOptionMap:n,others:o}}function sn(t,e,i,n){n=n||cm;var o=i.index,r=i.id,i=i.name,a={models:null,specified:null!=o||null!=r||null!=i};return a.specified?"none"===o||!1===o?(z(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(z(n.enableAll,'`"all"` is not a valid value on index option.'),o=r=i=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:i})):(o=void 0,a.models=n.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function ln(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hn(t,e,i,n,o){var r=null==e||"auto"===e;if(null==n)return n;if(T(n))return Di(p=Gi(i||0,n,o),r?Math.max(Pi(i||0),Pi(n)):e);if(b(n))return o<1?i:n;for(var a=[],s=i,l=n,h=Math.max(s?s.length:0,l.length),u=0;u<h;++u){var c,p,d=t.getDimensionInfo(u);d&&"ordinal"===d.type?a[u]=(o<1&&s?s:l)[u]:(p=Gi(d=s&&s[u]?s[u]:0,c=l[u],o),a[u]=Di(p,r?Math.max(Pi(d),Pi(c)):e))}return a}function un(t){var e={main:"",sub:""};return t&&(t=t.split(pm),e.main=t[0]||"",e.sub=t[1]||""),e}function cn(t){(t.$constructor=t).extend=function(t){function e(){return o.apply(this,arguments)||this}var n,o,r,a=this;return w(r=a)&&/^class\s/.test(Function.prototype.toString.call(r))?(i(e,o=a),n=e):c(n=function(){(t.$constructor||a).apply(this,arguments)},this),l(n.prototype,t),n[fm]=!0,n.extend=this.extend,n.superCall=dn,n.superApply=fn,n.superClass=a,n}}function pn(t,e){t.extend=e.extend}function dn(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function fn(t,e,i){return this.superClass.prototype[e].apply(t,i)}function gn(t){var e={};t.registerClass=function(t){var i,n=t.type||t.prototype.type;return n&&(z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i=n),'componentType "'+i+'" illegal'),(i=un(t.prototype.type=n)).sub?i.sub!==dm&&((function(t){var i=e[t.main];return i&&i[dm]||(i=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),i}(i))[i.sub]=t):e[i.main]=t),t},t.getClass=function(t,i,n){var o=e[t];if(o&&o[dm]&&(o=i?o[i]:null),n&&!o)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){var t=un(t),i=[],t=e[t.main];return t&&t[dm]?f(t,function(t,e){e!==dm&&i.push(t)}):i.push(t),i},t.hasClass=function(t){return t=un(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(e,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){return t=un(t),(t=e[t.main])&&t[dm]}}function yn(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,o){for(var r={},a=0;a<t.length;a++){var s=t[a][1];n&&0<=u(n,s)||o&&u(o,s)<0||null!=(s=i.getShallow(s,e))&&(r[t[a][0]]=s)}return r}}function mn(){}function vn(t,e,i,n,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!i||(i={hostEl:i,cb:n,cbPayload:o},(n=vm.get(t))?xn(e=n.image)||n.pending.push(i):((e=zf.loadImage(t,_n,_n)).__zrImageSrc=t,vm.put(t,e.__cachedImgObj={image:e,pending:[i]}))),e):t:e}function _n(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function xn(t){return t&&t.width&&t.height}function wn(t,e,i,n,o){if(!e)return"";var r=(t+"").split("\n");o=bn(e,i,n,o);for(var a=0,s=r.length;a<s;a++)r[a]=Sn(r[a],o);return r.join("\n")}function bn(t,e,i,n){for(var o=l({},n=n||{}),r=(o.font=e,i=E(i,"..."),o.maxIterations=E(n.maxIterations,2),o.minChar=E(n.minChar,0)),a=(o.cnCharWidth=li("国",e),o.ascCharWidth=li("a",e)),s=(o.placeholder=E(n.placeholder,""),t=Math.max(0,t-1)),h=0;h<r&&a<=s;h++)s-=a;return n=li(i,e),s<n&&(i="",n=0),s=t-n,o.ellipsis=i,o.ellipsisWidth=n,o.contentWidth=s,o.containerWidth=t,o}function Sn(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var r=li(t,n);if(!(r<=i)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,i,n){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?i:n}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=li(t=t.substr(0,s),n)}""===t&&(t=e.placeholder)}return t}function Tn(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,d+=i,f=Math.max(f,e)}var n=new bm;if(null!=t&&(t+=""),t){for(var o,r=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===s},h=_m.lastIndex=0;null!=(o=_m.exec(t));){var u=o.index;h<u&&Mn(n,t.substring(h,u),e,l),Mn(n,o[2],e,l,o[1]),h=_m.lastIndex}h<t.length&&Mn(n,t.substring(h,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<n.lines.length;v++){for(var _=n.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(D=_.tokens[b]).styleName&&e.rich[D.styleName]||{},T=D.textPadding=S.padding,M=T?T[1]+T[3]:0,C=D.font=S.font||e.font,I=(D.contentHeight=di(C),E(S.height,D.contentHeight));if(D.innerHeight=I,T&&(I+=T[0]+T[2]),D.height=I,D.lineHeight=R(S.lineHeight,e.lineHeight,I),D.align=S&&S.align||e.align,D.verticalAlign=S&&S.verticalAlign||"middle",m&&null!=a&&d+D.lineHeight>a){0<b?(_.tokens=_.tokens.slice(0,b),i(_,w,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var k,T=S.width,A=null==T||"auto"===T;"string"==typeof T&&"%"===T.charAt(T.length-1)?(D.percentWidth=T,p.push(D),D.contentWidth=li(D.text,C)):(A&&(T=(T=S.backgroundColor)&&T.image)&&(k=void 0,xn(T="string"==typeof(c=T)?(k=vm.get(c))&&k.image:c))&&(D.width=Math.max(D.width,T.width*I/T.height)),null!=(k=y&&null!=r?r-w:null)&&k<D.width?!A||k<M?(D.text="",D.width=D.contentWidth=0):(D.text=wn(D.text,k-M,C,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=li(D.text,C)):D.contentWidth=li(D.text,C)),D.width+=M,w+=D.width,S&&(x=Math.max(x,D.lineHeight))}i(_,w,x)}for(n.outerWidth=n.width=E(r,f),n.outerHeight=n.height=E(a,d),n.contentHeight=d,n.contentWidth=f,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var D,P=(D=p[v]).percentWidth;D.width=parseInt(P,10)/100*n.width}}return n}function Mn(t,e,i,n,o){var r,a,s=""===e,l=o&&i.rich[o]||{},h=t.lines,u=l.font||i.font,c=!1;n?(i=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=fi(l.width,n.width)+i,0<h.length&&t+n.accumWidth>n.width&&(r=e.split("\n"),c=!0),n.accumWidth=t):(t=Cn(e,u,n.width,n.breakAll,n.accumWidth),n.accumWidth=t.accumWidth+i,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new xm;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:li(g,u),p||c?h.push(new wm([y])):1===(f=(d=(h[h.length-1]||(h[0]=new wm)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function Cn(t,e,i,n,o){for(var r,a=[],s=[],l="",h="",u=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(h&&(l+=h,c+=u),a.push(l),s.push(c),h=l="",c=u=0):(d=li(g,e),f=!(n||(f=void 0,!(32<=(f=(f=r=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||Sm[r]),(a.length?i<c+d:i<o+c+d)?c?(l||h)&&(c=f?(l||(l=h,h="",c=u=0),a.push(l),s.push(c-u),h+=g,l="",u+=d):(h&&(l+=h,h="",u=0),a.push(l),s.push(c),l=g,d)):f?(a.push(h),s.push(u),h=g,u=d):(a.push(g),s.push(d)):(c+=d,f?(h+=g,u+=d):(h&&(l+=h,h="",u=0),l+=g)))}return a.length||l||(l=t,h="",u=0),h&&(l+=h),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}function In(t){return nm.call(this,t)||this}function kn(t,e,i,n,o,r){o[0]=Pm(t,i),o[1]=Pm(e,n),r[0]=Om(t,i),r[1]=Om(e,n)}function An(t){return Math.round(t/Jm*1e8)/1e8%2*Jm}function Dn(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 Pn(t,e,i,n,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&n+o<a||a<e-o&&a<n-o||t+o<r&&i+o<r||r<t-o&&r<i-o)&&(t===i?Math.abs(r-t)<=o/2:(r=(s=(e-n)/(t-i))*r-a+(t*n-i*e)/(t-i))*r/(s*s+1)<=o/2*o/2)}function On(t){return(t%=av)<0&&(t+=av),t}function Ln(t,e,i,n,o,r){return e<r&&n<r||r<e&&r<n||n===e?0:(i=(r=(r-e)/(n-e))*(i-t)+t)===o?1/0:o<i?1!=r&&0!=r?n<e?1:-1:n<e?.5:-.5:0}function En(t,e,i,n,o,r,a,s,l,h){if(e<h&&n<h&&r<h&&s<h||h<e&&h<n&&h<r&&h<s)return 0;var u=Qt(e,n,r,s,h,cv);if(0===u)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<u;y++){var m=cv[y],v=0===m||1===m?.5:1;Zt(t,i,o,a,m)<l||(d<0&&(d=$t(e,n,r,s,pv),pv[1]<pv[0]&&1<d&&(c=void 0,c=pv[0],pv[0]=pv[1],pv[1]=c),f=Zt(e,n,r,s,pv[0]),1<d)&&(g=Zt(e,n,r,s,pv[1])),2===d?m<pv[0]?p+=f<e?v:-v:m<pv[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<pv[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Rn(t,e,i,n,o,r,a,s){if(e<s&&n<s&&r<s||s<e&&s<n&&s<r)return 0;c=cv,u=(l=e)-2*(h=n)+(u=r),h=2*(h-l),l-=s=s,s=0,jt(u)?qt(h)&&0<=(p=-l/h)&&p<=1&&(c[s++]=p):jt(l=h*h-4*u*l)?0<=(p=-h/(2*u))&&p<=1&&(c[s++]=p):0<l&&(d=(-h-(l=Kg(l)))/(2*u),0<=(p=(-h+l)/(2*u))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,h,u,c,p,d,f=s;if(0===f)return 0;var g=ne(e,n,r);if(0<=g&&g<=1){for(var y=0,m=ee(e,n,r,g),v=0;v<f;v++){var _=0===cv[v]||1===cv[v]?.5:1;ee(t,i,o,cv[v])<a||(cv[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===cv[0]||1===cv[0]?.5:1,ee(t,i,o,cv[0])<a?0:r<e?_:-_}function Nn(t,e,i,n,o){for(var r,a=t.data,s=t.len(),l=0,h=0,u=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===lv.M&&1<d&&(i||(l+=Ln(h,u,c,p,n,o))),g&&(c=h=a[d],p=u=a[d+1]),f){case lv.M:h=c=a[d++],u=p=a[d++];break;case lv.L:if(i){if(Pn(h,u,a[d],a[d+1],e,n,o))return!0}else l+=Ln(h,u,a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case lv.C:if(i){if(function(t,e,i,n,o,r,a,s,l,h,u){if(0!==l)return!(e+(l=l)<u&&n+l<u&&r+l<u&&s+l<u||u<e-l&&u<n-l&&u<r-l&&u<s-l||t+l<h&&i+l<h&&o+l<h&&a+l<h||h<t-l&&h<i-l&&h<o-l&&h<a-l)&&te(t,e,i,n,o,r,a,s,h,u,null)<=l/2}(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=En(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case lv.Q:if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&n+a<l&&r+a<l||l<e-a&&l<n-a&&l<r-a||t+a<s&&i+a<s&&o+a<s||s<t-a&&s<i-a&&s<o-a)&&re(t,e,i,n,o,r,s,l,null)<=a/2}(h,u,a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=Rn(h,u,a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case lv.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,T=Math.sin(x)*_+m,M=(g?(c=S,p=T):l+=Ln(h,u,S,T,n,o),(n-y)*_/v+y);if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(i<(t=Math.sqrt(s*s+l*l))-a||t+a<i)&&(Math.abs(n-o)%sv<1e-4||((o=r?(e=n,n=On(o),On(e)):(n=On(n),On(o)))<n&&(o+=sv),(t=Math.atan2(l,s))<0&&(t+=sv),n<=t&&t<=o)||n<=t+sv&&t+sv<=o)}(y,m,_,x,x+w,b,e,M,o))return!0}else l+=function(t,e,i,n,o,r,a,s){if(i<(s-=e)||s<-i)return 0;var e=Math.sqrt(i*i-s*s);if(cv[0]=-e,cv[1]=e,(i=Math.abs(n-o))<1e-4)return 0;if(hv-1e-4<=i)return o=hv,u=r?1:-1,a>=cv[n=0]+t&&a<=cv[1]+t?u:0;o<n&&(e=n,n=o,o=e),n<0&&(n+=hv,o+=hv);for(var l=0,h=0;h<2;h++){var u,c=cv[h];a<c+t&&(u=r?1:-1,n<=(c=(c=Math.atan2(s,c))<0?hv+c:c)&&c<=o||n<=c+hv&&c+hv<=o)&&(l+=u=c>Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,M,o);h=Math.cos(x+w)*v+y,u=Math.sin(x+w)*_+m;break;case lv.R:if(c=h=a[d++],p=u=a[d++],S=c+a[d++],T=p+a[d++],i){if(Pn(c,p,S,p,e,n,o)||Pn(S,p,S,T,e,n,o)||Pn(S,T,c,T,e,n,o)||Pn(c,T,c,p,e,n,o))return!0}else l=(l+=Ln(S,p,S,T,n,o))+Ln(c,T,c,p,n,o);break;case lv.Z:if(i){if(Pn(h,u,c,p,e,n,o))return!0}else l+=Ln(h,u,c,p,n,o);h=c,u=p}}return i||(t=u,r=p,Math.abs(t-r)<uv)||(l+=Ln(h,u,c,p,n,o)||0),0!==l}function Bn(t){return nv.call(this,t)||this}function zn(){return null!==ov&&ov.apply(this,arguments)||this}function Fn(){return null!==wv&&wv.apply(this,arguments)||this}function Vn(t,e,i){var n,o,r;if(e)return n=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=n,t.x2=o,t.y1=r,t.y2=e,(i=i&&i.lineWidth)&&(Tv(2*n)===Tv(2*o)&&(t.x1=t.x2=Hn(n,i,!0)),Tv(2*r)===Tv(2*e))&&(t.y1=t.y2=Hn(r,i,!0)),t}function Yn(t,e,i){var n,o,r;if(e)return n=e.x,o=e.y,r=e.width,e=e.height,t.x=n,t.y=o,t.width=r,t.height=e,(i=i&&i.lineWidth)&&(t.x=Hn(n,i,!0),t.y=Hn(o,i,!0),t.width=Math.max(Hn(n+r,i,!1)-t.x,0===r?0:1),t.height=Math.max(Hn(o+e,i,!1)-t.y,0===e?0:1)),t}function Hn(t,e,i){var n;return e?((n=Tv(2*t))+Tv(e))%2==0?n/2:(n+(i?1:-1))/2:t}function Wn(t){return Sv.call(this,t)||this}function Xn(t){var e=kv.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Av,e.attr(t),e}function Gn(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Ef+"px":t+"px":t}function Un(t,e){for(var i=0;i<Ev.length;i++){var n=Ev[i],o=e[n];null!=o&&(t[n]=o)}}function jn(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function qn(t){var e;t&&(t.font=Pv.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Ov[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Lv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Zn(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Kn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Qn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function $n(t){return t=t.text,null!=t&&(t+=""),t}function Jn(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function to(t){return null!=t&&"none"!==t}function eo(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function io(t){eo(t,"emphasis",Hv)}function no(t){t.hoverState===Hv&&eo(t,"normal",Vv)}function oo(t){eo(t,"blur",Yv)}function ro(t){t.hoverState===Yv&&eo(t,"normal",Vv)}function ao(t){t.selected=!0}function so(t){t.selected=!1}function lo(t,e,i){e(t,i)}function ho(t,e,i){lo(t,e,i),t.isGroup&&t.traverse(function(t){lo(t,e,i)})}function uo(t,e){switch(e){case"emphasis":t.hoverState=Hv;break;case"normal":t.hoverState=Vv;break;case"blur":t.hoverState=Yv;break;case"select":t.selected=!0}}function co(t,e,i){var n=0<=u(t.currentStates,e),o=t.style.opacity,t=n?null:function(t,e,i,n){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&h.__fromStateTransition.indexOf(i)<0&&"style"===h.targetName&&h.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(i=i||{}).style||{};return null==e.opacity&&(i=l({},i),e=l({opacity:n?o:.1*t.opacity},e),i.style=e),i}function po(t,e){var i,n,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return i=this,n=s,e=(e=e)&&0<=u(e,"select"),a=!1,i instanceof yv&&(o=zv(i),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,to(r)||to(e))&&("inherit"===(o=(n=n||{}).style||{}).fill?(a=!0,n=l({},n),(o=l({},o)).fill=r):!to(o.fill)&&to(r)?(a=!0,n=l({},n),(o=l({},o)).fill=Ce(r)):!to(o.stroke)&&to(e)&&(a||(n=l({},n),o=l({},o)),o.stroke=Ce(e)),n.style=o),n&&null==n.z2&&(a||(n=l({},n)),r=i.z2EmphasisLift,n.z2=i.z2+(null!=r?r:10)),n;if("blur"===t)return co(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=l({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function fo(t){t.stateProxy=po;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=po),t&&(t.stateProxy=po)}function go(t,e){So(t,e)||t.__highByOuter||ho(t,io)}function yo(t,e){So(t,e)||t.__highByOuter||ho(t,no)}function mo(t,e){t.__highByOuter|=1<<(e||0),ho(t,io)}function vo(t,e){(t.__highByOuter&=~(1<<(e||0)))||ho(t,no)}function _o(t){ho(t,oo)}function xo(t){ho(t,ro)}function wo(t){ho(t,ao)}function bo(t){ho(t,so)}function So(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function To(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,o){var r=Fv(o),e="series"===e,a=e?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);e||n.push(a),r.isBlured&&(a.group.traverse(function(t){ro(t)}),e)&&i.push(o),r.isBlured=!1}),f(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function Mo(t,e,i,n){function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&xo(n)}}var r,a,s,l=n.getModel();i=i||"coordinateSystem",null!=t&&e&&"none"!==e&&(r=l.getSeriesByIndex(t),(a=r.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=r===t,h=t.coordinateSystem,h=(h=h&&h.master?h.master:h)&&a?h===a:l;if(!("series"===i&&!l||"coordinateSystem"===i&&!h||"series"===e&&l)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&l&&"self"===e||oo(t)}),d(e))o(t.getData(),e);else if(M(e))for(var u=v(e),c=0;c<u.length;c++)o(t.getData(u[c]),e[u[c]]);s.push(t),Fv(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=n.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(s,!0,l)}))}function Co(t,e,i){var n;null!=t&&null!=e&&(t=i.getModel().getComponent(t,e))&&(Fv(t).isBlured=!0,n=i.getViewOfComponentModel(t))&&n.focusBlurEnabled&&n.group.traverse(function(t){oo(t)})}function Io(t,e,i,n){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return o;if(!(t=n.getModel().getComponent(t,e)))return o;if(!(e=n.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(i),s=0;s<a.length;s++)if("self"===Rv(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function ko(t){f(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){(t.isSelected(i,n)?wo:bo)(e)})})}function Ao(t,e,i){Oo(t,!0),ho(t,fo),t=Rv(t),null!=e?(t.focus=e,t.blurScope=i):t.focus&&(t.focus=null)}function Do(t,e,i,n){n?Oo(t,!1):Ao(t,e,i)}function Po(t,e,i,n){i=i||"itemStyle";for(var o=0;o<Kv.length;o++){var r=Kv[o],a=e.getModel([r,i]);t.ensureState(r).style=n?n(a):a[Qv[i]]()}}function Oo(t,e){var e=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Lo(t){return!(!t||!t.__highDownDispatcher)}function Eo(t){return(t=t.type)===jv||t===qv||t===Zv}function Ro(t){return(t=t.type)===Gv||t===Uv}function No(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Bo(t,e){return(t[0]*e[0]+t[1]*e[1])/(No(t)*No(e))}function zo(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Bo(t,e))}function Fo(t,e,i,n,o,r,a,s,l,h,u){var l=l*(r_/180),c=o_(l)*(t-i)/2+n_(l)*(e-n)/2,p=-1*n_(l)*(t-i)/2+o_(l)*(e-n)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=i_(d),s*=i_(d)),(o===r?-1:1)*i_((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+i)/2+o_(l)*o-n_(l)*d,i=(e+n)/2+n_(l)*o+o_(l)*d,e=zo([1,0],[(c-o)/a,(p-d)/s]),n=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=zo(n,c);Bo(n,c)<=-1&&(o=r_),(o=1<=Bo(n,c)?0:o)<0&&(p=Math.round(o/r_*1e6)/1e6,o=2*r_+p%2*r_),u.addData(h,t,i,a,s,e,o,l,r)}function Vo(){return null!==l_&&l_.apply(this,arguments)||this}function Yo(t){return null!=t.setData}function Ho(t,e){var i=function(t){var e=new rv;if(t){var i,n=0,o=0,r=n,a=o,s=rv.CMD,l=t.match(a_);if(l){for(var h=0;h<l.length;h++){for(var u=l[h],c=u.charAt(0),p=void 0,d=u.match(s_)||[],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,T=n,M=o,C=void 0,I=void 0;switch(c){case"l":n+=d[y++],o+=d[y++],p=s.L,e.addData(p,n,o);break;case"L":n=d[y++],o=d[y++],p=s.L,e.addData(p,n,o);break;case"m":n+=d[y++],o+=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="l";break;case"M":n=d[y++],o=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="L";break;case"h":n+=d[y++],p=s.L,e.addData(p,n,o);break;case"H":n=d[y++],p=s.L,e.addData(p,n,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,n,o);break;case"V":o=d[y++],p=s.L,e.addData(p,n,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o),n+=d[y-2],o+=d[y-1];break;case"S":m=n,v=o,C=e.len(),I=e.data,i===s.C&&(m+=n-I[C-4],v+=o-I[C-3]),p=s.C,T=d[y++],M=d[y++],n=d[y++],o=d[y++],e.addData(p,m,v,T,M,n,o);break;case"s":m=n,v=o,C=e.len(),I=e.data,i===s.C&&(m+=n-I[C-4],v+=o-I[C-3]),p=s.C,T=n+d[y++],M=o+d[y++],n+=d[y++],o+=d[y++],e.addData(p,m,v,T,M,n,o);break;case"Q":T=d[y++],M=d[y++],n=d[y++],o=d[y++],p=s.Q,e.addData(p,T,M,n,o);break;case"q":T=d[y++]+n,M=d[y++]+o,n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,T,M,n,o);break;case"T":m=n,v=o,C=e.len(),I=e.data,i===s.Q&&(m+=n-I[C-4],v+=o-I[C-3]),n=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"t":m=n,v=o,C=e.len(),I=e.data,i===s.Q&&(m+=n-I[C-4],v+=o-I[C-3]),n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Fo(T=n,M=o,n=d[y++],o=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++],Fo(T=n,M=o,n+=d[y++],o+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),n=r,o=a),i=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Yo(t)?(t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e,1)):i.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=i,n=t;if(n){for(var o,r,a,s,l=e.data,h=e.len(),u=$v.M,c=$v.C,p=$v.L,d=$v.R,f=$v.A,g=$v.Q,y=0,m=0;y<h;){switch(o=l[y++],m=y,r=0,o){case u:case p:r=1;break;case c:r=3;break;case g:r=2;break;case f:var v=n[4],_=n[5],x=t_(n[0]*n[0]+n[1]*n[1]),w=t_(n[2]*n[2]+n[3]*n[3]),b=e_(-n[1]/w,n[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++],st(s,s,n),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],st(s,s,n),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<r;a++){var S=Jv[a];S[0]=l[y++],S[1]=l[y++],st(S,S,n),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Wo(t){return h_.call(this,t)||this}function Xo(t){return d_.call(this,t)||this}function Go(t,e,i,n,o,r,a){var s=t-i,l=e-n,a=(a?r:-r)/T_(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=i+l,i=n+a,n=(s+e)/2,h=(t+i)/2,u=e-s,c=i-t,p=u*u+c*c,r=o-r,s=s*i-e*t,i=(c<0?-1:1)*T_(M_(0,r*r*p-s*s)),e=(s*c-u*i)/p,t=(-s*u-c*i)/p,d=(s*c+u*i)/p,s=(-s*u+c*i)/p,u=e-n,c=t-h,i=d-n,p=s-h;return i*i+p*p<u*u+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function Uo(t,e){var i,n,o,r,a,s,l,h,u,c,p,d,f,g,y,m,v,_,w,b,S,T,M,C,I,k,A,D,P,O,L=M_(e.r,0),E=M_(e.r0||0,0),R=0<L;(R||0<E)&&(R||(L=E,E=0),L<E&&(R=L,L=E,E=R),R=e.startAngle,i=e.endAngle,isNaN(R)||isNaN(i)||(n=e.cx,o=e.cy,r=!!e.clockwise,m=S_(i-R),I_<(a=v_<m&&m%v_)&&(m=a),I_<L?v_-I_<m?(t.moveTo(n+L*x_(R),o+L*__(R)),t.arc(n,o,L,R,i,!r),I_<E&&(t.moveTo(n+E*x_(i),o+E*__(i)),t.arc(n,o,E,i,R,r))):(T=S=b=w=_=v=c=u=k=I=C=M=h=l=s=a=void 0,p=L*x_(R),d=L*__(R),f=E*x_(i),g=E*__(i),(y=I_<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],h=e[3]),e=S_(L-E)/2,M=C_(e,l),C=C_(e,h),I=C_(e,a),k=C_(e,s),v=u=M_(M,C),_=c=M_(I,k),I_<u||I_<c)&&(w=L*x_(i),b=L*__(i),S=E*x_(R),T=E*__(R),m<m_)&&(e=function(t,e,i,n,o,r,a,s){var l=(s-=r)*(i-=t)-(a-=o)*(n-=e);if(!(l*l<I_))return[t+(l=(a*(e-r)-s*(t-o))/l)*i,e+l*n]}(p,d,S,T,w,b,f,g))&&(M=p-e[0],C=d-e[1],I=w-e[0],k=b-e[1],m=1/__(w_((M*I+C*k)/(T_(M*M+C*C)*T_(I*I+k*k)))/2),M=T_(e[0]*e[0]+e[1]*e[1]),v=C_(u,(L-M)/(1+m)),_=C_(c,(E-M)/(m-1))),y?I_<v?(A=C_(l,v),D=C_(h,v),P=Go(S,T,p,d,L,A,r),O=Go(w,b,f,g,L,D,r),t.moveTo(n+P.cx+P.x0,o+P.cy+P.y0),v<u&&A===D?t.arc(n+P.cx,o+P.cy,v,b_(P.y0,P.x0),b_(O.y0,O.x0),!r):(0<A&&t.arc(n+P.cx,o+P.cy,A,b_(P.y0,P.x0),b_(P.y1,P.x1),!r),t.arc(n,o,L,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),!r),0<D&&t.arc(n+O.cx,o+O.cy,D,b_(O.y1,O.x1),b_(O.y0,O.x0),!r))):(t.moveTo(n+p,o+d),t.arc(n,o,L,R,i,!r)):t.moveTo(n+p,o+d),I_<E&&y?I_<_?(A=C_(a,_),P=Go(f,g,w,b,E,-(D=C_(s,_)),r),O=Go(p,d,S,T,E,-A,r),t.lineTo(n+P.cx+P.x0,o+P.cy+P.y0),_<c&&A===D?t.arc(n+P.cx,o+P.cy,_,b_(P.y0,P.x0),b_(O.y0,O.x0),!r):(0<D&&t.arc(n+P.cx,o+P.cy,D,b_(P.y0,P.x0),b_(P.y1,P.x1),!r),t.arc(n,o,E,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),r),0<A&&t.arc(n+O.cx,o+O.cy,A,b_(O.y1,O.x1),b_(O.y0,O.x0),!r))):(t.lineTo(n+f,o+g),t.arc(n,o,E,i,R,r)):t.lineTo(n+f,o+g)):t.moveTo(n,o),t.closePath()))}function jo(t){return y_.call(this,t)||this}function qo(t){return D_.call(this,t)||this}function Zo(t,e,i){var n=e.smooth,o=e.points;if(o&&2<=o.length){if(n)for(var r=function(t,e,i,n){var o,r,a=[],s=[],l=[],h=[];if(n){for(var u=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)lt(u,u,t[p]),ht(c,c,t[p]);lt(u,u,n[0]),ht(c,c,n[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(i)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Q(t[p]));continue}o=t[p-1],r=t[p+1]}J(s,r,o),it(s,s,e);var g=ot(f,o),y=ot(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),it(l,s,-g),it(h,s,y),$([],f,l)),g=$([],f,h);n&&(ht(m,m,u),lt(m,m,c),ht(g,g,u),lt(g,g,c)),a.push(m),a.push(g)}return i&&a.push(a.shift()),a}(o,n,i,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(i?a:a-1);s++){var l=r[2*s],h=r[2*s+1],u=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}else{t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}i&&t.closePath()}}function Ko(t){return L_.call(this,t)||this}function Qo(t){return N_.call(this,t)||this}function $o(t){return F_.call(this,t)||this}function Jo(t,e,i){var n=t.cpx2,o=t.cpy2;return null!=n||null!=o?[(i?Kt:Zt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Kt:Zt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?ie:ee)(t.x1,t.cpx1,t.x2,e),(i?ie:ee)(t.y1,t.cpy1,t.y2,e)]}function tr(t){return G_.call(this,t)||this}function er(t){return j_.call(this,t)||this}function ir(){var t=null!==K_&&K_.apply(this,arguments)||this;return t.type="compound",t}function nr(t){this.colorStops=t||[]}function or(t,e,i,n,o,r){return o=J_.call(this,o)||this,o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==i?1:i,o.y2=null==n?0:n,o.type="linear",o.global=r||!1,o}function rr(t,e,i,n,o){return n=ex.call(this,n)||this,n.x=null==t?.5:t,n.y=null==e?.5:e,n.r=null==i?.5:i,n.type="radial",n.global=o||!1,n}function ar(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Sg;for(i=0;i<2;i++)this._axes[i]=new Sg;t&&this.fromBoundingRect(t,e)}function sr(){var t=null!==ix&&ix.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function lr(t,e,i,n,o,r,a){var s,l,h,u,c,p,d=!1,f=(w(o)?(a=r,r=o,o=null):M(o)&&(r=o.cb,a=o.during,d=o.isFrom,l=o.removeOpt,o=o.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=o,l=f?l||{}:null,n=(g=n)&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null,g&&g.ecModel&&(h=(h=g.ecModel.getUpdatePayload())&&h.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=u=o=void 0,c=l?(o=E(l.duration,200),u=E(l.easing,"cubicOut"),0):(o=g.getShallow(p?"animationDurationUpdate":"animationDuration"),u=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=h&&(null!=h.duration&&(o=h.duration),null!=h.easing&&(u=h.easing),null!=h.delay)?h.delay:c)&&(c=c(s,n)),{duration:(o=w(o)?o(s):o)||0,delay:c,easing:u}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:r,force:!!r||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(i,p):e.animateTo(i,p)):(e.stopAnimation(),d||e.attr(i),a&&a(1),r&&r())}function hr(t,e,i,n,o,r){lr("update",t,e,i,n,o,r)}function ur(t,e,i,n,o,r){lr("enter",t,e,i,n,o,r)}function cr(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 pr(t,e,i,n,o,r){cr(t)||lr("leave",t,e,i,n,o,r)}function dr(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),pr(t,{style:{opacity:0}},e,i,n)}function fr(t){return yv.extend(t)}function gr(t,e){return dx(t,e)}function yr(t,e){px[t]=e}function mr(t){if(px.hasOwnProperty(t))return px[t]}function vr(t,e,i,n){return t=new u_(Ho(t,e)),i&&("center"===n&&(i=xr(i,t.getBoundingRect())),br(t,i)),t}function _r(t,e,i){var n=new bv({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===i&&(t={width:t.width,height:t.height},n.setStyle(xr(e,t)))}});return n}function xr(t,e){var e=e.width/e.height,i=t.height*e,e=i<=t.width?t.height:(i=t.width)/e;return{x:t.x+t.width/2-i/2,y:t.y+t.height/2-e/2,width:i,height:e}}function wr(t,e){for(var i=[],n=t.length,o=0;o<n;o++){var r=t[o];i.push(r.getUpdatedPathProxy(!0))}return(e=new yv(e)).createPathProxy(),e.buildPath=function(t){var e;Yo(t)&&(t.appendPath(i),e=t.getContext())&&t.rebuildPath(e,1)},e}function br(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function Sr(t,e){return Vn(t,t,{lineWidth:e}),t}function Tr(t,e){for(var i=Tt([]);t&&t!==e;)Ct(i,t.getLocalTransform(),i),t=t.parent;return i}function Mr(t,e,i){return e&&!d(e)&&(e=Xy.getLocalTransform(e)),st([],t,e=i?Dt([],e):e)}function Cr(t){return!t.isGroup}function Ir(t,e,i){function n(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var o,r;t&&e&&(r={},t.traverse(function(t){Cr(t)&&t.anid&&(r[t.anid]=t)}),o=r,e.traverse(function(t){var e,r;Cr(t)&&t.anid&&(e=o[t.anid])&&(r=n(t),t.attr(n(e)),hr(t,r,i,Rv(t).dataIndex))}))}function kr(t,e){return g(t,function(t){var i=t[0],i=ux(i,e.x),t=(i=cx(i,e.x+e.width),t[1]),t=ux(t,e.y);return[i,cx(t,e.y+e.height)]})}function Ar(t,e){var i=ux(t.x,e.x),n=cx(t.x+t.width,e.x+e.width),o=ux(t.y,e.y),t=cx(t.y+t.height,e.y+e.height);if(i<=n&&o<=t)return{x:i,y:o,width:n-i,height:t-o}}function Dr(t,e,i){var e=l({rectHover:!0},e),n=e.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),h(n,i),new bv(e)):vr(t.replace("path://",""),e,i,"center")}function Pr(t,e,i,n,o,r,a,s){var l,i=i-t,n=n-e,a=a-o,s=s-r,h=a*n-i*s;return!((l=h)<=1e-6&&-1e-6<=l||(o=((l=t-o)*n-i*(t=e-r))/h)<0||1<o||(n=(l*s-a*t)/h)<0||1<n)}function Or(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,e=b(e)?{formatter:e}:e,o=i.mainType,i=i.componentIndex,r={componentType:o,name:n,$vars:["name"]},a=(r[o+"Index"]=i,t.formatterParamsExtra),t=(a&&f(v(a),function(t){q(r,t)||(r[t]=a[t],r.$vars.push(t))}),Rv(t.el));t.componentMainType=o,t.componentIndex=i,t.tooltipConfig={name:n,option:h({content:n,encodeHTMLContent:!0,formatterParams:r},e)}}function Lr(t,e){var i;(i=t.isGroup?e(t):i)||t.traverse(e)}function Er(t,e){if(t)if(x(t))for(var i=0;i<t.length;i++)Lr(t[i],e);else Lr(t,e)}function Rr(t,e){for(var i=0;i<Wv.length;i++){var n=Wv[i],o=e[n],n=t.ensureState(n);n.style=n.style||{},n.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Nr(t,e,i){for(var n,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:n=null==(n=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null):n)?w(t.defaultText)?t.defaultText(r,t,i):t.defaultText:n},h=0;h<Wv.length;h++){var u=Wv[h],c=e[u];l[u]=E(o?o.getFormattedLabel(r,u,null,a,c&&c.get("formatter")):null,n)}return l}function Br(t,e,i,n){i=i||yx;for(var o=t instanceof Pv,r=!1,a=0;a<Xv.length;a++)if((p=e[Xv[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new Pv,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Nr(i,e),h=e.normal,u=!!h.getShallow("show"),c=Fr(h,n&&n.normal,i,!1,!o);for(c.text=l.normal,o||t.setTextConfig(Vr(h,i,!1)),a=0;a<Wv.length;a++){var p,d,f,g=Wv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!E(p.getShallow("show"),u))!=u&&(d.ignore=!f),d.style=Fr(p,n&&n[g],i,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Vr(p,i,!0)))}s.silent=!!h.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!u,s.useStyle(c),s.dirty(),i.enableTextSetter&&(xx(s).setLabelText=function(t){t=Nr(i,e,t),Rr(s,t)})}else s&&(s.ignore=!0);t.dirty()}function zr(t,e){for(var i={normal:t.getModel(e=e||"label")},n=0;n<Wv.length;n++){var o=Wv[n];i[o]=t.getModel([o,e])}return i}function Fr(t,e,i,n,o){var r,a={},s=a,h=t,u=i,c=n,p=o;u=u||yx;var d,t=h.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||yx).rich;if(i){e=e||{};for(var n=v(i),o=0;o<n.length;o++){e[n[o]]=1}}t=t.parentModel}return e}(h);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(r=h.getModel(["rich",y]),Yr(d[y]={},r,f,u,c,p,!1,!0));return d&&(s.rich=d),(t=h.get("overflow"))&&(s.overflow=t),null!=(t=h.get("minMargin"))&&(s.margin=t),Yr(s,h,f,u,c,p,!0,!1),e&&l(a,e),a}function Vr(t,e,i){e=e||{};var n={},o=t.getShallow("rotate"),r=E(t.getShallow("distance"),i?null:5),a=t.getShallow("offset"),i=t.getShallow("position")||(i?null:"inside");return null!=(i="outside"===i?e.defaultOutsidePosition||"top":i)&&(n.position=i),null!=a&&(n.offset=a),null!=o&&(o*=Math.PI/180,n.rotation=o),null!=r&&(n.distance=r),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",n}function Yr(t,e,i,n,o,r,a,s){i=!o&&i||yx;var l=n&&n.inheritColor,h=e.getShallow("color"),u=e.getShallow("textBorderColor"),c=E(e.getShallow("opacity"),i.opacity),h=("inherit"!==h&&"auto"!==h||(h=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),r||(h=h||i.color,u=u||i.textBorderColor),null!=h&&(t.fill=h),null!=u&&(t.stroke=u),E(e.getShallow("textBorderWidth"),i.textBorderWidth)),u=(null!=h&&(t.lineWidth=h),E(e.getShallow("textBorderType"),i.textBorderType)),h=(null!=u&&(t.lineDash=u),E(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset));null!=h&&(t.lineDashOffset=h),null!=(c=o||null!=c||s?c:n&&n.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<mx.length;p++){var d=mx[p];null!=(f=E(e.getShallow(d),i[d]))&&(t[d]=f)}for(var p=0;p<vx.length;p++)d=vx[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(u=e.getShallow("baseline"))&&(t.verticalAlign=u),!a||!n.disableBox){for(p=0;p<_x.length;p++){var f,d=_x[p];null!=(f=e.getShallow(d))&&(t[d]=f)}h=e.getShallow("borderType"),null!=h&&(t.borderDash=h),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Hr(t,e,i,n,o){var r,a,s,l=xx(t);l.valueAnimation&&l.prevValue!==l.value&&(r=l.defaultInterpolatedText,a=E(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?ur:hr)(t,{percent:1},n,e,null,function(n){var h=hn(i,l.precision,a,s,n),n=(l.interpolatedValue=1===n?null:h,Nr({labelDataIndex:e,labelFetcher:o,defaultText:r?r(h):h+""},l.statesModels,h));Rr(t,n)}))}function Wr(){}function Xr(){}function Gr(){}function Ur(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function jr(t){return[t||"",Lx++].join("_")}function qr(t,e){t=t.toUpperCase(),zx[t]=new Ox(e),Bx[t]=e}function Zr(t,e){return"0000".substr(0,e-(t+="").length)+t}function Kr(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 Qr(t,e,i,n){var t=Ni(t),o=t[ta(i)](),r=t[ea(i)]()+1,a=Math.floor((r-1)/3)+1,s=t[ia(i)](),l=t["get"+(i?"UTC":"")+"Day"](),h=t[na(i)](),u=(h-1)%12+1,c=t[oa(i)](),p=t[ra(i)](),t=t[aa(i)](),i=12<=h?"pm":"am",d=i.toUpperCase(),n=(n instanceof Ox?n:zx[n||Fx]||zx[Nx]).getModel("time"),f=n.get("month"),g=n.get("monthAbbr"),y=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,i+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Zr(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[r-1]).replace(/{MMM}/g,g[r-1]).replace(/{MM}/g,Zr(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,Zr(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Zr(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Zr(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Zr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Zr(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Zr(t,3)).replace(/{S}/g,t+"")}function $r(t,e){var t=Ni(t),i=t[ea(e)]()+1,n=t[ia(e)](),o=t[na(e)](),r=t[oa(e)](),a=t[ra(e)](),t=0===t[aa(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===n;return o&&1===i?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Jr(t,e,i){var n=T(t)?Ni(t):t;switch(e=e||$r(t,i)){case"year":return n[ta(i)]();case"half-year":return 6<=n[ea(i)]()?1:0;case"quarter":return Math.floor((n[ea(i)]()+1)/4);case"month":return n[ea(i)]();case"day":return n[ia(i)]();case"half-day":return n[na(i)]()/24;case"hour":return n[na(i)]();case"minute":return n[oa(i)]();case"second":return n[ra(i)]();case"millisecond":return n[aa(i)]()}}function ta(t){return t?"getUTCFullYear":"getFullYear"}function ea(t){return t?"getUTCMonth":"getMonth"}function ia(t){return t?"getUTCDate":"getDate"}function na(t){return t?"getUTCHours":"getHours"}function oa(t){return t?"getUTCMinutes":"getMinutes"}function ra(t){return t?"getUTCSeconds":"getSeconds"}function aa(t){return t?"getUTCMilliseconds":"getMilliseconds"}function sa(t){return t?"setUTCMonth":"setMonth"}function la(t){return t?"setUTCDate":"setDate"}function ha(t){return t?"setUTCHours":"setHours"}function ua(t){return t?"setUTCMinutes":"setMinutes"}function ca(t){return t?"setUTCSeconds":"setSeconds"}function pa(t){return t?"setUTCMilliseconds":"setMilliseconds"}function da(t){var e;return Yi(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function fa(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 ga(t,e,i){function n(t){return t&&F(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?Ni(t):t;if(!isNaN(+r))return Qr(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}return"ordinal"===e?S(t)?n(t):T(t)&&o(t)?t+"":"-":o(r=Vi(t))?da(r):S(t)?n(t):"boolean"==typeof t?t+"":"-"}function ya(t,e){return"{"+t+(null==e?"":e)+"}"}function ma(t,e,i){var n=(e=x(e)?e:[e]).length;if(!n)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Kx[r];t=t.replace(ya(a),ya(a,0))}for(var s=0;s<n;s++)for(var l=0;l<o.length;l++){var h=e[s][o[l]];t=t.replace(ya(Kx[l],s),i?yt(h):h)}return t}function va(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},i=t.color,n=t.type,o=(e=t.extraCssText,t.renderMode||"html");return i?"html"===o?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yt(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function _a(t,e){return e=e||"transparent",b(t)?t:M(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function xa(t,e){var i;"_blank"===e||"blank"===e?((i=window.open()).opener=null,i.location.href=t):window.open(t,e)}function wa(t,e,i,n,o){var r=0,a=0,s=(null==n&&(n=1/0),null==o&&(o=1/0),0);e.eachChild(function(l,h){var u,c,p,d=l.getBoundingRect(),h=e.childAt(h+1),h=h&&h.getBoundingRect();s="horizontal"===t?(c=d.width+(h?-h.x+d.x:0),n<(u=r+c)||l.newline?(r=0,u=c,a+=s+i,d.height):Math.max(s,d.height)):(c=d.height+(h?-h.y+d.y:0),o<(p=a+c)||l.newline?(r+=s+i,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=u+i:a=p+i)})}function ba(t,e,i){i=Zx(i||0);var n=e.width,o=e.height,r=Ai(t.left,n),a=Ai(t.top,o),e=Ai(t.right,n),s=Ai(t.bottom,o),l=Ai(t.width,n),h=Ai(t.height,o),u=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(l)&&(l=n-e-c-r),isNaN(h)&&(h=o-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(n/o<p?l=.8*n:h=.8*o),isNaN(l)&&(l=p*h),isNaN(h))&&(h=l/p),isNaN(r)&&(r=n-e-l-c),isNaN(a)&&(a=o-s-h-u),t.left||t.right){case"center":r=n/2-l/2-i[3];break;case"right":r=n-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-i[0];break;case"bottom":a=o-h-u}return r=r||0,a=a||0,isNaN(l)&&(l=n-c-r-(e||0)),isNaN(h)&&(h=o-u-a-(s||0)),p=new Og(r+i[3],a+i[0],l,h),p.margin=i,p}function Sa(t){return t=t.layoutMode||t.constructor.layoutMode,M(t)?t:t?{type:t}:null}function Ta(t,e,i){function n(i,n){var a={},l=0,h={},u=0;if(Qx(i,function(e){h[e]=t[e]}),Qx(i,function(t){o(e,t)&&(a[t]=h[t]=e[t]),r(a,t)&&l++,r(h,t)&&u++}),s[n])r(e,i[1])?h[i[2]]=null:r(e,i[2])&&(h[i[1]]=null);else if(2!==u&&l){if(!(2<=l))for(var c=0;c<i.length;c++){var p=i[c];if(!o(a,p)&&o(t,p)){a[p]=t[p];break}}return a}return h}function o(t,e){return t.hasOwnProperty(e)}function r(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){Qx(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize,i=(x(s)||(s=[s,s]),n(Jx[0],0)),l=n(Jx[1],1);a(Jx[0],t,i),a(Jx[1],t,l)}function Ma(t){return e={},(i=t)&&e&&Qx($x,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e;var e,i}function Ca(t,e,i){return t=ew.call(this,t,e,i)||this,t.uid=jr("ec_cpt_model"),t}function Ia(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function ka(t,e,i){function n(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function o(t){return t=t.dimsDef,t?t.length:1}var r,a,s,l,h,u={},c=Aa(e);return c&&t&&(r=[],a=[],e=e.ecModel,e=bw(e).datasetMap,c=c.uid+"_"+i.seriesLayoutBy,f(t=t.slice(),function(e,i){e=M(e)?e:t[i]={name:e},"ordinal"===e.type&&null==s&&(s=i,l=o(e)),u[e.name]=[]}),h=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var i,l=t.name,t=o(t);null==s?(i=h.valueWayDim,n(u[l],i,t),n(a,i,t),h.valueWayDim+=t):s===e?(n(u[l],0,t),n(r,0,t)):(i=h.categoryWayDim,n(u[l],i,t),n(a,i,t),h.categoryWayDim+=t)}),r.length&&(u.itemName=r),a.length)&&(u.seriesName=a),u}function Aa(t){if(!t.get("data",!0))return sn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},cm).models[0]}function Da(t,e){function i(t){var e=b(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?ww.Might:ww.Not:e&&"-"!==t?ww.Must:void 0}var n,o,r,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,h=t.dimensionsDefine,u=t.startIndex,c=e;if(!I(a)){if(h&&(M(h=h[c])?(o=h.name,r=h.type):b(h)&&(o=h)),null!=r)return"ordinal"===r?ww.Must:ww.Not;if(s===fw){var p=a;if(l===xw){for(var d=p[c],f=0;f<(d||[]).length&&f<5;f++)if(null!=(n=i(d[u+f])))return n}else for(f=0;f<p.length&&f<5;f++){var g=p[u+f];if(g&&null!=(n=i(g[c])))return n}}else if(s===gw){var y=a;if(!o)return ww.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(n=i(v[o])))return n}else if(s===yw){if(h=a,!o)return ww.Not;if(!(d=h[o])||I(d))return ww.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(n=i(d[f])))return n}else if(s===dw)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=qi(v=m[f]);if(!x(_))return ww.Not;if(null!=(n=i(_[c])))return n}}return ww.Not}function Pa(){}function Oa(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}function La(){return null!==uw&&uw.apply(this,arguments)||this}function Ea(t,e,i){var n,o;return x(e)?(n=X(),f(e,function(t){null!=t&&null!=$i(t,null)&&n.set(t,!0)}),m(i,function(e){return e&&n.get(e[t])})):(o=$i(e,null),m(i,function(e){return e&&null!=o&&e[t]===o}))}function Ra(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function Na(t){var e=X();return t&&f(Ui(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Ba(t){f(Dw,function(e){this[e]=$f(t[e],t)},this)}function za(){this._coordinateSystems=[]}function Fa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Va(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=Bw.length;i<n;i++){var o=Bw[i],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?s(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?s(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function Ya(t,e,i){var n,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(n=t[e].normal,o=t[e].emphasis,n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function Ha(t){Ya(t,"itemStyle"),Ya(t,"lineStyle"),Ya(t,"areaStyle"),Ya(t,"label"),Ya(t,"labelLine"),Ya(t,"upperLabel"),Ya(t,"edgeLabel")}function Wa(t,e){var i=Nw(t)&&t[e],n=Nw(i)&&i.textStyle;if(n)for(var o=0,r=hm.length;o<r;o++){var a=hm[o];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Xa(t){t&&(Ha(t),Wa(t,"label"),t.emphasis)&&Wa(t.emphasis,"label")}function Ga(t){return x(t)?t:t?[t]:[]}function Ua(t){return(x(t)?t[0]:t)||{}}function ja(t,e){Rw(Ga(t.series),function(t){if(Nw(t)&&Nw(t)){Va(t),Ha(t),Wa(t,"label"),Wa(t,"upperLabel"),Wa(t,"edgeLabel"),t.emphasis&&(Wa(t.emphasis,"label"),Wa(t.emphasis,"upperLabel"),Wa(t.emphasis,"edgeLabel"));var e=t.markPoint,i=(e&&(Va(e),Xa(e)),t.markLine),n=(i&&(Va(i),Xa(i)),t.markArea),o=(n&&Xa(n),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!I(r))for(var a=0;a<r.length;a++)Xa(r[a]);f(t.categories,function(t){Ha(t)})}if(o&&!I(o))for(a=0;a<o.length;a++)Xa(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Xa(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)x(l[a])?(Xa(l[a][0]),Xa(l[a][1])):Xa(l[a]);"gauge"===t.type?(Wa(t,"axisLabel"),Wa(t,"title"),Wa(t,"detail")):"treemap"===t.type?(Ya(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ha(t)})):"tree"===t.type&&Ha(t.leaves)}});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),Rw(i,function(e){Rw(Ga(t[e]),function(t){t&&(Wa(t,"axisLabel"),Wa(t.axisPointer,"label"))})}),Rw(Ga(t.parallel),function(t){t=t&&t.parallelAxisDefault,Wa(t,"axisLabel"),Wa(t&&t.axisPointer,"label")}),Rw(Ga(t.calendar),function(t){Ya(t,"itemStyle"),Wa(t,"dayLabel"),Wa(t,"monthLabel"),Wa(t,"yearLabel")}),Rw(Ga(t.radar),function(t){Wa(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)}),Rw(Ga(t.geo),function(t){Nw(t)&&(Xa(t),Rw(Ga(t.regions),function(t){Xa(t)}))}),Rw(Ga(t.timeline),function(t){Xa(t),Ya(t,"label"),Ya(t,"itemStyle"),Ya(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){M(t)&&(Ya(t,"label"),Ya(t,"itemStyle"))})}),Rw(Ga(t.toolbox),function(t){Ya(t,"iconStyle"),Rw(t.feature,function(t){Ya(t,"iconStyle")})}),Wa(Ua(t.axisPointer),"label"),Wa(Ua(t.tooltip).axisPointer,"label")}function qa(t){t&&f(zw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Za(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<Vw.length;i++){var n=Vw[i][1],o=Vw[i][0];null!=e[n]&&(e[o]=e[n])}}function Ka(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Qa(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function $a(t,e){ja(t,e),t.series=Ui(t.series),f(t.series,function(t){if(M(t)){var e,i=t.type;if("line"===i)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===i||"gauge"===i){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Ka(t.label),(e=t.data)&&!I(e))for(var n=0;n<e.length;n++)Ka(e[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===i){var o=function(t,e){for(var i=e.split(","),n=t,o=0;o<i.length&&null!=(n=n&&n[i[o]]);o++);return n}(t,"pointer.color");if(null!=o){for(var r,a=t,s="itemStyle.color",l=s.split(","),u=a,c=0;c<l.length-1;c++)null==u[r=l[c]]&&(u[r]={}),u=u[r];null!=u[l[c]]||(u[l[c]]=o)}}else if("bar"===i){if(Za(t),Za(t.backgroundStyle),Za(t.emphasis),(e=t.data)&&!I(e))for(n=0;n<e.length;n++)"object"==typeof e[n]&&(Za(e[n]),Za(e[n]&&e[n].emphasis))}else"sunburst"===i?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Qa(t),function t(e,i){if(e)for(var n=0;n<e.length;n++)i(e[n]),e[n]&&t(e[n].children,i)}(t.data,Qa)):"graph"===i||"sankey"===i?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===i&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&h(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),qa(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(Fw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){qa(t)})})}function Ja(t){f(t,function(e,i){var n=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,function(r,h,u){var c,p,d=a.get(e.stackedDimension,u);if(isNaN(d))return o;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f,g,y,m=NaN,v=i-1;0<=v;v--){var _=t[v];if(0<=(p=s?p:_.data.rawIndexOf(_.stackedByDimension,c))&&(_=_.data.getByRawIndex(_.stackResultDimension,p),"all"===l||"positive"===l&&0<_||"negative"===l&&_<0||"samesign"===l&&0<=d&&0<_||"samesign"===l&&d<=0&&_<0)){f=d,g=_,y=void 0,y=Math.max(Pi(f),Pi(g)),f+=g,d=am<y?f:Di(f,y),m=_;break}}return n[0]=d,n[1]=m,n})})}function ts(t){return t instanceof Yw}function es(t,e,i){i=i||ns(t);var n=e.seriesLayoutBy,o=function(t,e,i,n,o){var r,a;if(!t)return{dimensionsDefine:os(o),startIndex:a,dimensionsDetectedCount:r};var s;return e===fw?(s=t,"auto"===n||null==n?rs(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,s,10):a=T(n)?n:n?1:0,o||1!==a||(o=[],rs(function(t,e){o[e]=null!=t?t+"":""},i,s,1/0)),r=o?o.length:i===xw?s.length:s[0]?s[0].length:null):e===gw?o=o||function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e)return v(e)}(t):e===yw?o||(o=[],f(t,function(t,e){o.push(e)})):e===dw&&(n=qi(t[0]),r=x(n)&&n.length||1),{startIndex:a,dimensionsDefine:os(o),dimensionsDetectedCount:r}}(t,i,n,e.sourceHeader,e.dimensions);return new Yw({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:a(e)})}function is(t){return new Yw({data:t,sourceFormat:I(t)?mw:dw})}function ns(t){var e=vw;if(I(t))e=mw;else if(x(t)){0===t.length&&(e=fw);for(var i=0,n=t.length;i<n;i++){var o=t[i];if(null!=o){if(x(o)||I(o)){e=fw;break}if(M(o)){e=gw;break}}}}else if(M(t))for(var r in t)if(q(t,r)&&d(t[r])){e=yw;break}return e}function os(t){var e;if(t)return e=X(),g(t,function(t,i){var n,t={name:(t=M(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=e.get(t.name))?t.name+="-"+n.count++:e.set(t.name,{count:1})),t})}function rs(t,e,i,n){if(e===xw)for(var o=0;o<i.length&&o<n;o++)t(i[o]?i[o][0]:null,o);else for(var r=i[0]||[],o=0;o<r.length&&o<n;o++)t(r[o],o)}function as(t){return(t=t.sourceFormat)===gw||t===yw}function ss(t,e){var t=ts(t)?t:is(t),i=(this._source=t,this._data=t.data);t.sourceFormat===mw&&(this._offset=0,this._dimSize=e,this._data=i),Aw(this,i,t)}function ls(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function hs(t,e,i,n){return t[n]}function us(t,e){return Uw[gs(t,e)]}function cs(t,e,i){return t.length}function ps(t,e){return jw[gs(t,e)]}function ds(t,e,i){return t[e]}function fs(t){return qw[t]}function gs(t,e){return t===fw?t+"_"+e:t}function ys(t,e,i){if(t){var n,o,e=t.getRawDataItem(e);if(null!=e)return n=(o=t.getStore()).getSource().sourceFormat,null!=i?(t=t.getDimensionIndex(i),i=o.getDimensionProperty(t),fs(n)(e,t,i)):(o=e,n===dw?qi(e):o)}}function ms(){}function vs(t){var e,i;return M(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function _s(t){return new nb(t)}function xs(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ws(){return $w<Qw?$w++:null}function bs(){var t=$w%eb*Jw+Math.ceil($w/eb),t=Qw<=$w?null:t<tb?t:$w;return $w++,t}function Ss(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||T(t)||null==t||"-"===t?t:+Ni(t))||""===t?NaN:Number(t)}function Ts(t){return rb.get(t)}function Ms(t,e){T(e)||Xi(""),this._opFn=ab[t],this._rvalFloat=Vi(e)}function Cs(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 Is(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vi(e)}function ks(){}function As(t){return Es(t.sourceFormat)||Xi(""),t.data}function Ds(t){var e=t.sourceFormat,i=t.data;if(Es(e)||Xi(""),e===fw){for(var n=[],o=0,r=i.length;o<r;o++)n.push(i[o].slice());return n}if(e===gw){for(n=[],o=0,r=i.length;o<r;o++)n.push(l({},i[o]));return n}}function Ps(t,e,i){if(null!=i)return T(i)||!isNaN(i)&&!q(e,i)?t[i]:q(e,i)?e[i]:void 0}function Os(t){return a(t)}function Ls(t,e){var i=Ui(t),t=i.length;t||Xi("");for(var n=0,o=t;n<o;n++)e=function(t,e){e.length||Xi(""),M(t)||Xi("");var i=t.type,n=pb.get(i);return n||Xi(""),i=g(e,function(t){var e=t,t=n,i=new cb,o=e.data,r=i.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==_w&&Xi(""),[]),l={};if(c=e.dimensionsDefine)f(c,function(t,e){var i=t.name,e={index:e,name:i,displayName:t.displayName};s.push(e),null!=i&&(q(l,i)&&Xi(""),l[i]=e)});else for(var h=0;h<e.dimensionsDetectedCount;h++)s.push({index:h});var u=us(r,_w),c=(t.__isBuiltIn&&(i.getRawDataItem=function(t){return u(o,a,s,t)},i.getRawData=$f(As,null,e)),i.cloneRawData=$f(Ds,null,e),ps(r,_w)),p=(i.count=$f(c,null,o,a,s),fs(r)),d=(i.retrieveValue=function(t,e){return t=u(o,a,s,t),d(t,e)},i.retrieveValueFromItem=function(t,e){var i;return null!=t&&(i=s[e])?p(t,e,i.name):void 0});return i.getDimensionInfo=$f(Ps,null,s,l),i.cloneAllDimensionInfo=$f(Os,null,s),i}),g(Ui(n.transform({upstream:i[0],upstreamList:i,config:a(t.config)})),function(t,i){M(t)||Xi(""),t.data||Xi(""),Es(ns(t.data))||Xi("");var n=e[0],i=n&&0===i&&!t.dimensions?((i=n.startIndex)&&(t.data=n.data.slice(0,i).concat(t.data)),{seriesLayoutBy:_w,sourceHeader:i,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:_w,sourceHeader:0,dimensions:t.dimensions};return es(t.data,i,null)})}(i[n],e),n!==o-1&&(e.length=Math.max(e.length,1));return e}function Es(t){return t===fw||t===gw}function Rs(t){return 65535<t?db:fb}function Ns(){return[1/0,-1/0]}function Bs(t,e,i,n,o){if(i=yb[i||"float"],o){var r=t[e],a=r&&r.length;if(a!==n){for(var s=new i(n),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new i(n)}function zs(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}function Fs(t,e,i,n){return Ss(t[n],this._dimensions[n])}function Vs(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Ys(t){t.option.transform&&V(t.option.transform)}function Hs(t){return"series"===t.mainType}function Ws(t){throw new Error(t)}function Xs(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+yt(n+"")+"px;color:"+yt(i)+";font-weight:"+yt(o+""),valueStyle:"font-size:"+yt(a+"")+"px;color:"+yt(r)+";font-weight:"+yt(t+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}function Gs(t,e){return e.type=t,e}function Us(t){return"section"===t.type}function js(t){return Us(t)?qs:Zs}function qs(t,e,i,n){var o,r=e.noHeader,a=(h=function t(e){var i,n,o;return Us(e)?(i=0,n=e.blocks.length,o=1<n||0<n&&!e.noHeader,f(e.blocks,function(e){var n=t(e);i<=n&&(i=n+ +(o&&(!n||Us(e)&&!e.noHeader)))}),i):0}(e),{html:xb[h],richText:wb[h]}),s=[],h=e.blocks||[],u=(z(!h||x(h)),h=h||[],t.orderMode),c=(e.sortBlocks&&u&&(h=h.slice(),q(c={valueAsc:"asc",valueDesc:"desc"},u)?(o=new lb(c[u],null),h.sort(function(t,e){return o.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&h.reverse()),f(h,function(i,o){var r=e.valueFormatter,r=js(i)(r?l(l({},t),{valueFormatter:r}):t,i,0<o?a.html:0,n);null!=r&&s.push(r)}),"richText"===t.renderMode?s.join(a.richText):Qs(s.join(""),r?i:a.html));return r?c:(u=ga(e.header,"ordinal",t.useUTC),h=Xs(n,t.renderMode).nameStyle,"richText"===t.renderMode?$s(t,u,h)+a.richText+c:Qs('<div style="'+h+";"+_b+';">'+yt(u)+"</div>"+c,i))}function Zs(t,e,i,n){var o,r,a,s,l=t.renderMode,h=e.noName,u=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 ga(t,x(r)?r[e]:r,d)})};if(!h||!u)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":ga(p,"ordinal",d),r=e.valueType,f=u?[]:f(e.value,e.dataIndex),e=!c||!h,a=!c&&h,n=Xs(n,l),s=n.nameStyle,n=n.valueStyle,"richText"===l?(c?"":o)+(h?"":$s(t,p,s))+(u?"":function(t,e,i,n,o){return o=[o],n=n?10:20,i&&o.push({padding:[0,0,0,n],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,o)}(t,f,e,a,n)):Qs((c?"":o)+(h?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+yt(p)+"</span>")+(u?"":function(t,e,i,n){return i=i?"10px":"20px",e=e?"float:right;margin-left:"+i:"",t=x(t)?t:[t],'<span style="'+e+";"+n+'">'+g(t,yt).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,n)),i)}function Ks(t,e,i,n,o,r){if(t)return js(t)({useUTC:o,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Qs(t,e){return'<div style="margin: '+e+"px 0 0;"+_b+';">'+t+'<div style="clear:both"></div></div>'}function $s(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function Js(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function tl(){this.richTextStyles={},this._nextStyleNameId=Hi()}function el(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(h?p.push(Gs("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(u.push(t),c.push(e.type)))}var i,n,o,r,a,s,l,h,u,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,_a((T=d).getData().getItemVisual(S,"style")[T.visualDrawType]));1<_||b&&!_?(T=w,r=g,a=v,s=S,l=d.getData(),h=y(T,function(t,e,i){return i=l.getDimensionInfo(i),t||i&&!1!==i.tooltip&&null!=i.displayName},!1),u=[],c=[],p=[],a.length?f(a,function(t){e(ys(l,r,t),t)}):f(T,e),i=(a={inlineValues:u,inlineValueTypes:c,blocks:p}).inlineValueTypes,n=a.blocks,o=(a=a.inlineValues)[0]):_?(T=m.getDimensionInfo(v[0]),o=a=ys(m,g,v[0]),i=T.type):o=a=b?w[0]:w;var _=Ji(d),v=_&&d.name||"",T=m.getName(g),b=t?v:T;return Gs("section",{header:v,noHeader:t||!_,sortParam:o,blocks:[Gs("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:i,dataIndex:g})].concat(n||[])})}function il(t,e){return t.getName(e)||t.getId(e)}function nl(){var t=null!==Tb&&Tb.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function ol(t){var e,i,n=t.name;Ji(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),i=[],f(t,function(t){t=e.getDimensionInfo(t),t.displayName&&i.push(t.displayName)}),i.join(" ")||n))}function rl(t){return t.model.getRawData().count()}function al(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),sl}function sl(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ll(t,e){f(G(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,_(hl,e))})}function hl(t,e){return t=ul(t),t&&t.setOutputEnd((e||this).count()),e}function ul(t){var e,i=(t.ecModel||{}).scheduler,i=i&&i.getPipeline(t.uid);if(i)return(i=i.currentTask)&&(e=i.agentStubMap)?e.get(t.uid):i}function cl(){this.group=new Jy,this.uid=jr("viewComponent")}function pl(){var t=on();return function(e){var i=t(e),e=e.pipelineContext,n=!!i.large,o=!!i.progressiveRender,r=i.large=!(!e||!e.large),i=i.progressiveRender=!(!e||!e.progressiveRender);return!(n==r&&o==i)&&"reset"}}function dl(){this.group=new Jy,this.uid=jr("viewChart"),this.renderTask=_s({plan:yl,reset:ml}),this.renderTask.context={view:this}}function fl(t,e,i){t&&Lo(t)&&("emphasis"===e?mo:vo)(t,i)}function gl(t,e,i){var n,o=nn(t,e),r=e&&null!=e.highlightKey?(e=e.highlightKey,n=null==(n=Bv[e])&&Nv<=32?Bv[e]=Nv++:n):null;null!=o?f(Ui(o),function(e){fl(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){fl(t,i,r)})}function yl(t){return kb(t.model)}function ml(t){var e=t.model,i=t.ecModel,n=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Ib(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,i,n,o),Db[r]}function vl(t,e,i){function n(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function o(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];r=(new Date).getTime(),s=this,l=t;var d=h||e,f=h||i;h=null,a=r-(f?u:c)-d,clearTimeout(p),f?p=setTimeout(n,d):0<=a?n():p=setTimeout(n,-a),u=r}var r,a,s,l,h,u=0,c=0,p=null;return e=e||0,o.clear=function(){p&&(clearTimeout(p),p=null)},o.debounceNextCall=function(t){h=t},o}function _l(t,e,i,n){var o=t[e];if(o){var r=o[Pb]||o,a=o[Lb];if(o[Ob]!==i||a!==n){if(null==i||!n)return t[e]=r;(o=t[e]=vl(r,i,"debounce"===n))[Pb]=r,o[Lb]=n,o[Ob]=i}}}function xl(t,e){var i=t[e];i&&i[Pb]&&(i.clear&&i.clear(),t[e]=i[Pb])}function wl(t,e){return(t=t.visualStyleMapper||Rb[e])||(console.warn("Unknown style type '"+e+"'."),Rb.itemStyle)}function bl(t,e){return(t=t.visualDrawType||Nb[e])||(console.warn("Unknown style type '"+e+"'."),"fill")}function Sl(t,e,i,n){this._stageTaskMap=X(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}function Tl(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ml(t){return t.overallProgress&&Cl}function Cl(){this.agent.dirty(),this.getDownstream().dirty()}function Il(){this.agent&&this.agent.dirty()}function kl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Al(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Ui(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return Dl(e)}):Yb}function Dl(t){return function(e,i){var n=i.data,o=i.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(n,r);else o&&o.progress&&o.progress(e,n)}}function Pl(t){return t.data.count()}function Ol(t,e){for(var i in e.prototype)t[i]=Z}function Ll(){return{axisLine:{lineStyle:{color:Xb}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function El(){}function Rl(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Nl(t,e,i,n,o){var r=t+e;i.isSilent(r)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,a=t.seriesIndex,s=t.option.selectedMap,h=o.selected,u=0;u<h.length;u++)h[u].seriesIndex===a&&(n=nn(e=t.getData(),o.fromActionPayload),i.trigger(r,{type:r,seriesId:t.id,name:x(n)?e.getName(n[0]):e.getName(n),selected:b(s)?s:l({},s)}))})}function Bl(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function zl(){this._id="__ec_inner_"+qb++}function Fl(t,e){var i;"image"!==this.type&&(i=this.style,this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw())}function Vl(t,e,i,n,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?_r(t.slice(8),new Og(e,i,n,o),a?"center":"cover"):0===t.indexOf("path://")?vr(t.slice(7),{},new Og(e,i,n,o),a?"center":"cover"):new nS({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=s,a.setColor=Fl,r&&a.setColor(r),a}function Yl(t,e){if(null!=t)return[Ai((t=x(t)?t:[t,t])[0],e[0])||0,Ai(E(t[1],t[0]),e[1])||0]}function Hl(t){return isFinite(t)}function Wl(t,e,i){for(var n,o,r,a,s,l,h,u,c,p="radial"===e.type?(n=t,o=e,a=(r=i).width,s=r.height,l=Math.min(a,s),h=null==o.x?.5:o.x,u=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(h=h*a+r.x,u=u*s+r.y,c*=l),h=Hl(h)?h:.5,u=Hl(u)?u:.5,c=0<=c&&Hl(c)?c:.5,n.createRadialGradient(h,u,0,h,u,c)):(o=t,a=i,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,n=null==s.y?0:s.y,h=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,n=n*a.height+a.y,h=h*a.height+a.y),r=Hl(r)?r:0,l=Hl(l)?l:1,n=Hl(n)?n:0,h=Hl(h)?h:0,o.createLinearGradient(r,n,l,h)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Xl(t){return parseInt(t,10)}function Gl(t,e,i){var n=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=i[n]&&"auto"!==i[n]?parseFloat(i[n]):(i=document.defaultView.getComputedStyle(t),(t[o]||Xl(i[n])||Xl(t.style[n]))-(Xl(i[r])||0)-(Xl(i[e])||0)|0)}function Ul(t){var e,i=t.style,n=i.lineDash&&0<i.lineWidth&&(o=i.lineDash,n=i.lineWidth,o&&"solid"!==o&&0<n?"dashed"===o?[4*n,2*n]:"dotted"===o?[n]:T(o)?[o]:x(o)?o:null:null),o=i.lineDashOffset;return n&&(e=i.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(n=g(n,function(t){return t/e}),o/=e),[n,o]}function jl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function ql(t){return"string"==typeof t&&"none"!==t}function Zl(t){return null!=(t=t.fill)&&"none"!==t}function Kl(t,e){var i;null!=e.fillOpacity&&1!==e.fillOpacity?(i=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i):t.fill()}function Ql(t,e){var i;null!=e.strokeOpacity&&1!==e.strokeOpacity?(i=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i):t.stroke()}function $l(t,e,i){var i=vn(e.image,e.__image,i);if(xn(i))return t=t.createPattern(i,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((i=new DOMMatrix).translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*ng),i.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(i)),t}function Jl(t,e,i,n,o){var r,a=!1;if(!n&&e===(i=i||{}))return!1;!n&&e.opacity===i.opacity||(ih(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Mm.opacity:r),!n&&e.blend===i.blend||(a||(ih(t,o),a=!0),t.globalCompositeOperation=e.blend||Mm.blend);for(var s=0;s<rS.length;s++){var l=rS[s];!n&&e[l]===i[l]||(a||(ih(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!n&&e.shadowColor===i.shadowColor||(a||(ih(t,o),a=!0),t.shadowColor=e.shadowColor||Mm.shadowColor),a}function th(t,e,i,n,o){var r=nh(e,o.inHover),a=n?null:i&&nh(i,o.inHover)||{};if(r!==a){var s=Jl(t,r,a,n,o);(n||r.fill!==a.fill)&&(s||(ih(t,o),s=!0),ql(r.fill))&&(t.fillStyle=r.fill),(n||r.stroke!==a.stroke)&&(s||(ih(t,o),s=!0),ql(r.stroke))&&(t.strokeStyle=r.stroke),!n&&r.opacity===a.opacity||(s||(ih(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(i=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==i)&&(s||(ih(t,o),s=!0),t.lineWidth=i);for(var l=0;l<aS.length;l++){var h=aS[l],u=h[0];!n&&r[u]===a[u]||(s||(ih(t,o),s=!0),t[u]=r[u]||h[1])}}}function eh(t,e){var e=e.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)}function ih(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function nh(t,e){return e&&t.__hoverStyle||t.style}function oh(t,e){rh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function rh(t,e,i,n){var o=e.transform;if(e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){var r=e.__clipPaths,a=i.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 i=0;i<t.length;i++)if(t[i]!==e[i])return 1}}(r,a)){if(a&&a.length&&(ih(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),r&&r.length){ih(t,i),t.save();for(var h=r,u=t,a=i,c=!1,p=0;p<h.length;p++){var d=h[p],c=c||d.isZeroArea();eh(u,d),u.beginPath(),d.buildPath(u,d.shape),u.clip()}a.allClipped=c,s=!0}i.prevElClipPaths=r}if(i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,T,M,C,I,k,A,D,P,O,L,E,R,N,a=i.prevEl,B=(a||(l=s=!0),e instanceof yv&&e.autoBatch&&(r=e.style,B=Zl(r),f=jl(r),!(r.lineDash||!(+B^+f)||B&&"string"!=typeof r.fill||f&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1))),s=(s||(f=o,r=a.transform,f&&r?f[0]!==r[0]||f[1]!==r[1]||f[2]!==r[2]||f[3]!==r[3]||f[4]!==r[4]||f[5]!==r[5]:f||r)?(ih(t,i),eh(t,e)):B||ih(t,i),nh(e,i.inHover));if(e instanceof yv)i.lastDrawType!==sS&&(l=!0,i.lastDrawType=sS),th(t,e,a,l,i),B&&(i.batchFill||i.batchStroke)||t.beginPath(),o=t,r=e,H=B,k=jl(m=s),A=Zl(m),D=m.strokePercent,P=D<1,O=!r.path,r.silent&&!P||!O||r.createPathProxy(),L=r.path||oS,E=r.__dirty,H||(v=m.fill,N=m.stroke,_=A&&!!v.colorStops,x=k&&!!N.colorStops,w=A&&!!v.image,b=k&&!!N.image,R=C=M=T=S=void 0,(_||x)&&(R=r.getBoundingRect()),_&&(S=E?Wl(o,v,R):r.__canvasFillGradient,r.__canvasFillGradient=S),x&&(T=E?Wl(o,N,R):r.__canvasStrokeGradient,r.__canvasStrokeGradient=T),w&&(M=E||!r.__canvasFillPattern?$l(o,v,r):r.__canvasFillPattern,r.__canvasFillPattern=M),b&&(C=E||!r.__canvasStrokePattern?$l(o,N,r):r.__canvasStrokePattern,r.__canvasStrokePattern=M),_?o.fillStyle=S:w&&(M?o.fillStyle=M:A=!1),x?o.strokeStyle=T:b&&(C?o.strokeStyle=C:k=!1)),R=r.getGlobalScale(),L.setScale(R[0],R[1],r.segmentIgnoreThreshold),o.setLineDash&&m.lineDash&&(I=(v=Ul(r))[0],Y=v[1]),N=!0,(O||E&Xg)&&(L.setDPR(o.dpr),P?L.setContext(null):(L.setContext(o),N=!1),L.reset(),r.buildPath(L,r.shape,H),L.toStatic(),r.pathUpdated()),N&&L.rebuildPath(o,P?D:1),I&&(o.setLineDash(I),o.lineDashOffset=Y),H||(m.strokeFirst?(k&&Ql(o,m),A&&Kl(o,m)):(A&&Kl(o,m),k&&Ql(o,m))),I&&o.setLineDash([]),B&&(i.batchFill=s.fill||"",i.batchStroke=s.stroke||"");else if(e instanceof vv)i.lastDrawType!==hS&&(l=!0,i.lastDrawType=hS),th(t,e,a,l,i),_=t,S=e,null!=(M=(w=s).text)&&(M+=""),M&&(_.font=w.font||Nf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,T=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Ul(S))[0],T=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=T),w.strokeFirst?(jl(w)&&_.strokeText(M,w.x,w.y),Zl(w)&&_.fillText(M,w.x,w.y)):(Zl(w)&&_.fillText(M,w.x,w.y),jl(w)&&_.strokeText(M,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof bv)i.lastDrawType!==lS&&(l=!0,i.lastDrawType=lS),b=a,C=l,Jl(t,nh(e,(R=i).inHover),b&&nh(b,R.inHover),C,R),v=t,O=s,(r=(E=e).__image=vn(O.image,E.__image,E,E.onload))&&xn(r)&&(N=O.x||0,L=O.y||0,P=E.getWidth(),E=E.getHeight(),D=r.width/r.height,null==P&&null!=E?P=E*D:null==E&&null!=P?E=P/D:null==P&&null==E&&(P=r.width,E=r.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(r,g,y,O.sWidth,O.sHeight,N,L,P,E)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(r,g,y,P-g,E-y,N,L,P,E)):v.drawImage(r,N,L,P,E));else if(e.getTemporalDisplayables){i.lastDrawType!==uS&&(l=!0,i.lastDrawType=uS);var z,F,V=t,Y=e,H=i,W=Y.getDisplayables(),X=Y.getTemporalDisplayables(),G=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:H.viewWidth,viewHeight:H.viewHeight,inHover:H.inHover});for(z=Y.getCursor(),F=W.length;z<F;z++)(U=W[z]).beforeBrush&&U.beforeBrush(),U.innerBeforeBrush(),rh(V,U,G,z===F-1),U.innerAfterBrush(),U.afterBrush&&U.afterBrush(),G.prevEl=U;for(var U,j=0,q=X.length;j<q;j++)(U=X[j]).beforeBrush&&U.beforeBrush(),U.innerBeforeBrush(),rh(V,U,G,j===q-1),U.innerAfterBrush(),U.afterBrush&&U.afterBrush(),G.prevEl=U;Y.clearTemporalDisplayables(),Y.notClear=!0,V.restore()}B&&n&&ih(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(i.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Wg,e.__isRendered=!1}function ah(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),o="svg"===n.painter.type,e=(t.dirty&&cS.delete(t),cS.get(t));if(e)return e;for(var r,a=h(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=[i],u=!0,c=0;c<dS.length;++c){var p=a[dS[c]];if(null!=p&&!x(p)&&!b(p)&&!T(p)&&"boolean"!=typeof p){u=!1;break}l.push(p)}u&&(r=l.join(",")+(o?"-svg":""),w=pS.get(r))&&(o?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(T(e))return[[r=Math.ceil(e),r]];for(var i=!0,n=0;n<e.length;++n)if(!T(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n){var r;T(e[n])?(r=Math.ceil(e[n]),o.push([r,r])):(r=g(e[n],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(T(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 i=!0,n=0;n<e.length;++n)if(!b(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n)b(e[n])?o.push([e[n]]):o.push(e[n]);return o}(a.symbol),v=function(t){return g(t,sh)}(f),_=sh(y),w=!o&&zf.createCanvas(),S=o&&{tag:"g",attrs:{},key:"dcl",children:[]},M=function(){for(var t=1,e=0,i=v.length;e<i;++e)t=Wi(t,v[e]);for(var n=1,e=0,i=m.length;e<i;++e)n=Wi(n,m[e].length);t*=n;var o=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();w&&(w.width=M.width*i,w.height=M.height*i,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 C=0,I=0;I<y.length;++I)C+=y[I];if(!(C<=0))for(var k=-_,A=0,D=0,P=0;k<M.height;){if(A%2==0){for(var O=D/2%m.length,L=0,E=0,R=0;L<2*M.width;){for(var N,B,z,F,V,Y=0,I=0;I<f[P].length;++I)Y+=f[P][I];if(Y<=0)break;E%2==0&&(B=.5*(1-a.symbolSize),N=L+f[P][E]*B,B=k+y[A]*B,z=f[P][E]*a.symbolSize,F=y[A]*a.symbolSize,V=R/2%m[O].length,function(t,e,r,s,l){var h=o?1:i,l=Vl(l,t*h,e*h,r*h,s*h,a.color,a.symbolKeepAspect);o?(t=n.painter.renderOneToVNode(l))&&S.children.push(t):oh(d,l)}(N,B,z,F,m[O][V])),L+=f[P][E],++R,++E===f[P].length&&(E=0)}++P===f.length&&(P=0)}k+=y[A],++D,++A===y.length&&(A=0)}return u&&pS.put(r,w||S),s.image=w,s.svgElement=S,s.svgWidth=M.width,s.svgHeight=M.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/i,cS.set(t,e),t.dirty=!1,e}function sh(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function lh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(!this.isDisposed())return uh(this,t,e);this.id}}function hh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return uh(this,t,e)}}function uh(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),ug.prototype[e].apply(t,i)}function ch(){return null!==wS&&wS.apply(this,arguments)||this}function ph(t,e,i){function n(t,e){return t.__prio-e.__prio}var o=VS.call(this,new Gb)||this,t=(o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},b(e)&&(e=ZS[e]),o._dom=t,i.ssr&&Ii(function(t){var e,t=Rv(t),i=t.dataIndex;if(null!=i)return(e=X()).set("series_index",t.seriesIndex),e.set("data_index",i),t.ssrType&&e.set("ssr_type",t.ssrType),e}),o._zr=Ti(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:E(i.useDirtyRect,!1),useCoarsePointer:E(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize})),i=(o._ssr=i.ssr,o._throttledZrFlush=vl($f(t.flush,t),17),(e=a(e))&&$a(e,!0),o._theme=e,o._locale=b(e=i.locale||Fx)?(i=Bx[e.toUpperCase()]||{},e===Ex||e===Rx?a(i):s(a(i),a(Bx[Nx]),!1)):s(a(e),a(Bx[Nx]),!1),o._coordSysMgr=new Ow,o._api=NS(o));return Wt(qS,n),Wt(US,n),o._scheduler=new Vb(o,i,US,qS),o._messageCenter=new YS,o._initEvents(),o.resize=$f(o.resize,o),t.animation.on("frame",o._onframe,o),PS(t,o),OS(t,o),V(o),o}function dh(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function fh(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var o=i[n];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Hv&&t.states.emphasis?e.push("emphasis"):t.hoverState===Yv&&t.states.blur&&e.push("blur"),t.useStates(e)}function gh(t,e){var i,n;t.preventAutoZ||(i=t.get("z")||0,n=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,i,n,o){var r=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),h=0;h<l.length;h++)o=Math.max(t(l[h],i,n,o),o);else e.z=i,e.zlevel=n,o=Math.max(e.z2,o);return r&&(r.z=i,r.zlevel=n,isFinite(o))&&(r.z2=o+2),a&&(s=e.textGuideLineConfig,a.z=i,a.zlevel=n,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1)),o}(t,i,n,-1/0),!0}))}function yh(t,e){e.eachRendered(function(t){var e,i;cr(t)||(e=t.getTextContent(),i=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function mh(t,e){var i=t.getModel("stateAnimation"),n=t.isAnimationEnabled(),t=i.get("duration"),o=0<t?{duration:t,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){var e,i,r;t.states&&t.states.emphasis&&(cr(t)||(t instanceof yv&&((r=zv(i=t)).normalFill=i.style.fill,r.normalStroke=i.style.stroke,i=i.states.select||{},r.selectFill=i.style&&i.style.fill||null,r.selectStroke=i.style&&i.style.stroke||null),t.__dirty&&(r=t.prevStates)&&t.useStates(r),n&&(t.stateTransition=o,i=t.getTextContent(),e=t.getTextGuideLine(),i&&(i.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&fh(t)))})}function vh(t){$S[t]=!1}function _h(t){return QS[(e=eT,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function xh(t,e){ZS[t]=e}function wh(t){u(jS,t)<0&&jS.push(t)}function bh(t,e){Dh(US,t,e,2e3)}function Sh(t){Mh("afterinit",t)}function Th(t){Mh("afterupdate",t)}function Mh(t,e){fS.on(t,e)}function Ch(t,e,i){w(e)&&(i=e,e="");var n=M(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,GS[e]||(z(_S.test(n)&&_S.test(e)),XS[n]||(XS[n]={action:i,actionInfo:t}),GS[e]=n)}function Ih(t,e){Ow.register(t,e)}function kh(t,e){Dh(qS,t,e,1e3,"layout")}function Ah(t,e){Dh(qS,t,e,3e3,"visual")}function Dh(t,e,i,n,o){(w(e)||M(e))&&(i=e,e=n),0<=u(iT,i)||(iT.push(i),(n=Vb.wrapStageHandler(i,o)).__prio=e,n.__raw=i,t.push(n))}function Ph(t,e){KS[t]=e}function Oh(t,e,i){var n=gS.registerMap;n&&n(t,e,i)}function Lh(t){var e=(t=a(t)).type,i=(e||Xi(""),e.split(":")),n=(2!==i.length&&Xi(""),!1);"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,pb.set(e,t)}function Eh(t){return null==t?0:t.length||1}function Rh(t){return t}function Nh(t,e,i,n,o,r){this._old=t,this._new=e,this._oldKeyGetter=i||Rh,this._newKeyGetter=n||Rh,this.context=o,this._diffModeMultiple="multiple"===r}function Bh(t,e){this._encode=t,this._schema=e}function zh(t,e){var i={},n=i.encode={},o=X(),r=[],a=[],s={},l=(f(t.dimensions,function(e){var i,l,h=t.getDimensionInfo(e),u=h.coordDim;u&&(i=h.coordDimIndex,Fh(n,u)[i]=e,h.isExtraCoord||(o.set(u,1),"ordinal"!==(l=h.type)&&"time"!==l&&(r[0]=e),Fh(s,u)[i]=t.getDimensionIndex(h.name)),h.defaultTooltip)&&a.push(e),pw.each(function(t,e){var i=Fh(n,e),e=h.otherDims[e];null!=e&&!1!==e&&(i[e]=h.name)})}),[]),h={},u=(o.each(function(t,e){var i=n[e];h[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=h,n.label),u=(u&&u.length&&(r=u.slice()),n.tooltip);return u&&u.length?a=u.slice():a.length||(a=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=a,i.userOutput=new cT(s,e),i}function Fh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Vh(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Yh(t){return t instanceof gT}function Hh(t){for(var e=X(),i=0;i<(t||[]).length;i++){var n=t[i],n=M(n)?n.name:n;null!=n&&null==e.get(n)&&e.set(n,i)}return e}function Wh(t){var e=dT(t);return e.dimNameMap||(e.dimNameMap=Hh(t.dimensionsDefine))}function Xh(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 i,n,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(Yh(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,i=t),i=i||["x","y"],{}),a=[],s={},l=!1,h={},u=0;u<i.length;u++){var c=i[u],c=b(c)?new pT({name:c}):c instanceof pT?c:new pT(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!=h[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),o&&(c.storeDimIndex=u)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(n=this._dimIdxToName=X(),f(a,function(t){n.set(r[t].storeDimIndex,t)}))}function Gh(t,e){function i(t){var e,i,n,o=x[t];return o<0?(e=M(e=u[t])?e:{name:e},i=new pT,null!=(n=e.name)&&null!=m.get(n)&&(i.name=i.displayName=n),null!=e.type&&(i.type=e.type),null!=e.displayName&&(i.displayName=e.displayName),x[t]=p.length,i.storeDimIndex=t,p.push(i),i):p[o]}function n(t,e,i){null!=pw.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,c.set(e,!0))}function o(t){null==t.name&&(t.name=t.coordDim)}ts(t)||(t=is(t));for(var r,a,s=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],c=X(),p=[],d=(g=t,r=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,r.length,u.length,v||0),f(r,function(t){M(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=u===t.dimensionsDefine,m=y?Wh(t):Hh(u),v=e.encodeDefine,_=X(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new gb(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)i(w);_.each(function(t,e){var o,t=Ui(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(o=_.set(e,[]),f(t,function(t,r){null!=(t=b(t)?m.get(t):t)&&t<d&&n(i(o[r]=t),e,r)}))});var S=0;f(s,function(t){b(t)?(a=t,r={}):(a=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=l({},r)).ordinalMeta=t,e=r.dimsDef,o=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var e,o,r,a,s=_.get(a);if(!1!==s){if(!(s=Ui(s)).length)for(var u=0;u<(e&&e.length||1);u++){for(;S<d&&null!=i(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=i(t),y&&null!=r.type&&(t.type=r.type),n(h(t,r),a,s),null==t.name&&e&&(M(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),o&&h(t.otherDims,o)})}});var T=e.generateCoord,C=null!=(I=e.generateCoordCount),I=T?I||1:0,k=T||"value";if(g)f(p,function(t){o(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var A=0;A<d;A++){var D=i(A);null==D.coordDim&&(D.coordDim=function(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}(k,c,C),D.coordDimIndex=0,(!T||I<=0)&&(D.isExtraCoord=!0),I--),o(D),null!=D.type||Da(t,A)!==ww.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}for(var P=p,O=X(),L=0;L<P.length;L++){var E=P[L],R=E.name,N=O.get(R)||0;0<N&&(E.name=R+(N-1)),N++,O.set(R,N)}return new gT({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Uh(t){return"category"===t.get("type")}function jh(t,e,i){var n,o,r,a,s,l,h,u,c,p=(i=i||{}).byIndex,d=i.stackedCoordDimension,g=(Yh(e.schema)?(o=e.schema,n=o.dimensions,r=e.store):n=e,!(!t||!t.get("stack")));return f(n,function(t,e){b(t)&&(n[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,h="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),u=s.coordDim,i=s.type,c=0,f(n,function(t){t.coordDim===u&&c++}),e={name:l,coordDim:u,coordDimIndex:c,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},t={name:h,coordDim:h,coordDimIndex:c+1,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(h,i),t.storeDimIndex=r.ensureCalculationDimension(l,i)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(n.push(e),n.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:h,stackResultDimension:l}}function qh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Zh(t,e){return qh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Kh(t,e,i){i=i||{};var n,o,r,a,s,l,h=e.getSourceManager(),u=!1,t=(t?(u=!0,n=is(t)):u=(n=h.getSource()).sourceFormat===dw,function(t){var e=t.get("coordinateSystem"),i=new bT(e);if(e=ST[e])return e(t,i,i.axisMap,i.categoryAxisMap),i}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=Ow.get(c),p=(p=o&&o.coordSysDims?g(o.coordSysDims,function(t){var e={name:t},t=o.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=i.useEncodeDefaulter,p=w(p)?p:p?_(ka,c,e):null,c={coordDimensions:c,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!u},p=Gh(n,c),d=(c=p.dimensions,r=i.createInvertedIndices,(a=t)&&f(c,function(t,e){var i=t.coordDim,i=a.categoryAxisMap.get(i);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),i=u?null:h.getSharedDataStore(p),t=jh(e,{schema:p,store:i}),c=new wT(p,e),p=(c.setCalculationInfo(t),null==d||(h=n).sourceFormat!==dw||x(qi(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(h.data||[])))?null:function(t,e,i,n){return n===d?i:this.defaultDimValueGetter(t,e,i,n)});return c.hasItemOption=!1,c.initData(u?n:i,null,p),c}function Qh(t){this._setting=t||{},this._extent=[1/0,-1/0]}function $h(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++MT}function Jh(t){return M(t)&&null!=t.value?t.value:t+""}function tu(t){return"interval"===t.type||"log"===t.type}function eu(t,e,i,n){var o={},r=t[1]-t[0],r=o.interval=Fi(r/e,!0),e=(null!=i&&r<i&&(r=o.interval=i),null!=n&&n<r&&(r=o.interval=n),o.intervalPrecision=nu(r)),i=o.niceTickExtent=[Di(Math.ceil(t[0]/r)*r,e),Di(Math.floor(t[1]/r)*r,e)];return n=i,r=t,isFinite(n[0])||(n[0]=r[0]),isFinite(n[1])||(n[1]=r[1]),ou(n,0,r),ou(n,1,r),n[0]>n[1]&&(n[0]=n[1]),o}function iu(t){var e=Math.pow(10,zi(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Di(t*e)}function nu(t){return Pi(t)+2}function ou(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function ru(t,e){return t>=e[0]&&t<=e[1]}function au(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function su(t,e){return t*(e[1]-e[0])+e[0]}function lu(t){var t=IT.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new CT({}))&&(e=new CT({categories:g(e,function(t){return M(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function hu(){var t=null!==AT&&AT.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function uu(t){return x(t)?OT?new Float32Array(t):t:new LT(t)}function cu(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function pu(t){return t.dim+t.index}function du(t,e){var i=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&i.push(t)}),i}function fu(t){var e,i,n=function(t){var e,i={},n=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,o=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),a=0,s=r.count();a<s;++a){var l=r.get(o,a);i[n]?i[n].push(l):i[n]=[l]}}),{});for(e in i)if(i.hasOwnProperty(e)){var o=i[e];if(o){o.sort(function(t,e){return t-e});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];0<s&&(r=null===r?s:Math.min(r,s))}n[e]=r}}return n}(t),o=[];return f(t,function(t){var e,i,r=t.coordinateSystem.getBaseAxis(),a=r.getExtent(),s=(e="category"===r.type?r.getBandWidth():"value"===r.type||"time"===r.type?(e=r.dim+"_"+r.index,e=n[e],s=Math.abs(a[1]-a[0]),i=r.scale.getExtent(),i=Math.abs(i[1]-i[0]),e?s/i*e:s):(i=t.getData(),Math.abs(a[1]-a[0])/i.count()),Ai(t.get("barWidth"),e)),a=Ai(t.get("barMaxWidth"),e),l=Ai(t.get("barMinWidth")||((i=t).pipelineContext&&i.pipelineContext.large?.5:1),e),h=t.get("barGap"),u=t.get("barCategoryGap");o.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:h,barCategoryGap:u,axisKey:pu(r),stackId:cu(t)})}),e={},f(o,function(t,i){var n=t.axisKey,o=t.bandWidth,o=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=o.stacks,n=(e[n]=o,t.stackId),a=(r[n]||o.autoWidthCount++,r[n]=r[n]||{width:0,maxWidth:0},t.barWidth),a=(a&&!r[n].width&&(r[n].width=a,a=Math.min(o.remainedWidth,a),o.remainedWidth-=a),t.barMaxWidth),a=(a&&(r[n].maxWidth=a),t.barMinWidth),r=(a&&(r[n].minWidth=a),t.barGap),n=(null!=r&&(o.gap=r),t.barCategoryGap);null!=n&&(o.categoryGap=n)}),i={},f(e,function(t,e){i[e]={};var n,o=t.stacks,r=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(o).length,a=Math.max(35-4*s,15)+"%"),Ai(a,r)),l=Ai(t.gap,1),h=t.remainedWidth,u=t.autoWidthCount,c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),p=(f(o,function(t){var e,i=t.maxWidth,n=t.minWidth;t.width?(e=t.width,i&&(e=Math.min(e,i)),n&&(e=Math.max(e,n)),t.width=e,h-=e+l*e,u--):(e=c,i&&i<e&&(e=Math.min(i,h)),(e=n&&e<n?n:e)!==c&&(t.width=e,h-=e+l*e,u--))}),c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),0),d=(f(o,function(t,e){t.width||(t.width=c),p+=(n=t).width*(1+l)}),n&&(p-=n.width*l),-p/2);f(o,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),i}function gu(t){return t=ET.call(this,t)||this,t.type="time",t}function yu(t,e){return 30<(t/=e?Yx:Vx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function mu(){var t=null!==BT&&BT.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new PT,t._interval=0,t}function vu(t,e){return VT(t,Pi(e))}function _u(t,e,i){this._prepareParams(t,e,i)}function xu(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function wu(t,e){var i,n,o,r,a,s=t.type,l=(l=e,h=(u=t).getExtent(),(c=u.rawExtentInfo)||(c=new UT(u,l,h),u.rawExtentInfo=c),c.calculate()),h=(t.setBlank(l.isBlank),l.min),u=l.max,c=e.ecModel;return c&&"time"===s&&(t=du("bar",c),i=!1,f(t,function(t){i=i||t.getBaseAxis()===e.axis}),i)&&(s=fu(t),c=h,t=u,s=s,a=(a=(n=e).axis.getExtent())[1]-a[0],void 0!==(s=function(t,e,i){if(t&&e)return t=t[pu(e)],t}(s,n.axis))&&(o=1/0,f(s,function(t){o=Math.min(t.offset,o)}),r=-1/0,f(s,function(t){r=Math.max(t.offset+t.width,r)}),o=Math.abs(o),r=Math.abs(r),t+=r/(n=o+r)*(a=(s=t-c)/(1-(o+r)/a)-s),c-=o/n*a),h=(s={min:c,max:t}).min,u=s.max),{extent:[h,u],fixMin:l.minFixed,fixMax:l.maxFixed}}function bu(t,e){var i=wu(t,e),n=i.extent,o=e.get("splitNumber"),r=(t instanceof GT&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setExtent(n[0],n[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function Su(t,e){if(e=e||t.get("type"))switch(e){case"category":return new kT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new RT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(TT.getClass(e)||PT)}}function Tu(t){var e,i,n,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=o,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):b(o)?(i=o,function(e){return e=t.scale.getLabel(e),i.replace("{value}",null!=e?e:"")}):w(o)?(e=o,function(i,n){return null!=r&&(n=i.value-r),e(Mu(t,i),n,null!=i.level?{level:i.level}:null)}):function(e){return t.scale.getLabel(e)}}function Mu(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Cu(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,o,r=i.getExtent(),a=i instanceof kT?i.count():(n=i.getTicks()).length,s=t.getLabelModel(),l=Tu(t),h=1;40<a&&(h=Math.ceil(a/40));for(var u,c,p,d=0;d<a;d+=h){var f=l(n?n[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,u=s.get("rotate")||0,c=p=g=c=void 0,u=u*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(u))+Math.abs(g*Math.sin(u)),c=c*Math.abs(Math.sin(u))+Math.abs(g*Math.cos(u)),new Og(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function Iu(t){return t=t.get("interval"),null==t?"auto":t}function ku(t){return"category"===t.type&&0===Iu(t.getLabelModel())}function Au(){}function Du(t){x(t)?f(t,function(t){Du(t)}):0<=u(KT,t)||(KT.push(t),(t=w(t)?{install:t}:t).install(QT))}function Pu(t,e){return Math.abs(t-e)<$T}function Ou(t,e,i){var n=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];n+=Ln(o[0],o[1],a[0],a[1],e,i),o=a}var s=t[0];return Pu(o[0],s[0])&&Pu(o[1],s[1])||(n+=Ln(o[0],o[1],s[0],s[1],e,i)),0!==n}}function Lu(t,e){for(var i=0;i<t.length;i++)st(t[i],t[i],e)}function Eu(t,e,i,n){for(var o=0;o<t.length;o++){var r=t[o];(r=n?n.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(lt(e,e,r),ht(i,i,r))}}function Ru(t){this.name=t}function Nu(t,e,i){return t=tM.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=i&&[i[0],i[1]],t}function Bu(t,e){return t=eM.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function zu(t,e,i){for(var n=0;n<t.length;n++)t[n]=Fu(t[n],e[n],i)}function Fu(t,e,i){for(var n=[],o=e[0],r=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);n.push([(o=s+=o)/i,(r=l+=r)/i])}return n}function Vu(t,e){var i,n,o;return g(m((t=(i=t).UTF8Encoding?(null==(o=(n=i).UTF8Scale)&&(o=1024),f(n.features,function(t){var e=t.geometry,i=e.encodeOffsets,n=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Fu(n,i,o);break;case"Polygon":case"MultiLineString":zu(n,i,o);break;case"MultiPolygon":f(n,function(t,e){return zu(t,i[e],o)})}}),n.UTF8Encoding=!1,n):i).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var i=t.properties,n=t.geometry,o=[];switch(n.type){case"Polygon":var r=n.coordinates;o.push(new iM(r[0],r.slice(1)));break;case"MultiPolygon":f(n.coordinates,function(t){t[0]&&o.push(new iM(t[0],t.slice(1)))});break;case"LineString":o.push(new nM([n.coordinates]));break;case"MultiLineString":o.push(new nM(n.coordinates))}return t=new oM(i[e||"name"],o,i.cp),t.properties=i,t})}function Yu(t,e){return e=g(e,function(e){return t.scale.parse(e)}),"time"===t.type&&0<e.length&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Hu(t){var e,i,n,o,r,a=t.getLabelModel().get("customValues");return a?(e=Tu(t),{labels:Yu(t,a).map(function(i){var n={value:i};return{formattedLabel:e(n),rawLabel:t.scale.getLabel(n),tickValue:i}})}):"category"===t.type?(o=(a=t).getLabelModel(),r=Xu(a,o),!o.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(i=t).scale.getTicks(),n=Tu(i),{labels:g(o,function(t,e){return{level:t.level,formattedLabel:n(t,e),rawLabel:i.scale.getLabel(t),tickValue:t.value}})})}function Wu(t,e){var i,n,o,r,a,s=t.getTickModel().get("customValues");return s?{ticks:Yu(t,s)}:"category"===t.type?(s=e,o=Gu(e=t,"ticks"),r=Iu(s),(a=Uu(o,r))||(s.get("show")&&!e.scale.isBlank()||(i=[]),i=w(r)?Zu(e,r,!0):"auto"===r?(a=Xu(e,e.getLabelModel()),n=a.labelCategoryInterval,g(a.labels,function(t){return t.tickValue})):qu(e,n=r,!0),ju(o,r,{ticks:i,tickCategoryInterval:n}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Xu(t,e){var i,n=Gu(t,"labels"),e=Iu(e),o=Uu(n,e);return o||ju(n,e,{labels:w(e)?Zu(t,e):qu(t,i="auto"===e?null!=(n=rM(o=t).autoInterval)?n:rM(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:i})}function Gu(t,e){return rM(t)[e]||(rM(t)[e]=[])}function Uu(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function ju(t,e,i){return t.push({key:e,value:i}),i}function qu(t,e,i){function n(t){var e={value:t};l.push(i?t:{formattedLabel:o(e),rawLabel:r.getLabel(e),tickValue:t})}for(var o=Tu(t),r=t.scale,a=r.getExtent(),s=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),e=a[0],u=r.count(),u=(0!==e&&1<h&&2<u/h&&(e=Math.round(Math.ceil(e/h)*h)),ku(t)),t=s.get("showMinLabel")||u,s=s.get("showMaxLabel")||u,c=(t&&e!==a[0]&&n(a[0]),e);c<=a[1];c+=h)n(c);return s&&c-h!==a[1]&&n(a[1]),l}function Zu(t,e,i){var n=t.scale,o=Tu(t),r=[];return f(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&r.push(i?s:{formattedLabel:o(t),rawLabel:a,tickValue:s})}),r}function Ku(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}function Qu(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function $u(t,e,i,n,o,r,a,s){var l=o-t,h=r-e,i=i-t,n=n-e,u=Math.sqrt(i*i+n*n),l=(l*(i/=u)+h*(n/=u))/u,h=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=u)*i),s=a[1]=e+l*n;return Math.sqrt((h-o)*(h-o)+(s-r)*(s-r))}function Ju(t,e,i,n,o,r,a){return i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),i=t+i,n=e+n,t=a[0]=Math.min(Math.max(o,t),i),i=a[1]=Math.min(Math.max(r,e),n),Math.sqrt((t-o)*(t-o)+(i-r)*(i-r))}function tc(t,e,i){for(var n,o,r,a,s,l,h,u,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 lM.M:p=f=m[x++],d=g=m[x++];break;case lM.L:b=$u(p,d,m[x],m[x+1],v,_,uM,!0),p=m[x++],d=m[x++];break;case lM.C:b=te(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,uM),p=m[x++],d=m[x++];break;case lM.Q:b=re(p,d,m[x++],m[x++],m[x],m[x+1],v,_,uM),p=m[x++],d=m[x++];break;case lM.A:var S=m[x++],T=m[x++],M=m[x++],C=m[x++],I=m[x++],k=m[x++],A=(x+=1,!!(1-m[x++])),D=Math.cos(I)*M+S,P=Math.sin(I)*C+T;x<=1&&(f=D,g=P),P=(D=I)+k,A=A,a=(v-S)*(r=C)/M+S,s=_,l=uM,c=u=h=void 0,a-=n=S,s-=o=T,h=Math.sqrt(a*a+s*s),u=(a/=h)*r+n,c=(s/=h)*r+o,b=Math.abs(D-P)%sM<1e-4||((P=A?(A=D,D=On(P),On(A)):(D=On(D),On(P)))<D&&(P+=sM),(A=Math.atan2(s,a))<0&&(A+=sM),D<=A&&A<=P)||D<=A+sM&&A+sM<=P?(l[0]=u,l[1]=c,h-r):(c=((A=r*Math.cos(D)+n)-a)*(A-a)+((u=r*Math.sin(D)+o)-s)*(u-s))<(n=((h=r*Math.cos(P)+n)-a)*(h-a)+((D=r*Math.sin(P)+o)-s)*(D-s))?(l[0]=A,l[1]=u,Math.sqrt(c)):(l[0]=h,l[1]=D,Math.sqrt(n)),p=Math.cos(I+k)*M+S,d=Math.sin(I+k)*C+T;break;case lM.R:b=Ju(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,uM);break;case lM.Z:b=$u(p,d,f,g,v,_,uM,!0),p=f,d=g}b<y&&(y=b,i.set(uM[0],uM[1]))}return y}function ec(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||hM,s=n.getBoundingRect().clone(),l=(s.applyTransform(n.getComputedTransform()),1/0),h=o.anchor,u=t.getComputedTransform(),c=u&&Dt([],u),p=e.get("length2")||0;h&&dM.copy(h);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=cM,w=fM,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)}Sg.scaleAndAdd(pM,cM,fM,p),pM.transform(c),y=t.getBoundingRect(),y=h?h.distance(pM):t instanceof yv?tc(pM,t.path,dM):(m=dM,d=Ju((d=y).x,y.y,y.width,y.height,pM.x,pM.y,uM),m.set(uM[0],uM[1]),d),y<l&&(l=y,pM.transform(u),dM.transform(u),dM.toArray(r[0]),pM.toArray(r[1]),cM.toArray(r[2]))}n=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,cM.fromArray(n[0]),pM.fromArray(n[1]),dM.fromArray(n[2]),Sg.sub(fM,cM,pM),Sg.sub(gM,dM,pM),e=fM.len(),f=gM.len(),e<.001||f<.001||(fM.scale(1/e),gM.scale(1/f),e=fM.dot(gM),Math.cos(o)<e&&(f=$u(pM.x,pM.y,dM.x,dM.y,cM.x,cM.y,yM,!1),mM.fromArray(yM),mM.scaleAndAdd(gM,f/Math.tan(Math.PI-o)),e=dM.x!==pM.x?(mM.x-pM.x)/(dM.x-pM.x):(mM.y-pM.y)/(dM.y-pM.y),isNaN(e)||(e<0?Sg.copy(mM,pM):1<e&&Sg.copy(mM,dM),mM.toArray(n[1]))))),i.setShape({points:r})}}}function ic(t,e,i,n){var o="normal"===i,i=o?t:t.ensureState(i),e=(i.ignore=e,n.get("smooth")),e=(e&&!0===e&&(e=.3),i.shape=i.shape||{},0<e&&(i.shape.smooth=e),n.getModel("lineStyle").getLineStyle());o?t.useStyle(e):i.style=e}function nc(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),0<i&&3<=n.length){var e=rg(n[0],n[1]),o=rg(n[1],n[2]);e&&o?(i=Math.min(e,o)*i,e=at([],n[1],n[0],i/e),i=at([],n[1],n[2],i/o),o=at([],e,i,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(i[0],i[1],i[0],i[1],n[2][0],n[2][1])):(t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]))}else for(var r=1;r<n.length;r++)t.lineTo(n[r][0],n[r][1])}function oc(t){for(var e=[],i=0;i<t.length;i++){var n,o,r,a,s,l,h=t[i];h.defaultAttr.ignore||(o=(n=h.label).getComputedTransform(),r=n.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=n.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new sx(r,o):null,e.push({label:n,labelLine:h.labelLine,rect:s,localRect:r,obb:l,priority:h.priority,defaultAttr:h.defaultAttr,layoutOption:h.computedLayoutOption,axisAligned:a,transform:o}))}return e}function rc(t,e,i,n,o,r){function a(){_=w.rect[e]-n,x=o-b.rect[e]-b.rect[i]}function s(t,e,i){t<0&&(0<(e=Math.min(e,-t))?(l(e*i,0,c),(e+=t)<0&&h(-e*i,1)):h(-t*i,1))}function l(i,n,o){0!==i&&(d=!0);for(var r=n;r<o;r++){var a=t[r];a.rect[e]+=i,a.label[e]+=i}}function h(n,o){for(var r=[],a=0,s=1;s<c;s++){var h=t[s-1].rect,h=Math.max(t[s].rect[e]-h[e]-h[i],0);r.push(h),a+=h}if(a){var u=Math.min(Math.abs(n)/a,o);if(0<n)for(s=0;s<c-1;s++)l(r[s]*u,0,s+1);else for(s=c-1;0<s;s--)l(-r[s-1]*u,s,c)}}function u(t){for(var e=t<0?-1:1,i=(t=Math.abs(t),Math.ceil(t/(c-1))),n=0;n<c-1;n++)if(0<e?l(i,0,n+1):l(-i,c-n-1,c),(t-=i)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,i){return t.rect[e]-i.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[i]}0<f&&r&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&h(-_,.8),x<0&&h(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&u(-_),x<0&&u(x),d}}function ac(t){function e(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var i=[],n=(t.sort(function(t,e){return e.priority-t.priority}),new Og(0,0,0,0)),o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,h=r.label,u=r.labelLine,c=(n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,r.obb),p=!1,d=0;d<i.length;d++){var f=i[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new sx(f.localRect,f.transform)),(c=c||new sx(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(h),u&&e(u)):(h.attr("ignore",r.defaultAttr.ignore),u&&u.attr("ignore",r.defaultAttr.labelGuideIgnore),i.push(r))}}function sc(t,e){var i=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:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}(e&&e.shape.points)}}function lc(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null!=e[o]&&(t[o]=e[o])}}function hc(){this._labelList=[],this._chartViewList=[]}function uc(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){(TM(e).labelManager||(TM(e).labelManager=new SM)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=TM(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function cc(t,e,i){var n=zf.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*i,n.height=e*i,n}function pc(t,e,i){var n,o=MM.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Ny,"string"==typeof t?n=cc(t,e,i):M(t)&&(t=(n=t).id),o.id=t,(o.dom=n).style);return t&&(j(n),n.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=i,o}function dc(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Ny,this._singleCanvas=o,(this.root=t).style&&(j(t),t.innerHTML=""),this.storage=e;var r,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=i.width&&(r=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new CM(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[IM]=r).zlevel=IM,e.push(IM),this._domRoot=t):(this._width=Gl(t,0,i),this._height=Gl(t,1,i),r=this._domRoot=(a=this._width,o=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}function fc(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type="dataset",t}function gc(){var t=null!==PM&&PM.apply(this,arguments)||this;return t.type="dataset",t}function yc(t){t.registerComponentModel(DM),t.registerComponentView(OM)}function mc(){var t=null!==LM&&LM.apply(this,arguments)||this;return t.type=mc.type,t.hasSymbolVisual=!0,t}function vc(t,e){var i,n=t.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o)return null!=(i=ys(t,e,n[0]))?i+"":null;if(o){for(var r=[],a=0;a<n.length;a++)r.push(ys(t,e,n[a]));return r.join(" ")}}function _c(t,e,i,n){var o=RM.call(this)||this;return o.updateData(t,e,i,n),o}function xc(t,e){this.parent.drift(t,e)}function wc(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!n.isIgnore||!n.isIgnore(i))&&(!n.clipShape||n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function bc(t){return(t=null==t||M(t)?t:{isIgnore:t})||{}}function Sc(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:zr(t),cursorStyle:t.get("cursor")}}function Tc(t){this.group=new Jy,this._SymbolCtor=t||NM}function Mc(t,e,i){var n=t.getBaseAxis(),o=t.getOtherAxis(n),i=function(t,e){var i=0,t=t.scale.getExtent();return"start"===e?i=t[0]:"end"===e?i=t[1]:T(e)&&!isNaN(e)?i=e:0<t[0]?i=t[0]:t[1]<0&&(i=t[1]),i}(o,i),n=n.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(n),s="x"===o||"radius"===o?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,h=e.getCalculationInfo("stackResultDimension");return qh(e,t[0])&&(l=!0,t[0]=h),qh(e,t[1])&&(l=!0,t[1]=h),{dataDimsForPoint:t,valueStart:i,valueAxisDim:o,baseAxisDim:n,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Cc(t,e,i,n){var o=NaN,r=(t.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=i.get(t.baseDim,n),a[1-r]=o,e.dataToPoint(a)}function Ic(t,e){return isNaN(t)||isNaN(e)}function kc(t,e,i,n,o,r,a,s,l){for(var h,u,c,p,d=i,f=0;f<n;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(Ic(g,y)){if(l){d+=r;continue}break}if(d===i)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-h,v=y-u;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var _=d+r,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<n;)f++,d+=r,x=e[2*(_+=r)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;Ic(x,w)&&b<n;)b++,x=e[2*(_+=r)],w=e[2*_+1];var S,T,M,C,I,k,A,D,P,m=0,v=0,O=void 0,L=void 0;n<=b||Ic(x,w)?(A=g,D=y):(m=x-h,v=w-u,S=g-h,T=x-g,M=y-u,C=w-y,k=I=void 0,L="x"===s?(A=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,D=y,O=g+P*(k=Math.abs(T))*a,y):"y"===s?(D=y-(P=0<v?1:-1)*(I=Math.abs(M))*a,O=A=g,y+P*(k=Math.abs(C))*a):(I=Math.sqrt(S*S+M*M),A=g-m*a*(1-(S=(k=Math.sqrt(T*T+C*C))/(k+I))),D=y-v*a*(1-S),L=y+v*a*S,O=FM(O=g+m*a*S,VM(x,g)),L=FM(L,VM(w,y)),O=VM(O,FM(x,g)),D=y-(v=(L=VM(L,FM(w,y)))-y)*I/k,A=FM(A=g-(m=O-g)*I/k,VM(h,g)),D=FM(D,VM(u,y)),O=g+(m=g-(A=VM(A,FM(h,g))))*k/I,y+(v=y-(D=VM(D,FM(u,y))))*k/I)),t.bezierCurveTo(c,p,A,D,g,y),c=O,p=L}else t.lineTo(g,y)}h=g,u=y,d+=r}return f}function Ac(t){return t=BM.call(this,t)||this,t.type="ec-polyline",t}function Dc(){return null!==WM&&WM.apply(this,arguments)||this}function Pc(t){return t=GM.call(this,t)||this,t.type="ec-polygon",t}function Oc(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return 1}}function Lc(t){for(var e=1/0,i=1/0,n=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),o=Math.max(s,o))}return[[e,i],[n,o]]}function Ec(t,e){var t=Lc(t),i=t[0],t=t[1],e=Lc(e),n=e[0],e=e[1];return Math.max(Math.abs(i[0]-n[0]),Math.abs(i[1]-n[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Rc(t){return T(t)?t:t?.5:0}function Nc(t,e,i,n){var e=e.getBaseAxis(),o="x"===e.dim||"radius"===e.dim?0:1,r=[],a=0,s=[],l=[],h=[],u=[];if(n){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||u.push(t[a],t[a+1]);t=u}for(a=0;a<t.length-2;a+=2)switch(h[0]=t[a+2],h[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],r.push(l[0],l[1]),i){case"end":s[o]=h[o],s[1-o]=l[1-o],r.push(s[0],s[1]);break;case"middle":var c=[];s[o]=c[o]=(l[o]+h[o])/2,s[1-o]=l[1-o],c[1-o]=h[1-o],r.push(s[0],s[1]),r.push(c[0],c[1]);break;default:s[o]=l[o],s[1-o]=h[1-o],r.push(s[0],s[1])}return r.push(t[a++],t[a++]),r}function Bc(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=n.length-1;0<=r;r--){var a,s=t.getDimensionInfo(n[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=n[r];break}}if(o){var l=e.getAxis(a),e=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=e.length,u=o.outerColors.slice(),i=(h&&e[0].coord>e[h-1].coord&&(e.reverse(),u.reverse()),function(t,e){function i(t,e,i){var n=t.coord;return{coord:i,color:Se((i-n)/(e.coord-n),[t.color,e.color])}}for(var n,o,r=[],a=t.length,s=0;s<a;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(e<h){o?r.push(i(o,l,e)):n&&r.push(i(n,l,0),i(n,l,e));break}n&&(r.push(i(n,l,0)),n=null),r.push(l),o=l}}return r}(e,"x"===a?i.getWidth():i.getHeight())),c=i.length;if(!c&&h)return e[0].coord<0?u[1]||e[h-1].color:u[0]||e[0].color;var p=i[0].coord-10,h=i[c-1].coord+10,d=h-p;return d<.001?"transparent":(f(i,function(t){t.offset=(t.coord-p)/d}),i.push({offset:c?i[c-1].offset:.5,color:u[1]||"transparent"}),i.unshift({offset:c?i[0].offset:.5,color:u[0]||"transparent"}),e=new tx(0,0,0,0,i,!0),e[a]=p,e[a+"2"]=h,e)}}}function zc(t,e,i){var t=t.get("showAllSymbol"),n="auto"===t;if(!t||n){var o,r,a=i.getAxesByScale("ordinal")[0];if(a&&(!n||!function(t,e){for(var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count(),o=(isNaN(n)&&(n=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*NM.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Fc(t){for(var e,i,n=t.length/2;0<n&&(e=t[2*n-2],i=t[2*n-1],isNaN(e)||isNaN(i));n--);return n-1}function Vc(t,e){return[t[2*e],t[2*e+1]]}function Yc(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Wv.length;e++)if(t.get([Wv[e],"endLabel","show"]))return 1}function Hc(t,e,i,n){var o,r,a,s,l,h,u,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(o=n.getModel("endLabel"),r=o.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},x=Yc(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,r,o,e)}:null,l=e.getBaseAxis().isHorizontal(),u=i,c=n,p=function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(h=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,y=Math.ceil(y),f!==Math.floor(f)&&(f=Math.floor(f),y++),_=new Iv({shape:{x:f,y:g,width:y,height:m}}),u&&(u=(v=h.getBaseAxis()).isHorizontal(),h=v.inverse,u?(h&&(_.shape.x+=y),_.shape.width=0):(h||(_.shape.y+=m),_.shape.height=0),v=w(d)?function(t){d(t,_)}:null,ur(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,v)),u=_,n.get("clip",!0)||(h=u.shape,y=Math.max(h.width,h.height),l?(h.y-=y,h.height+=2*y):(h.x-=y,h.width+=2*y)),x&&x(1,u),u):(m=i,f=n,c=(g=e).getArea(),p=Di(c.r0,1),v=Di(c.r,1),l=new A_({shape:{cx:Di(g.cx,1),cy:Di(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,ur(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Wc(){return null!==jM&&jM.apply(this,arguments)||this}function Xc(){return null!==QM&&QM.apply(this,arguments)||this}function Gc(){return null!==JM&&JM.apply(this,arguments)||this}function Uc(t,e,n,o){f(iC,function(r,a){function l(){var t=null!==h&&h.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var h,u=s(s({},eC[a],!0),o,!0),u=(i(l,h=n),l.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ma(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=jc(t),i&&Ta(t,n,i)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=CT.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=u,l);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(e+"Axis",jc)}function jc(t){return t.type||(t.data?"category":"value")}function qc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function Zc(t){return"interval"===t.type||"time"===t.type}function Kc(){var t=null!==oC&&oC.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=nC,t}function Qc(t,e,i,n,o){return t=aC.call(this,t,e,i)||this,t.index=0,t.type=n||"value",t.position=o||"bottom",t}function $c(t,e,i){i=i||{};var t=t.coordinateSystem,n=e.axis,o={},r=n.getAxesOnZeroOf()[0],a=n.position,s=r?"onZero":a,n=n.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},h=e.get("offset")||0,h="x"===n?[t[2]-h,t[3]+h]:[t[0]-h,t[1]+h],u=(r&&(u=r.toGlobalCoord(r.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),o.position=["y"===n?h[l[s]]:t[0],"x"===n?h[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===n?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),L(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-u:u,o.z2=1,o}function Jc(t){return"cartesian2d"===t.get("coordinateSystem")}function tp(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(i,n){var o=n.replace(/Model$/,""),o=t.getReferringComponents(o,cm).models[0];e[n]=o}),e}function ep(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nC,this._initCartesian(t,e,i),this.model=t}function ip(t,e){return t.getCoordSysModel()===e}function np(t,e,i,n){function o(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],t=i.model,e=t.get(["axisLine","onZero"]),i=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=i)op(a[i])&&(r=a[i]);else for(var s in a)if(a.hasOwnProperty(s)&&op(a[s])&&!n[o(a[s])]){r=a[s];break}r&&(n[o(r)]=!0)}}function op(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 rp(t,e){this.group=new Jy,this.opt=e,this.axisModel=t,h(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new Jy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function ap(t){t&&(t.ignore=!0)}function sp(t,e){var i,n=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(n&&o)return kt(i=Tt([]),i,-t.rotation),n.applyTransform(Ct([],i,t.getLocalTransform())),o.applyTransform(Ct([],i,e.getLocalTransform())),n.intersect(o)}function lp(t){return"middle"===t||"center"===t}function hp(t,e,i,n,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord,h=(a[0]=h,s[a[1]=0]=h,s[1]=i,e&&(st(a,a,e),st(s,s,e)),new H_({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0}));Sr(h.shape,h.style.lineWidth),h.anid=o+"_"+t[l].tickValue,r.push(h)}return r}function up(t,e){var i,n,o,r,s,l,u,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i=c,e=e,o=(n=t).getComponent("tooltip"),r=n.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,o,p){var d,g,y=p.model.getModel("axisPointer",r),m=y.get("show");m&&("auto"!==m||e||dp(y))&&(null==o&&(o=y.get("triggerTooltip")),m=(y=e?function(t,e,i,n,o,r){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&&!!r,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===o&&(o=s.get(["label","show"]),e.show=null==o||o,r||(o=l.lineStyle=s.get("crossStyle"))&&h(e,o.textStyle)),t.model.getModel("axisPointer",new Ox(l,i,n))}(p,c,r,n,e,o):y).get("snap"),e=y.get("triggerEmphasis"),d=fp(p.model),g=o||m||"category"===p.type,o=i.axesInfo[d]={key:d,axis:p,coordSys:t,axisPointerModel:y,triggerTooltip:o,triggerEmphasis:e,involveSeries:g,snap:m,useHandle:dp(y),seriesModels:[],linkGroup:null},u[d]=o,i.seriesInvolved=i.seriesInvolved||g,null!=(e=function(t,e){for(var i=e.model,n=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(cp(r[n+"AxisId"],i.id)||cp(r[n+"AxisIndex"],i.componentIndex)||cp(r[n+"AxisName"],i.name))return o}}(s,p)))&&((m=l[e]||(l[e]={axesInfo:{}})).axesInfo[d]=o,m.mapper=s[e].mapper,o.linkGroup=m)}var u,c,p,d,g;t.axisPointerEnabled&&(p=fp(t.model),u=i.coordSysAxesInfo[p]={},c=(i.coordSysMap[p]=t).model.getModel("tooltip",o),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&o&&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&&(u=c,t.eachSeries(function(t){var e=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);e&&"none"!==i&&!1!==i&&"item"!==i&&!1!==n&&!1!==t.get(["axisPointer","show"],!0)&&f(u.coordSysAxesInfo[fp(e.model)],function(i){var n=i.axis;e.getAxis(n.dim)===n&&(i.seriesModels.push(t),null==i.seriesDataCount&&(i.seriesDataCount=0),i.seriesDataCount+=t.getData().count())})})),c}function cp(t,e){return"all"===t||x(t)&&0<=u(t,e)||t===e}function pp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fp(t)]}function dp(t){return!!t.get(["handle","show"])}function fp(t){return t.type+"||"+t.id}function gp(){var t=null!==hC&&hC.apply(this,arguments)||this;return t.type=gp.type,t}function yp(){var t=null!==uC&&uC.apply(this,arguments)||this;return t.type=yp.type,t.axisPointerClass="CartesianAxisPointer",t}function mp(){var t=null!==cC&&cC.apply(this,arguments)||this;return t.type=mp.type,t}function vp(){var t=null!==SC&&SC.apply(this,arguments)||this;return t.type=bC.type,t}function _p(){var t=null!==MC&&MC.apply(this,arguments)||this;return t.type="grid",t}function xp(){var t=null!==kC&&kC.apply(this,arguments)||this;return t.type=xp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function wp(){var t=null!==DC&&DC.apply(this,arguments)||this;return t.type=wp.type,t}function bp(){var t=null!==OC&&OC.apply(this,arguments)||this;return t.type=bp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Sp(){var t=null!==LC&&LC.apply(this,arguments)||this;return t.type=Sp.type,t.newlineDisabled=!1,t}function Tp(t,e,i,n){Ip(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Cp(t,e,i,n)}function Mp(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,o=i.length;n<o&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function Cp(t,e,i,n){Mp(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Ip(t,e,i,n){Mp(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function kp(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Ap(t,e,i){var n,o={},r="toggleSelected"===t;return i.eachComponent("legend",function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name)),f(i.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=i.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function Dp(t){t.registerComponentModel(EC),t.registerComponentView(zC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,kp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(Ap,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(Ap,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(Ap,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(Ap,"select")),t.registerAction("legendUnSelect","legendunselected",_(Ap,"unSelect"))}function Pp(){var t=null!==FC&&FC.apply(this,arguments)||this;return t.type=Pp.type,t}function Op(t,e,i){var n=[1,1];n[t.getOrient().index]=0,Ta(e,i,{type:"box",ignoreSize:!!n})}function Lp(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.type=Lp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Ep(){this._dragging=!1,this.animationThreshold=15}function Rp(t,e,i,n){!function t(e,i){var n;return M(e)&&M(i)?(n=!0,f(i,function(i,o){n=n&&t(e[o],i)}),!!n):e===i}(UC(i).lastProp,n)&&(UC(i).lastProp=n,e?hr(i,n,t):(i.stopAnimation(),i.attr(n)))}function Np(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Bp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function zp(t,e,i){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=o&&(t.zlevel=o),t.silent=i)})}function Fp(t,e,i,n,o){var r=Vp(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),i=i.getModel("label"),a=Zx(i.get("padding")||0),s=i.getFont(),l=ui(r,s),h=o.position,u=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(h[0]-=u),"center"===c&&(h[0]-=u/2),o.verticalAlign),n=("bottom"===c&&(h[1]-=l),"middle"===c&&(h[1]-=l/2),o=h,c=u,u=l,n=(l=n).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,n)-c,o[1]=Math.min(o[1]+u,l)-u,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i.get("backgroundColor"));n&&"auto"!==n||(n=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Fr(i,{text:r,font:s,fill:i.getTextColor(),padding:a,backgroundColor:n}),z2:10}}function Vp(t,e,i,n,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:Mu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),b(o)?a=o.replace("{value}",a):w(o)&&(a=o(r))),a}function Yp(t,e,i){var n=St();return kt(n,n,i.rotation),It(n,n,i.position),Mr([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Hp(){return null!==ZC&&ZC.apply(this,arguments)||this}function Wp(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Xp(t){return"x"===t.dim?0:1}function Gp(){var t=null!==$C&&$C.apply(this,arguments)||this;return t.type=Gp.type,t}function Up(t,e,i){function n(t,e){r.on(t,function(t){function i(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=i,n.dispatchAction(t))}n=a;var n,o,s={dispatchAction:i,pendings:o={showTip:[],hideTip:[]}};eI(tI(r).records,function(i){i&&e(i,t,s.dispatchAction)});var l,h=s.pendings,u=a,c=h.showTip.length,p=h.hideTip.length;c?l=h.showTip[c-1]:p&&(l=h.hideTip[p-1]),l&&(l.dispatchAction=null,u.dispatchAction(l))})}var o,r,a;Pf.node||(o=e.getZr(),tI(o).records||(tI(o).records={}),a=e,tI(r=o).initialized||(tI(r).initialized=!0,n("click",_(qp,"click")),n("mousemove",_(qp,"mousemove")),n("globalout",jp)),(tI(o).records[t]||(tI(o).records[t]={})).handler=i)}function jp(t,e,i){t.handler("leave",null,i)}function qp(t,e,i,n){e.handler(t,i,n)}function Zp(t,e){Pf.node||(e=e.getZr(),(tI(e).records||{})[t]&&(tI(e).records[t]=null))}function Kp(){var t=null!==iI&&iI.apply(this,arguments)||this;return t.type=Kp.type,t}function Qp(t,e){var i,n,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=nn(i=e.getData(),t))||s<0||x(s)?{point:[]}:(n=i.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=i.mapDimension(e),(r=[])[t]=i.get(e,s),r[1-t]=i.get(i.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(i.getValues(g(o.dimensions,function(t){return i.mapDimension(t)}),s))||[]:n&&((e=n.getBoundingRect().clone()).applyTransform(n.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:n})}function $p(t,e,i){var n,o,r,a,s,l,h,u,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||$f(i.dispatchAction,i),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return nd(x)&&(x=Qp({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),n=nd(x),o=w.axesInfo,r=S.axesInfo,a="leave"===v||nd(x),s={},e={list:[],map:{}},h={showPointer:_(td,l={}),showTooltip:_(ed,e)},f(S.coordSysMap,function(t,e){var i=n||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var r=t.axis,l=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(o,t);a||!i||o&&!l||null!=(l=null!=(l=l&&l.value)||n?l:r.pointToData(x))&&Jp(t,l,h,!1,s)})}),u={},f(r,function(t,e){var i=t.linkGroup;i&&!l[e]&&f(i.axesInfo,function(e,n){var n=l[n];e!==t&&n&&(n=n.value,i.mapper&&(n=t.axis.scale.parse(i.mapper(n,id(e),id(t)))),u[t.key]=n)})}),f(u,function(t,e){Jp(r[e],t,h,!0,s)}),c=l,w=r,p=s.axesInfo=[],f(w,function(t,e){var i=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(i.status="show"),i.value=e.value,i.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(i.status="hide"),"show"===i.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}),v=e,w=t,e=b,nd(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=r,w=(t=i).getZr(),b="axisPointerLastHighlights",d=oI(w)[b]||{},g=oI(w)[b]={},f(e,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&t.triggerEmphasis&&f(i.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 Jp(t,e,i,n,o){var r,a,s,h,u,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,h=s.dim,u=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var i,n=t.getData().mapDimensionsAll(h);if(t.getAxisTooltipData)var o=t.getAxisTooltipData(n,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=t.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;o=t.getData().get(n[0],r[0])}null!=o&&isFinite(o)&&(n=a-o,(i=Math.abs(n))<=p)&&((i<p||0<=n&&d<0)&&(p=i,d=n,u=o,c.length=0),f(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(r={payloadBatch:c,snapToValue:u}).snapToValue,(g=r.payloadBatch)[0]&&null==o.seriesIndex&&l(o,g[0]),!n&&t.snap&&m.containData(y)&&null!=y&&(e=y),i.showPointer(t,e,g),i.showTooltip(t,r,y)):i.showPointer(t,e))}function td(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function ed(t,e,i,n){var o,r,i=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&i.length&&(o=fp(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()}))}function id(t){var e=t.axis.model,i={},t=i.axisDim=t.axis.dim;return i.axisIndex=i[t+"AxisIndex"]=e.componentIndex,i.axisName=i[t+"AxisName"]=e.name,i.axisId=i[t+"AxisId"]=e.id,i}function nd(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function od(t){mC.registerAxisPointerClass("CartesianAxisPointer",KC),t.registerComponentModel(JC),t.registerComponentView(nI),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=up(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$p)}function rd(){var t=null!==rI&&rI.apply(this,arguments)||this;return t.type=rd.type,t}function ad(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function sd(t){if(Pf.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}function ld(t,e){if(!t)return e;e=fa(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}function hd(t,e,i){var n,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return Pf.transformSupported?(n="translate"+((n=Pf.transform3dSupported)?"3d":"")+"("+t+","+e+(n?",0":"")+")",i?"top:0;left:0;"+hI+":"+n+";":[["top",0],["left",0],[sI,n]]):i?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function ud(t,e,i){var n,o,r=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),h=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=Js(t,"html");return r.push("box-shadow:"+u+"px "+c+"px "+l+"px "+h),e&&a&&r.push((h="opacity"+(l=" "+(u=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,i||(l=" "+u+"s "+c,h+=Pf.transformSupported?","+hI+l:",left"+l+",top"+l),lI+":"+h)),s&&r.push("background-color:"+s),f(["width","color","radius"],function(e){var i="border-"+e,n=fa(i),n=t.get(n);null!=n&&r.push(i+":"+n+("color"===e?"":"px"))}),r.push((o=[],e=(n=p).get("fontSize"),(a=n.getTextColor())&&o.push("color:"+a),o.push("font:"+n.getFont()),e&&o.push("line-height:"+Math.round(3*e/2)+"px"),a=n.get("textShadowColor"),e=n.get("textShadowBlur")||0,i=n.get("textShadowOffsetX")||0,u=n.get("textShadowOffsetY")||0,a&&e&&o.push("text-shadow:"+i+"px "+u+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+Zx(d).join("px ")+"px"),r.join(";")+";"}function cd(t,e,i,n,o){var r,a,s=e&&e.painter;i?(r=s&&s.getViewportRoot())&&(a=t,i=i,ft(dg,r,n,o,!0))&&ft(a,i,dg[0],dg[1]):(t[0]=n,t[1]=o,(r=s&&s.getViewportRootOffset())&&(t[0]+=r.offsetLeft,t[1]+=r.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function pd(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Pf.wxa)return null;var i=document.createElement("div"),n=(i.domBelongToZr=!0,this.el=i,this._zr=t.getZr()),e=e.appendTo,e=e&&(b(e)?document.querySelector(e):k(e)?e:w(e)&&e(t.getDom())),o=(cd(this._styleCoord,n,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(i),this._api=t,this._container=e,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=n.handler,xt(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}function dd(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),yd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function fd(t){return Math.max(0,t)}function gd(t){var e=fd(t.shadowBlur||0),i=fd(t.shadowOffsetX||0),t=fd(t.shadowOffsetY||0);return{left:fd(e-i),right:fd(e+i),top:fd(e-t),bottom:fd(e+t)}}function yd(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function md(){var t=null!==pI&&pI.apply(this,arguments)||this;return t.type=md.type,t}function vd(t,e,i){for(var n=e.ecModel,o=i?(o=new Ox(i,n,n),new Ox(e.option,o,n)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(b(a=a instanceof Ox?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new Ox(a,o,n))}return o}function _d(t,e){return t.dispatchAction||$f(e.dispatchAction,e)}function xd(t){return"center"===t||"middle"===t}function wd(t){ji(t,"label",["show"])}function bd(){var t=null!==yI&&yI.apply(this,arguments)||this;return t.type=bd.type,t.createdBySelf=!1,t}function Sd(){var t=null!==_I&&_I.apply(this,arguments)||this;return t.type=Sd.type,t}function Td(t,e,i,n,o,r){var a=[],s=qh(e,n)?e.getCalculationInfo("stackResultDimension"):n,t=Id(e,s,t),t=e.indicesOfNearest(s,t)[0],o=(a[o]=e.get(i,t),a[r]=e.get(s,t),e.get(n,t)),i=Pi(e.get(n,t));return 0<=(i=Math.min(i,20))&&(a[r]=+a[r].toFixed(i)),[a,o]}function Md(t,e){if(e){var i,n=t.getData(),o=t.coordinateSystem,r=o&&o.dimensions;if(i=e,(isNaN(parseFloat(i.x))||isNaN(parseFloat(i.y)))&&!x(e.coord)&&x(r)&&(i=function(t,e,i,n){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=i.getAxis(function(t,e){return(t=t.getData().getDimensionInfo(e))&&t.coordDim}(n,o.valueDataDim)),o.baseAxis=i.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=n.getBaseAxis(),o.valueAxis=i.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}(e,n,o,t),(e=a(e)).type&&bI[e.type]&&i.baseAxis&&i.valueAxis?(o=u(r,i.baseAxis.dim),t=u(r,i.valueAxis.dim),i=bI[e.type](n,i.baseDataDim,i.valueDataDim,o,t),e.coord=i[0],e.value=i[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&x(r))for(var s=e.coord,l=0;l<2;l++)bI[s[l]]&&(s[l]=Id(n,n.mapDimension(r[l]),s[l]));else e.coord=[];return e}}function Cd(t,e){return!(t&&t.containData&&e.coord&&(i=e,isNaN(parseFloat(i.x)))&&isNaN(parseFloat(i.y)))||t.containData(e.coord);var i}function Id(t,e,i){var n,o;return"average"===i?(o=n=0,t.each(e,function(t,e){isNaN(t)||(n+=t,o++)}),n/o):"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}function kd(){var t=null!==xI&&xI.apply(this,arguments)||this;return t.type=kd.type,t}function Ad(t,e,i){var n=e.coordinateSystem;t.each(function(o){var r,a,s,l=t.getItemModel(o),h=Ai(l.get("x"),i.getWidth()),l=Ai(l.get("y"),i.getHeight());isNaN(h)||isNaN(l)?e.getMarkerPosition?s=e.getMarkerPosition(t.getValues(t.dimensions,o)):n&&(r=t.get(n.dimensions[0],o),a=t.get(n.dimensions[1],o),s=n.dataToPoint([r,a])):s=[h,l],isNaN(h)||(s[0]=h),isNaN(l)||(s[1]=l),t.setItemLayout(o,s)})}function Dd(){var t=null!==TI&&TI.apply(this,arguments)||this;return t.type=Dd.type,t}function Pd(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&Xi("")}function Od(){}function Ld(){}function Ed(){}function Rd(){}function Nd(){}function Bd(t,e){if(!0===t||!1===t)return(i=new kI).value=t,i;var i;if(Fd(t)||Xi(""),t.and)return zd("and",t,e);if(t.or)return zd("or",t,e);if(t.not)return i=e,Fd(r=(r=t).not)||Xi(""),(l=new PI).child=Bd(r,i),l.child||Xi(""),l;for(var n=t,o=e,r=o.prepareGetValue(n),a=[],s=v(n),l=n.parser,h=l?Ts(l):null,u=0;u<s.length;u++){var c,p=s[u];"parser"===p||o.valueGetterAttrMap.get(p)||(c=q(CI,p)?CI[p]:p,p=n[p],p=h?h(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new hb("eq"===t,e):q(ab,t)?new sb(t,e):null}(c,p)||"reg"===c&&new II(p))||Xi(""),a.push(c))}return a.length||Xi(""),(l=new OI).valueGetterParam=r,l.valueParser=h,l.getValue=o.getValue,l.subCondList=a,l}function zd(t,e,i){return e=e[t],x(e)||Xi(""),e.length||Xi(""),t=new("and"===t?AI:DI),t.children=g(e,function(t){return Bd(t,i)}),t.children.length||Xi(""),t}function Fd(t){return M(t)&&!d(t)}function Vd(t,e){this._cond=Bd(t,e)}function Yd(){}function Hd(t,e,i,n){var o=null==e.opacity?1:e.opacity;if(i instanceof bv)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==WI?(t("fill",(r=Ie(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(n||r<1)&&t("fill-opacity",r)):t("fill",WI),null!=(r=(r=e).stroke)&&r!==WI){var r=Ie(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?i.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!n&&1==a||t("stroke-width",a),(n||o)&&t("paint-order",o?"stroke":"fill"),(n||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=Ul(i))[0],r=a[1],o&&(r=XI(r||0),t("stroke-dasharray",o.join(",")),r||n)&&t("stroke-dashoffset",r)):n&&t("stroke-dasharray",WI);for(var s=0;s<GI.length;s++){var l=GI[s];(n||e[l]!==dv[l])&&(l=e[l]||dv[l])&&t(UI[s],l)}}else n&&t("stroke",WI)}function Wd(t){return document.createElementNS(jI,t)}function Xd(t,e,i,n,o){return{tag:t,attrs:i||{},children:n,text:o,key:e}}function Gd(t,e){var i=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,o=e.tag,r=e.attrs,e=e.text;return function(t,e){var i=[];if(e)for(var n in e){var o=e[n];!1!==o&&(!0!==o&&null!=o&&(n+='="'+o+'"'),i.push(n))}return"<"+t+" "+i.join(" ")+">"}(o,r)+("style"!==o?yt(e):e||"")+(n?i+g(n,t).join(i)+i:"")+"</"+o+">"}(t)}function Ud(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function jd(t,e,i,n){return Xd("svg","root",{width:t,height:e,xmlns:jI,"xmlns:xlink":qI,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},i)}function qd(t,e){var i=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[i]=t,i}function Zd(t){return b(t)?JI[t]?"cubic-bezier("+JI[t]+")":ae(t)?t:"":""}function Kd(t,e,i,n){var o=t.animators,r=o.length,a=[];if(t instanceof Q_){if(h=function(t,e,i){var n,o,t=t.shape.paths,r={};if(f(t,function(t){var e=Ud(i.zrId),t=(e.animation=!0,Kd(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,h,u=t[o=e[s-1]];for(l in u){var c=u[l];r[l]=r[l]||{d:""},r[l].d+=c.d||""}for(h in a){var p=a[h].animation;0<=p.indexOf(o)&&(n=p)}}}),n)return e.d=!1,t=qd(r,i),n.replace(o,t)}(t,e,i))a.push(h);else if(!r)return}else if(!r)return;for(var s,h,u,c={},p=0;p<r;p++){var d=o[p],g=[d.getMaxTime()/1e3+"s"],y=Zd(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)(h=function(o){function r(t,e,i){for(var n=t.getTracks(),o=t.getMaxTime(),r=0;r<n.length;r++){var a=n[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=i?i(l):l)for(var h=0;h<s.length;h++){var u=s[h],c=Math.round(u.time/o*100)+"%",p=Zd(u.easing),d=u.rawValue;(b(d)||T(d))&&(e[c]=e[c]||{},e[c][l]=u.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,h=o[1],u=h.length,c={},p={},d={},f="animation-timing-function",g=0;g<u;g++)(O=(P=h[g]).targetName)?"shape"===O&&r(P,p):n||r(P,c);for(D in c){var y={},_=(si(y,t),l(y,c[D]),ze(y)),x=c[D][f];d[D]=_?{transform:_}:{},_=d[D],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[tk]=a+"px "+y+"px"),x&&(d[D][f]=x)}var w,S,M,C=!0;for(D in p){d[D]=d[D]||{};var I=!s,x=p[D][f],k=(s=I?new rv:s).len(),A=(s.reset(),d[D].d=(S=p[D],M=s,A=void 0,A=l({},(w=t).shape),l(A,S),w.buildPath(M,A),(S=new HI).reset(Be(w)),M.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==A){C=!1;break}x&&(d[D][f]=x)}if(!C)for(var D in d)delete d[D].d;if(!n)for(var P,O,g=0;g<u;g++)"style"===(O=(P=h[g]).targetName)&&r(P,d,function(t){return ek[t]});for(var L,E=v(d),R=!0,g=1;g<E.length;g++){var N=E[g-1],B=E[g];if(d[N][tk]!==d[B][tk]){R=!1;break}L=d[N][tk]}if(R&&L){for(var D in d)d[D][tk]&&delete d[D][tk];e[tk]=L}if(m(E,function(t){return 0<v(d[t]).length}).length)return qd(d,i)+" "+o[0]+" both"}(c[s]))&&a.push(h);a.length&&(u=i.zrId+"-cls-"+$I++,i.cssNodes["."+u]={animation:a.join(",")},e.class=u)}function Qd(t,e,i,n){var o=JSON.stringify(t),r=i.cssStyleCache[o];r||(r=i.zrId+"-cls-"+$I++,i.cssStyleCache[o]=r,i.cssNodes["."+r+(n?":hover":"")]=t),e.class=e.class?e.class+" "+r:r}function $d(t){return t&&b(t.src)}function Jd(t){return t&&w(t.toDataURL)}function tf(t,e,i,n){Hd(function(o,r){var a="fill"===o||"stroke"===o;a&&Re(r)?hf(e,t,o,n):a&&Oe(r)?uf(i,t,o,n):t[o]=a&&"none"===r?"transparent":r},e,i,!1);var o=t,r=n;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(h=i).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(",")}(h),s=r.shadowCache,l=s[a];if(!l){var h=h.getGlobalScale(),u=h[0],h=h[1];if(!u||!h)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=Ie(f.shadowColor),g=f.opacity,f=f.color,d=d/2/u+" "+d/2/h;l=r.zrId+"-s"+r.shadowIdx++,r.defs[l]=Xd("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Xd("feDropShadow","",{dx:c/u,dy:p/h,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}o.filter=Ne(l)}}function ef(t,e){var i=Ci(e);i&&(i.each(function(e,i){null!=e&&(t[(QI+i).toLowerCase()]=e+"")}),e.isSilent())&&(t[QI+"silent"]="true")}function nf(t){return ke(t[0]-1)&&ke(t[1])&&ke(t[2])&&ke(t[3]-1)}function of(t,e,i){var n;!e||ke((n=e)[4])&&ke(n[5])&&nf(e)||(n=i?10:1e4,t.transform=nf(e)?"translate("+ik(e[4]*n)/n+" "+ik(e[5]*n)/n+")":"matrix("+Ae((i=e)[0])+","+Ae(i[1])+","+Ae(i[2])+","+Ae(i[3])+","+De(i[4])+","+De(i[5])+")")}function rf(t,e,i){for(var n=t.points,o=[],r=0;r<n.length;r++)o.push(ik(n[r][0]*i)/i),o.push(ik(n[r][1]*i)/i);e.points=o.join(" ")}function af(t){return!t.smooth}function sf(t,e){var i,n,o,r,a,s=t.style,l=t.shape,h=nk[t.type],u={},c=e.animation,p="path",d=t.style.strokePercent,f=e.compress&&Be(t)||4;return!h||e.willUpdate||h[1]&&!h[1](l)||c&&function(t){for(var e=t.animators,i=0;i<e.length;i++)if("shape"===e[i].targetName)return 1}(t)||d<1?(c=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),i=t.path,c&&(i.beginPath(),t.buildPath(i,t.shape),t.pathUpdated()),c=i.getVersion(),o=(n=t).__svgPathBuilder,n.__svgPathVersion===c&&o&&d===n.__svgPathStrokePercent||((o=o||(n.__svgPathBuilder=new HI)).reset(f),i.rebuildPath(o,d),o.generateStr(),n.__svgPathVersion=c,n.__svgPathStrokePercent=d),u.d=o.getStr()):(p=t.type,i=Math.pow(10,f),h[0](l,u,i)),of(u,t.transform),tf(u,s,t,e),ef(u,t),e.animation&&Kd(t,u,e),e.emphasis&&(c=u,n=e,(d=t).ignore||(d.isSilent()?Qd(a={"pointer-events":"none"},c,n,!0):(!(f=(o=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(r=d.style&&d.style.fill,h=d.states.select&&d.states.select.style&&d.states.select.style.fill,h=0<=d.currentStates.indexOf("select")&&h||r)&&(f=Ce(h)),(r=o.lineWidth)&&(r/=!o.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),o.stroke&&(a.stroke=o.stroke),r&&(a["stroke-width"]=r),Qd(a,c,n,!0)))),Xd(p,t.id+"",u)}function lf(t,e){if(t instanceof yv)return sf(t,e);if(t instanceof bv){var i=t,n=e,o=i.style,r=o.image;if(r&&!b(r)&&($d(r)?r=r.src:Jd(r)&&(r=r.toDataURL())),r)return a=o.x||0,s=o.y||0,r={href:r,width:o.width,height:o.height},a&&(r.x=a),s&&(r.y=s),of(r,i.transform),tf(r,o,i,n),ef(r,i),n.animation&&Kd(i,r,n),Xd("image",i.id+"",r)}else if(t instanceof vv){var a=t,s=e,o=a.style,n=o.text;if(null!=n&&(n+=""),n&&!isNaN(o.x)&&!isNaN(o.y)){var i=o.font||Nf,r=o.x||0,l=(t=o.y||0,e=di(i),"top"===(l=o.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":gy[o.textAlign]||o.textAlign};if(jn(o)){var t="",h=o.fontStyle,u=Gn(o.fontSize);if(!parseFloat(u))return;var c=o.fontFamily||Rf,p=o.fontWeight;t+="font-size:"+u+";font-family:"+c+";",h&&"normal"!==h&&(t+="font-style:"+h+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+i;return n.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),l&&(e.y=l),of(e,a.transform),tf(e,o,a,s),ef(e,a),s.animation&&Kd(a,e,s),Xd("text",a.id+"",e,void 0,n)}}}function hf(t,e,i,n){var o,t=t[i],r={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Le(t))o="linearGradient",r.x1=t.x,r.y1=t.y,r.x2=t.x2,r.y2=t.y2;else{if(!Ee(t))return;o="radialGradient",r.cx=E(t.x,.5),r.cy=E(t.y,.5),r.r=E(t.r,.5)}for(var a=t.colorStops,s=[],l=0,h=a.length;l<h;++l){var u=100*De(a[l].offset)+"%",c=Ie(a[l].color),p=c.color,c=c.opacity,u={offset:u};u["stop-color"]=p,c<1&&(u["stop-opacity"]=c),s.push(Xd("stop",l+"",u))}var t=Gd(Xd(o,"",r,s)),d=n.gradientCache,f=d[t];f||(f=n.zrId+"-g"+n.gradientIdx++,d[t]=f,r.id=f,n.defs[f]=Xd(o,f,r,s)),e[i]=Ne(f)}function uf(t,e,i,n){var o,r,s,l,h,u,c,p,d=t.style[i],f=t.getBoundingRect(),g={},y=d.repeat,m="no-repeat"===y,v="repeat-x"===y,_="repeat-y"===y;Pe(d)?(r=d.imageWidth,s=d.imageHeight,y=void 0,b(c=d.image)?y=c:$d(c)?y=c.src:Jd(c)&&(y=c.toDataURL()),"undefined"==typeof Image?(z(r,c="Image width/height must been given explictly in svg-ssr renderer."),z(s,c)):null!=r&&null!=s||(l=function(t,e){var i,n;t&&(i=t.elm,n=r||e.width,e=s||e.height,"pattern"===t.tag&&(v?(e=1,n/=f.width):_&&(n=1,e/=f.height)),t.attrs.width=n,t.attrs.height=e,i)&&(i.setAttribute("width",n),i.setAttribute("height",e))},(c=vn(y,null,t,function(t){m||l(u,t),l(o,t)}))&&c.width&&c.height&&(r=r||c.width,s=s||c.height)),o=Xd("image","img",{href:y,width:r,height:s}),g.width=r,g.height=s):d.svgElement&&(o=a(d.svgElement),g.width=d.svgWidth,g.height=d.svgHeight),o&&(m?p=h=1:v?(h=1,p=g.width/f.width):_?(p=1,h=g.height/f.height):g.patternUnits="userSpaceOnUse",null==p||isNaN(p)||(g.width=p),null==h||isNaN(h)||(g.height=h),(t=ze(d))&&(g.patternTransform=t),c=Gd(u=Xd("pattern","",g,[o])),(p=(y=n.patternCache)[c])||(p=n.zrId+"-p"+n.patternIdx++,y[c]=p,g.id=p,u=n.defs[p]=Xd("pattern",p,g,[o])),e[i]=Ne(p))}function cf(t){return document.createTextNode(t)}function pf(t,e,i){t.insertBefore(e,i)}function df(t,e){t.removeChild(e)}function ff(t,e){t.appendChild(e)}function gf(t){return t.parentNode}function yf(t){return t.nextSibling}function mf(t,e){t.textContent=e}function vf(t){return void 0===t}function _f(t){return void 0!==t}function xf(t,e){var i=t.key===e.key;return t.tag===e.tag&&i}function wf(t){var e,i=t.children,n=t.tag;if(_f(n)){var o=t.elm=Wd(n);if(Tf(ak,t),x(i))for(e=0;e<i.length;++e){var r=i[e];null!=r&&ff(o,wf(r))}else _f(t.text)&&!M(t.text)&&ff(o,cf(t.text))}else t.elm=cf(t.text);return t.elm}function bf(t,e,i,n,o){for(;n<=o;++n){var r=i[n];null!=r&&pf(t,wf(r),e)}}function Sf(t,e,i,n){for(;i<=n;++i){var o=e[i];null!=o&&(_f(o.tag)?df(gf(o.elm),o.elm):df(t,o.elm))}}function Tf(t,e){var i,n=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(i in r){var a=r[i];o[i]!==a&&(!0===a?n.setAttribute(i,""):!1===a?n.removeAttribute(i):"style"===i?n.style.cssText=a:i.charCodeAt(0)!==rk?n.setAttribute(i,a):"xmlns:xlink"===i||"xmlns"===i?n.setAttributeNS(ZI,i,a):i.charCodeAt(3)===ok?n.setAttributeNS(KI,i,a):i.charCodeAt(5)===ok?n.setAttributeNS(qI,i,a):n.setAttribute(i,a))}for(i in o)i in r||n.removeAttribute(i)}}function Mf(t,e,i){for(var n,o,r,a=0,s=0,l=e.length-1,h=e[0],u=e[l],c=i.length-1,p=i[0],d=i[c];a<=l&&s<=c;)null==h?h=e[++a]:null==u?u=e[--l]:null==p?p=i[++s]:null==d?d=i[--c]:xf(h,p)?(Cf(h,p),h=e[++a],p=i[++s]):xf(u,d)?(Cf(u,d),u=e[--l],d=i[--c]):xf(h,d)?(Cf(h,d),pf(t,h.elm,yf(u.elm)),h=e[++a],d=i[--c]):(xf(u,p)?(Cf(u,p),pf(t,u.elm,h.elm),u=e[--l]):(vf(n)&&(n=function(t,e,i){for(var n={},o=e;o<=i;++o){var r=t[o].key;void 0!==r&&(n[r]=o)}return n}(e,a,l)),vf(o=n[p.key])||(r=e[o]).tag!==p.tag?pf(t,wf(p),h.elm):(Cf(r,p),e[o]=void 0,pf(t,r.elm,h.elm))),p=i[++s]);(a<=l||s<=c)&&(l<a?bf(t,null==i[c+1]?null:i[c+1].elm,i,s,c):Sf(t,e,a,l))}function Cf(t,e){var i=e.elm=t.elm,n=t.children,o=e.children;t!==e&&(Tf(t,e),vf(e.text)?_f(n)&&_f(o)?n!==o&&Mf(i,n,o):_f(o)?(_f(t.text)&&mf(i,""),bf(i,null,o,0,o.length-1)):_f(n)?Sf(i,n,0,n.length-1):_f(t.text)&&mf(i,""):t.text!==e.text&&(_f(n)&&Sf(i,n,0,n.length-1),mf(i,e.text)))}function If(t,e,i){var n;this.type="svg",this.refreshHover=kf(),this.configLayer=kf(),this.storage=e,this._opts=i=l({},i),this.root=t,this._id="zr"+sk++,this._oldVNode=jd(i.width,i.height),t&&!i.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",n=this._svgDom=this._oldVNode.elm=Wd("svg"),Tf(null,this._oldVNode),e.appendChild(n),t.appendChild(e)),this.resize(i.width,i.height)}function kf(){return function(){}}var Af=function(t,e){return(Af=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},Df=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Pf=new function(){this.browser=new Df,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?(Pf.wxa=!0,Pf.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Pf.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Pf.node=!0,Pf.svgSupported=!0):(qf=navigator.userAgent,sg=(og=Pf).browser,Qf=qf.match(/Firefox\/([\d.]+)/),Hf=qf.match(/MSIE\s([\d.]+)/)||qf.match(/Trident\/.+?rv:(([\d.]+))/),jf=qf.match(/Edge?\/([\d.]+)/),qf=/micromessenger/i.test(qf),Qf&&(sg.firefox=!0,sg.version=Qf[1]),Hf&&(sg.ie=!0,sg.version=Hf[1]),jf&&(sg.edge=!0,sg.version=jf[1],sg.newEdge=18<+jf[1].split(".")[0]),qf&&(sg.weChat=!0),og.svgSupported="undefined"!=typeof SVGRect,og.touchEventsSupported="ontouchstart"in window&&!sg.ie&&!sg.edge,og.pointerEventsSupported="onpointerdown"in window&&(sg.edge||sg.ie&&11<=+sg.version),og.domSupported="undefined"!=typeof document,Qf=document.documentElement.style,og.transform3dSupported=(sg.ie&&"transition"in Qf||sg.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Qf)&&!("OTransition"in Qf),og.transformSupported=og.transform3dSupported||sg.ie&&9<=+sg.version);var Of,Lf,Ef=12,Rf="sans-serif",Nf=Ef+"px "+Rf,Bf=function(t){var e={};if("undefined"!=typeof JSON)for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),o=(t.charCodeAt(i)-20)/100;e[n]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),zf={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(Of||(i=zf.createCanvas(),Of=i&&i.getContext("2d")),Of)return Lf!==e&&(Lf=Of.font=e||Nf),Of.measureText(t);t=t||"",e=e||Nf;var i=/((?:\d+)?\.?\d*)px/.exec(e),n=i&&+i[1]||Ef,o=0;if(0<=e.indexOf("mono"))o=n*t.length;else for(var r=0;r<t.length;r++){var a=Bf[t[r]];o+=null==a?n:a*n}return{width:o}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}},Ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Vf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Yf=Object.prototype.toString,Hf=Array.prototype,Wf=Hf.forEach,Xf=Hf.filter,Gf=Hf.slice,Uf=Hf.map,jf=function(){}.constructor,qf=jf?jf.prototype:null,Zf="__proto__",Kf=2311,Qf=zf.createCanvas,$f=qf&&w(qf.bind)?qf.call.bind(qf.bind):function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(Gf.call(arguments)))}},Jf="__ec_primitive__";H.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},H.prototype.has=function(t){return this.data.hasOwnProperty(t)},H.prototype.get=function(t){return this.data[t]},H.prototype.set=function(t,e){return this.data[t]=e,this},H.prototype.keys=function(){return v(this.data)},H.prototype.forEach=function(t){var e,i=this.data;for(e in i)i.hasOwnProperty(e)&&t(i[e],e)};var tg=H,eg="function"==typeof Map;W.prototype.hasKey=function(t){return this.data.has(t)},W.prototype.get=function(t){return this.data.get(t)},W.prototype.set=function(t,e){return this.data.set(t,e),e},W.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},W.prototype.keys=function(){var t=this.data.keys();return eg?Array.from(t):t},W.prototype.removeKey=function(t){this.data.delete(t)};var ig=W,ng=180/Math.PI,og=Object.freeze({__proto__:null,HashMap:ig,RADIAN_TO_DEGREE:ng,assert:z,bind:$f,clone:a,concatArray:G,createCanvas:Qf,createHashMap:X,createObject:U,curry:_,defaults:h,disableUserSelect:j,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,i){if(t&&e)for(var n=0,o=t.length;n<o;n++)if(e.call(i,t[n],n,t))return t[n]},guid:o,hasOwn:q,indexOf:u,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:C,isDom:k,isFunction:w,isGradientObject:A,isImagePatternObject:D,isNumber:T,isObject:M,isPrimitive:Y,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:r,map:g,merge:s,mergeAll:function(t,e){for(var i=t[0],n=1,o=t.length;n<o;n++)i=s(i,t[n],e);return i},mixin:p,noop:Z,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:E,retrieve3:R,setAsPrimitive:V,slice:N,trim:F}),rg=ot,ag=rt,sg=Object.freeze({__proto__:null,add:$,applyTransform:st,clone:Q,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:K,dist:rg,distSquare:ag,distance:ot,distanceSquare:rt,div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:tt,lenSquare:et,length:tt,lengthSquare:et,lerp:at,max:ht,min:lt,mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:nt,scale:it,scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},set:function(t,e,i){return t[0]=e,t[1]=i,t},sub:J}),lg=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},hg=(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 lg(e,t),"dragstart",t.event))},ut.prototype._drag=function(t){var e,i,n,o,r=this._draggingTarget;r&&(e=t.offsetX,i=t.offsetY,n=e-this._x,o=i-this._y,this._x=e,this._y=i,r.drift(n,o,t),this.handler.dispatchToElement(new lg(r,t),"drag",t.event),n=this.handler.findHover(e,i,r).target,o=this._dropTarget,r!==(this._dropTarget=n))&&(o&&n!==o&&this.handler.dispatchToElement(new lg(o,t),"dragleave",t.event),n)&&n!==o&&this.handler.dispatchToElement(new lg(n,t),"dragenter",t.event)},ut.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new lg(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new lg(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ut);ct.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),i&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===i)return this;r={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},e=o[t].length-1,n=o[t][e],n&&n.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},ct.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ct.prototype.off=function(t,e){var i=this._$handlers;if(i)if(t)if(e){if(i[t]){for(var n=[],o=0,r=i[t].length;o<r;o++)i[t][o].h!==e&&n.push(i[t][o]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];else this._$handlers={};return this},ct.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){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)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},ct.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=e[r-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!o||!o.filter||null==h.query||o.filter(t,h.query))switch(r){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var ug=ct,cg=Math.log(2),pg="___zrEVENTSAVED",dg=[],fg=/([&<>"'])/g,gg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yg=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mg=[],vg=Pf.browser.firefox&&+Pf.browser.version.split(".")[0]<39,_g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},xg=(wt.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},wt.prototype.clear=function(){return this._track.length=0,this},wt.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},r=0,a=n.length;r<a;r++){var s=n[r],l=mt(i,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},wt.prototype._recognize=function(t){for(var e in wg)if(wg.hasOwnProperty(e)&&(e=wg[e](this._track,t)))return e},wt),wg={pinch:function(t,e){var i,n=t.length;if(n)return i=(t[n-1]||{}).points,(n=(t[n-2]||{}).points||i)&&1<n.length&&i&&1<i.length?(n=bt(i)/bt(n),isFinite(n)||(n=1),e.pinchScale=n,n=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2],e.pinchX=n[0],e.pinchY=n[1],{type:"pinch",target:t[0].target,event:e}):void 0}},bg=Object.freeze({__proto__:null,clone:function(t){var e=St();return Mt(e,t),e},copy:Mt,create:St,identity:Tt,invert:Dt,mul:Ct,rotate:kt,scale:At,translate:It}),Sg=(Pt.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Pt.prototype.clone=function(){return new Pt(this.x,this.y)},Pt.prototype.set=function(t,e){return this.x=t,this.y=e,this},Pt.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Pt.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Pt.prototype.scale=function(t){this.x*=t,this.y*=t},Pt.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Pt.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Pt.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Pt.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Pt.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Pt.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Pt.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Pt.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Pt.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Pt.prototype.transform=function(t){var e,i;if(t)return e=this.x,i=this.y,this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this},Pt.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Pt.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Pt.set=function(t,e,i){t.x=e,t.y=i},Pt.copy=function(t,e){t.x=e.x,t.y=e.y},Pt.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Pt.lenSquare=function(t){return t.x*t.x+t.y*t.y},Pt.dot=function(t,e){return t.x*e.x+t.y*e.y},Pt.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},Pt.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},Pt.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},Pt.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},Pt.lerp=function(t,e,i,n){var o=1-n;t.x=o*e.x+n*i.x,t.y=o*e.y+n*i.y},Pt),Tg=Math.min,Mg=Math.max,Cg=new Sg,Ig=new Sg,kg=new Sg,Ag=new Sg,Dg=new Sg,Pg=new Sg,Og=(Ot.prototype.union=function(t){var e=Tg(t.x,this.x),i=Tg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Mg(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Mg(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},Ot.prototype.applyTransform=function(t){Ot.applyTransform(this,this,t)},Ot.prototype.calculateTransform=function(t){var e=t.width/this.width,i=t.height/this.height,n=St();return It(n,n,[-this.x,-this.y]),At(n,n,[e,i]),It(n,n,[t.x,t.y]),n},Ot.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Ot||(t=Ot.create(t));var i,n,o,r,a,s,l,h,u=this,c=u.x,p=u.x+u.width,d=u.y,u=u.y+u.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||u<y||t<d);return e&&(i=1/0,n=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(u-y),s=Math.abs(t-d),l=Math.min(o,r),h=Math.min(a,s),p<f||g<c?n<l&&(n=l,o<r?Sg.set(Pg,-o,0):Sg.set(Pg,r,0)):l<i&&(i=l,o<r?Sg.set(Dg,o,0):Sg.set(Dg,-r,0)),u<y||t<d?n<h&&(n=h,a<s?Sg.set(Pg,0,-a):Sg.set(Pg,0,s)):l<i&&(i=l,a<s?Sg.set(Dg,0,a):Sg.set(Dg,0,-s))),e&&Sg.copy(e,m?Dg:Pg),m},Ot.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},Ot.prototype.clone=function(){return new Ot(this.x,this.y,this.width,this.height)},Ot.prototype.copy=function(t){Ot.copy(this,t)},Ot.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ot.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ot.prototype.isZero=function(){return 0===this.width||0===this.height},Ot.create=function(t){return new Ot(t.x,t.y,t.width,t.height)},Ot.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ot.applyTransform=function(t,e,i){var n,o,r,a;i?i[1]<1e-5&&-1e-5<i[1]&&i[2]<1e-5&&-1e-5<i[2]?(n=i[0],o=i[3],r=i[4],a=i[5],t.x=e.x*n+r,t.y=e.y*o+a,t.width=e.width*n,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Cg.x=kg.x=e.x,Cg.y=Ag.y=e.y,Ig.x=Ag.x=e.x+e.width,Ig.y=kg.y=e.y+e.height,Cg.transform(i),Ag.transform(i),Ig.transform(i),kg.transform(i),t.x=Tg(Cg.x,Ig.x,kg.x,Ag.x),t.y=Tg(Cg.y,Ig.y,kg.y,Ag.y),r=Mg(Cg.x,Ig.x,kg.x,Ag.x),a=Mg(Cg.y,Ig.y,kg.y,Ag.y),t.width=r-t.x,t.height=a-t.y):t!==e&&Ot.copy(t,e)},Ot),Lg="silent";i(Et,Eg=ug),Et.prototype.dispose=function(){},Et.prototype.setCursor=function(){};var Eg,Rg,Ng=Et,Bg=function(t,e){this.x=t,this.y=e},zg=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Fg=new Og(0,0,0,0),Vg=(i(Rt,Rg=ug),Rt.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f(zg,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},Rt.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=Bt(this,e,i),o=this._hovered,r=o.target,n=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=n?new Bg(e,i):this.findHover(e,i)),e=n.target,i=this.proxy;i.setCursor&&i.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(n,"mousemove",t),e&&e!==r&&this.dispatchToElement(n,"mouseover",t)},Rt.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})},Rt.prototype.resize=function(){this._hovered=new Bg(0,0)},Rt.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},Rt.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Rt.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},Rt.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var o="on"+e,r={type:e,event:i,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Lt};n&&(n[o]&&(r.cancelBubble=!!n[o].call(n,r)),n.trigger(e,r),n=n.__hostTarget||n.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},Rt.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),o=new Bg(t,e);if(Nt(n,o,t,e,i),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new Og(t-s,e-s,a,a),h=n.length-1;0<=h;h--){var u=n[h];u===i||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Fg.copy(u.getBoundingRect()),u.transform&&Fg.applyTransform(u.transform),Fg.intersect(l)&&r.push(u))}if(r.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(Nt(r,o,t+d*Math.cos(f),e+d*Math.sin(f),i),o.target)return o}return o},Rt.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new xg);var i=this._gestureMgr,n=("start"===e&&i.clear(),i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&i.clear(),n&&(e=n.type,t.gestureEvent=e,(i=new Bg).target=n.target,this.dispatchToElement(i,e,n.event))},Rt);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Vg.prototype[t]=function(e){var i,n,o=e.zrX,r=e.zrY,a=Bt(this,o,r);if("mouseup"===t&&a||(n=(i=this.findHover(o,r)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<rg(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Yg=32,Hg=7,Wg=1,Xg=4,Gg=!1;Ut.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},Ut.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},Ut.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,o=e.length;n<o;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Wt(i,Gt)},Ut.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var o=n,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Wg),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else n=t,e&&e.length?n.__clipPaths=e:n.__clipPaths&&0<n.__clipPaths.length&&(n.__clipPaths=[]),isNaN(n.z)&&(Xt(),n.z=0),isNaN(n.z2)&&(Xt(),n.z2=0),isNaN(n.zlevel)&&(Xt(),n.zlevel=0),this._displayList[this._displayListLen++]=n;n=t.getDecalElement&&t.getDecalElement(),n&&this._updateAndAddDisplayable(n,e,i),n=t.getTextGuideLine(),n&&this._updateAndAddDisplayable(n,e,i),n=t.getTextContent(),n&&this._updateAndAddDisplayable(n,e,i)}},Ut.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Ut.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=u(this._roots,t);0<=n&&this._roots.splice(n,1)}},Ut.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Ut.prototype.getRoots=function(){return this._roots},Ut.prototype.dispose=function(){this._displayList=null,this._roots=null};var Ug=Ut,jg=Pf.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},qg={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,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*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-qg.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*qg.bounceIn(2*t):.5*qg.bounceOut(2*t-1)+.5}},Zg=Math.pow,Kg=Math.sqrt,Qg=1e-8,$g=Kg(3),Jg=1/3,ty=K(),ey=K(),iy=K(),ny=/cubic-bezier\(([0-9,\.e ]+)\)/;se.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,o=n/i,r=(o<0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-n%i,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},se.prototype.pause=function(){this._paused=!0},se.prototype.resume=function(){this._paused=!1},se.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:qg[t]||ae(t)};var oy=se,ry=function(t){this.value=t},ay=(le.prototype.insert=function(t){return t=new ry(t),this.insertEntry(t),t},le.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++},le.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},le.prototype.len=function(){return this._len},le.prototype.clear=function(){this.head=this.tail=null,this._len=0},le);he.prototype.put=function(t,e){var i,n,o=this._list,r=this._map,a=null;return null==r[t]&&(n=o.len(),i=this._lastRemovedEntry,n>=this._maxSize&&0<n&&(n=o.head,o.remove(n),delete r[n.key],a=n.value,this._lastRemovedEntry=n),i?i.value=e:i=new ry(e),i.key=t,o.insertEntry(i),r[t]=i),a},he.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},he.prototype.clear=function(){this._list.clear(),this._map={}},he.prototype.len=function(){return this._list.len()};var sy=he,ly={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]},hy=new sy(20),uy=null,cy=be,py=Se,dy=new sy(100),cy=Object.freeze({__proto__:null,fastLerp:be,fastMapToColor:cy,lerp:Se,lift:we,liftColor:Ce,lum:Me,mapToColor:py,modifyAlpha:function(t,e){if((t=_e(t))&&null!=e)return t[3]=ce(e),Te(t,"rgba")},modifyHSL:function(t,e,i,n){var o=_e(t);if(t)return o=function(t){var e,i,n,o,r,a,s,l,h,u;if(t)return u=t[0]/255,e=t[1]/255,i=t[2]/255,s=Math.min(u,e,i),o=((n=Math.max(u,e,i))+s)/2,0==(h=n-s)?a=r=0:(a=o<.5?h/(n+s):h/(2-n-s),s=((n-u)/6+h/2)/h,l=((n-e)/6+h/2)/h,h=((n-i)/6+h/2)/h,u===n?r=h-l:e===n?r=1/3+s-h:i===n&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),u=[360*r,a,o],null!=t[3]&&u.push(t[3]),u}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=i&&(o[1]=de(i)),null!=n&&(o[2]=de(n)),Te(xe(o),"rgba")},parse:_e,random:function(){return Te([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Te,toHex:function(t){if(t=_e(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),fy=Math.round,gy={left:"start",right:"end",center:"middle",middle:"middle"},yy=Pf.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},my=Array.prototype.slice,vy=[0,0,0,0],_y=(je.prototype.isFinished=function(){return this._finished},je.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},je.prototype.needsAnimate=function(){return 1<=this.keyframes.length},je.prototype.getAdditiveTrack=function(){return this._additiveTrack},je.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n,o=this.keyframes,r=o.length,a=!1,s=6,h=e,u=(d(e)?(1==(s=n=d((n=e)&&n[0])?2:1)&&!T(e[0])||2==n&&!T(e[0][0]))&&(a=!0):T(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(n=_e(e))&&(h=n,s=3):s=0:A(e)&&((u=l({},h)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:_e(t.color)}}),Le(e)?s=4:Ee(e)&&(s=5),h=u),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:h,rawValue:e,percent:0});return i&&(u.easing=i,u.easingFunc=w(i)?i:qg[i]||ae(i)),o.push(u),u},je.prototype.prepare=function(t,e){for(var i=this.keyframes,n=(this._needsSort&&i.sort(function(t,e){return t.time-e.time}),this.valType),o=i.length,r=i[o-1],a=this.discrete,s=Ue(n),l=Ge(n),h=0;h<o;h++){var u=i[h],c=u.value,p=r.value;if(u.percent=u.time/t,!a)if(s&&h!==o-1){x=_=v=m=y=g=f=d=u=void 0;var d=p,f=n,g=u=c,y=d;if(g.push&&y.push){var u=g.length,m=y.length;if(u!==m)if(m<u)g.length=m;else for(var v=u;v<m;v++)g.push(1===f?y[v]:my.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){M=T=S=b=w=u=d=void 0;for(var d=c.colorStops,u=p.colorStops,w=d.length,b=u.length,S=b<w?u:d,u=Math.min(w,b),T=S[u-1]||{color:[0,0,0,0],offset:0},M=u;M<Math.max(w,b);M++)S.push({offset:T.offset,color:T.color.slice()})}}if(!a&&5!==n&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var C=i[0].value,h=0;h<o;h++)0===n?i[h].additiveValue=i[h].value-C:3===n?i[h].additiveValue=Ye([],i[h].value,C,-1):Ue(n)&&(i[h].additiveValue=(1===n?Ye:He)([],i[h].value,C,-1))}},je.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,h=this.keyframes,u=h.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===u)i=n=h[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,u-1);0<=y&&!(h[y].percent<=e);y--);y=f(y,u-2)}else{for(y=d;y<u&&!(h[y].percent>e);y++);y=f(y-1,u-2)}n=h[y+1],i=h[y]}i&&n&&(this._lastFr=y,this._lastFrP=e,d=n.percent-i.percent,o=0==d?1:f((e-i.percent)/d,1),n.easingFunc&&(o=n.easingFunc(o)),f=a?this._additiveValue:p?vy:t[c],(Ue(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?i:n).rawValue:Ue(l)?(1===l?Ve:function(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Fe(e[a][s],i[a][s],n)}})(f,i[s],n[s],o):Ge(l)?(d=i[s],r=n[s],t[c]={type:(l=4===l)?"linear":"radial",x:Fe(d.x,r.x,o),y:Fe(d.y,r.y,o),colorStops:g(d.colorStops,function(t,e){return e=r.colorStops[e],{offset:Fe(t.offset,e.offset,o),color:Xe(Ve([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=Fe(d.x2,r.x2,o),t[c].y2=Fe(d.y2,r.y2,o)):t[c].r=Fe(d.r,r.r,o)):p?(Ve(f,i[s],n[s],o),a||(t[c]=Xe(f))):(l=Fe(i[s],n[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},je.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(_e(t[i],vy),Ye(vy,vy,n,1),t[i]=Xe(vy)):1===e?Ye(t[i],t[i],n,1):2===e&&He(t[i],t[i],n,1)},je);qe.prototype.getMaxTime=function(){return this._maxTime},qe.prototype.getDelay=function(){return this._delay},qe.prototype.getLoop=function(){return this._loop},qe.prototype.getTarget=function(){return this._target},qe.prototype.changeTarget=function(t){this._target=t},qe.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,v(e),i)},qe.prototype.whenWithKeys=function(t,e,i,n){for(var o=this._tracks,r=0;r<i.length;r++){var a=i[r];if(!(l=o[a])){var s,l=o[a]=new _y(a),h=void 0,u=this._getAdditiveTrack(a);if(u?(h=(s=(s=u.keyframes)[s.length-1])&&s.value,3===u.valType&&(h=h&&Xe(h))):h=this._target[a],null==h)continue;0<t&&l.addKeyframe(0,We(h),n),this._trackKeys.push(a)}l.addKeyframe(t,We(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},qe.prototype.pause=function(){this._clip.pause(),this._paused=!0},qe.prototype.resume=function(){this._clip.resume(),this._paused=!1},qe.prototype.isPaused=function(){return!!this._paused},qe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},qe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},qe.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},qe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},qe.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(t);o&&(e=o)}return e},qe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,i=this,n=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,h=l.length;s.prepare(o,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[h-1])&&(i._target[s.propName]=a.rawValue),s.setFinished()):n.push(s))}return n.length||this._force?(e=new oy({life:o,loop:this._loop,delay:this._delay||0,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var o=!1,r=0;r<e.length;r++)if(e[r]._clip){o=!0;break}o||(i._additiveAnimators=null)}for(r=0;r<n.length;r++)n[r].step(i._target,t);var a=i._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](i._target,t)},ondestroy:function(){i._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},qe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},qe.prototype.delay=function(t){return this._delay=t,this},qe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},qe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},qe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},qe.prototype.getClip=function(){return this._clip},qe.prototype.getTrack=function(t){return this._tracks[t]},qe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},qe.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<t.length;o++){var r=i[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},qe.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var o=e[n],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[i?0:r.length-1])&&(t[o]=We(r.rawValue))}}},qe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var i=0;i<e.length;i++){var n,o=e[i],r=this._tracks[o];r&&1<(n=r.keyframes).length&&(n=n.pop(),r.addKeyframe(n.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var xy=qe;i(Ke,wy=ug),Ke.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},Ke.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Ke.prototype.removeClip=function(t){var e,i;t.animation&&(e=t.prev,i=t.next,e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},Ke.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ke.prototype.update=function(t){for(var e=Ze()-this._pausedTime,i=e-this._time,n=this._head;n;)var o=n.next,n=(n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),o);this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},Ke.prototype._startLoop=function(){var t=this;this._running=!0,jg(function e(){t._running&&(jg(e),t._paused||t.update())})},Ke.prototype.start=function(){this._running||(this._time=Ze(),this._pausedTime=0,this._startLoop())},Ke.prototype.stop=function(){this._running=!1},Ke.prototype.pause=function(){this._paused||(this._pauseStart=Ze(),this._paused=!0)},Ke.prototype.resume=function(){this._paused&&(this._pausedTime+=Ze()-this._pauseStart,this._paused=!1)},Ke.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},Ke.prototype.isFinished=function(){return null==this._head},Ke.prototype.animate=function(t,e){return e=e||{},this.start(),t=new xy(t,e.loop),this.addAnimator(t),t};var wy,by,Sy,Ty,My=Ke,Cy=Pf.domSupported,Iy=(by={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:py=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(py,function(t){var e=t.replace("mouse","pointer");return by.hasOwnProperty(e)?e:t})}),ky=["mousemove","mouseup"],Ay=["pointermove","pointerup"],Dy=!1,Py=function(t,e){this.stopPropagation=Z,this.stopImmediatePropagation=Z,this.preventDefault=Z,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Oy={mousedown:function(t){t=xt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=xt(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=xt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Je(this,(t=xt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Dy=!0,t=xt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Dy||(t=xt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){$e(t=xt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Oy.mousemove.call(this,t),Oy.mousedown.call(this,t)},touchmove:function(t){$e(t=xt(this.dom,t)),this.handler.processGesture(t,"change"),Oy.mousemove.call(this,t)},touchend:function(t){$e(t=xt(this.dom,t)),this.handler.processGesture(t,"end"),Oy.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Oy.click.call(this,t)},pointerdown:function(t){Oy.mousedown.call(this,t)},pointermove:function(t){Qe(t)||Oy.mousemove.call(this,t)},pointerup:function(t){Oy.mouseup.call(this,t)},pointerout:function(t){Qe(t)||Oy.mouseout.call(this,t)}},Ly=(f(["click","dblclick","contextmenu"],function(t){Oy[t]=function(e){e=xt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){Qe(t)||Ly.mousemove.call(this,t)},pointerup:function(t){Ly.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))}}),Ey=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ry=(i(oi,Sy=ug),oi.prototype.dispose=function(){ni(this._localHandlerScope),Cy&&ni(this._globalHandlerScope)},oi.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},oi.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Cy&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?ei(this,e):ni(e))},oi),py=1,Ny=py=Pf.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):py,By="#333",zy="#ccc",Fy=Tt,Vy=[],Yy=[],Hy=St(),Wy=Math.abs,Xy=(ai.prototype.getLocalTransform=function(t){return ai.getLocalTransform(this,t)},ai.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},ai.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},ai.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},ai.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},ai.prototype.needLocalTransform=function(){return ri(this.rotation)||ri(this.x)||ri(this.y)||ri(this.scaleX-1)||ri(this.scaleY-1)||ri(this.skewX)||ri(this.skewY)},ai.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||St(),e?this.getLocalTransform(i):Fy(i),t&&(e?Ct(i,t,i):Mt(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(Fy(i),this.invTransform=null)},ai.prototype._resolveGlobalScaleRatio=function(t){var e,i,n=this.globalScaleRatio;null!=n&&1!==n&&(this.getGlobalScale(Vy),i=((Vy[1]-(i=Vy[1]<0?-1:1))*n+i)/Vy[1]||0,t[0]*=n=((Vy[0]-(e=Vy[0]<0?-1:1))*n+e)/Vy[0]||0,t[1]*=n,t[2]*=i,t[3]*=i),this.invTransform=this.invTransform||St(),Dt(this.invTransform,t)},ai.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},ai.prototype.setLocalTransform=function(t){var e,i,n,o;t&&(o=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),i=Math.PI/2+e-Math.atan2(t[3],t[2]),n=Math.sqrt(n)*Math.cos(i),o=Math.sqrt(o),this.skewX=i,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=n,this.originX=0,this.originY=0)},ai.prototype.decomposeTransform=function(){var t,e,i;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||St(),Ct(Yy,e.invTransform,t),t=Yy),e=this.originX,i=this.originY,(e||i)&&(Hy[4]=e,Hy[5]=i,Ct(Yy,t,Hy),Yy[4]-=e,Yy[5]-=i,t=Yy),this.setLocalTransform(t))},ai.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},ai.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&st(t,t,e),t},ai.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&st(t,t,e),t},ai.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Wy(t[0]-1)&&1e-10<Wy(t[3]-1)?Math.sqrt(Wy(t[0]*t[3]-t[2]*t[1])):1},ai.prototype.copyTransform=function(t){si(this,t)},ai.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,h=t.x,u=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return i||n||a||s?(e[4]=-(a=i+a)*o-c*(s=n+s)*r,e[5]=-s*r-t*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=c*r,l&&kt(e,e,l),e[4]+=i+h,e[5]+=n+u,e},ai.initDefaultProps=((py=ai.prototype).scaleX=py.scaleY=py.globalScaleRatio=1,void(py.x=py.y=py.originX=py.originY=py.skewX=py.skewY=py.rotation=py.anchorX=py.anchorY=0)),ai),Gy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Uy={},jy="__zr_normal__",qy=Gy.concat(["ignore"]),Zy=y(Gy,function(t,e){return t[e]=!0,t},{ignore:!1}),Ky={},Qy=new Og(0,0,0,0),py=(yi.prototype._init=function(t){this.attr(t)},yi.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;(n=n||(this.transform=[1,0,0,1,0,0]))[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},yi.prototype.beforeUpdate=function(){},yi.prototype.afterUpdate=function(){},yi.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},yi.prototype.updateInnerText=function(t){var e,i,n,o,r,a,s,l,h,u,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,n=i=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,u=!1,e.copyTransform(c),null!=t.position&&(h=Qy,t.layoutRect?h.copy(t.layoutRect):h.copy(this.getBoundingRect()),l||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ky,t,h):gi(Ky,t,h),e.x=Ky.x,e.y=Ky.y,i=Ky.align,n=Ky.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*h.width,.5*h.height):(a=fi(r[0],h.width),fi(r[1],h.height)),u=!0,e.originX=-e.x+a+(l?0:h.x),e.originY=-e.y+s+(l?0:h.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],u||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),u=h=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,h=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(l),u=!0)):(l=t.outsideFill,h=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(l),u=!0)),(l=l||"#000")===s.fill&&h===s.stroke&&u===s.autoStroke&&i===s.align&&n===s.verticalAlign||(o=!0,s.fill=l,s.stroke=h,s.autoStroke=u,s.align=i,s.verticalAlign=n,c.setDefaultTextStyle(s)),c.__dirty|=Wg,o&&c.dirtyStyle(!0))},yi.prototype.canBeInsideText=function(){return!0},yi.prototype.getInsideTextFill=function(){return"#fff"},yi.prototype.getInsideTextStroke=function(t){return"#000"},yi.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zy:By},yi.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&_e(e),n=(i=i||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)i[r]=i[r]*n+(o?0:255)*(1-n);return i[3]=1,Te(i,"rgba")},yi.prototype.traverse=function(t,e){},yi.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},yi.prototype.hide=function(){this.ignore=!0,this.markRedraw()},yi.prototype.show=function(){this.ignore=!1,this.markRedraw()},yi.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(M(t))for(var i=v(t),n=0;n<i.length;n++){var o=i[n];this.attrKV(o,t[o])}return this.markRedraw(),this},yi.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],o=n.__fromStateTransition;n.getLoop()||o&&o!==jy||(o=(o=n.targetName)?e[o]:e,n.saveTo(o))}},yi.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,qy)},yi.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null==t[o]||o in e||(e[o]=this[o])}},yi.prototype.hasState=function(){return 0<this.currentStates.length},yi.prototype.getState=function(t){return this.states[t]},yi.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},yi.prototype.clearStates=function(t){this.useState(jy,!1,t)},yi.prototype.useState=function(t,e,i,n){var o=t===jy,a=this.hasState();if(a||!o){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=u(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!o?this.stateProxy(t):s)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||n))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!i&&!this.__inHover&&l&&0<l.duration,l),n=this._textContent,l=this._textGuide,n&&n.useState(t,e,i,a),l&&l.useState(t,e,i,a),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg),s;r("State "+t+" not exists.")}}},yi.prototype.useStates=function(t,e,i){if(t.length){var n=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],h=void 0;(h=(h=this.stateProxy?this.stateProxy(l,t):h)||this.states[l])&&n.push(h)}var u=n[r-1],u=!!(u&&u.hoverLayer||i),i=(u&&this._toggleHoverLayerFlag(!0),this._mergeStates(n)),c=this.stateTransition,i=(this.saveCurrentToNormalState(i),this._applyStateObj(t.join(","),i,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;i&&i.useStates(t,e,u),c&&c.useStates(t,e,u),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg)}}else this.clearStates()},yi.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},yi.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},yi.prototype.removeState=function(t){var e,t=u(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},yi.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),t=u(n,t),o=0<=u(n,e);0<=t?o?n.splice(t,1):n[t]=e:i&&!o&&n.push(e),this.useStates(n)},yi.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},yi.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var o=t[n];l(i,o),o.textConfig&&l(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},yi.prototype._applyStateObj=function(t,e,i,n,o,r){for(var a=!(e&&n),s=(e&&e.textConfig?(this.textConfig=l({},(n?this:i).textConfig),l(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig),{}),h=!1,u=0;u<qy.length;u++){var c=qy[u],p=o&&Zy[c];e&&null!=e[c]?p?(h=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(h=!0,s[c]=i[c]):this[c]=i[c])}if(!o)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||i)[f]:e||i)}h&&this._transitionState(t,s,r)},yi.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},yi.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},yi.prototype.getClipPath=function(){return this._clipPath},yi.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},yi.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},yi.prototype.getTextContent=function(){return this._textContent},yi.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Xy,this._attachComponent(t),this._textContent=t,this.markRedraw())},yi.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},yi.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},yi.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},yi.prototype.getTextGuideLine=function(){return this._textGuide},yi.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},yi.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},yi.prototype.markRedraw=function(){this.__dirty|=Wg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},yi.prototype.dirty=function(){this.markRedraw()},yi.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},yi.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},yi.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},yi.prototype.animate=function(t,e,i){var n=t?this[t]:this,n=new xy(n,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},yi.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=u(e,t);0<=i&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},yi.prototype.updateDuringAnimation=function(t){this.markRedraw()},yi.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,o=[],r=0;r<n;r++){var a=i[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},yi.prototype.animateTo=function(t,e,i){vi(this,t,e,i)},yi.prototype.animateFrom=function(t,e,i){vi(this,t,e,i,!0)},yi.prototype._transitionState=function(t,e,i,n){for(var o=vi(this,e,i,n),r=0;r<o.length;r++)o[r].__fromStateTransition=t},yi.prototype.getBoundingRect=function(){return null},yi.prototype.getPaintRect=function(){return null},yi.initDefaultProps=((Ty=yi.prototype).type="element",Ty.name="",Ty.ignore=Ty.silent=Ty.isGroup=Ty.draggable=Ty.dragging=Ty.ignoreClip=Ty.__inHover=!1,Ty.__dirty=Wg,void(Object.defineProperty&&(mi("position","_legacyPos","x","y"),mi("scale","_legacyScale","scaleX","scaleY"),mi("origin","_legacyOrigin","originX","originY")))),yi);p(py,ug),p(py,Xy),i(bi,$y=py),bi.prototype.childrenRef=function(){return this._children},bi.prototype.children=function(){return this._children.slice()},bi.prototype.childAt=function(t){return this._children[t]},bi.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},bi.prototype.childCount=function(){return this._children.length},bi.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},bi.prototype.addBefore=function(t,e){var i;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(i=this._children).indexOf(e))&&(i.splice(e,0,t),this._doAdd(t)),this},bi.prototype.replace=function(t,e){return t=u(this._children,t),0<=t&&this.replaceAt(e,t),this},bi.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];return t&&t!==this&&t.parent!==this&&t!==n&&(i[e]=t,n.parent=null,(i=this.__zr)&&n.removeSelfFromZr(i),this._doAdd(t)),this},bi.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()},bi.prototype.remove=function(t){var e=this.__zr,i=this._children,n=u(i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},bi.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},bi.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];t.call(e,o,n)}return this},bi.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],o=t.call(e,n);n.isGroup&&!o&&n.traverse(t,e)}return this},bi.prototype.addSelfToZr=function(t){$y.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},bi.prototype.removeSelfFromZr=function(t){$y.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},bi.prototype.getBoundingRect=function(t){for(var e=new Og(0,0,0,0),i=t||this._children,n=[],o=null,r=0;r<i.length;r++){var a,s=i[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(n))?(Og.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var $y,Jy=bi;Jy.prototype.type="group";var tm={},em={};Si.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Si.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Si.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Si.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Me(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,o=0;o<n;o++)i+=Me(e[o].color,1);return(i/=n)<.4}}return!1}(t))},Si.prototype.getBackgroundColor=function(){return this._backgroundColor},Si.prototype.setDarkMode=function(t){this._darkMode=t},Si.prototype.isDarkMode=function(){return this._darkMode},Si.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Si.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Si.prototype.flush=function(){this._disposed||this._flush(!1)},Si.prototype._flush=function(t){var e,i=Ze(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Ze());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-i})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},Si.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Si.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Si.prototype.refreshHover=function(){this._needsRefreshHover=!0},Si.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Si.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Si.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Si.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Si.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Si.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Si.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Si.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},Si.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Si.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Si.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Jy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Si.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete em[t])};var im,nm,om=Si,rm=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in em)em.hasOwnProperty(t)&&em[t].dispose();em={}},getElementSSRData:Ci,getInstance:function(t){return em[t]},init:Ti,registerPainter:Mi,registerSSRDataGetter:Ii,version:"5.6.0"}),am=20,sm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,lm="series\0",hm=["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"],um=Hi(),cm={useDefault:!0,enableAll:!1,enableNone:!1},pm=".",dm="___EC__COMPONENT__CONTAINER___",fm="___EC__EXTENDED_CLASS___",gm=Math.round(10*Math.random()),ym=yn([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mm=(mn.prototype.getAreaStyle=function(t,e){return ym(this,t,e)},mn),vm=new sy(50),_m=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,xm=function(){},wm=function(t){this.tokens=[],t&&(this.tokens=t)},bm=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Sm=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Tm="__zr_style_"+Math.round(10*Math.random()),Mm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Cm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Im=(Mm[Tm]=!0,["z","z2","invisible"]),km=["invisible"],py=(i(In,nm=py),In.prototype._init=function(t){for(var e=v(t),i=0;i<e.length;i++){var n=e[i];"style"===n?this.useStyle(t[n]):nm.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},In.prototype.beforeBrush=function(){},In.prototype.afterBrush=function(){},In.prototype.innerBeforeBrush=function(){},In.prototype.innerAfterBrush=function(){},In.prototype.shouldBePainted=function(t,e,i,n){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,i){return Am.copy(t.getBoundingRect()),t.transform&&Am.applyTransform(t.transform),Dm.width=e,Dm.height=i,!Am.intersect(Dm)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},In.prototype.contain=function(t,e){return this.rectContain(t,e)},In.prototype.traverse=function(t,e){t.call(e,this)},In.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},In.prototype.getPaintRect=function(){var t,e,i,n,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(n=this.style).shadowBlur||0,i=n.shadowOffsetX||0,n=n.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new Og(0,0,0,0)),o?Og.applyTransform(r,t,o):r.copy(t),(e||i||n)&&(r.width+=2*e+Math.abs(i),r.height+=2*e+Math.abs(n),r.x=Math.min(r.x,r.x+i-e),r.y=Math.min(r.y,r.y+n-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},In.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Og(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},In.prototype.getPrevPaintRect=function(){return this._prevPaintRect},In.prototype.animateStyle=function(t){return this.animate("style",t)},In.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},In.prototype.attrKV=function(t,e){"style"!==t?nm.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},In.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},In.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},In.prototype.dirty=function(){this.dirtyStyle()},In.prototype.styleChanged=function(){return!!(2&this.__dirty)},In.prototype.styleUpdated=function(){this.__dirty&=-3},In.prototype.createStyle=function(t){return U(Mm,t)},In.prototype.useStyle=function(t){t[Tm]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},In.prototype.isStyleObject=function(t){return t[Tm]},In.prototype._innerSaveToNormal=function(t){nm.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,Im)},In.prototype._applyStateObj=function(t,e,i,n,o,r){nm.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.style?o?n?a=e.style:(a=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(n?this:i).style),this._mergeStyle(a,e.style)):s&&(a=i.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var h=v(l),u=0;u<h.length;u++)(p=h[u])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),u=0;u<c.length;u++){var p=c[u];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?km:Im,u=0;u<d.length;u++)p=d[u],e&&null!=e[p]?this[p]=e[p]:s&&null!=i[p]&&(this[p]=i[p])},In.prototype._mergeStates=function(t){for(var e,i=nm.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(i.style=e),i},In.prototype._mergeStyle=function(t,e){return l(t,e),t},In.prototype.getAnimationStyleProps=function(){return Cm},In.initDefaultProps=((py=In.prototype).type="displayable",py.invisible=!1,py.z=0,py.z2=0,py.zlevel=0,py.culling=!1,py.cursor="pointer",py.rectHover=!1,py.incremental=!1,py._rect=null,py.dirtyRectTolerance=0,void(py.__dirty=2|Wg)),In),Am=new Og(0,0,0,0),Dm=new Og(0,0,0,0),Pm=Math.min,Om=Math.max,Lm=Math.sin,Em=Math.cos,Rm=2*Math.PI,Nm=K(),Bm=K(),zm=K(),Fm=[],Vm=[],Ym={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Hm=[],Wm=[],Xm=[],Gm=[],Um=[],jm=[],qm=Math.min,Zm=Math.max,Km=Math.cos,Qm=Math.sin,$m=Math.abs,Jm=Math.PI,tv=2*Jm,ev="undefined"!=typeof Float32Array,iv=[];Dn.prototype.increaseVersion=function(){this._version++},Dn.prototype.getVersion=function(){return this._version},Dn.prototype.setScale=function(t,e,i){0<(i=i||0)&&(this._ux=$m(i/Ny/t)||0,this._uy=$m(i/Ny/e)||0)},Dn.prototype.setDPR=function(t){this.dpr=t},Dn.prototype.setContext=function(t){this._ctx=t},Dn.prototype.getContext=function(){return this._ctx},Dn.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Dn.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Dn.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ym.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},Dn.prototype.lineTo=function(t,e){var i=$m(t-this._xi),n=$m(e-this._yi),o=i>this._ux||n>this._uy;return this.addData(Ym.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=i*i+n*n)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},Dn.prototype.bezierCurveTo=function(t,e,i,n,o,r){return this._drawPendingPt(),this.addData(Ym.C,t,e,i,n,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,o,r),this._xi=o,this._yi=r,this},Dn.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(Ym.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},Dn.prototype.arc=function(t,e,i,n,o,r){this._drawPendingPt(),iv[0]=n,iv[1]=o,s=r,(l=An((a=iv)[0]))<0&&(l+=tv),u=l-a[0],h=a[1],h+=u,!s&&tv<=h-l?h=l+tv:s&&tv<=l-h?h=l-tv:!s&&h<l?h=l+(tv-An(l-h)):s&&l<h&&(h=l-(tv-An(h-l))),a[0]=l,a[1]=h;var a,s,l,h,u=(o=iv[1])-(n=iv[0]);return this.addData(Ym.A,t,e,i,i,n,u,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,r),this._xi=Km(o)*i+t,this._yi=Qm(o)*i+e,this},Dn.prototype.arcTo=function(t,e,i,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,o),this},Dn.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(Ym.R,t,e,i,n),this},Dn.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ym.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},Dn.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Dn.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Dn.prototype.len=function(){return this._len},Dn.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ev||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},Dn.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,i=0,n=this._len,o=0;o<e;o++)i+=t[o].len();for(ev&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[n++]=r[a];this._len=n},Dn.prototype.addData=function(t,e,i,n,o,r,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var u=0;u<arguments.length;u++)h[this._len++]=arguments[u]}},Dn.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Dn.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}},Dn.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,ev)&&11<this._len&&(this.data=new Float32Array(t))},Dn.prototype.getBoundingRect=function(){Xm[0]=Xm[1]=Um[0]=Um[1]=Number.MAX_VALUE,Gm[0]=Gm[1]=jm[0]=jm[1]=-Number.MAX_VALUE;for(var t,e=this.data,i=0,n=0,o=0,r=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(o=i=e[a],r=n=e[a+1]),s){case Ym.M:i=o=e[a++],n=r=e[a++],Um[0]=o,Um[1]=r,jm[0]=o,jm[1]=r;break;case Ym.L:kn(i,n,e[a],e[a+1],Um,jm),i=e[a++],n=e[a++];break;case Ym.C:T=S=b=w=x=_=v=m=y=g=f=d=p=c=u=h=void 0;var h=i,u=n,c=e[a++],p=e[a++],d=e[a++],f=e[a++],g=e[a],y=e[a+1],m=Um,v=jm,_=$t,x=Zt,w=_(h,c,d,g,Fm);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(h,c,d,g,Fm[b]);m[0]=Pm(S,m[0]),v[0]=Om(S,v[0])}for(w=_(u,p,f,y,Vm),b=0;b<w;b++){var T=x(u,p,f,y,Vm[b]);m[1]=Pm(T,m[1]),v[1]=Om(T,v[1])}m[0]=Pm(h,m[0]),v[0]=Om(h,v[0]),m[0]=Pm(g,m[0]),v[0]=Om(g,v[0]),m[1]=Pm(u,m[1]),v[1]=Om(u,v[1]),m[1]=Pm(y,m[1]),v[1]=Om(y,v[1]),i=e[a++],n=e[a++];break;case Ym.Q:_=i,F=n,P=e[a++],I=e[a++],D=e[a],M=e[a+1],A=Um,O=jm,t=k=t=C=void 0,C=ee,t=Om(Pm((k=ne)(_,P,D),1),0),k=Om(Pm(k(F,I,M),1),0),P=C(_,P,D,t),t=C(F,I,M,k),A[0]=Pm(_,D,P),A[1]=Pm(F,M,t),O[0]=Om(_,D,P),O[1]=Om(F,M,t),i=e[a++],n=e[a++];break;case Ym.A:var M,C=e[a++],I=e[a++],k=e[a++],A=e[a++],D=e[a++],P=e[a++]+D,O=(a+=1,!e[a++]),L=(l&&(o=Km(D)*k+C,r=Qm(D)*A+I),X=M=W=H=Y=V=F=z=B=N=R=E=L=void 0,C),E=I,R=k,N=A,B=D,z=P,F=O,V=Um,Y=jm,H=lt,W=ht;if((M=Math.abs(B-z))%Rm<1e-4&&1e-4<M)V[0]=L-R,V[1]=E-N,Y[0]=L+R,Y[1]=E+N;else{Nm[0]=Em(B)*R+L,Nm[1]=Lm(B)*N+E,Bm[0]=Em(z)*R+L,Bm[1]=Lm(z)*N+E,H(V,Nm,Bm),W(Y,Nm,Bm),(B%=Rm)<0&&(B+=Rm),(z%=Rm)<0&&(z+=Rm),z<B&&!F?z+=Rm:B<z&&F&&(B+=Rm),F&&(M=z,z=B,B=M);for(var X=0;X<z;X+=Math.PI/2)B<X&&(zm[0]=Em(X)*R+L,zm[1]=Lm(X)*N+E,H(V,zm,V),W(Y,zm,Y))}i=Km(P)*k+C,n=Qm(P)*A+I;break;case Ym.R:kn(o=i=e[a++],r=n=e[a++],o+e[a++],r+e[a++],Um,jm);break;case Ym.Z:i=o,n=r}lt(Xm,Xm,Um),ht(Gm,Gm,jm)}return 0===a&&(Xm[0]=Xm[1]=Gm[0]=Gm[1]=0),new Og(Xm[0],Xm[1],Gm[0]-Xm[0],Gm[1]-Xm[1])},Dn.prototype._calculateLength=function(){for(var t=this.data,e=this._len,i=this._ux,n=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),h=0,u=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case Ym.M:o=a=t[c++],r=s=t[c++];break;case Ym.L:var g=t[c++],y=(_=t[c++])-r;($m(I=g-o)>i||$m(y)>n||c===e-1)&&(f=Math.sqrt(I*I+y*y),o=g,r=_);break;case Ym.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,i,n,o,r,a,s,l){for(var h=t,u=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Zt(t,i,o,a,d),d=Zt(e,n,r,s,d),g=f-h,y=d-u;c+=Math.sqrt(g*g+y*y),h=f,u=d}return c}(o,r,m,v,g,_,x,w),o=x,r=w;break;case Ym.Q:f=function(t,e,i,n,o,r,a){for(var s=t,l=e,h=0,u=1;u<=10;u++){var c=.1*u,p=ee(t,i,o,c),c=ee(e,n,r,c),d=p-s,f=c-l;h+=Math.sqrt(d*d+f*f),s=p,l=c}return h}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),o=g,r=_;break;case Ym.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],T=t[c++],M=t[c++],C=M+T;c+=1,d&&(a=Km(T)*b+x,s=Qm(T)*S+w),f=Zm(b,S)*qm(tv,Math.abs(M)),o=Km(C)*b+x,r=Qm(C)*S+w;break;case Ym.R:a=o=t[c++],s=r=t[c++],f=2*t[c++]+2*t[c++];break;case Ym.Z:var I=a-o,y=s-r;f=Math.sqrt(I*I+y*y),o=a,r=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},Dn.prototype.rebuildPath=function(t,e){var i,n,o,r,a,s,l,h,u=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 _=u[v++],x=1===v;switch(x&&(i=o=u[v],n=r=u[v+1]),_!==Ym.L&&0<m&&(t.lineTo(l,h),m=0),_){case Ym.M:i=o=u[v++],n=r=u[v++],t.moveTo(o,r);break;case Ym.L:var w=u[v++],b=u[v++],S=$m(w-o),T=$m(b-r);if(c<S||p<T){if(f){if(s<g+(H=a[y++])){var M=(s-g)/H;t.lineTo(o*(1-M)+w*M,r*(1-M)+b*M);break t}g+=H}t.lineTo(w,b),o=w,r=b,m=0}else S=S*S+T*T,m<S&&(l=w,h=b,m=S);break;case Ym.C:var C=u[v++],I=u[v++],k=u[v++],A=u[v++],T=u[v++],S=u[v++];if(f){if(s<g+(H=a[y++])){Jt(o,C,k,T,M=(s-g)/H,Hm),Jt(r,I,A,S,M,Wm),t.bezierCurveTo(Hm[1],Wm[1],Hm[2],Wm[2],Hm[3],Wm[3]);break t}g+=H}t.bezierCurveTo(C,I,k,A,T,S),o=T,r=S;break;case Ym.Q:if(C=u[v++],I=u[v++],k=u[v++],A=u[v++],f){if(s<g+(H=a[y++])){oe(o,C,k,M=(s-g)/H,Hm),oe(r,I,A,M,Wm),t.quadraticCurveTo(Hm[1],Wm[1],Hm[2],Wm[2]);break t}g+=H}t.quadraticCurveTo(C,I,k,A),o=k,r=A;break;case Ym.A:var D=u[v++],P=u[v++],O=u[v++],L=u[v++],E=u[v++],R=u[v++],N=u[v++],B=!u[v++],z=L<O?O:L,F=.001<$m(O-L),V=E+R,Y=!1;if(f&&(s<g+(H=a[y++])&&(V=E+R*(s-g)/H,Y=!0),g+=H),F&&t.ellipse?t.ellipse(D,P,O,L,N,E,V,B):t.arc(D,P,z,E,V,B),Y)break t;x&&(i=Km(E)*O+D,n=Qm(E)*L+P),o=Km(V)*O+D,r=Qm(V)*L+P;break;case Ym.R:i=o=u[v],n=r=u[v+1],w=u[v++],b=u[v++];var H,R=u[v++],F=u[v++];if(f){if(s<g+(H=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+qm(N,R),b),0<(N-=R)&&t.lineTo(w+R,b+qm(N,F)),0<(N-=F)&&t.lineTo(w+Zm(R-N,0),b+F),0<(N-=R)&&t.lineTo(w,b+Zm(F-N,0));break t}g+=H}t.rect(w,b,R,F);break;case Ym.Z:if(f){if(s<g+(H=a[y++])){M=(s-g)/H,t.lineTo(o*(1-M)+i*M,r*(1-M)+n*M);break t}g+=H}t.closePath(),o=i,r=n}}},Dn.prototype.clone=function(){var t=new Dn,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},Dn.CMD=Ym,Dn.initDefaultProps=((p_=Dn.prototype)._saveData=!0,p_._ux=0,p_._uy=0,p_._pendingPtDist=0,void(p_._version=0));var nv,ov,rv=Dn,av=2*Math.PI,sv=2*Math.PI,lv=rv.CMD,hv=2*Math.PI,uv=1e-4,cv=[-1,-1,-1],pv=[-1,-1],dv=h({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Mm),fv={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Cm.style)},gv=Gy.concat(["invisible","culling","z","z2","zlevel","parent"]),yv=(i(Bn,nv=py),Bn.prototype.update=function(){var t=this,e=(nv.prototype.update.call(this),this.style);if(e.decal){var i,n=this._decalEl=this._decalEl||new Bn,o=(n.buildPath===Bn.prototype.buildPath&&(n.buildPath=function(e){t.buildPath(e,t.shape)}),n.silent=!0,n.style);for(i in e)o[i]!==e[i]&&(o[i]=e[i]);o.fill=e.fill?e.decal:null,o.decal=null,o.shadowColor=null,e.strokeFirst&&(o.stroke=null);for(var r=0;r<gv.length;++r)n[gv[r]]=this[gv[r]];n.__dirty|=Wg}else this._decalEl&&(this._decalEl=null)},Bn.prototype.getDecalElement=function(){return this._decalEl},Bn.prototype._init=function(t){var e=v(t),i=(this.shape=this.getDefaultShape(),this.getDefaultStyle());i&&this.useStyle(i);for(var n=0;n<e.length;n++){var o=e[n],r=t[o];"style"===o?this.style?l(this.style,r):this.useStyle(r):"shape"===o?l(this.shape,r):nv.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},Bn.prototype.getDefaultStyle=function(){return null},Bn.prototype.getDefaultShape=function(){return{}},Bn.prototype.canBeInsideText=function(){return this.hasFill()},Bn.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=Me(e,0))?By:.2<t?"#eee":zy;if(e)return zy}return By},Bn.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())==Me(t,0)<.4)return e}},Bn.prototype.buildPath=function(t,e,i){},Bn.prototype.pathUpdated=function(){this.__dirty&=~Xg},Bn.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Bn.prototype.createPathProxy=function(){this.path=new rv(!1)},Bn.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Bn.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Bn.prototype.getBoundingRect=function(){var t,e,i=this._rect,n=this.style,o=!i;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Xg)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),i=e.getBoundingRect()),this._rect=i,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=i.clone()),(this.__dirty||o)&&(t.copy(i),e=n.strokeNoScale?this.getLineScale():1,o=n.lineWidth,this.hasFill()||(n=this.strokeContainThreshold,o=Math.max(o,null==n?4:n)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):i},Bn.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){if(i=this.path,this.hasStroke()&&(n=o.lineWidth,1e-10<(o=o.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),Nn(i,n/o,!0,t,e))))return!0;if(this.hasFill())return Nn(i,0,!1,t,e)}return!1},Bn.prototype.dirtyShape=function(){this.__dirty|=Xg,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Bn.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Bn.prototype.animateShape=function(t){return this.animate("shape",t)},Bn.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Bn.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):nv.prototype.attrKV.call(this,t,e)},Bn.prototype.setShape=function(t,e){var i=(i=this.shape)||(this.shape={});return"string"==typeof t?i[t]=e:l(i,t),this.dirtyShape(),this},Bn.prototype.shapeChanged=function(){return!!(this.__dirty&Xg)},Bn.prototype.createStyle=function(t){return U(dv,t)},Bn.prototype._innerSaveToNormal=function(t){nv.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},Bn.prototype._applyStateObj=function(t,e,i,n,o,r){nv.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.shape?o?n?a=e.shape:(a=l({},i.shape),l(a,e.shape)):(a=l({},(n?this:i).shape),l(a,e.shape)):s&&(a=i.shape),a)if(o){this.shape=l({},this.shape);for(var h={},u=v(a),c=0;c<u.length;c++){var p=u[c];"object"==typeof a[p]?this.shape[p]=a[p]:h[p]=a[p]}this._transitionState(t,{shape:h},r)}else this.shape=a,this.dirtyShape()},Bn.prototype._mergeStates=function(t){for(var e,i=nv.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(i.shape=e),i},Bn.prototype.getAnimationStyleProps=function(){return fv},Bn.prototype.isZeroArea=function(){return!1},Bn.extend=function(t){function e(e){var i=n.call(this,e)||this;return t.init&&t.init.call(i,e),i}i(e,n=Bn),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var n,o,r=e;for(o in t)"function"==typeof t[o]&&(r.prototype[o]=t[o]);return r},Bn.initDefaultProps=((p_=Bn.prototype).type="path",p_.strokeContainThreshold=5,p_.segmentIgnoreThreshold=0,p_.subPixelOptimize=!1,p_.autoBatch=!1,void(p_.__dirty=2|Wg|Xg)),Bn),mv=h({strokeFirst:!0,font:Nf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},dv),vv=(i(zn,ov=py),zn.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},zn.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},zn.prototype.createStyle=function(t){return U(mv,t)},zn.prototype.setBoundingRect=function(t){this._rect=t},zn.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=ui(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},zn.initDefaultProps=void(zn.prototype.dirtyRectTolerance=10),zn);vv.prototype.type="tspan";var _v=h({x:0,y:0},Mm),xv={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Cm.style)};i(Fn,wv=py),Fn.prototype.createStyle=function(t){return U(_v,t)},Fn.prototype._getSize=function(t){var e,i=this.style,n=i[t];return null!=n?n:(n=(n=i.image)&&"string"!=typeof n&&n.width&&n.height?i.image:this.__image)?null==(e=i[i="width"===t?"height":"width"])?n[t]:n[t]/n[i]*e:0},Fn.prototype.getWidth=function(){return this._getSize("width")},Fn.prototype.getHeight=function(){return this._getSize("height")},Fn.prototype.getAnimationStyleProps=function(){return xv},Fn.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Og(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var wv,bv=Fn;bv.prototype.type="image";var Sv,Tv=Math.round,Mv=function(){this.x=0,this.y=0,this.width=0,this.height=0},Cv={},Iv=(i(Wn,Sv=yv),Wn.prototype.getDefaultShape=function(){return new Mv},Wn.prototype.buildPath=function(t,e){var i,n,o,r,a,s,l,h,u,c,p,d,f,g;this.subPixelOptimize?(i=(a=Yn(Cv,e,this.style)).x,n=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(i=e.x,n=e.y,o=e.width,r=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=h=u=e:e instanceof Array?1===e.length?s=l=h=u=e[0]:2===e.length?(s=h=e[0],l=u=e[1]):3===e.length?(s=e[0],l=u=e[1],h=e[2]):(s=e[0],l=e[1],h=e[2],u=e[3]):s=l=h=u=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<h+u&&(h*=f/(c=h+u),u*=f/c),g<l+h&&(l*=g/(c=l+h),h*=g/c),g<s+u&&(s*=g/(c=s+u),u*=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-h),0!==h&&a.arc(p+f-h,d+g-h,h,0,Math.PI/2),a.lineTo(p+u,d+g),0!==u&&a.arc(p+u,d+g-u,u,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(i,n,o,r)},Wn.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Wn);Iv.prototype.type="rect";var kv,Av={fill:"#000"},Dv={style:h({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},Cm.style)},Pv=(i(Xn,kv=py),Xn.prototype.childrenRef=function(){return this._children},Xn.prototype.update=function(){kv.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}},Xn.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):kv.prototype.updateTransform.call(this)},Xn.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):kv.prototype.getLocalTransform.call(this,t)},Xn.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),kv.prototype.getComputedTransform.call(this)},Xn.prototype._updateSubTexts=function(){var t;this._childCursor=0,qn(t=this.style),f(t.rich,qn),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Xn.prototype.addSelfToZr=function(t){kv.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Xn.prototype.removeSelfFromZr=function(t){kv.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Xn.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Og(0,0,0,0),e=this._children,i=[],n=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(i);r?(t.copy(a),t.applyTransform(r),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},Xn.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Av},Xn.prototype.setTextContent=function(t){},Xn.prototype._mergeStyle=function(t,e){var i,n;return e&&(i=e.rich,n=t.rich||i&&{},l(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n)),t},Xn.prototype._mergeRich=function(t,e){for(var i=v(e),n=0;n<i.length;n++){var o=i[n];t[o]=t[o]||{},l(t[o],e[o])}},Xn.prototype.getAnimationStyleProps=function(){return Dv},Xn.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},Xn.prototype._updatePlainTexts=function(){for(var t,e=this.style,i=e.font||Nf,n=e.padding,o=function(t,e){null!=t&&(t+="");var i,n=e.overflow,o=e.padding,r=e.font,a="truncate"===n,s=di(r),l=E(e.lineHeight,s),h=!!e.backgroundColor,u="truncate"===e.lineOverflow,c=e.width,n=(i=null==c||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?Cn(t,e.font,c,"breakAll"===n,0).lines:[]).length*l,p=E(e.height,n);if(p<n&&u&&(u=Math.floor(p/l),i=i.slice(0,u)),t&&a&&null!=c)for(var d=bn(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<i.length;f++)i[f]=Sn(i[f],d);for(var u=p,g=0,f=0;f<i.length;f++)g=Math.max(li(i[f],r),g);return null==c&&(c=g),t=g,o&&(u+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:i,height:p,outerWidth:t=h?c:t,outerHeight:u,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:n,width:c}}($n(e),e),r=Jn(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,h=o.contentWidth,u=o.lines,c=o.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=pi(f,o.contentHeight,y),_=((r||n)&&(t=ci(d,l,g),f=pi(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,n&&(m=Qn(d,g,n),"top"===y?v+=n[0]:"bottom"===y&&(v-=n[2])),0),r=!1,x=(Kn(("fill"in e?e:(r=!0,p)).fill)),w=(Zn("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=o.calculatedLineHeight,M=0;M<u.length;M++){var C=this._getOrCreateChild(vv),I=C.createStyle();C.useStyle(I),I.text=u[M],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=i,Un(I,e),v+=c,S&&C.setBoundingRect(new Og(ci(I.x,e.width,I.textAlign),pi(I.y,T,I.textBaseline),h,T))}},Xn.prototype._updateRichTexts=function(){for(var t=this.style,e=Tn($n(t),t),i=e.width,n=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,h=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=ci(a,n,h),h=pi(s,o,l),u=a,c=h,p=(r&&(u+=r[3],c+=r[0]),u+i),d=(Jn(t)&&this._renderBackground(t,t,a,h,n,o),!!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=u,b=p,S=m-1,T=void 0;x<m&&(!(T=y[x]).align||"left"===T.align);)this._placeToken(T,t,v,c,w,"left",d),_-=T.width,w+=T.width,x++;for(;0<=S&&"right"===(T=y[S]).align;)this._placeToken(T,t,v,c,b,"right",d),_-=T.width,b-=T.width,S--;for(w+=(i-(w-u)-(p-b)-_)/2;x<=S;)T=y[x],this._placeToken(T,t,v,c,w+T.width/2,"center",d),w+=T.width,x++;c+=v}},Xn.prototype._placeToken=function(t,e,i,n,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),h=n+i/2;"top"===l?h=n+t.height/2:"bottom"===l&&(h=n+i-t.height/2),!t.isLineHolder&&Jn(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,h-t.height/2,t.width,t.height);var l=!!s.backgroundColor,n=t.textPadding,i=(n&&(o=Qn(o,r,n),h-=t.height/2-n[0]-t.innerHeight/2),this._getOrCreateChild(vv)),n=i.createStyle(),u=(i.useStyle(n),this._defaultStyle),c=!1,p=0,d=Kn(("fill"in s?s:"fill"in e?e:(c=!0,u)).fill),l=Zn("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||u.autoStroke&&!c?null:(p=2,u.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(n.text=t.text,n.x=o,n.y=h,a&&(n.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,n.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",n.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,n.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),n.textAlign=r,n.textBaseline="middle",n.font=t.font||Nf,n.opacity=R(s.opacity,e.opacity,1),Un(n,s),l&&(n.lineWidth=R(s.lineWidth,e.lineWidth,p),n.lineDash=E(s.lineDash,e.lineDash),n.lineDashOffset=e.lineDashOffset||0,n.stroke=l),d&&(n.fill=d),t.contentWidth),u=t.contentHeight;i.setBoundingRect(new Og(ci(n.x,c,n.textAlign),pi(n.y,u,n.textBaseline),c,u))},Xn.prototype._renderBackground=function(t,e,i,n,o,r){var a,s,l,h,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=u&&u.image,f=u&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(Iv)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=i,l.y=n,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((h=a.style).fill=u||null,h.fillOpacity=E(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(bv)).onload=function(){y.dirtyStyle()},(l=s.style).image=u.image,l.x=i,l.y=n,l.width=o,l.height=r),c&&p&&((h=a.style).lineWidth=c,h.stroke=p,h.strokeOpacity=E(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(h.strokeFirst=!0,h.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=R(t.opacity,e.opacity,1)},Xn.makeFont=function(t){var e="";return(e=jn(t)?[t.fontStyle,t.fontWeight,Gn(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Xn),Ov={left:!0,right:1,center:1},Lv={top:1,bottom:1,middle:1},Ev=["fontStyle","fontWeight","fontSize","fontFamily"],Rv=on(),Nv=1,Bv={},zv=on(),Fv=on(),Vv=0,Yv=1,Hv=2,Wv=["emphasis","blur","select"],Xv=["normal","emphasis","blur","select"],Gv="highlight",Uv="downplay",jv="select",qv="unselect",Zv="toggleSelect",Kv=["emphasis","blur","select"],Qv={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},$v=rv.CMD,Jv=[[],[],[]],t_=Math.sqrt,e_=Math.atan2,i_=Math.sqrt,n_=Math.sin,o_=Math.cos,r_=Math.PI,a_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,s_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;i(Vo,l_=yv),Vo.prototype.applyTransform=function(t){};var l_,h_,u_=Vo,c_=function(){this.cx=0,this.cy=0,this.r=0},p_=(i(Wo,h_=yv),Wo.prototype.getDefaultShape=function(){return new c_},Wo.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)},Wo);p_.prototype.type="circle";var d_,f_=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},g_=(i(Xo,d_=yv),Xo.prototype.getDefaultShape=function(){return new f_},Xo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(i-o,n),t.bezierCurveTo(i-o,n-a,i-r,n-e,i,n-e),t.bezierCurveTo(i+r,n-e,i+o,n-a,i+o,n),t.bezierCurveTo(i+o,n+a,i+r,n+e,i,n+e),t.bezierCurveTo(i-r,n+e,i-o,n+a,i-o,n),t.closePath()},Xo);g_.prototype.type="ellipse";var y_,m_=Math.PI,v_=2*m_,__=Math.sin,x_=Math.cos,w_=Math.acos,b_=Math.atan2,S_=Math.abs,T_=Math.sqrt,M_=Math.max,C_=Math.min,I_=1e-4,k_=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},A_=(i(jo,y_=yv),jo.prototype.getDefaultShape=function(){return new k_},jo.prototype.buildPath=function(t,e){Uo(t,e)},jo.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},jo);A_.prototype.type="sector";var D_,P_=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},O_=(i(qo,D_=yv),qo.prototype.getDefaultShape=function(){return new P_},qo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,o,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,o,!0)},qo);O_.prototype.type="ring";var L_,E_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},R_=(i(Ko,L_=yv),Ko.prototype.getDefaultShape=function(){return new E_},Ko.prototype.buildPath=function(t,e){Zo(t,e,!0)},Ko);R_.prototype.type="polygon";var N_,B_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},z_=(i(Qo,N_=yv),Qo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Qo.prototype.getDefaultShape=function(){return new B_},Qo.prototype.buildPath=function(t,e){Zo(t,e,!1)},Qo);z_.prototype.type="polyline";var F_,V_={},Y_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},H_=(i($o,F_=yv),$o.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},$o.prototype.getDefaultShape=function(){return new Y_},$o.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(i=(r=Vn(V_,e,this.style)).x1,n=r.y1,o=r.x2,r):(i=e.x1,n=e.y1,o=e.x2,e)).y2;var i,n,o,r,e=e.percent;0!==e&&(t.moveTo(i,n),e<1&&(o=i*(1-e)+o*e,r=n*(1-e)+r*e),t.lineTo(o,r))},$o.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},$o);H_.prototype.type="line";var W_=[],X_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};i(tr,G_=yv),tr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},tr.prototype.getDefaultShape=function(){return new X_},tr.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,e=e.percent;0!==e&&(t.moveTo(i,n),null==l||null==h?(e<1&&(oe(i,a,o,e,W_),a=W_[1],o=W_[2],oe(n,s,r,e,W_),s=W_[1],r=W_[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Jt(i,a,l,o,e,W_),a=W_[1],l=W_[2],o=W_[3],Jt(n,s,h,r,e,W_),s=W_[1],h=W_[2],r=W_[3]),t.bezierCurveTo(a,s,l,h,o,r)))},tr.prototype.pointAt=function(t){return Jo(this.shape,t,!1)},tr.prototype.tangentAt=function(t){return t=Jo(this.shape,t,!0),nt(t,t)};var G_,U_=tr;U_.prototype.type="bezier-curve";var j_,q_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=(i(er,j_=yv),er.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},er.prototype.getDefaultShape=function(){return new q_},er.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+i,l*o+n),t.arc(i,n,o,r,a,!e)},er);Z_.prototype.type="arc",i(ir,K_=yv),ir.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},ir.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},ir.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},ir.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},ir.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yv.prototype.getBoundingRect.call(this)};var K_,Q_=ir;nr.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var $_=nr;i(or,J_=$_);var J_,tx=or;i(rr,ex=$_);var ex,ix,$_=rr,nx=[0,0],ox=[0,0],rx=new Sg,ax=new Sg,sx=(ar.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(i[0].set(o,r),i[1].set(a,r),i[2].set(a,t),i[3].set(o,t),e)for(var s=0;s<4;s++)i[s].transform(e);for(Sg.sub(n[0],i[1],i[0]),Sg.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize(),s=0;s<2;s++)this._origin[s]=n[s].dot(i[0])},ar.prototype.intersect=function(t,e){var i=!0,n=!e;return rx.set(1/0,1/0),ax.set(0,0),!this._intersectCheckOneSide(this,t,rx,ax,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,rx,ax,n,-1)&&(i=!1,n)||n||Sg.copy(e,i?rx:ax),i},ar.prototype._intersectCheckOneSide=function(t,e,i,n,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,nx),this._getProjMinMaxOnAxis(s,e._corners,ox),nx[1]<ox[0]||ox[1]<nx[0]){if(a=!1,o)return a;var h=Math.abs(ox[0]-nx[1]),u=Math.abs(nx[0]-ox[1]);Math.min(h,u)>n.len()&&(h<u?Sg.scale(n,l,-h*r):Sg.scale(n,l,u*r))}else i&&(h=Math.abs(ox[0]-nx[1]),u=Math.abs(nx[0]-ox[1]),Math.min(h,u)<i.len())&&(h<u?Sg.scale(i,l,h*r):Sg.scale(i,l,-u*r))}return a},ar.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],o=this._origin,r=e[0].dot(n)+o[t],a=r,s=r,l=1;l<e.length;l++)var h=e[l].dot(n)+o[t],a=Math.min(h,a),s=Math.max(h,s);i[0]=a,i[1]=s},ar),lx=[],py=(i(sr,ix=py),sr.prototype.traverse=function(t,e){t.call(e,this)},sr.prototype.useStyle=function(){this.style={}},sr.prototype.getCursor=function(){return this._cursor},sr.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},sr.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},sr.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},sr.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},sr.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},sr.prototype.getDisplayables=function(){return this._displayables},sr.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},sr.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])},sr.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},sr.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Og(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(lx)),t.union(n)}this._rect=t}return this._rect},sr.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(t,e))return!0;return!1},sr),hx=on(),ux=Math.max,cx=Math.min,px={},dx=function(t,e){function n(t){return t=o.call(this,t)||this,t.applyTransform=r.applyTransform,t.buildPath=r.buildPath,t}var o,r=Ho(t,e);return i(n,o=u_),n},fx=Hn;yr("circle",p_),yr("ellipse",g_),yr("sector",A_),yr("ring",O_),yr("polygon",R_),yr("polyline",z_),yr("rect",Iv),yr("line",H_),yr("bezierCurve",U_),yr("arc",Z_);var gx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:U_,BoundingRect:Og,Circle:p_,CompoundPath:Q_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:H_,LinearGradient:tx,OrientedBoundingRect:sx,Path:yv,Point:Sg,Polygon:R_,Polyline:z_,RadialGradient:$_,Rect:Iv,Ring:O_,Sector:A_,Text:Pv,applyTransform:Mr,clipPointsByRect:kr,clipRectByRect:Ar,createIcon:Dr,extendPath:gr,extendShape:fr,getShapeClass:mr,getTransform:Tr,groupTransition:Ir,initProps:ur,isElementRemoved:cr,lineLineIntersect:Pr,linePolygonIntersect:function(t,e,i,n,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Pr(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:_r,makePath:vr,mergePath:wr,registerShape:yr,removeElement:pr,removeElementWithFadeOut:function(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||dr(t,e,i,n)}):dr(t,e,i,n)},resizePath:br,setTooltipConfig:Or,subPixelOptimize:fx,subPixelOptimizeLine:Sr,subPixelOptimizeRect:function(t){return Yn(t.shape,t.shape,t.style),t},transformDirection:function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),n=Mr(["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0],e,i);return Math.abs(n[0])>Math.abs(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"},traverseElements:Er,updateProps:hr}),yx={},mx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_x=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],xx=on(),bx=["textStyle","color"],Sx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Tx=new Pv,fx=(Wr.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(bx):null)},Wr.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},Wr.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Sx.length;i++)e[Sx[i]]=this.getShallow(Sx[i]);return Tx.useStyle(e),Tx.update(),Tx.getBoundingRect()},Wr),Mx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Cx=yn(Mx),Ix=(Xr.prototype.getLineStyle=function(t){return Cx(this,t)},Xr),kx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ax=yn(kx),Dx=(Gr.prototype.getItemStyle=function(t,e){return Ax(this,t,e)},Gr);Ur.prototype.init=function(t,e,i){},Ur.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Ur.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Ur.prototype.getShallow=function(t,e){var i=this.option,i=null==i?i:i[t];return null!=i||e||(e=this.parentModel)&&(i=e.getShallow(t)),i},Ur.prototype.getModel=function(t,e){var i=null!=t,t=i?this.parsePath(t):null;return new Ur(i?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Ur.prototype.isEmpty=function(){return null==this.option},Ur.prototype.restoreData=function(){},Ur.prototype.clone=function(){return new this.constructor(a(this.option))},Ur.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Ur.prototype.resolveParentPath=function(t){return t},Ur.prototype.isAnimationEnabled=function(){if(!Pf.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Ur.prototype._doGet=function(t,e){var i=this.option;if(t){for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel))}return i};var Px,Ox=Ur;cn(Ox),Gx=Ox,Px=["__\0is_clz",gm++].join("_"),Gx.prototype[Px]=!0,Gx.isInstance=function(t){return!(!t||!t[Px])},p(Ox,Ix),p(Ox,Dx),p(Ox,mm),p(Ox,fx);var Lx=Math.round(10*Math.random()),Ex="ZH",Rx="EN",Nx=Rx,Bx={},zx={},Fx=Pf.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nx).toUpperCase().indexOf(Ex)?Ex:Nx;qr(Rx,{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",custom:"Custom chart",chart:"Chart"}},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:". "}}}}),qr(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:"旭日图",custom:"自定义图表",chart:"图表"}},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 Vx=1e3,Yx=60*Vx,Hx=60*Yx,Wx=24*Hx,gm=365*Wx,Xx={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}"},Gx="{yyyy}-{MM}-{dd}",Ux={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gx,hour:Gx+" "+Xx.hour,minute:Gx+" "+Xx.minute,second:Gx+" "+Xx.second,millisecond:Xx.none},jx=["year","month","day","hour","minute","second","millisecond"],qx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Zx=B,Kx=["a","b","c","d","e","f","g"],Qx=f,$x=["left","right","top","bottom","width","height"],Jx=[["width","left","right"],["height","top","bottom"]],tw=wa;_(wa,"vertical"),_(wa,"horizontal");var ew,iw,nw,ow,rw=on(),aw=(i(Ca,ew=Ox),Ca.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},Ca.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ma(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&Ta(t,n,i)},Ca.prototype.mergeOption=function(t,e){s(this.option,t,!0);var i=Sa(this);i&&Ta(this.option,t,i)},Ca.prototype.optionUpdated=function(t,e){},Ca.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[fm])return t.defaultOption;var e=rw(this);if(!e.defaultOption){for(var i=[],n=t;n;){var o=n.prototype.defaultOption;o&&i.push(o),n=n.superClass}for(var r={},a=i.length-1;0<=a;a--)r=s(r,i[a],!0);e.defaultOption=r}return e.defaultOption},Ca.prototype.getReferringComponents=function(t,e){var i=t+"Id";return sn(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},e)},Ca.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")}},Ca.prototype.getZLevelKey=function(){return""},Ca.prototype.setZLevel=function(t){this.option.zlevel=t},Ca.protoInitialize=((Ix=Ca.prototype).type="component",Ix.id="",Ix.name="",Ix.mainType="",Ix.subType="",void(Ix.componentIndex=0)),Ca);pn(aw,Ox),gn(aw),nw={},(iw=aw).registerSubTypeDefaulter=function(t,e){t=un(t),nw[t.main]=e},iw.determineSubType=function(t,e){var i,n=e.type;return n||(i=un(t).main,iw.hasSubTypes(t)&&nw[i]&&(n=nw[i](e))),n},ow=function(t){var e=[];return f(aw.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return un(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e},aw.topologicalTravel=function(t,e,i,n){function o(t){0===--h[t].entryCount&&c.push(t)}function r(t){p[t]=!0,o(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,i,n=Ia(s,t),o=n.originalDeps=ow(t),o=(e=a,i=[],f(o,function(t){0<=u(e,t)&&i.push(t)}),i);n.entryCount=o.length,0===n.entryCount&&l.push(t),f(o,function(e){u(n.predecessor,e)<0&&n.predecessor.push(e);var i=Ia(s,e);u(i.successor,e)<0&&i.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},h=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=h[d],y=!!p[d];y&&(i.call(n,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?r:o)}f(p,function(){throw new Error("")})}};var sw,lw,hw,uw,Dx="",mm=("undefined"!=typeof navigator&&(Dx=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),cw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mm,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mm,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Dx.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},pw=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dw="original",fw="arrayRows",gw="objectRows",yw="keyedColumns",mw="typedArray",vw="unknown",_w="column",xw="row",ww={Must:1,Might:2,Not:3},bw=on(),Sw=X(),Tw=on(),Mw=(on(),Pa.prototype.getColorFromPalette=function(t,e,i){var n=Ui(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=Tw;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=null!=i&&o?Oa(o,i):n)||n)&&o.length?(i=o[r],t&&(e[t]=i),a.paletteIdx=(r+1)%o.length,i):void 0},Pa.prototype.clearColorPalette=function(){var t,e;(e=Tw)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Pa),Cw="\0_ec_inner",Iw=(i(La,uw=Ox),La.prototype.init=function(t,e,i,n,o,r){n=n||{},this.option=null,this._theme=new Ox(n),this._locale=new Ox(o),this._optionManager=r},La.prototype.setOption=function(t,e,i){e=Na(e),this._optionManager.setOption(t,i,e),this._resetOption(null,e)},La.prototype.resetOption=function(t,e){return this._resetOption(t,Na(e))},La.prototype._resetOption=function(t,e){var i,n=!1,o=this._optionManager;return t&&"recreate"!==t||(i=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):hw(this,i),n=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(i=o.getTimelineOption(this))&&(n=!0,this._mergeOption(i,e)),t&&"recreate"!==t&&"media"!==t||(i=o.getMediaOption(this)).length&&f(i,function(t){n=!0,this._mergeOption(t,e)},this),n},La.prototype.mergeOption=function(t){this._mergeOption(t,null)},La.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,o=this._componentsCount,r=[],h=X(),u=e&&e.replaceMergeMainTypeMap;bw(this).datasetMap=X(),f(t,function(t,e){null!=t&&(aw.hasClass(e)?e&&(r.push(e),h.set(e,!0)):i[e]=null==i[e]?a(t):s(i[e],t,!0))}),u&&u.each(function(t,e){aw.hasClass(e)&&!h.get(e)&&(r.push(e),h.set(e,!0))}),aw.topologicalTravel(r,aw.getAllClassMainTypes(),function(e){var r,a=function(t,e,i){return(e=(e=Sw.get(e))&&e(t))?i.concat(e):i}(this,e,Ui(t[e])),s=n.get(e),h=s?u&&u.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Zi(s,a,h),c=(en(s,e,aw),i[e]=null,n.set(e,null),o.set(e,0),[]),p=[],d=0;f(s,function(t,i){var n=t.existing,o=t.newOption;if(o){var a=aw.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(r)return;r=!0}n&&n.constructor===a?(n.name=t.keyInfo.name,n.mergeOption(o,this),n.optionUpdated(o,!1)):(i=l({componentIndex:i},t.keyInfo),l(n=new a(o,this,this,i),i),t.brandNew&&(n.__requireNewView=!0),n.init(o,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(c.push(n.option),p.push(n),d++):(c.push(void 0),p.push(void 0))},this),i[e]=c,n.set(e,p),o.set(e,d),"series"===e&&sw(this)},this),this._seriesIndices||sw(this)},La.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,i){if(aw.hasClass(i)){for(var n=Ui(e),o=n.length,r=!1,a=o-1;0<=a;a--)n[a]&&!tn(n[a])?r=!0:(n[a]=null,r||o--);n.length=o,t[i]=n}}),delete t[Cw],t},La.prototype.getTheme=function(){return this._theme},La.prototype.getLocaleModel=function(){return this._locale},La.prototype.setUpdatePayload=function(t){this._payload=t},La.prototype.getUpdatePayload=function(){return this._payload},La.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){if(t=i[e||0])return t;if(null==e)for(var n=0;n<i.length;n++)if(i[n])return i[n]}},La.prototype.queryComponents=function(t){var e,i,n,o,r,a=t.mainType;return a&&(e=t.index,i=t.id,n=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],f(Ui(e),function(t){o[t]&&r.push(o[t])})):r=null!=i?Ea("id",i,o):null!=n?Ea("name",n,o):m(o,function(t){return!!t}),Ra(r,t)):[]},La.prototype.findComponents=function(t){var e,i=t.query,n=t.mainType,o=(o=n+"Index",r=n+"Id",e=n+"Name",!(i=i)||null==i[o]&&null==i[r]&&null==i[e]?null:{mainType:n,index:i[o],id:i[r],name:i[e]}),r=o?this.queryComponents(o):m(this._componentsMap.get(n),function(t){return!!t});return i=Ra(r,t),t.filter?m(i,t.filter):i},La.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(w(t)){var o=e,r=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&r.call(o,e,n,n.componentIndex)}})}else for(var a=b(t)?n.get(t):M(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},La.prototype.getSeriesByName=function(t){var e=$i(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},La.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},La.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},La.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},La.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},La.prototype.eachSeries=function(t,e){lw(this),f(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},La.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},La.prototype.eachSeriesByType=function(t,e,i){lw(this),f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&e.call(i,o,n)},this)},La.prototype.eachRawSeriesByType=function(t,e,i){return f(this.getSeriesByType(t),e,i)},La.prototype.isSeriesFiltered=function(t){return lw(this),null==this._seriesIndicesMap.get(t.componentIndex)},La.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},La.prototype.filterSeries=function(t,e){lw(this);var i=[];f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(e,o,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=X(i)},La.prototype.restoreData=function(t){sw(this);var e=this._componentsMap,i=[];e.each(function(t,e){aw.hasClass(e)&&i.push(e)}),aw.topologicalTravel(i,aw.getAllClassMainTypes(),function(i){f(e.get(i),function(e){!e||"series"===i&&function(t,e){var i,n;if(e)return i=e.seriesIndex,n=e.seriesId,e=e.seriesName,null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=e&&t.name!==e}(e,t)||e.restoreData()})})},La.internalField=(sw=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=X(e)},lw=function(t){},void(hw=function(t,e){t.option={},t.option[Cw]=1,t._componentsMap=X({series:[]}),t._componentsCount=X();var i,n,o=e.aria;M(o)&&null==o.enabled&&(o.enabled=!0),i=e,o=t._theme.option,n=i.color&&!i.colorLayer,f(o,function(t,e){"colorLayer"===e&&n||aw.hasClass(e)||("object"==typeof t?i[e]=i[e]?s(i[e],t,!1):a(t):null==i[e]&&(i[e]=t))}),s(e,cw,!1),t._mergeOption(e,null)})),La);p(Iw,Mw);var kw,Aw,Dw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Pw={},Ow=(za.prototype.create=function(t,e){var i=[];f(Pw,function(n,o){n=n.create(t,e),i=i.concat(n||[])}),this._coordinateSystems=i},za.prototype.update=function(t,e){f(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},za.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},za.register=function(t,e){Pw[t]=e},za.get=function(t){return Pw[t]},za),Lw=/^(min|max)?(.+)$/,Ew=(Fa.prototype.setOption=function(t,e,i){t&&(f(Ui(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Ui(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var n=this._optionBackup,t=function(t,e,i){function n(t){f(e,function(e){e(t,i)})}var o,r,a=[],s=t.baseOption,l=t.timeline,h=t.options,u=t.media,c=!!t.media,p=!!(h||l||s&&s.timeline);return s?(r=s).timeline||(r.timeline=l):((p||c)&&(t.options=t.media=null),r=t),c&&x(u)&&f(u,function(t){t&&t.option&&(t.query?a.push(t):o=o||t)}),n(r),f(h,n),f(a,function(t){return n(t.option)}),{baseOption:r,timelineOptions:h||[],mediaDefault:o,mediaList:a}}(t,e,!n);this._newBaseOption=t.baseOption,n?(t.timelineOptions.length&&(n.timelineOptions=t.timelineOptions),t.mediaList.length&&(n.mediaList=t.mediaList),t.mediaDefault&&(n.mediaDefault=t.mediaDefault)):this._optionBackup=t},Fa.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)},Fa.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;return e=i.length&&(t=t.getComponent("timeline"))?a(i[t.getCurrentIndex()]):e},Fa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,r=[],s=[];if(n.length||o){for(var l,h,u=0,c=n.length;u<c;u++)!function(t,e,i){var n={width:e,height:i,aspectratio:e/i},o=!0;return f(t,function(t,e){var i,e=e.match(Lw);e&&e[1]&&e[2]&&(i=e[1],e=e[2].toLowerCase(),e=n[e],t=t,("min"===(i=i)?t<=e:"max"===i?e<=t:e===t)||(o=!1))}),o}(n[u].query,e,i)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(l=r,h=this._currentMediaIndices,l.join(",")!==h.join(","))&&(s=g(r,function(t){return a((-1===t?o:n[t]).option)})),this._currentMediaIndices=r}return s},Fa),Rw=f,Nw=M,Bw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],zw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],Yw=function(t){this.data=t.data||(t.sourceFormat===yw?{}:[]),this.sourceFormat=t.sourceFormat||vw,this.seriesLayoutBy=t.seriesLayoutBy||_w,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&Da(this,i)===ww.Must&&(n.type="ordinal")}};ss.prototype.getSource=function(){return this._source},ss.prototype.count=function(){return 0},ss.prototype.getItem=function(t,e){},ss.prototype.appendData=function(t){},ss.prototype.clean=function(){},ss.protoInitialize=((fx=ss.prototype).pure=!1,void(fx.persistent=!0)),ss.internalField=(Aw=function(t,e,i){var n,o=i.sourceFormat,r=i.seriesLayoutBy,a=i.startIndex,i=i.dimensionsDefine;l(t,kw[gs(o,r)]),o===mw?(t.getItem=Hw,t.count=Xw,t.fillStorage=Ww):(n=us(o,r),t.getItem=$f(n,null,e,a,i),n=ps(o,r),t.count=$f(n,null,e,a,i))},Hw=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,o=n*t,r=0;r<n;r++)e[r]=i[o+r];return e},Ww=function(t,e,i,n){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],u=e-t,c=i[a],p=0;p<u;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),h<d&&(h=d)}s[0]=l,s[1]=h}},Xw=function(){return this._data?this._data.length/this._dimSize:0},(fx={})[fw+"_"+_w]={pure:!0,appendData:ls},fx[fw+"_"+xw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},fx[gw]={pure:!0,appendData:ls},fx[yw]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,i){for(var n=e[i]||(e[i]=[]),o=0;o<(t||[]).length;o++)n.push(t[o])})}},fx[dw]={appendData:ls},fx[mw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(kw=fx));var Hw,Ww,Xw,Gw=ss;(Gx={})[fw+"_"+_w]=function(t,e,i,n){return t[n+e]},Gx[fw+"_"+xw]=function(t,e,i,n,o){n+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[n]:null}return r},Gx[gw]=hs,Gx[yw]=function(t,e,i,n,o){for(var r=o||[],a=0;a<i.length;a++){var s=t[i[a].name];r[a]=s?s[n]:null}return r},Gx[dw]=hs;var Uw=Gx;(Ix={})[fw+"_"+_w]=function(t,e,i){return Math.max(0,t.length-e)},Ix[fw+"_"+xw]=function(t,e,i){return t=t[0],t?Math.max(0,t.length-e):0},Ix[gw]=cs,Ix[yw]=function(t,e,i){return t=t[i[0].name],t?t.length:0},Ix[dw]=cs;var jw=Ix;(mm={})[fw]=ds,mm[gw]=function(t,e,i){return t[i]},mm[yw]=ds,mm[dw]=function(t,e,i){return t=qi(t),t instanceof Array?t[e]:t},mm[mw]=ds;var qw=mm,Zw=/\{@(.+?)\}/g,Kw=(ms.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),o=i.getRawIndex(t),r=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),t=s&&s[i.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,h="series"===l,i=i.userOutput&&i.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:n,color:t,borderColor:s,dimensionNames:i?i.fullDimensions:null,encode:i?i.encode:null,$vars:["seriesName","name","value"]}},ms.prototype.getFormattedLabel=function(t,e,i,n,o,r){e=e||"normal";var a=this.getData(i),i=this.getDataParams(t,i);return r&&(i.value=r.interpolatedValue),null!=n&&x(i.value)&&(i.value=i.value[n]),w(o=o||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(i.status=e,i.dimensionIndex=n,o(i)):b(o)?ma(o,i).replace(Zw,function(e,i){var n=i.length,n=("["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),ys(a,t,i));return null!=(n=r&&x(r.interpolatedValue)&&0<=(i=a.getDimensionIndex(i))?r.interpolatedValue[i]:n)?n+"":""}):void 0},ms.prototype.getRawValue=function(t,e){return ys(this.getData(e),t)},ms.prototype.formatTooltip=function(t,e,i){},ms);xs.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var i,n,o=this._upstream,r=t&&t.skip,a=(this._dirty&&o&&((a=this.context).data=a.outputData=o.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(i=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),h=t&&t.modDataCount||0;if(a===l&&s===h||(i="reset"),!this._dirty&&"reset"!==i||(this._dirty=!1,n=this._doReset(r)),this._modBy=l,this._modDataCount=h,a=t&&t.step,this._dueEnd=o?o._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!r&&(n||u<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],u,c,l,h);else this._doProgress(p,u,c,l,h)}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()},xs.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},xs.prototype._doProgress=function(t,e,i,n,o){ob.reset(e,i,n,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:ob.next},this.context)},xs.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),x(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,i,t=this._downstream;return t&&t.dirty(),i},xs.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},xs.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},xs.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},xs.prototype.getUpstream=function(){return this._upstream},xs.prototype.getDownstream=function(){return this._downstream},xs.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Qw,$w,Jw,tb,eb,ib,nb=xs,ob=ib={reset:function(t,e,i,n){$w=t,Qw=e,Jw=i,tb=n,eb=Math.ceil(tb/Jw),ib.next=1<Jw&&0<tb?bs:ws}},rb=X({number:function(t){return parseFloat(t)},time:function(t){return+Ni(t)},trim:function(t){return b(t)?F(t):t}}),ab={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}},sb=(Ms.prototype.evaluate=function(t){return T(t)?this._opFn(t,this._rvalFloat):this._opFn(Vi(t),this._rvalFloat)},Ms);Cs.prototype.evaluate=function(t,e){var i=T(t)?t:Vi(t),n=T(e)?e:Vi(e),o=isNaN(i),r=isNaN(n);return o&&(i=this._incomparable),r&&(n=this._incomparable),o&&r&&(o=b(t),r=b(e),o&&(i=r?t:0),r)&&(n=o?e:0),i<n?this._resultLT:n<i?-this._resultLT:0};var lb=Cs;Is.prototype.evaluate=function(t){var e,i=t===this._rval;return i||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(i=Vi(t)===this._rvalFloat),this._isEQ?i:!i};var hb=Is;ks.prototype.getRawData=function(){throw new Error("not supported")},ks.prototype.getRawDataItem=function(t){throw new Error("not supported")},ks.prototype.cloneRawData=function(){},ks.prototype.getDimensionInfo=function(t){},ks.prototype.cloneAllDimensionInfo=function(){},ks.prototype.count=function(){},ks.prototype.retrieveValue=function(t,e){},ks.prototype.retrieveValueFromItem=function(t,e){},ks.prototype.convertValue=Ss;var ub,cb=ks,pb=X(),Dx="undefined",db=typeof Uint32Array==Dx?Array:Uint32Array,fb=typeof Uint16Array==Dx?Array:Uint16Array,gb=typeof Int32Array==Dx?Array:Int32Array,fx=typeof Float64Array==Dx?Array:Float64Array,yb={float:fx,int:gb,ordinal:Array,number:Array,time:fx};zs.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),o=this.defaultDimValueGetter=ub[n.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],as(n),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},zs.prototype.getProvider=function(){return this._provider},zs.prototype.getSource=function(){return this._provider.getSource()},zs.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,o=i.get(t);if(null!=o){if(n[o].type===e)return o}else o=n.length;return n[o]={type:e},i.set(t,o),this._chunks[o]=new yb[e||"float"](this._rawCount),this._rawExtent[o]=Ns(),o},zs.prototype.collectOrdinalMeta=function(t,e){for(var i=this._chunks[t],n=this._dimensions[t],o=this._rawExtent,r=n.ordinalOffset||0,a=i.length,s=(0===r&&(o[t]=Ns()),o[t]),l=r;l<a;l++){var h=i[l]=e.parseAndCollect(i[l]);isNaN(h)||(s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},zs.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},zs.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},zs.prototype.appendData=function(t){var e=this._provider,i=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=i),i<t&&this._initDataFromProvider(i,t,!0),[i,t]},zs.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,o=n.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)Bs(i,l,(d=n[l]).type,s,!0);for(var h=[],u=a;u<s;u++)for(var c=u-a,p=0;p<o;p++){var d=n[p],f=ub.arrayRows.call(this,t[c]||h,d.property,c,p),g=(i[p][u]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},zs.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=g(r,function(t){return t.property}),h=0;h<a;h++){var u=r[h];s[h]||(s[h]=Ns()),Bs(o,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=n.getItem(p,c),d=0;d<a;d++){var f=o[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)}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},zs.prototype.count=function(){return this._count},zs.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},zs.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)n.push(o)}else n=t;for(var o=0,r=n.length;o<r;o++)i.push(this.get(n[o],e));return i},zs.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},zs.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,n=this.count();i<n;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},zs.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})),i=this.count();return 0===i?0:i%2==1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},zs.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,o=this._count-1;n<=o;){var r=(n+o)/2|0;if(e[r]<t)n=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},zs.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],o=[];if(n){null==i&&(i=1/0);for(var r=1/0,a=-1,s=0,l=0,h=this.count();l<h;l++){var u=e-n[this.getRawIndex(l)],c=Math.abs(u);c<=i&&((c<r||c===r&&0<=u&&a<0)&&(r=c,a=u,s=0),u===a)&&(o[s++]=l)}o.length=s}return o},zs.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array)for(var n=new e(i),o=0;o<i;o++)n[o]=t[o];else n=new e(t.buffer,0,i)}else for(n=new(e=Rs(this._rawCount))(this.count()),o=0;o<n.length;o++)n[o]=o;return n},zs.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),o=new(Rs(i._rawCount))(n),r=[],a=t.length,s=0,l=t[0],h=i._chunks,u=0;u<n;u++){var c=void 0,p=i.getRawIndex(u);if(0===a)c=e(u);else if(1===a)c=e(h[l][p],u);else{for(var d=0;d<a;d++)r[d]=h[t[d]][p];r[d]=u,c=e.apply(null,r)}c&&(o[s++]=p)}return s<n&&(i._indices=o),i._count=s,i._extent=[],i._updateGetRawIdx(),i},zs.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=v(t),o=n.length;if(!o)return this;var r=e.count(),a=new(Rs(e._rawCount))(r),s=0,l=n[0],h=t[l][0],u=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[n[0]],f=0;f<i;f++)(h<=(_=d[f])&&_<=u||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[n[0]],g=c[n[1]],y=t[n[1]][0],m=t[n[1]][1],f=0;f<i;f++){var _=d[f],x=g[f];(h<=_&&_<=u||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var w=e.getRawIndex(f);(h<=(_=c[n[0]][w])&&_<=u||isNaN(_))&&(a[s++]=w)}else for(f=0;f<r;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<o;S++){var T=n[S];((_=c[T][w])<t[T][0]||_>t[T][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},zs.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},zs.prototype.modify=function(t,e){this._updateDims(this,t,e)},zs.prototype._updateDims=function(t,e,i){for(var n=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=Ns();for(var u=0;u<a;u++){for(var c=t.getRawIndex(u),p=0;p<r;p++)s[p]=n[e[p]][c];s[r]=u;var d=i&&i.apply(null,s);if(null!=d)for("object"!=typeof d&&(o[0]=d,d=o),h=0;h<d.length;h++){var f=e[h],g=d[h],y=l[f],f=n[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},zs.prototype.lttbDownSample=function(t,e){var i,n=this.clone([t],!0),o=n._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),h=new(Rs(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));h[a++]=l;for(var u=1;u<r-1;u+=s){for(var c=Math.min(u+s,r-1),p=Math.min(u+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[T=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=u,m=Math.min(u+s,r),v=u-1,_=o[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var T,y=o[T=this.getRawIndex(g)];isNaN(y)?(S++,b<0&&(b=T)):x<(i=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=i,w=T)}0<S&&S<m-c&&(h[a++]=Math.min(b,w),w=Math.max(b,w)),l=h[a++]=w}return h[a++]=this.getRawIndex(r-1),n._count=a,n._indices=h,n.getRawIndex=this._getRawIdx,n},zs.prototype.downSample=function(t,e,i,n){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],h=this.count(),u=o._rawExtent[t]=Ns(),c=new(Rs(this._rawCount))(Math.ceil(h/s)),p=0,d=0;d<h;d+=s){h-d<s&&(a.length=s=h-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=i(a),m=this.getRawIndex(Math.min(d+n(a,y)||0,h-1));(l[m]=y)<u[0]&&(u[0]=y),y>u[1]&&(u[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},zs.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(n[t[0]][a],o);break;case 2:e(n[t[0]][a],n[t[1]][a],o);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=o,e.apply(null,l)}}},zs.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Ns();if(!e)return i;var n=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=i)[0],a=o[1],s=0;s<n;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},zs.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,o=0;o<n.length;o++)i.push(n[o][e]);return i},zs.prototype.clone=function(t,e){var i,n,o=new zs,r=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(i=r[s],n=void 0,(n=i.constructor)===Array?i.slice():new n(i)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},zs.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)},zs.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var i=this._indices.length,e=new t(i),n=0;n<i;n++)e[n]=this._indices[n];else e=new t(this._indices);return e}return null},zs.prototype._getRawIdxIdentity=function(t){return t},zs.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},zs.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},zs.internalField=void(ub={arrayRows:Fs,objectRows:function(t,e,i,n){return Ss(t[e],this._dimensions[n])},keyedColumns:Fs,original:function(t,e,i,n){return t=t&&(null==t.value?t:t.value),Ss(t instanceof Array?t[n]:t,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}});var mb=zs;Vs.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Vs.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Vs.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Vs.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Vs.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i,n,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),h=!!l.length;Hs(s)?(n=s,o=t=r=void 0,e=h?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=I(r=n.get("data",!0))?mw:dw,[]),n=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=E(n.seriesLayoutBy,o.seriesLayoutBy)||null,i=E(n.sourceHeader,o.sourceHeader),n=E(n.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!i!=!!o.sourceHeader||n?[es(r,{seriesLayoutBy:a,sourceHeader:i,dimensions:n},t)]:[]):(r=s,e=h?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[es(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Vs.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),o=i.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Ws(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Ws(""),r.push(e),s.push(t._getVersionSign())}),n?e=Ls(n,r,i.componentIndex):null!=o&&(e=[new Yw({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Vs.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},Vs.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Vs.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Vs.prototype._innerGetDataStore=function(t,e,i){var n,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[i];return o||(n=this._getUpstreamSourceManagers()[0],Hs(this._sourceHost)&&n?o=n._innerGetDataStore(t,e,i):(o=new mb).initData(new Gw(e,t.length),t),r[i]=o),o},Vs.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Hs(e)?(t=Aa(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?sn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},cm).models:[],function(t){return t.getSourceManager()})},Vs.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;return Hs(n)?(t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(n=n).get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:i}};var vb=Vs,_b="line-height:1",xb=[0,10,20,30],wb=["","\n","\n\n","\n\n\n"];tl.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},tl.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,e=va({color:e,type:t,renderMode:i,markerId:n});return b(e)?e:(this.richTextStyles[n]=e.style,e.content)},tl.prototype.wrapRichTextStyle=function(t,e){var i={},e=(x(e)?f(e,function(t){return l(i,t)}):l(i,e),this._generateStyleName());return this.richTextStyles[e]=i,"{"+e+"|"+t+"}"};var bb=tl,Sb=on();i(nl,Tb=aw),nl.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=_s({count:rl,reset:al}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(Sb(this).sourceManager=new vb(this)).prepareSource(),t=this.getInitialData(t,i),ll(t,this),this.dataTask.context.data=t,Sb(this).dataBeforeProcessed=t,ol(this),this._initSelectedMapFromData(t)},nl.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ma(t):{},o=this.subType;aw.hasClass(o),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),ji(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Ta(t,n,i)},nl.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Sa(this),i=(i&&Ta(this.option,t,i),Sb(this).sourceManager),i=(i.dirty(),i.prepareSource(),this.getInitialData(t,e));ll(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Sb(this).dataBeforeProcessed=i,ol(this),this._initSelectedMapFromData(i)},nl.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&ji(t[i],"label",e)},nl.prototype.getInitialData=function(t,e){},nl.prototype.appendData=function(t){this.getRawData().appendData(t.data)},nl.prototype.getData=function(t){var e=ul(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):Sb(this).data},nl.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},nl.prototype.setData=function(t){var e,i=ul(this);i&&((e=i.context).outputData=t,i!==this.dataTask)&&(e.data=t),Sb(this).data=t},nl.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return X(t)},nl.prototype.getSourceManager=function(){return Sb(this).sourceManager},nl.prototype.getSource=function(){return this.getSourceManager().getSource()},nl.prototype.getRawData=function(){return Sb(this).dataBeforeProcessed},nl.prototype.getColorBy=function(){return this.get("colorBy")||"series"},nl.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},nl.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},nl.prototype.formatTooltip=function(t,e,i){return el({series:this,dataIndex:t,multipleSeries:e})},nl.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!Pf.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},nl.prototype.restoreData=function(){this.dataTask.dirty()},nl.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel;return Mw.prototype.getColorFromPalette.call(this,t,e,i)||n.getColorFromPalette(t,e,i)},nl.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},nl.prototype.getProgressive=function(){return this.get("progressive")},nl.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},nl.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},nl.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,o=this.getData(e);if("series"===n||"all"===i)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=il(o,t[r]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},nl.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},nl.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),i=[],n=0;n<e.length;n++){var o=t[e[n]];0<=o&&i.push(o)}return i},nl.prototype.isSelected=function(t,e){var i=this.option.selectedMap;return!!i&&(e=this.getData(e),"all"===i||i[il(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},nl.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},nl.prototype._innerSelect=function(t,e){var i=this.option,n=i.selectedMode,o=e.length;if(n&&o)if("series"===n)i.selectedMap="all";else if("multiple"===n){M(i.selectedMap)||(i.selectedMap={});for(var r=i.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=il(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==n&&!0!==n||(s=il(t,n=e[o-1]),i.selectedMap=((i={})[s]=!0,i),this._selectedDataIndicesMap=((i={})[s]=t.getRawIndex(n),i))},nl.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),0<e.length&&this._innerSelect(t,e))},nl.registerClass=function(t){return aw.registerClass(t)},nl.protoInitialize=((Gx=nl.prototype).type="series.__base__",Gx.seriesIndex=0,Gx.ignoreStyleOnData=!1,Gx.hasSymbolVisual=!1,Gx.defaultSymbol="circle",Gx.visualStyleAccessPath="itemStyle",void(Gx.visualDrawType="fill"));var Tb,Mb=nl;p(Mb,Kw),p(Mb,Mw),pn(Mb,aw),cl.prototype.init=function(t,e){},cl.prototype.render=function(t,e,i,n){},cl.prototype.dispose=function(t,e){},cl.prototype.updateView=function(t,e,i,n){},cl.prototype.updateLayout=function(t,e,i,n){},cl.prototype.updateVisual=function(t,e,i,n){},cl.prototype.toggleBlurSeries=function(t,e,i){},cl.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Cb=cl;cn(Cb),gn(Cb);var Ib=on(),kb=pl(),Ab=(dl.prototype.init=function(t,e){},dl.prototype.render=function(t,e,i,n){},dl.prototype.highlight=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&gl(t,n,"emphasis")},dl.prototype.downplay=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&gl(t,n,"normal")},dl.prototype.remove=function(t,e){this.group.removeAll()},dl.prototype.dispose=function(t,e){},dl.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},dl.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},dl.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},dl.prototype.eachRendered=function(t){Er(this.group,t)},dl.markUpdateMethod=function(t,e){Ib(t).updateMethod=e},dl.protoInitialize=void(dl.prototype.type="chart"),dl);cn(Ab),gn(Ab);var Db={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)}}},Pb="\0__throttleOriginMethod",Ob="\0__throttleRate",Lb="\0__throttleType",Eb=on(),Rb={itemStyle:yn(kx,!0),lineStyle:yn(Mx,!0)},Nb={lineStyle:"stroke",itemStyle:"fill"},Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",o=t.getModel(n),r=wl(t,n)(o),o=o.getShallow("decal"),a=(o&&(i.setVisual("decal",o),o.dirty=!0),bl(t,n)),o=r[a],s=w(o)?o:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount()),r[a]||(r[a]=o,i.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||w(r.fill)?o:r.fill,r.stroke="auto"===r.stroke||w(r.stroke)?o:r.stroke),i.setVisual("style",r),i.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),o=l({},r);o[a]=s(n),e.setItemVisual(i,"style",o)}}}},Bb=new Ox,mm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,n,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=wl(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var r=t.getRawDataItem(e);r&&r[i]&&(Bb.option=r[i],r=n(Bb),l(t.ensureUniqueItemVisual(e,"style"),r),Bb.option.decal&&(t.setItemVisual(e,"decal",Bb.option.decal),Bb.option.decal.dirty=!0),o in r)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Dx={performRawSeries:!0,overallReset:function(t){var e=X();t.eachSeries(function(t){var i,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(i=e.get(n))||e.set(n,i={}),Eb(t).scope=i)}),t.eachSeries(function(e){var i,n,o,r,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(i=e.getRawData(),n={},o=e.getData(),r=Eb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bl(e,a),o.each(function(t){var e=o.getRawIndex(t);n[e]=t}),i.each(function(t){var a,l=n[t];o.getItemVisual(l,"colorFromPalette")&&(l=o.ensureUniqueItemVisual(l,"style"),t=i.getName(t)||t+"",a=i.count(),l[s]=e.getColorFromPalette(t,r,a))}))})}},zb=Math.PI;Sl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},Sl.prototype.getPerformArgs=function(t,e){var i,n;if(t.__pipeline)return n=(i=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,modBy:null!=(t=n&&n.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Sl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Sl.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),e=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),n="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:e,modDataCount:n,large:o}},Sl.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=X();t.eachSeries(function(t){var n=t.getProgressive(),o=t.uid;i.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},Sl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;f(this._allHandlers,function(n){var o=t.get(n.uid)||t.set(n.uid,{});z(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,o,e,i),n.overallReset&&this._createOverallStageTask(n,o,e,i)},this)},Sl.prototype.prepareView=function(t,e,i,n){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=i,r.api=n,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Sl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Sl.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},Sl.prototype._performStageTasks=function(t,e,i,n){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var r=!1,a=this;f(t,function(t,s){var l,h,u,c,p;n.visualType&&n.visualType!==t.visualType||(l=(h=a._stageTaskMap.get(t.uid)).seriesTaskMap,(h=h.overallTask)?((c=h.agentStubMap).each(function(t){o(n,t)&&(t.dirty(),u=!0)}),u&&h.dirty(),a.updatePayload(h,i),p=a.getPerformArgs(h,n.block),c.each(function(t){t.perform(p)}),h.perform(p)&&(r=!0)):l&&l.each(function(s,l){o(n,s)&&s.dirty();var h=a.getPerformArgs(s,n.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),s.perform(h)&&(r=!0)}))}),this.unfinished=r||this.unfinished},Sl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Sl.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())})},Sl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Sl.prototype._createSeriesStageTask=function(t,e,i,n){function o(e){var o=e.uid,o=s.set(o,a&&a.get(o)||_s({plan:kl,reset:Al,count:Pl}));o.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,o)}var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=X(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(o):e?i.eachRawSeriesByType(e,o):l&&l(i,n).each(o)},Sl.prototype._createOverallStageTask=function(t,e,i,n){function o(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,_s({reset:Ml,onDirty:Il})));e.context={model:t,overallProgress:u},e.agent=a,e.__block=u,r._pipe(t,e)}var r=this,a=e.overallTask=e.overallTask||_s({reset:Tl}),s=(a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r},a.agentStubMap),l=a.agentStubMap=X(),e=t.seriesType,h=t.getTargetSeries,u=!0,c=!1;z(!t.createOnAllSeries,""),e?i.eachRawSeriesByType(e,o):h?h(i,n).each(o):(u=!1,f(i.getSeries(),o)),c&&a.dirty()},Sl.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},Sl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){Fb=null;try{t(Hb,Wb)}catch(t){}return Fb}(t)}:t).uid=jr("stageHandler"),e&&(t.visualType=e),t};var Fb,Vb=Sl,Yb=Dl(0),Hb={},Wb={};Ol(Hb,Iw),Ol(Wb,Ba),Hb.eachSeriesByType=Hb.eachRawSeriesByType=function(t){Fb=t},Hb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Fb=t.subType)};var fx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Gx={color:fx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],fx]},Xb="#B9B8CE",kx="#100C2A",Mx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],fx={darkMode:!0,color:Mx,backgroundColor:kx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Xb}},textStyle:{color:Xb},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Xb}},dataZoom:{borderColor:"#71708A",textStyle:{color:Xb},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:Xb}},timeline:{lineStyle:{color:Xb},label:{color:Xb},controlStyle:{color:Xb,borderColor:Xb}},calendar:{itemStyle:{color:kx},dayLabel:{color:Xb},monthLabel:{color:Xb},yearLabel:{color:Xb}},timeAxis:Ll(),logAxis:Ll(),valueAxis:Ll(),categoryAxis:Ll(),line:{symbol:"circle"},graph:{color:Mx},gauge:{title:{color:Xb},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Xb},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Gb=(fx.categoryAxis.splitLine.show=!1,El.prototype.normalizeQuery=function(t){var e,i,n,o={},r={},a={};return b(t)?(e=un(t),o.mainType=e.main||null,o.subType=e.sub||null):(i=["Index","Name","Id"],n={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<i.length;l++){var h=i[l],u=e.lastIndexOf(h);0<u&&u===e.length-h.length&&"data"!==(u=e.slice(0,u))&&(o.mainType=u,o[h.toLowerCase()]=t,s=!0)}n.hasOwnProperty(e)&&(r[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:o,dataQuery:r,otherQuery:a}},El.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n,o,r,a,s,l=this.eventInfo;return!l||(n=l.targetEl,o=l.packedEvent,r=l.model,l=l.view,!r)||!l||(a=e.cptQuery,s=e.dataQuery,i(a,r,"mainType")&&i(a,r,"subType")&&i(a,r,"index","componentIndex")&&i(a,r,"name")&&i(a,r,"id")&&i(s,o,"name")&&i(s,o,"dataIndex")&&i(s,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,n,o)))},El.prototype.afterTrigger=function(){this.eventInfo=null},El),Ub=["symbol","symbolSize","symbolRotate","symbolOffset"],jb=Ub.concat(["symbolKeepAspect"]),kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n,o={},r={},a=!1,s=0;s<Ub.length;s++){var h=Ub[s],u=t.get(h);w(u)?(a=!0,r[h]=u):o[h]=u}if(o.symbol=o.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),!e.isSeriesFiltered(t))return n=v(r),{dataEach:a?function(e,i){for(var o=t.getRawValue(i),a=t.getDataParams(i),s=0;s<n.length;s++){var l=n[s];e.setItemVisual(i,l,r[l](o,a))}}:null}}}},Mx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var i=t.getItemModel(e),n=0;n<jb.length;n++){var o=jb[n],r=i.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}},qb=Math.round(9*Math.random()),Zb="function"==typeof Object.defineProperty,Kb=(zl.prototype.get=function(t){return this._guard(t)[this._id]},zl.prototype.set=function(t,e){return t=this._guard(t),Zb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},zl.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},zl.prototype.has=function(t){return!!this._guard(t)[this._id]},zl.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},zl),Qb=yv.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n+e),t.lineTo(i-o,n+e),t.closePath()}}),$b=yv.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n),t.lineTo(i,n+e),t.lineTo(i-o,n),t.closePath()}}),Jb=yv.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=n-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),h=Math.cos(a),u=.6*o,c=.7*o;t.moveTo(i-s,e+r),t.arc(i,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(i+s-l*u,e+r+h*u,i,n-c,i,n),t.bezierCurveTo(i,n-c,i-s+l*u,e+r+h*u,i-s,e+r),t.closePath()}}),tS=yv.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,o=e.x,e=e.y,n=n/3*2;t.moveTo(o,e),t.lineTo(o+n,e+i),t.lineTo(o,e+i/4*3),t.lineTo(o-n,e+i),t.lineTo(o,e),t.closePath()}}),eS={line:function(t,e,i,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+i,o.y2=e+n/2},rect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n},roundRect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(t,e,i,n,o){i=Math.min(i,n),o.x=t,o.y=e,o.width=i,o.height=i},circle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.r=Math.min(i,n)/2},diamond:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n},pin:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},arrow:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},triangle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n}},iS={},nS=(f({line:H_,rect:Iv,roundRect:Iv,square:Iv,circle:p_,diamond:$b,pin:Jb,arrow:tS,triangle:Qb},function(t,e){iS[e]=new t}),yv.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var t=gi(t,e,i),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===e.position&&(t.y=i.y+.4*i.height),t},buildPath:function(t,e,i){var n,o=e.symbolType;"none"!==o&&(n=(n=iS[o])||iS[o="rect"],eS[o](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,i))}})),oS=new rv(!0),rS=["shadowBlur","shadowOffsetX","shadowOffsetY"],aS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],sS=1,lS=2,hS=3,uS=4,cS=new Kb,pS=new sy(100),dS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],fS=new ug,gS={},$b={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}},yS="__flagInMainProcess",mS="__pendingUpdate",vS="__needsUpdateStatus",_S=/^[a-zA-Z0-9_]+$/,xS="__connectUpdateStatus";i(ch,wS=ug);var wS,bS,SS,TS,MS,CS,IS,kS,AS,DS,PS,OS,LS,ES,RS,NS,BS,zS,FS,VS,YS=ch,Jb=YS.prototype,HS=(Jb.on=hh("on"),Jb.off=hh("off"),i(ph,VS=ug),ph.prototype._onframe=function(){if(!this._disposed){FS(this);var t=this._scheduler;if(this[mS]){var e=this[mS].silent;this[yS]=!0;try{bS(this),MS.update.call(this,null,this[mS].updateParams)}catch(t){throw this[yS]=!1,this[mS]=null,t}this._zr.flush(),this[yS]=!1,this[mS]=null,AS.call(this,e),DS.call(this,e)}else if(t.unfinished){var i=1,n=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(n),t.performDataProcessorTasks(n),IS(this,n),t.performVisualTasks(n),RS(this,this._model,o,"remain",{}),0<(i-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},ph.prototype.getDom=function(){return this._dom},ph.prototype.getId=function(){return this.id},ph.prototype.getZr=function(){return this._zr},ph.prototype.isSSR=function(){return this._ssr},ph.prototype.setOption=function(t,e,i){if(!this[yS])if(this._disposed)this.id;else{M(e)&&(i=e.lazyUpdate,n=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[yS]=!0,this._model&&!e||(e=new Ew(this._api),a=this._theme,(s=this._model=new Iw).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},jS);var n,o,r,a,s={seriesTransition:r,optionChanged:!0};if(i)this[mS]={silent:n,updateParams:s},this[yS]=!1,this.getZr().wakeUp();else{try{bS(this),MS.update.call(this,null,s)}catch(t){throw this[mS]=null,this[yS]=!1,t}this._ssr||this._zr.flush(),this[mS]=null,this[yS]=!1,AS.call(this,n),DS.call(this,n)}}},ph.prototype.setTheme=function(){},ph.prototype.getModel=function(){return this._model},ph.prototype.getOption=function(){return this._model&&this._model.getOption()},ph.prototype.getWidth=function(){return this._zr.getWidth()},ph.prototype.getHeight=function(){return this._zr.getHeight()},ph.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Pf.hasGlobalWindow&&window.devicePixelRatio||1},ph.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},ph.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},ph.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},ph.prototype.getSvgDataURL=function(){var t;if(Pf.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},ph.prototype.getDataURL=function(t){var e,i,n,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,i=[],n=this,f(o,function(t){e.eachComponent({mainType:t},function(t){t=n._componentsMap[t.__viewId],t.group.ignore||(i.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(i,function(t){t.group.ignore=!1}),o;this.id},ph.prototype.getConnectedDataURL=function(t){var e,i,n,o,r,s,l,h,u,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,i=this.group,n=Math.min,o=Math.max,$S[i]?(s=r=1/0,h=l=-1/0,u=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f(QS,function(c,p){var d;c.group===i&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),r=n(c.left,r),s=n(c.top,s),l=o(c.right,l),h=o(c.bottom,h),u.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(r*=c),d=(h*=c)-(s*=c),g=zf.createCanvas(),(y=Ti(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(u,function(t){var e=t.left-r,i=t.top-s;m+='<g transform="translate('+e+","+i+')">'+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 Iv({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(u,function(t){t=new bv({style:{x:t.left*c-r,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},ph.prototype.convertToPixel=function(t,e){return CS(this,"convertToPixel",t,e)},ph.prototype.convertFromPixel=function(t,e){return CS(this,"convertFromPixel",t,e)},ph.prototype.containPixel=function(t,e){var i;if(!this._disposed)return f(rn(this._model,t),function(t,n){0<=n.indexOf("Models")&&f(t,function(t){var o=t.coordinateSystem;o&&o.containPoint?i=i||!!o.containPoint(e):"seriesModels"===n&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(i=i||o.containPoint(e,t))},this)},this),!!i;this.id},ph.prototype.getVisual=function(t,e){var t=rn(this._model,t,{defaultMainType:"series"}),i=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;if(null==t)return Rl(i,e);var n=i,o=t,r=e;switch(r){case"color":return n.getItemVisual(o,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(o,r)}},ph.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},ph.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},ph.prototype._initEvents=function(){var t,e,i,n=this;f(WS,function(t){function e(e){var i,o,r,a=n.getModel(),s=e.target;"globalout"===t?i={}:s&&Bl(s,function(t){var e,t=Rv(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},1):t.eventData&&(i=l({},t.eventData),1)},!0),i&&(o=i.componentType,r=i.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=i.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&n["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:o,view:r},n.trigger(t,i))}e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),f(GS,function(t,e){n._messageCenter.on(e,function(t){this.trigger(e,t)},n)}),f(["selectchanged"],function(t){n._messageCenter.on(t,function(e){this.trigger(t,e)},n)}),t=this._messageCenter,i=(e=this)._api,t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(Nl("map","selectchanged",e,n,t),Nl("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Nl("map","selected",e,n,t),Nl("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Nl("map","unselected",e,n,t),Nl("pie","unselected",e,n,t))})},ph.prototype.isDisposed=function(){return this._disposed},ph.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},ph.prototype.dispose=function(){var t,e,i;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ln(this.getDom(),eT,""),e=(t=this)._api,i=t._model,f(t._componentsViews,function(t){t.dispose(i,e)}),f(t._chartsViews,function(t){t.dispose(i,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 QS[t.id])},ph.prototype.resize=function(t){if(!this[yS])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"),i=t&&t.silent;this[mS]&&(null==i&&(i=this[mS].silent),e=!0,this[mS]=null),this[yS]=!0;try{e&&bS(this),MS.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[yS]=!1,t}this[yS]=!1,AS.call(this,i),DS.call(this,i)}}},ph.prototype.showLoading=function(t,e){this._disposed?this.id:(M(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),KS[t]&&(t=KS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},ph.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ph.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=GS[t.type],e},ph.prototype.dispatchAction=function(t,e){var i;this._disposed?this.id:(M(e)||(e={silent:!!e}),XS[t.type]&&this._model&&(this[yS]?this._pendingActions.push(t):(i=e.silent,kS.call(this,t,i),(t=e.flush)?this._zr.flush():!1!==t&&Pf.browser.weChat&&this._throttledZrFlush(),AS.call(this,i),DS.call(this,i))))},ph.prototype.updateLabelLayout=function(){fS.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},ph.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())},ph.internalField=(bS=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),SS(t,!0),SS(t,!1),e.plan()},SS=function(t,e){function i(t){var i,h=t.__requireNewView,u=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),h=!h&&a[u];h||(i=un(t.type),(h=new(e?Cb.getClass(i.main,i.sub):Ab.getClass(i.sub))).init(n,l),a[u]=h,r.push(h),s.add(h.group)),t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||o.prepareView(h,t,n,l)}for(var n=t._model,o=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,h=0;h<r.length;h++)r[h].__alive=!1;for(e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i),h=0;h<r.length;){var u=r[h];u.__alive?h++:(e||u.renderTask.dispose(),s.remove(u.group),u.dispose(n,l),r.splice(h,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},TS=function(t,e,i,n,o){function r(n){n&&n.__alive&&n[e]&&n[e](n.__model,l,t._api,i)}var a,s,l=t._model;l.setUpdatePayload(i),n?((a={})[n+"Id"]=i[n+"Id"],a[n+"Index"]=i[n+"Index"],a[n+"Name"]=i[n+"Name"],a={mainType:n,query:a},o&&(a.subType=o),null!=(o=i.excludeSeriesId)&&(s=X(),f(Ui(o),function(t){null!=(t=$i(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var n,o,r=s&&null!=s.get(e.id);if(!r)if(Ro(i))if(e instanceof Mb){if(i.type===Gv&&!i.notBlur&&!e.get(["emphasis","disabled"])){var r=e,a=i,l=t._api,h=r.seriesIndex,u=r.getData(a.dataType);if(u){var a=(x(a=nn(u,a))?a[0]:a)||0,c=u.getItemGraphicEl(a);if(!c)for(var p=u.count(),d=0;!c&&d<p;)c=u.getItemGraphicEl(d++);c?Mo(h,(a=Rv(c)).focus,a.blurScope,l):(a=r.get(["emphasis","focus"]),r=r.get(["emphasis","blurScope"]),null!=a&&Mo(h,a,r,l))}}}else h=Io(e.mainType,e.componentIndex,i.name,t._api),a=h.focusSelf,r=h.dispatchers,i.type===Gv&&a&&!i.notBlur&&Co(e.mainType,e.componentIndex,t._api),r&&f(r,function(t){(i.type===Gv?mo:vo)(t)});else Eo(i)&&e instanceof Mb&&(l=e,r=i,t._api,Eo(r)&&(n=r.dataType,x(o=nn(l.getData(n),r))||(o=[o]),l[r.type===Zv?"toggleSelect":r.type===jv?"select":"unselect"](o,n)),ko(e),zS(t))},t),l&&l.eachComponent(a,function(e){s&&null!=s.get(e.id)||r(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),r)},MS={prepareAndUpdate:function(t){bS(this),MS.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;i&&(i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),r.create(i,n),a.performDataProcessorTasks(i,t),IS(this,i),r.update(i,n),dh(i),a.performVisualTasks(i,t),LS(this,i,n,t,e),r=i.get("backgroundColor")||"transparent",a=i.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),fS.trigger("afterupdate",i,n))},updateTransform:function(t){var e,i,n=this,o=this._model,r=this._api;o&&(o.setUpdatePayload(t),e=[],o.eachComponent(function(i,a){"series"!==i&&(i=n.getViewOfComponentModel(a))&&i.__alive&&(!i.updateTransform||(a=i.updateTransform(a,o,r,t))&&a.update)&&e.push(i)}),i=X(),o.eachSeries(function(e){var a=n._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,o,r,t))&&a.update)&&i.set(e.uid,1)}),dh(o),this._scheduler.performVisualTasks(o,t,{setDirty:!0,dirtyMap:i}),RS(this,o,r,t,{},i),fS.trigger("afterupdate",o,r))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Ab.markUpdateMethod(t,"updateView"),dh(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),LS(this,e,this._api,t,{}),fS.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries(function(t){t.getData().clearAllVisual()}),Ab.markUpdateMethod(t,"updateVisual"),dh(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(n,o){"series"!==n&&(n=e.getViewOfComponentModel(o))&&n.__alive&&n.updateVisual(o,i,e._api,t)}),i.eachSeries(function(n){e._chartsMap[n.__viewId].updateVisual(n,i,e._api,t)}),fS.trigger("afterupdate",i,this._api))},updateLayout:function(t){MS.update.call(this,t)}},CS=function(t,e,i,n){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=rn(o,i),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,n)))return l}},IS=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},kS=function(t,e){var i,n,o=this,r=this.getModel(),a=t.type,s=t.escapeConnect,u=XS[a],c=u.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&un(p[0]),p=(this[yS]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=h(l({},e),t)).batch=null,e})),[]),_=Eo(t),x=Ro(t);if(x&&To(this._api),f(p,function(e){var n,r;(i=(i=u.action(e,o._model,o._api))||l({},e)).type=c.event||i.type,v.push(i),x?(n=(r=an(t)).queryOptionMap,r=r.mainTypeSpecified?n.keys()[0]:"series",TS(o,d,e,r),zS(o)):_?(TS(o,d,e,"series"),zS(o)):y&&TS(o,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[mS]?(bS(this),MS.update.call(this,t),this[mS]=null):MS[d].call(this,t)}catch(e){throw this[yS]=!1,e}i=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[yS]=!1,e||((p=this._messageCenter).trigger(i.type,i),_&&(m={type:"selectchanged",escapeConnect:s,selected:(n=[],r.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,i=t.getSelectedDataIndices();0<i.length&&(i={dataIndex:i,seriesIndex:t.seriesIndex},null!=e&&(i.dataType=e),n.push(i))})}),n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},AS=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();kS.call(this,i,t)}},DS=function(t){t||this.trigger("updated")},PS=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[mS]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},OS=function(t,e){t.on("mouseover",function(t){var i,n,o,r,a=Bl(t.target,Lo);a&&(a=a,i=t,t=e._api,n=Rv(a),o=(r=Io(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,o?(r&&Co(n.componentMainType,n.componentIndex,t),f(o,function(t){return go(t,i)})):(Mo(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&Co(n.componentMainType,n.componentIndex,t),go(a,i)),zS(e))}).on("mouseout",function(t){var i,n,o=Bl(t.target,Lo);o&&(o=o,i=t,To(t=e._api),(n=Io((n=Rv(o)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?f(n,function(t){return yo(t,i)}):yo(o,i),zS(e))}).on("click",function(t){var i,t=Bl(t.target,function(t){return null!=Rv(t).dataIndex},!0);t&&(i=t.selected?"unselect":"select",t=Rv(t),e._api.dispatchAction({type:i,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},LS=function(t,e,i,n,o){var r,a,s,l,h,u,c;h=[],c=!(u=[]),(r=e).eachComponent(function(t,e){var i=e.get("zlevel")||0,n=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?u:h).push({zlevel:i,z:n,idx:e.componentIndex,type:t,key:o})}),c&&(Wt(a=h.concat(u),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=r.getComponent(t.type,t.idx),i=t.zlevel,t=t.key;null!=s&&(i=Math.max(s,i)),t?(i===s&&t!==l&&i++,l=t):l&&(i===s&&i++,l=""),s=i,e.setZLevel(i)})),ES(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive=!1}),RS(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},ES=function(t,e,i,n,o,r){f(r||t._componentsViews,function(t){var o=t.__model;yh(0,t),t.render(o,e,i,n),gh(o,t),mh(o,t)})},RS=function(t,e,i,n,o,r){var a,s,h,u,c=t._scheduler,p=(o=l(o||{},{updatedSeries:e.getSeries()}),fS.trigger("series:beforeupdate",e,i,o),!1);e.eachSeries(function(e){var i,o=t._chartsMap[e.__viewId],a=(o.__alive=!0,o.renderTask);c.updatePayload(a,n),yh(0,o),r&&r.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),o.group.silent=!!e.get("silent"),a=o,i=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=i)}),ko(e)}),c.unfinished=p||c.unfinished,fS.trigger("series:layoutlabels",e,i,o),fS.trigger("series:transition",e,i,o),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];gh(e,i),mh(e,i)}),s=e,h=(a=t)._zr.storage,u=0,h.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!Pf.node&&!Pf.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)})}),fS.trigger("series:afterupdate",e,i,o)},zS=function(t){t[vS]=!0,t.getZr().wakeUp()},FS=function(t){t[vS]&&(t.getZr().storage.traverse(function(t){cr(t)||fh(t)}),t[vS]=!1)},NS=function(t){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n=Ba),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},e.prototype.enterEmphasis=function(e,i){mo(e,i),zS(t)},e.prototype.leaveEmphasis=function(e,i){vo(e,i),zS(t)},e.prototype.enterBlur=function(e){_o(e),zS(t)},e.prototype.leaveBlur=function(e){xo(e),zS(t)},e.prototype.enterSelect=function(e){wo(e),zS(t)},e.prototype.leaveSelect=function(e){bo(e),zS(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 n},void(BS=function(t){function e(t,e){for(var i=0;i<t.length;i++)t[i][xS]=e}f(GS,function(i,n){t._messageCenter.on(n,function(i){var n,o;!$S[t.group]||0===t[xS]||i&&i.escapeConnect||(n=t.makeActionFromEvent(i),o=[],f(QS,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),f(o,function(t){1!==t[xS]&&t.dispatchAction(n)}),e(o,2))})})})),ph),tS=HS.prototype,WS=(tS.on=lh("on"),tS.off=lh("off"),tS.one=function(t,e,i){var n=this;this.on.call(this,t,function i(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];e&&e.apply&&e.apply(this,o),n.off(t,i)},i)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),XS={},GS={},US=[],jS=[],qS=[],ZS={},KS={},QS={},$S={},JS=+new Date,tT=+new Date,eT="_echarts_instance_";Qb=vh;var iT=[];Ah(2e3,Ix),Ah(4500,mm),Ah(4500,Dx),Ah(2e3,kx),Ah(4500,Mx),Ah(7e3,function(t,e){t.eachRawSeries(function(i){var n;!t.isSeriesFiltered(i)&&((n=i.getData()).hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");i&&(n.ensureUniqueItemVisual(t,"style").decal=ah(i,e))}),i=n.getVisual("decal"))&&(n.getVisual("style").decal=ah(i,e))})}),wh($a),bh(900,function(t){var e=X();t.eachSeries(function(t){var i,n=t.get("stack");n&&(n=e.get(n)||e.set(n,[]),(t={stackResultDimension:(i=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),e.each(Ja)}),Ph("default",function(t,e){h(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 i,n=new Jy,o=new Iv({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),r=(n.add(o),new Pv({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 Iv({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Z_({shape:{startAngle:-zb/2,endAngle:-zb/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*zb/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*zb/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,n=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),l=t.getHeight()/2;e.showSpinner&&i.setShape({cx:n,cy:l}),a.setShape({x:n-s,y:l-s,width:2*s,height:2*s}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Ch({type:Gv,event:Gv,update:Gv},Z),Ch({type:Uv,event:Uv,update:Uv},Z),Ch({type:jv,event:jv,update:jv},Z),Ch({type:qv,event:qv,update:qv},Z),Ch({type:Zv,event:Zv,update:Zv},Z),xh("light",Gx),xh("dark",fx),Nh.prototype.add=function(t){return this._add=t,this},Nh.prototype.update=function(t){return this._update=t,this},Nh.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Nh.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Nh.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Nh.prototype.remove=function(t){return this._remove=t,this},Nh.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Nh.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=n[r],l=i[s],h=Eh(l);1<h?(a=l.shift(),1===l.length&&(i[s]=l[0]),this._update&&this._update(a,r)):1===h?(i[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,i)},Nh.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},o=[],r=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=i[s],h=n[s],u=Eh(l),c=Eh(h);if(1<u&&1===c)this._updateManyToOne&&this._updateManyToOne(h,l),n[s]=null;else if(1===u&&1<c)this._updateOneToMany&&this._updateOneToMany(h,l),n[s]=null;else if(1===u&&1===c)this._update&&this._update(h,l),n[s]=null;else if(1<u&&1<c)this._updateManyToMany&&this._updateManyToMany(h,l),n[s]=null;else if(1<u)for(var p=0;p<u;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,n)},Nh.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=e[n],r=Eh(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[n]=null}},Nh.prototype._initIndexMap=function(t,e,i,n){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[n](t[r],r);o||(i[r]=l),e&&(0===(s=Eh(a=e[l]))?(e[l]=r,o&&i.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var nT=Nh;Bh.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Bh.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var oT,rT,aT,sT,lT,hT,uT,cT=Bh,pT=function(t){this.otherDims={},null!=t&&l(this,t)},dT=on(),fT={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gT=(Vh.prototype.isDimensionOmitted=function(){return this._dimOmitted},Vh.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Wh(this.source))},Vh.prototype.getSourceDimensionIndex=function(t){return E(this._dimNameMap.get(t),-1)},Vh.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Vh.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=as(this.source),i=!(30<t),n="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,h=void 0,u=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,h=c.type,u=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,h=s.type),o.push({property:l,type:h,ordinalMeta:u}),!e||null==l||c&&c.isCalculationCoord||(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n=n+"$"+(fT[h]||"f"),u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},Vh.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,o=this.dimensions[i];o&&o.storeDimIndex===e?(o.isCalculationCoord||(n=o.name),i++):(o=this.getSourceDimension(e))&&(n=o.name),t.push(n)}return t},Vh.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Vh),yT=M,mT=g,vT="undefined"==typeof Int32Array?Array:Int32Array,_T=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xT=["_approximateExtent"],wT=(Xh.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])},Xh.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},Xh.prototype._recognizeDimIndex=function(t){if(T(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Xh.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Xh.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Xh.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]}},Xh.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Xh.prototype.mapDimension=function(t,e){var i=this._dimSummary;return null==e?i.encodeFirstDimNotExtra[t]:(i=i.encode[t])?i[e]:null},Xh.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Xh.prototype.getStore=function(){return this._store},Xh.prototype.initData=function(t,e,i){var n,o,r=this;(n=t instanceof mb?t:n)||(o=this.dimensions,t=ts(t)||d(t)?new Gw(t,o.length):t,n=new mb,o=mT(o,function(t){return{type:r._dimInfos[t].type,property:t}}),n.initData(t,o,i)),this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=zh(this,this._schema),this.userOutput=this._dimSummary.userOutput},Xh.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Xh.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),i=t.start,n=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=i;r<n;r++)this._nameList[r]=e[r-i],o&&uT(this,r)},Xh.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},Xh.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==mw&&!t.fillStorage},Xh.prototype._doInit=function(t,e){if(!(e<=t)){var i=this._store.getProvider(),n=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(i.getSource().sourceFormat===dw&&!i.pure)for(var r=[],a=t;a<e;a++){var s,l=i.getItem(a,r);this.hasItemOption||!M(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==n[a]&&null!=s&&(n[a]=$i(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=$i(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)uT(this,a);oT(this)}},Xh.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Xh.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Xh.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Xh.prototype.setCalculationInfo=function(t,e){yT(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Xh.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?aT(this,this._nameDimIdx,t):e)?"":e},Xh.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Xh.prototype.getId=function(t){return rT(this,this.getRawIndex(t))},Xh.prototype.count=function(){return this._store.count()},Xh.prototype.get=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.get(t.storeDimIndex,e)},Xh.prototype.getByRawIndex=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.getByRawIndex(t.storeDimIndex,e)},Xh.prototype.getIndices=function(){return this._store.getIndices()},Xh.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Xh.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Xh.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Xh.prototype.getValues=function(t,e){var i=this,n=this._store;return x(t)?n.getValues(mT(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},Xh.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},Xh.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},Xh.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Xh.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Xh.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Xh.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},Xh.prototype.each=function(t,e,i){w(t)&&(i=e,e=t,t=[]),i=i||this,t=mT(sT(t),this._getStoreDimIndex,this),this._store.each(t,i?$f(e,i):e)},Xh.prototype.filterSelf=function(t,e,i){return w(t)&&(i=e,e=t,t=[]),i=i||this,t=mT(sT(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,i?$f(e,i):e),this},Xh.prototype.selectRange=function(t){var e=this,i={};return f(v(t),function(n){var o=e._getStoreDimIndex(n);i[o]=t[n]}),this._store=this._store.selectRange(i),this},Xh.prototype.mapArray=function(t,e,i){w(t)&&(i=e,e=t,t=[]);var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i=i||this),n},Xh.prototype.map=function(t,e,i,n){return i=i||n||this,n=mT(sT(t),this._getStoreDimIndex,this),t=hT(this),t._store=this._store.map(n,i?$f(e,i):e),t},Xh.prototype.modify=function(t,e,i,n){i=i||n||this,n=mT(sT(t),this._getStoreDimIndex,this),this._store.modify(n,i?$f(e,i):e)},Xh.prototype.downSample=function(t,e,i,n){var o=hT(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),o},Xh.prototype.lttbDownSample=function(t,e){var i=hT(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},Xh.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Xh.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Ox(t,e,e&&e.ecModel)},Xh.prototype.diff=function(t){var e=this;return new nT(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return rT(t,e)},function(t){return rT(e,t)})},Xh.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Xh.prototype.setVisual=function(t,e){this._visual=this._visual||{},yT(t)?l(this._visual,t):this._visual[t]=e},Xh.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Xh.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Xh.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t],i=(n=n||(i[t]={}))[e];return null==i&&(x(i=this.getVisual(e))?i=i.slice():yT(i)&&(i=l({},i)),n[e]=i),i},Xh.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,yT(e)?l(n,e):n[e]=i},Xh.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Xh.prototype.setLayout=function(t,e){yT(t)?l(this._layout,t):this._layout[t]=e},Xh.prototype.getLayout=function(t){return this._layout[t]},Xh.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Xh.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?l(this._itemLayouts[t]||{},e):e},Xh.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Xh.prototype.setItemGraphicEl=function(t,e){var i,n,o,r,a=this.hostModel&&this.hostModel.seriesIndex;i=a,n=this.dataType,o=t,(a=e)&&((r=Rv(a)).dataIndex=o,r.dataType=n,r.seriesIndex=i,r.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=Rv(t),t.seriesIndex=i,t.dataIndex=o,t.dataType=n,t.ssrType="chart"}),this._graphicEls[t]=e},Xh.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Xh.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},Xh.prototype.cloneShallow=function(t){return t=t||new Xh(this._schema||mT(this.dimensions,this._getDimInfo,this),this.hostModel),lT(t,this),t._store=this._store,t},Xh.prototype.wrapMethod=function(t,e){var i=this[t];w(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(N(arguments)))})},Xh.internalField=(oT=function(t){var e=t._invertedIndicesMap;f(e,function(i,n){var o=t._dimInfos[n],r=o.ordinalMeta,a=t._store;if(r){i=e[n]=new vT(r.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(s=0;s<a.count();s++)i[a.get(o.storeDimIndex,s)]=s}})},aT=function(t,e,i){return $i(t._getCategory(e,i),null)},rT=function(t,e){var i=t._idList[e];return i=null==(i=null==i&&null!=t._idDimIdx?aT(t,t._idDimIdx,e):i)?"e\0\0"+e:i},sT=function(t){return t=x(t)?t:null!=t?[t]:[]},hT=function(t){var e=new Xh(t._schema||mT(t.dimensions,t._getDimInfo,t),t.hostModel);return lT(e,t),e},lT=function(t,e){f(_T.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(xT,function(i){t[i]=a(e[i])}),t._calculationInfo=l({},e._calculationInfo)},void(uT=function(t,e){var i=t._nameList,n=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=i[e],s=n[e];null==a&&null!=o&&(i[e]=a=aT(t,o,e)),null==s&&null!=r&&(n[e]=s=aT(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(i=t._nameRepeatCount)[a]=(i[a]||0)+1)&&(s+="__ec__"+o),n[e]=s)})),Xh),bT=function(t){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=t},ST={cartesian2d:function(t,e,i,n){var o=t.getReferringComponents("xAxis",cm).models[0],t=t.getReferringComponents("yAxis",cm).models[0];e.coordSysDims=["x","y"],i.set("x",o),i.set("y",t),Uh(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),Uh(t)&&(n.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){t=t.getReferringComponents("singleAxis",cm).models[0],e.coordSysDims=["single"],i.set("single",t),Uh(t)&&(n.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var t=t.getReferringComponents("polar",cm).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",t),Uh(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Uh(t)&&(n.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var o=t.ecModel,t=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=o.getComponent("parallelAxis",t),s=r[a];i.set(s,t),Uh(t)&&(n.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};Qh.prototype.getSetting=function(t){return this._setting[t]},Qh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Qh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Qh.prototype.getExtent=function(){return this._extent.slice()},Qh.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Qh.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Qh.prototype.isBlank=function(){return this._isBlank},Qh.prototype.setBlank=function(t){this._isBlank=t};var TT=Qh;gn(TT);var MT=0,CT=($h.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Jh);return new $h({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},$h.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},$h.prototype.parseAndCollect=function(t){var e,i,n=this._needCollect;return b(t)||n?(n&&!this._deduplication?(i=this.categories.length,this.categories[i]=t):null==(i=(e=this._getOrCreateMap()).get(t))&&(n?(i=this.categories.length,this.categories[i]=t,e.set(t,i)):i=NaN),i):t},$h.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},$h);i(lu,IT=TT),lu.prototype.parse=function(t){return null==t?NaN:b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},lu.prototype.contain=function(t){return ru(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},lu.prototype.normalize=function(t){return au(t=this._getTickNumber(this.parse(t)),this._extent)},lu.prototype.scale=function(t){return t=Math.round(su(t,this._extent)),this.getRawOrdinalNumber(t)},lu.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},lu.prototype.getMinorTicks=function(t){},lu.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];n[i[o]=s]=o}for(var l=0;o<r;++o){for(;null!=n[l];)l++;i.push(l),n[l]=o}}},lu.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},lu.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},lu.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},lu.prototype.count=function(){return this._extent[1]-this._extent[0]+1},lu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},lu.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},lu.prototype.getOrdinalMeta=function(){return this._ordinalMeta},lu.prototype.calcNiceTicks=function(){},lu.prototype.calcNiceExtent=function(){},lu.type="ordinal";var IT,kT=lu;TT.registerClass(kT);var AT,DT=Di,PT=(i(hu,AT=TT),hu.prototype.parse=function(t){return t},hu.prototype.contain=function(t){return ru(t,this._extent)},hu.prototype.normalize=function(t){return au(t,this._extent)},hu.prototype.scale=function(t){return su(t,this._extent)},hu.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},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]),this.setExtent(e[0],e[1])},hu.prototype.getInterval=function(){return this._interval},hu.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=nu(t)},hu.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,r=[];if(e){i[0]<n[0]&&r.push(t?{value:DT(n[0]-e,o)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(r.push({value:a}),(a=DT(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:n[1];i[1]>s&&r.push(t?{value:DT(s+e,o)}:{value:i[1]})}return r},hu.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],h=(r.value-a.value)/t;s<t-1;){var u=DT(a.value+(s+1)*h);u>n[0]&&u<n[1]&&l.push(u),s++}i.push(l)}return i},hu.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Pi(t.value)||0:"auto"===e&&(e=this._intervalPrecision),da(DT(t.value,e,!0)))},hu.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,o=n[1]-n[0];isFinite(o)&&(o<0&&n.reverse(),o=eu(n,t,e,i),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},hu.prototype.calcNiceExtent=function(t){var e=this._extent,i=(e[0]===e[1]&&(0!==e[0]?(i=Math.abs(e[0]),t.fixMax||(e[1]+=i/2),e[0]-=i/2):e[1]=1),e[1]-e[0]),i=(isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=DT(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=DT(Math.ceil(e[1]/i)*i))},hu.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},hu.type="interval",hu);TT.registerClass(PT);var OT="undefined"!=typeof Float32Array,LT=OT?Float32Array:Array;i(gu,ET=PT),gu.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Qr(t.value,Ux[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Kr(this._minLevelUnit))]||Ux.second,e,this.getSetting("locale"))},gu.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(b(i))r=i;else if(w(i))r=i(t.value,e,{level:t.level});else{var a=l({},Xx);if(0<t.level)for(var s=0;s<jx.length;++s)a[jx[s]]="{primary|"+a[jx[s]]+"}";var u=i?!1===i.inherit?i:h(i,a):a,c=$r(t.value,n);if(u[c])r=u[c];else if(u.inherit){for(s=qx.indexOf(c)-1;0<=s;--s)if(u[c]){r=u[c];break}r=r||a.none}x(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return Qr(new Date(t.value),r,n,o)},gu.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];return t&&(i.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,i,n){for(var o=qx,r=0,a=[],s=[],l=0,h=0,u=0;u<o.length&&r++<1e4;++u){var c=Kr(o[u]);if(function(t){return t===Kr(t)}(o[u])){!function(t,o,r){var a=[],s=!o.length;if(!function(t,e,i,n){function o(t){return Jr(c,t,n)===Jr(p,t,n)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function h(){return l()&&o("minute")}function u(){return h()&&o("second")}var c=Ni(e),p=Ni(i);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return h();case"second":return u();case"millisecond":return u()&&o("millisecond")}}(Kr(t),n[0],n[1],i)){s&&(o=[{value:function(t,e,i){var n=new Date(t);switch(Kr(e)){case"year":case"month":n[sa(i)](0);case"day":n[la(i)](1);case"hour":n[ha(i)](0);case"minute":n[ua(i)](0);case"second":n[ca(i)](0),n[pa(i)](0)}return n.getTime()}(new Date(n[0]),t,i)},{value:n[1]}]);for(var l,h,u=0;u<o.length-1;u++){var c=o[u].value,p=o[u+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/Wx/365)),f=ta(i),g=i?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=e,d=6<(h/=30*Wx)?6:3<h?3:2<h?2:1,f=ea(i),g=sa(i);break;case"week":case"half-week":case"day":h=e,d=16<(h/=Wx)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,f=ia(i),g=la(i);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=Hx)?12:6<l?6:3.5<l?4:2<l?2:1,f=na(i),g=ha(i);break;case"minute":d=yu(e,!0),f=oa(i),g=ua(i);break;case"second":d=yu(e,!1),f=ra(i),g=ca(i);break;case"millisecond":d=Fi(e,!0),f=aa(i),g=pa(i)}T=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,T=b[_]();S<v&&S<=n[1];)w.push({value:S}),b[x](T+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<r.length&&0===u&&r.unshift({value:r[0].value-d})}}for(u=0;u<a.length;u++)r.push(a[u])}}(o[u],a[a.length-1]||[],s);if(c!==(o[u+1]?Kr(o[u+1]):null)){if(s.length){h=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>=n[0]&&f<=n[1]&&l++)}if(1.5*(c=(n[1]-n[0])/e)<l&&c/1.5<h)break;if(a.push(p),c<l||t===o[u])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,u=0;u<y.length;++u)for(var x=y[u],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-u});v.sort(function(t,e){return t.value-e.value});for(var b=[],u=0;u<v.length;++u)0!==u&&v[u].value===v[u-1].value||b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,t,e),(i=i.concat(t)).push({value:e[1],level:0})),i},gu.prototype.calcNiceExtent=function(t){var e,i=this._extent;i[0]===i[1]&&(i[0]-=Wx,i[1]+=Wx),i[1]===-1/0&&i[0]===1/0&&(e=new Date,i[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),i[0]=i[1]-Wx),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},gu.prototype.calcNiceTicks=function(t,e,i){var n=this._extent,n=n[1]-n[0],n=(this._approxInterval=n/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i),NT.length),t=Math.min(function(t,e,i,n){for(;i<n;){var o=i+n>>>1;t[o][1]<e?i=1+o:n=o}return i}(NT,this._approxInterval,0,n),n-1);this._interval=NT[t][1],this._minLevelUnit=NT[Math.max(t-1,0)][0]},gu.prototype.parse=function(t){return T(t)?t:+Ni(t)},gu.prototype.contain=function(t){return ru(this.parse(t),this._extent)},gu.prototype.normalize=function(t){return au(this.parse(t),this._extent)},gu.prototype.scale=function(t){return su(t,this._extent)},gu.type="time";var ET,RT=gu,NT=[["second",Vx],["minute",Yx],["hour",Hx],["quarter-day",6*Hx],["half-day",12*Hx],["day",1.2*Wx],["half-week",3.5*Wx],["week",7*Wx],["month",31*Wx],["quarter",95*Wx],["half-year",gm/2],["year",gm]];TT.registerClass(RT);var BT,zT=TT.prototype,FT=PT.prototype,VT=Di,YT=Math.floor,HT=Math.ceil,WT=Math.pow,XT=Math.log,GT=(i(mu,BT=TT),mu.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return g(FT.getTicks.call(this,t),function(t){var t=t.value,e=Di(WT(this.base,t)),e=t===i[0]&&this._fixMin?vu(e,n[0]):e;return{value:t===i[1]&&this._fixMax?vu(e,n[1]):e}},this)},mu.prototype.setExtent=function(t,e){var i=XT(this.base);t=XT(Math.max(0,t))/i,e=XT(Math.max(0,e))/i,FT.setExtent.call(this,t,e)},mu.prototype.getExtent=function(){var t=this.base,e=zT.getExtent.call(this);return e[0]=WT(t,e[0]),e[1]=WT(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=vu(e[0],t[0])),this._fixMax&&(e[1]=vu(e[1],t[1])),e},mu.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=XT(t[0])/XT(e),t[1]=XT(t[1])/XT(e),zT.unionExtent.call(this,t)},mu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},mu.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i==1/0||i<=0)){var n=Bi(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&0<Math.abs(n);)n*=10;t=[Di(HT(e[0]/n)*n),Di(YT(e[1]/n)*n)],this._interval=n,this._niceExtent=t}},mu.prototype.calcNiceExtent=function(t){FT.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},mu.prototype.parse=function(t){return t},mu.prototype.contain=function(t){return ru(t=XT(t)/XT(this.base),this._extent)},mu.prototype.normalize=function(t){return au(t=XT(t)/XT(this.base),this._extent)},mu.prototype.scale=function(t){return t=su(t,this._extent),WT(this.base,t)},mu.type="log",mu);Kb=GT.prototype,Kb.getMinorTicks=FT.getMinorTicks,Kb.getLabel=FT.getLabel,TT.registerClass(GT),_u.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),o=(null==o&&(o=e.get("startValue",!0)),this._modelMinRaw=o),o=(w(o)?this._modelMinNum=xu(t,o({min:i[0],max:i[1]})):"dataMin"!==o&&(this._modelMinNum=xu(t,o)),this._modelMaxRaw=e.get("max",!0));w(o)?this._modelMaxNum=xu(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=xu(t,o)),n?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(i=e.get("boundaryGap"))?i:[i||0,i||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[fi(t[0],1),fi(t[1],1)]},_u.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,o=this._boundaryGapInner,r=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,h=null!=s,e=(null==a&&(a=t?n?0:NaN:e-o[0]*r),null==s&&(s=t?n?n-1:NaN:i+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),O(a)||O(s)||t&&!n),i=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!h&&(s=0),this._determinedMin),o=this._determinedMax;return null!=i&&(a=i,l=!0),null!=o&&(s=o,h=!0),{min:a,max:s,minFixed:l,maxFixed:h,isBlank:e}},_u.prototype.modifyDataMinMax=function(t,e){this[qT[t]]=e},_u.prototype.setDeterminedMinMax=function(t,e){this[jT[t]]=e},_u.prototype.freeze=function(){this.frozen=!0};var UT=_u,jT={min:"_determinedMin",max:"_determinedMax"},qT={min:"_dataMin",max:"_dataMax"};Au.prototype.getNeedCrossZero=function(){return!this.option.scale},Au.prototype.getCoordSysModel=function(){};var ZT=Au,Jb=Object.freeze({__proto__:null,createDimensions:function(t,e){return Gh(t,e).dimensions},createList:function(t){return Kh(null,t)},createScale:function(t,e){var i=e;return(e=Su(i=e instanceof Ox?i:new Ox(e))).setExtent(t[0],t[1]),bu(e,i),e},createSymbol:Vl,createTextStyle:function(t,e){return Fr(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qh,enableDataStack:jh,getStackedDimension:Zh},enableHoverEmphasis:Ao,getECData:Rv,getLayoutRect:ba,mixinAxisModelCommonMethods:function(t){p(t,ZT)}}),KT=[],QT={registerPreprocessor:wh,registerProcessor:bh,registerPostInit:Sh,registerPostUpdate:Th,registerUpdateLifecycle:Mh,registerAction:Ch,registerCoordinateSystem:Ih,registerLayout:kh,registerVisual:Ah,registerTransform:Lh,registerLoading:Ph,registerMap:Oh,registerImpl:function(t,e){gS[t]=e},PRIORITY:$b,ComponentModel:aw,ComponentView:Cb,SeriesModel:Mb,ChartView:Ab,registerComponentModel:function(t){aw.registerClass(t)},registerComponentView:function(t){Cb.registerClass(t)},registerSeriesModel:function(t){Mb.registerClass(t)},registerChartView:function(t){Ab.registerClass(t)},registerSubTypeDefaulter:function(t,e){aw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mi(t,e)}},$T=1e-8,JT=[];Ru.prototype.setCenter=function(t){this._center=t},Ru.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},tS=Ru;var tM,eM,iM=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},nM=function(t){this.type="linestring",this.points=t},oM=(i(Nu,tM=tS),Nu.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var o=e[n],r=o.exterior,r=r&&r.length;i<r&&(t=o,i=r)}if(t){for(var a=t.exterior,s=0,l=0,h=0,u=a.length,c=a[u-1][0],p=a[u-1][1],d=0;d<u;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,h+=(p+g)*y,c=f,p=g}return s?[l/s/3,h/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]},Nu.prototype.getBoundingRect=function(t){var e,i,n=this._rect;return n&&!t||(e=[1/0,1/0],i=[-1/0,-1/0],f(this.geometries,function(n){"polygon"===n.type?Eu(n.exterior,e,i,t):f(n.points,function(n){Eu(n,e,i,t)})}),isFinite(e[0])&&isFinite(e[1])&&isFinite(i[0])&&isFinite(i[1])||(e[0]=e[1]=i[0]=i[1]=0),n=new Og(e[0],e[1],i[0]-e[0],i[1]-e[1]),t)||(this._rect=n),n},Nu.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(e.contain(t[0],t[1]))t:for(var n=0,o=i.length;n<o;n++){var r=i[n];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(Ou(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Ou(s[l],t[0],t[1]))continue t;return!0}}}return!1},Nu.prototype.transformTo=function(t,e,i,n){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(i?n=n||i/r:i=r*n,new Og(t,e,i,n)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var h=s[l];"polygon"===h.type?(Lu(h.exterior,a),f(h.interiors,function(t){Lu(t,a)})):f(h.points,function(t){Lu(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},Nu.prototype.cloneShallow=function(t){return t=new Nu(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Nu);i(Bu,eM=tS),Bu.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],i=Tt(JT),n=t;n&&!n.isGeoSVGGraphicRoot;)Ct(i,n.getLocalTransform(),i),n=n.parent;return Dt(i,i),st(e,e,i),e};var Ix=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,i){return t[e]&&function(t,e){var i=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return[];for(var n=Math.pow(10,e),e=g(t,function(t){return(isNaN(t)?0:t)/i*n*100}),o=100*n,r=g(e,function(t){return Math.floor(t)}),a=y(r,function(t,e){return t+e},0),s=g(e,function(t,e){return t-r[e]});a<o;){for(var l=Number.NEGATIVE_INFINITY,h=null,u=0,c=s.length;u<c;++u)s[u]>l&&(l=s[u],h=u);++r[h],s[h]=0,++a}return g(r,function(t){return t/n})}(t,i)[e]||0},getPixelPrecision:Li,getPrecision:Pi,getPrecisionSafe:Oi,isNumeric:Yi,isRadianAroundZero:Ri,linearMap:ki,nice:Fi,numericToNumber:Vi,parseDate:Ni,quantile:function(t,e){var e=(t.length-1)*e+1,i=Math.floor(e),n=+t[i-1];return(e-=i)?n+e*(t[i]-n):n},quantity:Bi,quantityExponent:zi,reformIntervals:function(t){t.sort(function(t,e){return function t(e,i,n){return e.interval[n]<i.interval[n]||e.interval[n]===i.interval[n]&&(e.close[n]-i.close[n]==(n?-1:1)||!n&&t(e,i,1))}(t,e,0)?-1:1});for(var e=-1/0,i=1,n=0;n<t.length;){for(var o=t[n].interval,r=t[n].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-i),e=o[a],i=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(n,1):n++}return t},remRadian:Ei,round:Di}),mm=Object.freeze({__proto__:null,format:Qr,parse:Ni}),Dx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:U_,BoundingRect:Og,Circle:p_,CompoundPath:Q_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:H_,LinearGradient:tx,Polygon:R_,Polyline:z_,RadialGradient:$_,Rect:Iv,Ring:O_,Sector:A_,Text:Pv,clipPointsByRect:kr,clipRectByRect:Ar,createIcon:Dr,extendPath:gr,extendShape:fr,getShapeClass:mr,getTransform:Tr,initProps:ur,makeImage:_r,makePath:vr,mergePath:wr,registerShape:yr,resizePath:br,updateProps:hr}),kx=Object.freeze({__proto__:null,addCommas:da,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:yt,formatTime:function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=(e=Ni(e))[(i=i?"getUTC":"get")+"FullYear"](),o=e[i+"Month"]()+1,r=e[i+"Date"](),a=e[i+"Hours"](),s=e[i+"Minutes"](),l=e[i+"Seconds"](),e=e[i+"Milliseconds"]();return t=t.replace("MM",Zr(o,2)).replace("M",o).replace("yyyy",n).replace("yy",Zr(n%100+"",2)).replace("dd",Zr(r,2)).replace("d",r).replace("hh",Zr(a,2)).replace("h",a).replace("mm",Zr(s,2)).replace("m",s).replace("ss",Zr(l,2)).replace("s",l).replace("SSS",Zr(e,3))},formatTpl:ma,getTextRect:function(t,e,i,n,o,r,a,s){return new Pv({style:{text:t,font:e,align:i,verticalAlign:n,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:va,normalizeCssArray:Zx,toCamelCase:fa,truncateText:wn}),Mx=Object.freeze({__proto__:null,bind:$f,clone:a,curry:_,defaults:h,each:f,extend:l,filter:m,indexOf:u,inherits:c,isArray:x,isFunction:w,isObject:M,isString:b,map:g,merge:s,reduce:y}),rM=on(),aM=[0,1],Gx=(Ku.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return i<=t&&t<=e},Ku.prototype.containData=function(t){return this.scale.contain(t)},Ku.prototype.getExtent=function(){return this._extent.slice()},Ku.prototype.getPixelPrecision=function(t){return Li(t||this.scale.getExtent(),this._extent)},Ku.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},Ku.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&Qu(i=i.slice(),n.count()),ki(t,aM,i,e)},Ku.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale,n=(this.onBand&&"ordinal"===n.type&&Qu(i=i.slice(),n.count()),ki(t,i,aM,e));return this.scale.scale(n)},Ku.prototype.pointToData=function(t,e){},Ku.prototype.getTicksCoords=function(t){function e(t,e){return t=Di(t),e=Di(e),s?e<t:t<e}var i,n,o,r,a,s,l,h=(t=t||{}).tickModel||this.getTickModel(),u=g(Wu(this,h).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),h=h.get("alignWithLabel");return i=this,n=u,h=h,t=t.clamp,l=n.length,i.onBand&&!h&&l&&(h=i.getExtent(),1===l?(n[0].coord=h[0],o=n[1]={coord:h[1]}):(a=n[l-1].tickValue-n[0].tickValue,r=(n[l-1].coord-n[0].coord)/a,f(n,function(t){t.coord-=r/2}),i=1+(a=i.scale.getExtent())[1]-n[l-1].tickValue,o={coord:n[l-1].coord+r*i},n.push(o)),s=h[0]>h[1],e(n[0].coord,h[0])&&(t?n[0].coord=h[0]:n.shift()),t&&e(h[0],n[0].coord)&&n.unshift({coord:h[0]}),e(h[1],o.coord)&&(t?o.coord=h[1]:n.pop()),t)&&e(o.coord,h[1])&&n.push({coord:h[1]}),u},Ku.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))},Ku.prototype.getViewLabels=function(){return Hu(this).labels},Ku.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Ku.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Ku.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},Ku.prototype.calculateCategoryInterval=function(){o=(i=d=this).getLabelModel();var t={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=Tu(d),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=(o=d.scale).getExtent(),o=o.count();if(n[1]-n[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),n[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(i)),s=Math.abs(s*Math.sin(i)),h=0,u=0;a<=n[1];a+=r)var c=1.3*(p=ui(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,h=Math.max(h,c,7),u=Math.max(u,p,7);var i=h/l,l=u/s,s=(isNaN(i)&&(i=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(i,l)))),i=rM(d.model),l=d.getExtent(),d=i.lastAutoInterval,f=i.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&i.axisExtent0===l[0]&&i.axisExtent1===l[1]?s=d:(i.lastTickCount=o,i.lastAutoInterval=s,i.axisExtent0=l[0],i.axisExtent1=l[1]),s},Ku),sM=2*Math.PI,lM=rv.CMD,hM=["top","right","bottom","left"],uM=[],cM=new Sg,pM=new Sg,dM=new Sg,fM=new Sg,gM=new Sg,yM=[],mM=new Sg,vM=["align","verticalAlign","width","height","fontSize"],_M=new Xy,xM=on(),wM=on(),bM=["x","y","rotation"],SM=(hc.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},hc.prototype._addLabel=function(t,e,i,n,o){var r,a=n.style,s=n.__hostTarget.textConfig||{},l=n.getComputedTransform(),h=n.getBoundingRect().plain(),l=(Og.applyTransform(h,h,l),l?_M.setLocalTransform(l):(_M.x=_M.y=_M.rotation=_M.originX=_M.originY=0,_M.scaleX=_M.scaleY=1),_M.rotation=On(_M.rotation),n.__hostTarget),u=(l&&(r=l.getBoundingRect().plain(),u=l.getComputedTransform(),Og.applyTransform(r,r,u)),r&&l.getTextGuideLine());this._labelList.push({label:n,labelLine:u,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:h,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:u&&u.ignore,x:_M.x,y:_M.y,scaleX:_M.scaleX,scaleY:_M.scaleY,rotation:_M.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},hc.prototype.addLabelsOfSeries=function(t){var e=this,i=(this._chartViewList.push(t),t.__model),n=i.get("labelLayout");(w(n)||v(n).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var o=t.getTextContent(),t=Rv(t);o&&!o.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,i,o,n)})},hc.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var o=this._labelList[n],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=w(o.layoutOption)?o.layoutOption(sc(o,a)):o.layoutOption,h=(o.computedLayoutOption=l=l||{},Math.PI/180),u=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*h:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=Ai(l.x,e),r.setStyle("x",0),u=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=Ai(l.y,i),r.setStyle("y",0),u=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),u=!1),xM(r).needsUpdateLabelLine=u,r.rotation=null!=l.rotate?l.rotate*h:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<vM.length;p++){var d=vM[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){ec(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},hc.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),i=oc(this._labelList),n=m(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=m(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});rc(n,"x","width",0,e,void 0),rc(o,"y","height",0,t,void 0),ac(m(i,function(t){return t.layoutOption.hideOverlap}))},hc.prototype.processLabelsOverall=function(){var t=this;f(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var r=!n,a=e.getTextContent();(r=!r&&a?xM(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,i),o&&t._animateLabels(e,i)})})},hc.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=Rv(t),o=n.dataIndex;if(i&&null!=o){var i=e.getData(n.dataType),e=i.getItemModel(o),n={},o=i.getItemVisual(o,"style"),o=(o&&(i=i.getVisual("drawType"),n.stroke=o[i]),e.getModel("labelLine")),r=t,a=function(t,e){for(var i={normal:t.getModel(e=e||"labelLine")},n=0;n<Wv.length;n++){var o=Wv[n];i[o]=t.getModel([o,e])}return i}(e),i=n,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),c=l.ignore,p=0;p<Xv.length;p++){var d,f=Xv[p],g=a[f],y="normal"===f;g&&(d=g.get("show"),(y?c:E(l.states[f]&&l.states[f].ignore,c))||!E(d,u)?((d=y?s:s&&s.states[f])&&(d.ignore=!0),s&&ic(s,!0,f,g)):(s||(s=new z_,r.setTextGuideLine(s),y||!c&&u||ic(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),ic(s,!1,f,g)))}s&&(h(s.style,i),s.style.fill=null,i=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=i||!1,s.buildPath=nc)}else s&&r.removeTextGuideLine();ec(t,o)}},hc.prototype._animateLabels=function(t,e){var i,n,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||cr(t))||(r=(o=xM(s)).oldLayout,i=(n=Rv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},n=e.getData(n.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=u(t,"select")&&s.attr(o.oldLayoutSelect),0<=u(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),hr(s,a,e,i)):(s.attr(a),xx(s).valueAnimation||(t=E(s.style.opacity,1),s.style.opacity=0,ur(s,{style:{opacity:t}},e,i))),o.oldLayout=a,s.states.select&&(lc(t=o.oldLayoutSelect={},a,bM),lc(t,s.states.select,bM)),s.states.emphasis&&(lc(t=o.oldLayoutEmphasis={},a,bM),lc(t,s.states.emphasis,bM)),Hr(s,i,n,e,e)),!l||l.ignore||l.invisible||(r=(o=wM(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),hr(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ur(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},hc),TM=on();Du(uc),i(pc,MM=ug),pc.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},pc.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},pc.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},pc.prototype.setUnpainted=function(){this.__firstTimePaint=!0},pc.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=cc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},pc.prototype.createRepaintRects=function(t,e,i,n){function o(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new Og(0,0,0,0)).copy(t),a.push(e);else{for(var e,i=!1,n=1/0,o=0,r=0;r<a.length;++r){var u=a[r];if(u.intersect(t)){var c=new Og(0,0,0,0);c.copy(u),c.union(t),a[r]=c,i=!0;break}l&&(h.copy(t),h.union(u),c=t.width*t.height,u=u.width*u.height,(u=h.width*h.height-c-u)<n)&&(n=u,o=r)}l&&(a[o].union(t),i=!0),i||((e=new Og(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var r,a=[],s=this.maxRepaintRectCount,l=!1,h=new Og(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u)(c=t[u])&&(d=c.shouldBePainted(i,n,!0,!0),(p=c.__isRendered&&(c.__dirty&Wg||!d)?c.getPrevPaintRect():null)&&o(p),r=d&&(c.__dirty&Wg||!c.__isRendered)?c.getPaintRect():null)&&o(r);for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var c,p,d=(c=e[u])&&c.shouldBePainted(i,n,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&o(p)}do{for(var f=!1,u=0;u<a.length;)if(a[u].isZero())a.splice(u,1);else{for(var g=u+1;g<a.length;)a[u].intersect(a[g])?(f=!0,a[u].union(a[g]),a.splice(g,1)):g++;u++}}while(f);return this._paintRects=a},pc.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},pc.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,o=n.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),n.width=t*i,n.height=e*i,r&&(r.width=t*i,r.height=e*i,1!==i)&&this.ctxBack.scale(i,i)},pc.prototype.clear=function(t,e,i){function n(t,i,n,o){var a;r.clearRect(t,i,n,o),e&&"transparent"!==e&&(a=void 0,A(e)?(a=(e.global||e.__width===n&&e.__height===o)&&e.__canvasGradient||Wl(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a,e.__width=n,e.__height=o):D(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=$l(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()),l&&(r.save(),r.globalAlpha=h,r.drawImage(p,t,i,n,o),r.restore())}var o=this.dom,r=this.ctx,a=o.width,s=o.height,l=(e=e||this.clearColor,this.motionBlur&&!t),h=this.lastFrameAlpha,u=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,a/u,s/u)),this.domBack);!i||l?n(0,0,a,s):i.length&&f(i,function(t){n(t.x*u,t.y*u,t.width*u,t.height*u)})};var MM,CM=pc,IM=314159;dc.prototype.getType=function(){return"canvas"},dc.prototype.isSingleCanvas=function(){return this._singleCanvas},dc.prototype.getViewportRoot=function(){return this._domRoot},dc.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},dc.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<n.length;o++){var r,a=n[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},dc.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},dc.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(i=i||(this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),rh(n,a,o,r===e-1))}n&&n.restore()}},dc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},dc.prototype.paintOne=function(t,e){oh(t,e)},dc.prototype._paintList=function(t,e,i,n){var o,r,a;this._redrawId===n&&(i=i||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,i)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,jg(function(){a._paintList(t,e,i,n)})))},dc.prototype._compositeManually=function(){var t=this.getLayer(IM).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},dc.prototype._doPaintList=function(t,e,i){for(var n=this,o=[],r=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||i)&&o.push(s)}for(var l=!0,h=!1,u=this,c=0;c<o.length;c++)!function(a){function s(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(p=y;p<d.__endIndex;p++){var o=t[p];if(o.__inHover&&(h=!0),n._doPaintEl(o,d,r,e,i,p===d.__endIndex-1),m&&15<Date.now()-v)break}i.prevElClipPaths&&f.restore()}var c,p,d=o[a],f=d.ctx,g=r&&d.createRepaintRects(t,e,u._width,u._height),y=i?d.__startIndex:d.__drawIndex,m=!i&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===u._zlevelList[0]?u._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!i)||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 _=u.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 Pf.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:h}},dc.prototype._doPaintEl=function(t,e,i,n,o,r){e=e.ctx,i?(i=t.getPaintRect(),(!n||i&&i.intersect(n))&&(rh(e,t,o,r),t.setPrevPaintRect(i))):rh(e,t,o,r)},dc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=IM);var i=this._layers[t];return i||((i=new CM("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?s(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},dc.prototype.insertLayer=function(t,e){var i,n=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&(i=e)&&(i.__builtin__||"function"==typeof i.resize&&"function"==typeof i.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=n[o[l]]}o.splice(l+1,0,t),(n[t]=e).virtual||(s?(i=s.dom).nextSibling?a.insertBefore(e.dom,i.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},dc.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n];t.call(e,this._layers[o],o)}},dc.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},dc.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},dc.prototype.getLayers=function(){return this._layers},dc.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var n,o=null,a=0,s=0;s<t.length;s++){var l,h=(l=t[s]).zlevel,u=void 0;n!==h&&(n=h,a=0),l.incremental?((u=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(h+(0<a?.01:0),this._needsManuallyCompositing),u.__builtin__||r("ZLevel "+h+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),o=u),l.__dirty&Wg&&!l.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex<0&&(u.__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)})},dc.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},dc.prototype._clearLayer=function(t){t.clear()},dc.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},dc.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?s(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var o=this._zlevelList[n];o!==t&&o!==t+.01||s(this._layers[o],i[t],!0)}}},dc.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(u(i,t),1))},dc.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot,n=(i.style.display="none",this._opts),o=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=Gl(o,0,n),e=Gl(o,1,n),i.style.display="",this._width!==t||e!==this._height){for(var r in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].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(IM).resize(t,e)}return this},dc.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},dc.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},dc.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[IM].dom;var e=new CM("image",this,(t=t||{}).pixelRatio||this.dpr),i=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,o):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var h=a[s];rh(i,h,r,s===l-1)}return e.dom},dc.prototype.getWidth=function(){return this._width},dc.prototype.getHeight=function(){return this._height};var kM=dc;i(fc,AM=aw),fc.prototype.init=function(t,e,i){AM.prototype.init.call(this,t,e,i),this._sourceManager=new vb(this),Ys(this)},fc.prototype.mergeOption=function(t,e){AM.prototype.mergeOption.call(this,t,e),Ys(this)},fc.prototype.optionUpdated=function(){this._sourceManager.dirty()},fc.prototype.getSourceManager=function(){return this._sourceManager},fc.type="dataset",fc.defaultOption={seriesLayoutBy:_w};var AM,DM=fc;i(gc,PM=Cb),gc.type="dataset";var PM,OM=gc;Du([function(t){t.registerPainter("canvas",kM)},yc]),Du(uc),i(mc,LM=Mb),mc.prototype.getInitialData=function(t){return Kh(null,this,{useEncodeDefaulter:!0})},mc.prototype.getLegendIcon=function(t){var e=new Jy,i=Vl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),i=(e.add(i),i.setStyle(t.lineStyle),this.getData().getVisual("symbol")),n=this.getData().getVisual("symbolRotate"),i="none"===i?"circle":i,o=.8*t.itemHeight,o=Vl(i,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),n=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?n:t.iconRotate||0);return o.rotation=n*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<i.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},mc.type="series.line",mc.dependencies=["grid","polar"],mc.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 LM,EM=mc;i(_c,RM=Jy),_c.prototype._createSymbol=function(t,e,i,n,o){this.removeAll(),o=Vl(t,-1,-1,2,2,null,o),o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=xc,this._symbolType=t,this.add(o)},_c.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},_c.prototype.getSymbolType=function(){return this._symbolType},_c.prototype.getSymbolPath=function(){return this.childAt(0)},_c.prototype.highlight=function(){mo(this.childAt(0))},_c.prototype.downplay=function(){vo(this.childAt(0))},_c.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},_c.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},_c.prototype.updateData=function(t,e,i,n){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,h=_c.getSymbolSize(t,e),u=s!==this._symbolType,c=n&&n.disableAnimation;u?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,h,o)):((r=this.childAt(0)).silent=!1,a={scaleX:h[0]/2,scaleY:h[1]/2},c?r.attr(a):hr(r,a,l,e),hx(s=r).oldStyle=s.style),this._updateCommon(t,e,h,i,n),u&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,ur(r,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},_c.prototype._updateCommon=function(t,e,i,n,o){var r,a,s,h,u,c,p,d,f=this.childAt(0),g=t.hostModel,y=(n&&(r=n.emphasisItemStyle,s=n.blurItemStyle,a=n.selectItemStyle,h=n.focus,u=n.blurScope,p=n.labelStatesModels,d=n.hoverScale,m=n.cursorStyle,c=n.emphasisDisabled),n&&!t.hasItemOption||(r=(y=(n=n&&n.itemModel?n.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=n.getModel(["select","itemStyle"]).getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),p=zr(n),d=y.getShallow("scale"),m=n.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),n=(f.attr("rotation",(y||0)*Math.PI/180||0),Yl(t.getItemVisual(e,"symbolOffset"),i)),y=(n&&(f.x=n[0],f.y=n[1]),m&&f.attr("cursor",m),t.getItemVisual(e,"style")),n=y.fill,m=(f instanceof bv?(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(n,o&&o.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),o&&o.useNameLabel);Br(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):vc(t,e)},inheritColor:n,defaultOpacity:y.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2,m=f.ensureState("emphasis"),m.style=r,f.ensureState("select").style=a,f.ensureState("blur").style=s,v=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&0<d?+d:1,m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v,this.setSymbolScale(1),Do(this,h,u,c)},_c.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},_c.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),o=Rv(this).dataIndex,r=i&&i.animation;this.silent=n.silent=!0,i&&i.fadeLabel?(i=n.getTextContent())&&pr(i,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){n.removeTextContent()}}):n.removeTextContent(),pr(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},_c.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var RM,NM=_c;Tc.prototype.updateData=function(t,e){this._progressiveEls=null,e=bc(e);var i=this.group,n=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=Sc(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||i.removeAll(),t.diff(o).add(function(n){var o,a=h(n);wc(t,a,n,e)&&((o=new r(t,n,s,l)).setPosition(a),t.setItemGraphicEl(n,o),i.add(o))}).update(function(u,c){var p,d,c=o.getItemGraphicEl(c),f=h(u);wc(t,f,u,e)?(p=t.getItemVisual(u,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(i.remove(c),(c=new r(t,u,s,l)).setPosition(f)):(c.updateData(t,u,s,l),d={x:f[0],y:f[1]},a?c.attr(d):hr(c,d,n)),i.add(c),t.setItemGraphicEl(u,c)):i.remove(c)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)},n)}).execute(),this._getSymbolPoint=h,this._data=t},Tc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,i){i=t._getSymbolPoint(i),e.setPosition(i),e.markRedraw()})},Tc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sc(t),this._data=null,this.group.removeAll()},Tc.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=bc(i);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);wc(e,a,o,i)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(n),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},Tc.prototype.eachRendered=function(t){Er(this._progressiveEls||this.group,t)},Tc.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},i.hostModel)}):e.removeAll()};var BM,zM=Tc,FM=Math.min,VM=Math.max,YM=function(){this.smooth=0,this.smoothConstraint=!0},HM=(i(Ac,BM=yv),Ac.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ac.prototype.getDefaultShape=function(){return new YM},Ac.prototype.buildPath=function(t,e){var i=e.points,n=0,o=i.length/2;if(e.connectNulls){for(;0<o&&Ic(i[2*o-2],i[2*o-1]);o--);for(;n<o&&Ic(i[2*n],i[2*n+1]);n++);}for(;n<o;)n+=kc(t,i,n,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Ac.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,o=this.path.data,r=rv.CMD,a="x"===e,s=[],l=0;l<o.length;){var h=void 0,u=void 0;switch(o[l++]){case r.M:i=o[l++],n=o[l++];break;case r.L:var c,h=o[l++],u=o[l++];if((c=a?(t-i)/(h-i):(t-n)/(u-n))<=1&&0<=c)return v=a?(u-n)*c+n:(h-i)*c+i,a?[t,v]:[v,t];i=h,n=u;break;case r.C:h=o[l++],u=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Qt(i,h,p,f,t,s):Qt(n,u,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Zt(n,u,d,g,_):Zt(i,h,p,f,_),a?[t,v]:[v,t]}i=f,n=g}}},Ac);i(Dc,WM=YM);var WM,XM=Dc;i(Pc,GM=yv),Pc.prototype.getDefaultShape=function(){return new XM},Pc.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,o=0,r=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&Ic(i[2*r-2],i[2*r-1]);r--);for(;o<r&&Ic(i[2*o],i[2*o+1]);o++);}for(;o<r;){var s=kc(t,i,o,r,r,1,e.smooth,a,e.connectNulls);kc(t,n,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var GM,UM=Pc;i(Wc,jM=Ab),Wc.prototype.init=function(){var t=new Jy,e=new zM;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Wc.prototype.render=function(t,e,i){function n(t){r._changePolyState(t)}var o,r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),p=l.getLayout("points")||[],d="polar"===a.type,f=this._coordSys,g=this._symbolDraw,y=this._polyline,m=this._polygon,v=this._lineGroup,e=!e.ssr&&t.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=Mc(a,l,x),w=_&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),o=uu(2*n),r=0;r<n;r++){var a=Cc(i,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(a,l,w),b=t.get("showSymbol"),S=t.get("connectNulls"),T=b&&!d&&zc(t,l,a),M=this._data,C=(M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),M.setItemGraphicEl(e,null))}),b||g.remove(),s.add(v),!d&&t.get("step")),I=(a&&a.getArea&&t.get("clip",!0)&&(null!=(o=a.getArea()).width?(o.x-=.1,o.y-=.1,o.width+=.2,o.height+=.2):o.r0&&(o.r0-=.5,o.r+=.5)),this._clipShapeForSymbol=o,Bc(l,a,i)||l.getVisual("style")[l.getVisual("drawType")]),f=(y&&f.type===a.type&&C===this._step?(_&&!m?m=this._newPolygon(p,w):m&&!_&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),(f=v.getClipPath())?ur(f,{shape:Hc(this,a,!1,t).shape},t):v.setClipPath(Hc(this,a,!0,t)),b&&g.updateData(l,{isIgnore:T,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),Oc(this._stackedOnPoints,w)&&Oc(this._points,p)||(e?this._doUpdateAnimation(l,w,a,i,C,x,S):(C&&(p=Nc(p,a,C,S),w=w&&Nc(w,a,C,S)),y.setShape({points:p}),m&&m.setShape({points:p,stackedOnPoints:w})))):(b&&g.updateData(l,{isIgnore:T,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,o),C&&(p=Nc(p,a,C,S),w=w&&Nc(w,a,C,S)),y=this._newPolyline(p),_?m=this._newPolygon(p,w):m&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),v.setClipPath(Hc(this,a,!0,t))),t.getModel("emphasis")),i=f.get("focus"),b=f.get("blurScope"),g=f.get("disabled"),T=(y.useStyle(h(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Po(y,t,"lineStyle"),0<y.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(y.getState("emphasis").style.lineWidth=+y.style.lineWidth+1),Rv(y).seriesIndex=t.seriesIndex,Do(y,i,b,g),Rc(t.get("smooth"))),e=t.get("smoothMonotone");y.setShape({smooth:T,smoothMonotone:e,connectNulls:S}),m&&(o=l.getCalculationInfo("stackedOnSeries"),_=0,m.useStyle(h(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),o&&(_=Rc(o.get("smooth"))),m.setShape({smooth:T,stackedOnSmooth:_,smoothMonotone:e,connectNulls:S}),Po(m,t,"areaStyle"),Rv(m).seriesIndex=t.seriesIndex,Do(m,i,b,g)),l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=n)}),this._polyline.onHoverStateChange=n,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=p,this._step=C,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,y),m)&&this.packEventData(t,m)},Wc.prototype.packEventData=function(t,e){Rv(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Wc.prototype.highlight=function(t,e,i,n){var o=t.getData(),r=nn(o,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,h=t.get("zlevel")||0,u=t.get("z")||0,s=((l=new NM(o,r)).x=s,l.y=a,l.setZ(h,u),l.getSymbolPath().getTextContent());s&&(s.zlevel=h,s.z=u,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Ab.prototype.highlight.call(this,t,e,i,n)},Wc.prototype.downplay=function(t,e,i,n){var o,r=t.getData(),a=nn(r,n);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):Ab.prototype.downplay.call(this,t,e,i,n)},Wc.prototype._changePolyState=function(t){var e=this._polygon;uo(this._polyline,t),e&&uo(e,t)},Wc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new HM({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Wc.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new UM({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i},Wc.prototype._initSymbolLabelAnimation=function(t,e,i){var n,o,r=e.getBaseAxis(),a=r.inverse,r=("cartesian2d"===e.type?(n=r.isHorizontal(),o=!1):"polar"===e.type&&(n="angle"===r.dim,o=!0),t.hostModel),s=r.get("animationDuration"),l=(w(s)&&(s=s(null)),r.get("animationDelay")||0),h=w(l)?l(null):l;t.eachItemGraphicEl(function(t,r){var u,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=u=void 0,i&&(f=o?(p=i,d=e.pointToCoord(d),n?(u=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(u=p.r0,c=p.r,d[0])):n?(u=i.x,c=i.x+i.width,t.x):(u=i.y+i.height,c=i.y,t.y)),p=c===u?0:(f-u)/(c-u),a&&(p=1-p),d=w(l)?l(r):s*p+h,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)})},Wc.prototype._initOrUpdateEndLabel=function(t,e,i){var n,o,r,a=t.getModel("endLabel");Yc(t)?(n=t.getData(),o=this._polyline,(r=n.getLayout("points"))?(this._endLabel||((this._endLabel=new Pv({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=Fc(r))&&(Br(o,zr(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,i){if(null==i)return vc(n,t);var o=n,r=i,a=o.mapDimensionsAll("defaultedLabel");if(!x(r))return r+"";for(var s=[],l=0;l<a.length;l++){var h=o.getDimensionIndex(a[l]);0<=h&&s.push(r[h])}return s.join(" ")},enableTextSetter:!0},(i=a,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:i.get("align")||a,verticalAlign:i.get("verticalAlign")||r}})),o.textConfig.position=null)):(o.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Wc.prototype._endLabelOnDuring=function(t,e,i,n,o,r,a){var s,l,h,u,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==n.originalX&&(n.originalX=m.x,n.originalY=m.y),s=i.getLayout("points"),g=(l=i.hostModel).get("connectNulls"),h=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,u=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,i){for(var n,o,r=t.length/2,a="x"===i?0:1,s=0,l=-1,h=0;h<r;h++)if(o=t[2*h+a],!isNaN(o)&&!isNaN(t[2*h+1-a])){if(0!==h){if(n<=e&&e<=o||e<=n&&o<=e){l=h;break}s=h}n=o}return{range:[s,l],t:(e-n)/(o-n)}}(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=Vc(s,p[0]),m.attr({x:y[0]+u,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+u,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=hn(i,h,f,g,c.t))),n.lastFrameIndex=p[0]):(y=Vc(s,v=1===t||0<n.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+u,y:y[1]+r})),o)&&"function"==typeof(a=xx(m)).setLabelText&&a.setLabelText(d)},Wc.prototype._doUpdateAnimation=function(t,e,i,n,o,r,a){var s=this._polyline,l=this._polygon,h=t.hostModel,e=function(t,e,i,n,o,r){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=[],h=[],u=[],c=[],p=[],d=[],f=[],g=Mc(o,e,r),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],T=y[1+b],M=m[w],C=m[w+1];(isNaN(S)||isNaN(T))&&(S=M,T=C),l.push(S,T),h.push(M,C),u.push(i[b],i[1+b]),c.push(n[w],n[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,T=g.dataDimsForPoint,M=o.dataToPoint([e.get(T[0],S),e.get(T[1],S)]),w=2*S,l.push(M[0],M[1]),h.push(m[w],m[w+1]),C=Cc(g,o,e,S),u.push(C[0],C[1]),c.push(n[w],n[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=uu(r=l.length),k=uu(r),A=uu(r),D=uu(r),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,E=2*O;I[L]=l[E],I[1+L]=l[1+E],k[L]=h[E],k[1+L]=h[1+E],A[L]=u[E],A[1+L]=u[1+E],D[L]=c[E],D[1+L]=c[1+E],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:A,stackedOnNext:D,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),u=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(o&&(u=Nc(e.current,i,o,a),c=Nc(e.stackedOnCurrent,i,o,a),p=Nc(e.next,i,o,a),d=Nc(e.stackedOnNext,i,o,a)),3e3<Ec(u,p)||l&&3e3<Ec(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=u;for(var f,i={shape:{points:p}},g=(e.current!==u&&(i.shape.__points=e.next),s.stopAnimation(),hr(s,i,h),l&&(l.setShape({points:u,stackedOnPoints:c}),l.stopAnimation(),hr(l,{shape:{stackedOnPoints:d}},h),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var i=g[e].el,n=2*g[e].ptIdx;i.x=t[n],i.y=t[1+n],i.markRedraw()}})}},Wc.prototype.remove=function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},Wc.type="line";var jM,qM=Wc,ZM={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,i=-1/0,n=0;n<t.length;n++){var o=t[n],r=Math.abs(o);e<r&&(e=r,i=o)}return isFinite(i)?i:NaN},nearest:function(t){return t[0]}},KM=function(t){return Math.round(t.length/2)};Du(function(t){var e;t.registerChartView(qM),t.registerSeriesModel(EM),t.registerLayout((e=!0,{seriesType:"line",plan:pl(),reset:function(t){var i,n,o,r,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,h=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),i=t.length,n=s.getCalculationInfo("stackResultDimension"),qh(s,t[0])&&(t[0]=n),qh(s,t[1])&&(t[1]=n),o=s.getStore(),r=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),i&&{progress:function(t,e){for(var n=t.end-t.start,s=h&&uu(n*i),u=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===i?(f=o.get(r,p),l.dataToPoint(f,null,c)):(u[0]=o.get(r,p),u[1]=o.get(a,p),l.dataToPoint(u,null,c)),h?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}h&&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,i){var n,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(n=a.getBaseAxis(),a=a.getOtherAxis(n),n=n.getExtent(),i=i.getDevicePixelRatio(),n=Math.abs(n[1]-n[0])*(i||1),i=Math.round(s/n),isFinite(i))&&1<i&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/i)),s=void 0,b(r)?s=ZM[r]:w(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/i,s,KM))}})}),i(Xc,QM=aw),Xc.type="grid",Xc.dependencies=["xAxis","yAxis"],Xc.layoutMode="box",Xc.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 QM,$M=Xc;i(Gc,JM=aw),Gc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cm).models[0]},Gc.type="cartesian2dAxis";var JM,tC=Gc;p(tC,ZT);var fx={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)"]}}},gm=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fx),Kb=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}}},fx),eC={category:gm,value:Kb,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Kb),log:h({logBase:10},Kb)},iC={value:1,category:1,time:1,log:1};qc.prototype.getAxis=function(t){return this._axes[t]},qc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},qc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},qc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var nC=["x","y"];i(Kc,oC=qc),Kc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,i,n,o=this.getAxis("x").scale,r=this.getAxis("y").scale;Zc(o)&&Zc(r)&&(o=o.getExtent(),r=r.getExtent(),n=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],i=r[1]-r[0],t)&&i&&(t=(e[0]-n[0])/t,e=(e[1]-n[1])/i,i=n[0]-o[0]*t,o=n[1]-r[0]*e,n=this._transform=[t,0,0,e,i,o],this._invTransform=Dt([],n))},Kc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Kc.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},Kc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Kc.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),i=this.getArea(),e=new Og(t[0],t[1],e[0]-t[0],e[1]-t[1]);return i.intersect(e)},Kc.prototype.dataToPoint=function(t,e,i){i=i||[];var n,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?st(i,t,this._transform):(t=this.getAxis("x"),n=this.getAxis("y"),i[0]=t.toGlobalCoord(t.dataToCoord(o,e)),i[1]=n.toGlobalCoord(n.dataToCoord(r,e)),i)},Kc.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),r=n.getExtent(),i=i.parse(t[0]),n=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e},Kc.prototype.pointToData=function(t,e){var i,n,o=[];return this._invTransform?st(o,t,this._invTransform):(i=this.getAxis("x"),n=this.getAxis("y"),o[0]=i.coordToData(i.toLocalCoord(t[0]),e),o[1]=n.coordToData(n.toLocalCoord(t[1]),e),o)},Kc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Kc.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1])-t,o=Math.min(i[0],i[1])-t,e=Math.max(e[0],e[1])-n+t,i=Math.max(i[0],i[1])-o+t;return new Og(n,o,e,i)};var oC,rC=Kc;i(Qc,aC=Gx),Qc.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Qc.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},Qc.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Qc.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var aC,sC=Qc,lC=Math.log;ep.prototype.getRect=function(){return this._rect},ep.prototype.update=function(t,e){function i(t){var e,i=v(t),n=i.length;if(n){for(var o=[],r=n-1;0<=r;r--){var a=t[+i[r]],s=a.model,l=a.scale;tu(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(bu(l,s),tu(l)&&(e=a))}o.length&&(e||bu((e=o.pop()).scale,e.model),f(o,function(t){var i=t.scale,t=t.model,n=e.scale,o=PT.prototype,r=o.getTicks.call(n),a=o.getTicks.call(n,!0),s=r.length-1,n=o.getInterval.call(n),l=(t=wu(i,t)).extent,h=t.fixMin,t=t.fixMax,u=("log"===i.type&&(u=lC(i.base),l=[lC(l[0])/u,lC(l[1])/u]),i.setExtent(l[0],l[1]),i.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:t}),o.getExtent.call(i)),c=(h&&(l[0]=u[0]),t&&(l[1]=u[1]),o.getInterval.call(i)),p=l[0],d=l[1];if(h&&t)c=(d-p)/s;else if(h)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=iu(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=iu(c),p=l[1]-c*s;else u=(c=s<i.getTicks().length-1?iu(c):c)*s,(p=Di((d=Math.ceil(l[1]/c)*c)-u))<0&&0<=l[0]?(p=0,d=Di(u)):0<d&&l[1]<=0&&(d=0,p=-Di(u));h=(r[0].value-a[0].value)/n,t=(r[s].value-a[s].value)/n,o.setExtent.call(i,p+c*h,d+c*t),o.setInterval.call(i,c),(h||t)&&o.setNiceExtent.call(i,p+c,d-c)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var o={};f(n.x,function(t){np(n,"y",t,o)}),f(n.y,function(t){np(n,"x",t,o)}),this.resize(this.model,e)},ep.prototype.resize=function(t,e,i){function n(){f(a,function(t){var e,i,n=t.isHorizontal(),o=n?[0,r.width]:[0,r.height],a=t.inverse?1:0;t.setExtent(o[a],o[1-a]),o=t,e=n?r.x:r.y,a=o.getExtent(),i=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return i-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return i-t+e}})}var o=t.getBoxLayoutParams(),i=!i&&t.get("containLabel"),r=ba(o,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=r,this._axesList);n(),i&&(f(a,function(t){var e,i,n;t.model.get(["axisLabel","inside"])||(e=Cu(t))&&(i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]),r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n))}),n()),f(this._coordsList,function(t){t.calcAffineTransform()})},ep.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},ep.prototype.getAxes=function(){return this._axesList.slice()},ep.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];M(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===t||n[i].getAxis("y").index===e)return n[i]},ep.prototype.getCartesians=function(){return this._coordsList.slice()},ep.prototype.convertToPixel=function(t,e,i){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(i):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(i)):null},ep.prototype.convertFromPixel=function(t,e,i){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(i):e.axis?e.axis.coordToData(e.axis.toLocalCoord(i)):null},ep.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,o=t.xAxisModel||n&&n.getReferringComponents("xAxis",cm).models[0],r=t.yAxisModel||n&&n.getReferringComponents("yAxis",cm).models[0],t=t.gridModel,a=this._coordsList;return n?u(a,e=n.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?i=this.getAxis("x",o.componentIndex):r?i=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},ep.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},ep.prototype._initCartesian=function(t,e,i){function n(e){return function(i,n){var o,h;ip(i,t)&&(o=i.get("position"),"x"===e?"top"!==o&&"bottom"!==o&&(o=a.bottom?"top":"bottom"):"left"!==o&&"right"!==o&&(o=a.left?"right":"left"),a[o]=!0,h="category"===(o=new sC(e,Su(i),[0,0],i.get("type"),o)).type,o.onBand=h&&i.get("boundaryGap"),o.inverse=i.get("inverse"),(i.axis=o).model=i,o.grid=r,o.index=n,r._axesList.push(o),s[e][n]=o,l[e]++)}}var o=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,i){f(s.y,function(n,r){var r="x"+i+"y"+r,a=new rC(r);a.master=o,a.model=t,o._coordsMap[r]=a,o._coordsList.push(a),a.addAxis(e),a.addAxis(n)})}):(this._axesMap={},this._axesList=[])},ep.prototype._updateScale=function(t,e){function i(t,e){var i,n,o;f((i=t,n=e.dim,o={},f(i.mapDimensionsAll(n),function(t){o[Zh(i,t)]=!0}),v(o)),function(i){e.scale.unionExtentFromData(t,i)})}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 n,o;Jc(t)&&(o=(n=tp(t)).xAxisModel,n=n.yAxisModel,ip(o,e))&&ip(n,e)&&(o=this.getCartesian(o.componentIndex,n.componentIndex),n=t.getData(),t=o.getAxis("x"),o=o.getAxis("y"),i(n,t),i(n,o))},this)},ep.prototype.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),function(n){var o=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),n=n.getOtherAxis(o);u(e,o)<0&&e.push(o),u(i,n)<0&&i.push(n)}),{baseAxes:e,otherAxes:i}},ep.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,o){var r=new ep(n,t,e);r.name="grid_"+o,r.resize(n,e,!0),n.coordinateSystem=r,i.push(r)}),t.eachSeries(function(t){var e,i,n;Jc(t)&&(e=(i=tp(t)).xAxisModel,i=i.yAxisModel,n=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=n.getCartesian(e.componentIndex,i.componentIndex))}),i},ep.dimensions=nC;var hC,uC,cC,pC=ep,dC=Math.PI,fC=(rp.prototype.hasBuilder=function(t){return!!gC[t]},rp.prototype.add=function(t){gC[t](this.opt,this.axisModel,this.group,this._transformGroup)},rp.prototype.getGroup=function(){return this.group},rp.innerTextLayout=function(t,e,i){var n,e=Ei(e-t),t=Ri(e)?(n=0<i?"top":"bottom","center"):Ri(e-dC)?(n=0<i?"bottom":"top","center"):(n="middle",0<e&&e<dC?0<i?"right":"left":0<i?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:n}},rp.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},rp.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},rp),gC={axisLine:function(t,e,i,n){var o,r,a,s,h,u,c,p=e.get(["axisLine","show"]);(p="auto"===p&&t.handleAutoShown?t.handleAutoShown("axisLine"):p)&&(p=e.axis.getExtent(),n=n.transform,o=[p[0],0],r=[p[1],0],a=r[0]<o[0],n&&(st(o,o,n),st(r,r,n)),s=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),Sr((p=new H_({shape:{x1:o[0],y1:o[1],x2:r[0],y2:r[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).shape,p.style.lineWidth),p.anid="line",i.add(p),null!=(h=e.get(["axisLine","symbol"])))&&(n=e.get(["axisLine","symbolSize"]),b(h)&&(h=[h,h]),(b(n)||T(n))&&(n=[n,n]),p=Yl(e.get(["axisLine","symbolOffset"])||0,n),u=n[0],c=n[1],f([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((o[0]-r[0])*(o[0]-r[0])+(o[1]-r[1])*(o[1]-r[1]))}],function(e,n){var l;"none"!==h[n]&&null!=h[n]&&(n=Vl(h[n],-u/2,-c/2,u,c,s.stroke,!0),l=e.r+e.offset,n.attr({rotation:e.rotate,x:(e=a?r:o)[0]+l*Math.cos(t.rotation),y:e[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),i.add(n))}))},axisTickLabel:function(t,e,i,n){var o,r,a,s,l,u=function(t,e,i,n){var o=i.axis,r=i.getModel("axisTick"),a=r.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),n=n.tickDirection*r.get("length"),s=hp(o.getTicksCoords(),e.transform,n,h(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(i,n,e,t),c=function(t,e,i,n){var o,r,a,s,l,h,u,c,p=i.axis,d=L(n.axisLabelShow,i.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return o=i.getModel("axisLabel"),r=o.get("margin"),a=p.getViewLabels(),d=(L(n.labelRotate,o.get("rotate"))||0)*dC/180,s=fC.innerTextLayout(n.rotation,d,n.labelDirection),l=i.getCategories&&i.getCategories(!0),h=[],u=fC.isLabelSilent(i),c=i.get("triggerEvent"),f(a,function(d,f){var g="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,y=d.formattedLabel,m=d.rawLabel,v=o,_=(v=l&&l[g]&&M(_=l[g])&&_.textStyle?new Ox(_.textStyle,o,i.ecModel):v).getTextColor()||i.get(["axisLine","lineStyle","color"]),x=p.dataToCoord(g),b=v.getShallow("align",!0)||s.textAlign,S=E(v.getShallow("alignMinLabel",!0),b),T=E(v.getShallow("alignMaxLabel",!0),b),C=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||s.textVerticalAlign,I=E(v.getShallow("verticalAlignMinLabel",!0),C),k=E(v.getShallow("verticalAlignMaxLabel",!0),C),x=new Pv({x:x,y:n.labelOffset+n.labelDirection*r,rotation:s.rotation,silent:u,z2:10+(d.level||0),style:Fr(v,{text:y,align:0===f?S:f===a.length-1?T:b,verticalAlign:0===f?I:f===a.length-1?k:C,fill:w(_)?_("category"===p.type?m:"value"===p.type?g+"":g,f):_})});x.anid="label_"+g,c&&((d=fC.makeAxisEventDataBase(i)).targetType="axisLabel",d.value=m,d.tickIndex=f,"category"===p.type&&(d.dataIndex=g),Rv(x).eventData=d),e.add(x),x.updateTransform(),h.push(x),t.add(x),x.decomposeTransform()}),h}(i,n,e,t),p=(r=c,u=u,ku((o=e).axis)||(y=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],_=(r=r||[])[0],m=r[1],a=r[r.length-1],r=r[r.length-2],s=u[0],v=u[1],l=u[u.length-1],u=u[u.length-2],!1===y?(ap(_),ap(s)):sp(_,m)&&(y?(ap(m),ap(v)):(ap(_),ap(s))),!1===o?(ap(a),ap(l)):sp(r,a)&&(o?(ap(r),ap(u)):(ap(a),ap(l)))),i),d=n,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=h(v.getLineStyle(),h(y.getModel("axisTick").getLineStyle(),{stroke:y.get(["axisLine","lineStyle","color"])})),T=0;T<x.length;T++)for(var C=hp(x[T],d.transform,b,S,"minorticks_"+T),I=0;I<C.length;I++)p.add(C[I])}e.get(["axisLabel","hideOverlap"])&&ac(oc(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,i,n){var o,r,a,s,l,h,u,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,r=(u=e.axis.getExtent())[0]>u[1]?-1:1,r=["start"===c?u[0]-r*h:"end"===c?u[1]+r*h:(u[0]+u[1])/2,lp(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*dC/180),lp(c)?a=fC.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,i,n){var o,i=Ei(i-t),t=n[0]>n[1],n="start"===e&&!t||"start"!==e&&t;return e=Ri(i-dC/2)?(o=n?"bottom":"top","center"):Ri(i-1.5*dC)?(o=n?"top":"bottom","center"):(o="middle",i<1.5*dC&&dC/2<i?n?"left":"right":n?"right":"left"),{rotation:i,textAlign:e,textVerticalAlign:o}}(t.rotation,c,h||0,u),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),h=(c=e.get("nameTruncate",!0)||{}).ellipsis,u=L(t.nameTruncateMaxWidth,c.maxWidth,s),Or({el:t=new Pv({x:r[0],y:r[1],rotation:a.rotation,silent:fC.isLabelSilent(e),style:Fr(o,{text:p,font:l,overflow:"truncate",width:u,ellipsis:h,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=fC.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,Rv(t).eventData=c),n.add(t),t.updateTransform(),i.add(t),t.decomposeTransform())}},yC={},mC=(i(gp,hC=Cb),gp.prototype.render=function(t,e,i,n){var o,r,a,s,l,h;this.axisPointerClass&&(o=pp(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,h=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=dp(l),null==h&&(a.status=l?"show":"hide"),(h=r.getExtent().slice())[0]>h[1]&&h.reverse(),(s=null==s||s>h[1]?h[1]:s)<h[0]&&(s=h[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),hC.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},gp.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},gp.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},gp.prototype.dispose=function(t,e){this._disposeAxisPointer(e),hC.prototype.dispose.apply(this,arguments)},gp.prototype._doUpdateAxisPointerClass=function(t,e,i){var n,o=gp.getAxisPointerClass(this.axisPointerClass);o&&((n=(n=pp(n=t))&&n.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,n,e,i):this._disposeAxisPointer(e))},gp.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},gp.registerAxisPointerClass=function(t,e){yC[t]=e},gp.getAxisPointerClass=function(t){return t&&yC[t]},gp.type="axis",gp),vC=on(),_C=["axisLine","axisTickLabel","axisName"],xC=["splitArea","splitLine","minorSplitLine"],tS=(i(yp,uC=mC),yp.prototype.render=function(t,e,i,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new Jy,this.group.add(this._axisGroup),t.get("show")&&(r=$c(o=t.getCoordSysModel(),t),r=new fC(t,l({handleAutoShown:function(e){for(var i=o.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(tu(i[n].getOtherAxis(t.axis).scale))return!0;return!1}},r)),f(_C,r.add,r),this._axisGroup.add(r.getGroup()),f(xC,function(e){t.get([e,"show"])&&wC[e](this,this._axisGroup,t,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||Ir(a,this._axisGroup,t),uC.prototype.render.call(this,t,e,i,n))},yp.prototype.remove=function(){vC(this).splitAreaColors=null},yp.type="cartesianAxis",yp),wC={splitLine:function(t,e,i,n){var o=i.axis;if(!o.scale.isBlank())for(var i=i.getModel("splitLine"),r=i.getModel("lineStyle"),a=x(a=r.get("color"))?a:[a],s=n.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,c=o.getTicksCoords({tickModel:i}),p=[],d=[],f=r.getLineStyle(),g=0;g<c.length;g++){var y=o.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),u++%a.length),m=c[g].tickValue,m=new H_({anid:null!=m?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:h({stroke:a[y]},f),silent:!0});Sr(m.shape,f.lineWidth),e.add(m)}},minorSplitLine:function(t,e,i,n){var o=i.axis,i=i.getModel("minorSplitLine").getModel("lineStyle"),r=n.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],h=[],u=i.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=r.y,h[0]=d,h[1]=r.y+r.height):(l[0]=r.x,l[1]=d,h[0]=r.x+r.width,h[1]=d),new H_({anid:"minor_line_"+s[c][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:u,silent:!0}));Sr(d.shape,u.lineWidth),e.add(d)}},splitArea:function(t,e,i,n){var o=e,e=n,r=(n=i).axis;if(!r.scale.isBlank()){var n=n.getModel("splitArea"),i=n.getModel("areaStyle"),a=i.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,c=vC(t).splitAreaColors,p=X(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(u-1)*f)%u;break}}for(var y=r.toGlobalCoord(l[0].coord),m=i.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=r.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=r.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),o.add(new Iv({anid:null!=v?"area_"+v:null,shape:{x:_,y:w,width:b,height:S},style:h({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%u}vC(t).splitAreaColors=p}}}},bC=(i(mp,cC=tS),mp.type="xAxis",mp);i(vp,SC=tS),vp.type="yAxis";var SC,TC=vp;i(_p,MC=Cb),_p.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Iv({shape:t.coordinateSystem.getRect(),style:h({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},_p.type="grid";var MC,CC=_p,IC={offset:0};Du(function(t){t.registerComponentView(CC),t.registerComponentModel($M),t.registerCoordinateSystem("cartesian2d",pC),Uc(t,"x",tC,IC),Uc(t,"y",tC,IC),t.registerComponentView(bC),t.registerComponentView(TC),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),i(xp,kC=aw),xp.type="title",xp.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 kC,AC=xp;i(wp,DC=Cb),wp.prototype.render=function(t,e,i){var n,o,r,a,s,l,h,u,c;this.group.removeAll(),t.get("show")&&(n=this.group,h=t.getModel("textStyle"),o=t.getModel("subtextStyle"),u=t.get("textAlign"),c=E(t.get("textBaseline"),t.get("textVerticalAlign")),s=(h=new Pv({style:Fr(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new Pv({style:Fr(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),h.silent=!r&&!s,o.silent=!a&&!s,r&&h.on("click",function(){xa(r,"_"+t.get("target"))}),a&&o.on("click",function(){xa(a,"_"+t.get("subtarget"))}),Rv(h).eventData=Rv(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),l&&n.add(o),s=n.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=ba(l,{width:i.getWidth(),height:i.getHeight()},t.get("padding")),u||("right"===(u="middle"===(u=t.get("left")||t.get("right"))?"center":u)?l.x+=l.width:"center"===u&&(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"),n.x=l.x,n.y=l.y,n.markRedraw(),h.setStyle(i={align:u,verticalAlign:c}),o.setStyle(i),s=n.getBoundingRect(),h=l.margin,(u=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new Iv({shape:{x:s.x-h[3],y:s.y-h[0],width:s.width+h[1]+h[3],height:s.height+h[0]+h[2],r:t.get("borderRadius")},style:u,subPixelOptimize:!0,silent:!0}),n.add(c))},wp.type="title";var DC,PC=wp;Du(function(t){t.registerComponentModel(AC),t.registerComponentView(PC)}),i(bp,OC=aw),bp.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},bp.prototype.mergeOption=function(t,e){OC.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},bp.prototype._updateSelector=function(t){var e=t.selector,i=this.ecModel;x(e=!0===e?t.selector=["all","inverse"]:e)&&f(e,function(t,n){b(t)&&(t={type:t}),e[n]=s(t,(n=i,"all"===(t=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},bp.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}e||this.select(t[0].get("name"))}},bp.prototype._updateData=function(t){var e=[],i=[],n=(t.eachRawSeries(function(n){var o,r=n.name;i.push(r),n.legendVisualProvider&&(r=n.legendVisualProvider.getAllNames(),t.isSeriesFiltered(n)||(i=i.concat(r)),r.length)?e=e.concat(r):o=!0,o&&Ji(n)&&e.push(n.name)}),this._availableNames=i,this.get("data")||e),o=X(),n=g(n,function(t){return(b(t)||T(t))&&(t={name:t}),o.get(t.name)?null:(o.set(t.name,!0),new Ox(t,this,this.ecModel))},this);this._data=m(n,function(t){return!!t})},bp.prototype.getData=function(){return this._data},bp.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},bp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},bp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},bp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},bp.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]})},bp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=u(this._availableNames,t)},bp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},bp.type="legend.plain",bp.dependencies=["series"],bp.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 OC,LC,EC=bp,RC=_,NC=f,BC=Jy,zC=(i(Sp,LC=Cb),Sp.prototype.init=function(){this.group.add(this._contentGroup=new BC),this.group.add(this._selectorGroup=new BC),this._isFirstRender=!0},Sp.prototype.getContentGroup=function(){return this._contentGroup},Sp.prototype.getSelectorGroup=function(){return this._selectorGroup},Sp.prototype.render=function(t,e,i){var n,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),n=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===n?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,i,a,n,s=!a||s&&"auto"!==s?s:"horizontal"===n?"end":"start"),r=ba(e=t.getBoxLayoutParams(),n={width:i.getWidth(),height:i.getHeight()},i=t.get("padding")),r=ba(h({width:(o=this.layoutInner(t,o,r,l,a,s)).width,height:o.height},e),n,i),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=o,s=Zx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new Iv({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}))))},Sp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Sp.prototype.renderInner=function(t,e,i,n,o,r,a){var s=this.getContentGroup(),h=X(),u=e.get("selectedMode"),c=[];i.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),NC(e.getData(),function(o,r){var a,p,d,f,g=o.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=i.getSeriesByName(g)[0],h.get(g)||(a?(f=(d=a.getData()).getVisual("legendLineStyle")||{},p=d.getVisual("legendIcon"),d=d.getVisual("style"),(f=this._createItem(a,g,r,o,e,t,f,d,p,u,n)).on("click",RC(Tp,g,null,n,c)).on("mouseover",RC(Cp,a.name,null,n,c)).on("mouseout",RC(Ip,a.name,null,n,c)),i.ssr&&f.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),h.set(g,!0)):i.eachRawSeries(function(a){var s,p,d;h.get(g)||a.legendVisualProvider&&(p=a.legendVisualProvider).containName(g)&&(d=p.indexOfName(g),s=p.getItemVisual(d,"style"),p=p.getItemVisual(d,"legendIcon"),(d=_e(s.fill))&&0===d[3]&&(d[3]=.2,s=l(l({},s),{fill:Te(d,"rgba")})),(d=this._createItem(a,g,r,o,e,t,{},s,p,u,n)).on("click",RC(Tp,null,g,n,c)).on("mouseover",RC(Cp,null,g,n,c)).on("mouseout",RC(Ip,null,g,n,c)),i.ssr&&d.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),h.set(g,!0))},this))):((d=new BC).newline=!0,s.add(d))},this),o&&this._createSelector(o,e,n,r,a)},Sp.prototype._createSelector=function(t,e,i,n,o){var r=this.getSelectorGroup();NC(t,function(t){var n=t.type,o=new Pv({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(o),Br(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Ao(o)})},Sp.prototype._createItem=function(t,e,i,n,o,r,a,s,l,h,u){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),m=n.get("icon"),a=function(t,e,i,n,o,r,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),NC(t,function(i,n){"inherit"===t[n]&&(t[n]=e[n])})}var l=e.getModel("itemStyle"),h=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");return h.decal=l&&"inherit"!==l?ah(l,a):n.decal,"inherit"===h.fill&&(h.fill=n[o]),"inherit"===h.stroke&&(h.stroke=n[t]),"inherit"===h.opacity&&(h.opacity=("fill"===o?n:i).opacity),s(h,n),l=e.getModel("lineStyle"),a=l.getLineStyle(),s(a,i),"auto"===h.fill&&(h.fill=n.fill),"auto"===h.stroke&&(h.stroke=n.fill),"auto"===a.stroke&&(a.stroke=n.fill),r||(o=e.get("inactiveBorderWidth"),i=h[t],h.lineWidth="auto"===o?0<n.lineWidth&&i?2:0:h.lineWidth,h.fill=e.get("inactiveColor"),h.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth")),{itemStyle:h,lineStyle:a}}(l=m||l||"roundRect",n,a,s,c,f,u),s=new BC,c=n.getModel("textStyle"),m=(!w(t.getLegendIcon)||m&&"inherit"!==m?(u="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",i=Vl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}({itemWidth:p,itemHeight:d,icon:l,iconRotate:u,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===r?p+5:-5),u=r,t=o.get("formatter"),l=e,g=(b(t)&&t?l=t.replace("{name}",null!=e?e:""):w(t)&&(l=t(e)),f?c.getTextColor():n.get("inactiveColor")),a=(s.add(new Pv({style:Fr(c,{text:l,x:m,y:d/2,fill:g,align:u,verticalAlign:"middle"},{inheritColor:g})})),new Iv({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=n.getModel("tooltip");return y.get("show")&&Or({el:a,componentModel:o,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!h,this.getContentGroup().add(s),Ao(s),s.__legendDataIndex=i,s},Sp.prototype.layoutInner=function(t,e,i,n,o,r){var a,s,l,h,u,c=this.getContentGroup(),p=this.getSelectorGroup(),i=(tw(t.get("orient"),c,t.get("itemGap"),i.width,i.height),c.getBoundingRect()),d=[-i.x,-i.y];return p.markRedraw(),c.markRedraw(),o?(tw("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",h=0===t?"height":"width",u=0===t?"y":"x","end"===r?a[t]+=i[l]+s:d[t]+=o[l]+s,a[1-t]+=i[h]/2-o[h]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=i[l]+s+o[l],r[h]=Math.max(i[h],o[h]),r[u]=Math.min(0,o[u]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},Sp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Sp.type="legend.plain",Sp);i(Pp,FC=EC),Pp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Pp.prototype.init=function(t,e,i){var n=Ma(t);FC.prototype.init.call(this,t,e,i),Op(this,t,n)},Pp.prototype.mergeOption=function(t,e){FC.prototype.mergeOption.call(this,t,e),Op(this,this.option,t)},Pp.type="legend.scroll",Pp.defaultOption=(U_=EC.defaultOption,p_={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({},U_,!0),p_,!0));var FC,VC,YC=Pp,HC=Jy,WC=["width","height"],XC=["x","y"],GC=(i(Lp,VC=zC),Lp.prototype.init=function(){VC.prototype.init.call(this),this.group.add(this._containerGroup=new HC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new HC)},Lp.prototype.resetInner=function(){VC.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Lp.prototype.renderInner=function(t,e,i,n,o,r,a){function s(t,i){var o=t+"DataIndex",i=Dr(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:$f(l._pageGo,l,o,e,n)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});i.name=t,h.add(i)}var l=this,h=(VC.prototype.renderInner.call(this,t,e,i,n,o,r,a),this._controllerGroup),t=e.get("pageIconSize",!0),u=x(t)?t:[t,t],i=(s("pagePrev",0),e.getModel("pageTextStyle"));h.add(new Pv({name:"pageText",style:{text:"xx/xx",fill:i.getTextColor(),font:i.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},Lp.prototype.layoutInner=function(t,e,i,n,o,r){var s=this.getSelectorGroup(),l=t.getOrient().index,h=WC[l],u=XC[l],c=WC[1-l],p=XC[1-l],d=(o&&tw("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(i),i=(o&&(y[h]=i[h]-f[h]-d),this._layoutContentAndController(t,n,y,l,h,c,p,u));return o&&("end"===r?g[l]+=i[h]+d:(t=f[h]+d,g[l]-=t,i[u]-=t),i[h]+=f[h]+d,g[1-l]+=i[p]+i[c]/2-f[c]/2,i[c]=Math.max(i[c],f[c]),i[p]=Math.min(i[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),i},Lp.prototype._layoutContentAndController=function(t,e,i,n,o,r,a,s){var l=this.getContentGroup(),h=this._containerGroup,u=this._controllerGroup,c=(tw(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),tw("horizontal",u,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=u.getBoundingRect(),d=this._showController=c[o]>i[o],f=[-c.x,-c.y],e=(e||(f[n]=l[s]),[0,0]),s=[-p.x,-p.y],g=E(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[n]+=i[o]-p[o]:e[n]+=p[o]+g),s[1-n]+=c[r]/2-p[r]/2,l.setPosition(f),h.setPosition(e),u.setPosition(s),{x:0,y:0}),c=(f[o]=(d?i:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-n]),h.__rectSize=i[o],d?((e={x:0,y:0})[o]=Math.max(i[o]-p[o]-g,0),e[r]=f[r],h.setClipPath(new Iv({shape:e})),h.__rectSize=e[o]):u.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&hr(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},Lp.prototype._pageGo=function(t,e,i){null!=(t=this._getPageInfo(e)[t])&&i.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Lp.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup,n=(f(["pagePrev","pageNext"],function(n){var o=null!=e[n+"DataIndex"],n=i.childOfName(n);n&&(n.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),n.cursor=o?"pointer":"default")}),i.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,r=null!=r?r+1:0,a=e.pageCount;n&&o&&n.setStyle("text",b(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},Lp.prototype._getPageInfo=function(t){function e(t){var e,i;if(t)return{s:i=(e=t.getBoundingRect())[s]+t[s],e:i+e[a],i:t.__legendDataIndex}}function i(t,e){return t.e>=e&&t.s<=e+r}var n=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,t=t.getOrient().index,a=WC[t],s=XC[t],n=this._findTargetItemIndex(n),l=o.children(),h=l[n],u=l.length,c=u?1:0,p={contentPosition:[o.x,o.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(h){o=e(h),p.contentPosition[t]=-o.s;for(var d=n+1,f=o,g=o,y=null;d<=u;++d)(!(y=e(l[d]))&&g.e>f.s+r||y&&!i(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=n-1,f=o,g=o,y=null;-1<=d;--d)(y=e(l[d]))&&i(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},Lp.prototype._findTargetItemIndex=function(t){var e,i;return this._showController?(this.getContentGroup().eachChild(function(n,o){n=n.__legendDataIndex,null==i&&null!=n&&(i=o),n===t&&(e=o)}),null!=e?e:i):0},Lp.type="legend.scroll",Lp);Du(function(t){Du(Dp),t.registerComponentModel(YC),t.registerComponentView(GC),t.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})})});var UC=on(),jC=a,qC=$f;Ep.prototype.render=function(t,e,i,n){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=i,!n&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,n=this._group,o=this._handle,s&&"hide"!==s?(n&&n.show(),o&&o.show(),this.makeElOption(s={},a,t,e,i),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),n?(r=_(Rp,e,r),this.updatePointerEl(n,s,r),this.updateLabelEl(n,s,r,e)):(n=this._group=new Jy,this.createPointerEl(n,s,t,e),this.createLabelEl(n,s,t,e),i.getZr().add(n)),zp(n,e,!0),this._renderHandle(a)):(n&&n.hide(),o&&o.hide()))},Ep.prototype.remove=function(t){this.clear(t)},Ep.prototype.dispose=function(t){this.clear(t)},Ep.prototype.determineAnimation=function(t,e){var i,n=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===n||null==n?(i=this.animationThreshold,r&&o.getBandWidth()>i||!!e&&(r=pp(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>i)):!0===n)},Ep.prototype.makeElOption=function(t,e,i,n,o){},Ep.prototype.createPointerEl=function(t,e,i,n){var o=e.pointer;o&&(o=UC(t).pointerEl=new gx[o.type](jC(e.pointer)),t.add(o))},Ep.prototype.createLabelEl=function(t,e,i,n){e.label&&(e=UC(t).labelEl=new Pv(jC(e.label)),t.add(e),Np(e,n))},Ep.prototype.updatePointerEl=function(t,e,i){(t=UC(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),i(t,{shape:e.pointer.shape}))},Ep.prototype.updateLabelEl=function(t,e,i,n){(t=UC(t).labelEl)&&(t.setStyle(e.label.style),i(t,{x:e.label.x,y:e.label.y}),Np(t,n))},Ep.prototype._renderHandle=function(t){var e,i,n,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,n=this._handle=Dr(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_g(t.event)},onmousedown:qC(this._onHandleDragMove,this,0,0),drift:qC(this._onHandleDragMove,this),ondragend:qC(this._onHandleDragEnd,this)}),i.add(n)),zp(n,e,!1),n.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=o.get("size"))||(a=[a,a]),n.scaleX=a[0]/2,n.scaleY=a[1]/2,_l(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(n&&i.remove(n),this._handle=null))},Ep.prototype._moveHandleToValue=function(t,e){Rp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Bp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Ep.prototype._onHandleDragMove=function(t,e){var i=this._handle;i&&(this._dragging=!0,t=this.updateHandleTransform(Bp(i),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,i.stopAnimation(),i.attr(Bp(t)),UC(i).lastProp=null,this._doDispatchAxisPointer())},Ep.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}]}))},Ep.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Ep.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,i=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xl(this,"_doDispatchAxisPointer")},Ep.prototype.doClear=function(){},Ep.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},i(Hp,ZC=Ep),Hp.prototype.makeElOption=function(t,e,i,n,o){var r,a,s=i.axis,l=s.grid,h=n.get("type"),u=Wp(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(h&&"none"!==h&&(r=(a=n).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=QC[h](s,c,u)).style=r,t.graphicKey=a.type,t.pointer=a),$c(l.model,i));h=e,s=t,c=p,u=i,r=n,a=o,l=fC.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),Fp(s,u,r,a,{position:Yp(u.axis,h,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Hp.prototype.getHandleTransform=function(t,e,i){var n=$c(e.axis.grid.model,e,{labelInside:!1}),i=(n.labelMargin=i.get(["handle","margin"]),Yp(e.axis,t,n));return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},Hp.prototype.updateHandleTransform=function(t,e,i,n){var i=i.axis,o=i.grid,r=i.getGlobalExtent(!0),o=Wp(o,i).getOtherAxis(i).getGlobalExtent(),i="x"===i.dim?0:1,a=[t.x,t.y],e=(a[i]+=e[i],a[i]=Math.min(r[1],a[i]),a[i]=Math.max(r[0],a[i]),(o[1]+o[0])/2),r=[e,e];return r[i]=a[i],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][i]}};var ZC,KC=Hp,QC={line:function(t,e,i){var n;return n=[e,i[0]],e=[e,i[1]],i=Xp(t),{type:"Line",subPixelOptimize:!0,shape:{x1:n[i=i||0],y1:n[1-i],x2:e[i],y2:e[1-i]}}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:(e=[e-n/2,i[0]],i=[n,o],n=Xp(t),{x:e[n=n||0],y:e[1-n],width:i[n],height:i[1-n]})}}};i(Gp,$C=aw),Gp.type="axisPointer",Gp.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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 $C,JC=Gp,tI=on(),eI=f;i(Kp,iI=Cb),Kp.prototype.render=function(t,e,i){var e=e.getComponent("tooltip"),n=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Up("axisPointer",i,function(t,e,i){"none"!==n&&("leave"===t||0<=n.indexOf(t))&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Kp.prototype.remove=function(t,e){Zp("axisPointer",e)},Kp.prototype.dispose=function(t,e){Zp("axisPointer",e)},Kp.type="axisPointer";var iI,nI=Kp,oI=on();i(rd,rI=aw),rd.type="tooltip",rd.dependencies=["axisPointer"],rd.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 rI,aI=rd,sI=sd(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),lI=ld(sd(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),hI=ld(sI,"transform"),uI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Pf.transform3dSupported?"will-change:transform;":"");pd.prototype.update=function(t){this._container||(n=this._api.getDom(),i="position",i=(e=(e=n).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?i?e[i]:e:null,"absolute"!==(e=n.style).position&&"absolute"!==i&&(e.position="relative"));var e,i,n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},pd.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,o=this._styleCoord;i.innerHTML?n.cssText=uI+ud(t,!this._firstShow,this._longHide)+hd(o[0],o[1],!0)+"border-color:"+_a(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},pd.prototype.setContent=function(t,e,i,n,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,h,c,p="";if(b(o)&&"item"===i.get("trigger")&&!ad(i)&&(i=i,n=n,p=b(o=o)&&"inside"!==o?(a=i.get("backgroundColor"),i=i.get("borderWidth"),n=_a(n),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",d=Math.max(1.5*Math.round(i),6),s="",l=hI+":",-1<u(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==o?225:45)+"deg)"),c=c*Math.PI/180,c=(h=d+i)*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),n=n+" solid "+i+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;z-index:-1;",(s+=";"+o+":-"+Math.round(100*((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2))/100+"px")+";"+l+";","border-bottom:"+n,"border-right:"+n,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))r.innerHTML=t+p;else if(t){r.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==r&&r.appendChild(t[f]);p&&r.childNodes.length&&((d=document.createElement("div")).innerHTML=p,r.appendChild(d))}}},pd.prototype.setEnterable=function(t){this._enterable=t},pd.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},pd.prototype.moveTo=function(t,e){var i,n=this._styleCoord;cd(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]&&(i=this.el.style,f(hd(n[0],n[1]),function(t){i[t[0]]=t[1]}))},pd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},pd.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Pf.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},pd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($f(this.hide,this),t)):this.hide())},pd.prototype.isShow=function(){return this._show},pd.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var cI=pd;dd.prototype.update=function(t){t=t.get("alwaysShowContent"),t&&this._moveIfResized(),this._alwaysShowContent=t},dd.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},dd.prototype.setContent=function(t,e,i,n,o){var r=this,a=(M(t)&&Xi(""),this.el&&this._zr.remove(this.el),i.getModel("textStyle")),s=(this.el=new Pv({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Js(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=i.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.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})},dd.prototype.setEnterable=function(t){this._enterable=t},dd.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=gd(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},dd.prototype.moveTo=function(t,e){var i,n,o=this.el;o&&(yd(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],i=fd((n=o.style).borderWidth||0),n=gd(n),o.x=t+i+n.left,o.y=e+i+n.top,o.markRedraw())},dd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},dd.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},dd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($f(this.hide,this),t)):this.hide())},dd.prototype.isShow=function(){return this._show},dd.prototype.dispose=function(){this._zr.remove(this.el)};var pI,dI=dd,fI=new Iv({shape:{x:-1,y:-1,width:2,height:2}}),gI=(i(md,pI=Cb),md.prototype.init=function(t,e){var i;!Pf.node&&e.getDom()&&(t=t.getComponent("tooltip"),i=this._renderMode="auto"===(i=t.get("renderMode"))?Pf.domSupported?"html":"richText":i||"html",this._tooltipContent="richText"===i?new dI(e):new cI(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},md.prototype.render=function(t,e,i){!Pf.node&&i.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?_l(this,"_updatePosition",50,"fixRate"):xl(this,"_updatePosition"))},md.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Up("itemTooltip",this._api,$f(function(e,i,n){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},md.prototype._keepShow=function(){var t,e=this._tooltipModel,i=this._ecModel,n=this._api,o=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||t.manuallyShowTip(e,i,n,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},md.prototype.manuallyShowTip=function(t,e,i,n){var o,r,a,s;n.from!==this.uid&&!Pf.node&&i.getDom()&&(o=_d(n,i),this._ticket="",s=n.dataByCoordSys,(r=function(t,e,i){var n=an(t).queryOptionMap,o=n.keys()[0];if(o&&"series"!==o){var r,e=sn(e,o,n.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(i.getViewOfComponentModel(e).group.traverse(function(e){var i=Rv(e).tooltipConfig;if(i&&i.name===t.name)return r=e,!0}),r))return{componentMainType:o,componentIndex:e.componentIndex,el:r}}}(n,e,i))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:n.position,positionDefault:"bottom"},o)):n.tooltip&&null!=n.x&&null!=n.y?((a=fI).x=n.x,a.y=n.y,a.update(),Rv(a).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:a},o)):s?this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o):null!=n.seriesIndex?this._manuallyAxisShowTip(t,e,i,n)||(a=(r=Qp(n,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:n.position,positionDefault:"bottom"},o)):null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o)))},md.prototype.manuallyHideTip=function(t,e,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(_d(n,i))},md.prototype._manuallyAxisShowTip=function(t,e,i,n){var o=n.seriesIndex,r=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a&&(a=e.getSeriesByIndex(o))&&(e=vd([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:n.position}),!0},md.prototype._tryShow=function(t,e){var i,n,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(i=t.dataByCoordSys)&&i.length?this._showAxisTooltip(i,t):r?"legend"!==Rv(r).ssrType&&(Bl(r,function(t){return null!=Rv(t).dataIndex?(n=t,1):null!=Rv(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),n?this._showSeriesItemTooltip(t,n,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},md.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=$f(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},md.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,o=[e.offsetX,e.offsetY],r=vd([e.tooltipOption],n),a=this._renderMode,s=[],h=Gs("section",{blocks:[],noHeader:!0}),u=[],c=new bb,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,o,r=i.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;r&&null!=p&&(e=Vp(p,r.axis,i,t.seriesDataIndices,t.valueLabelOpt),o=Gs("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),h.blocks.push(o),f(t.seriesDataIndices,function(h){var d,f=i.getSeriesByIndex(h.seriesIndex),h=h.dataIndexInside,g=f.getDataParams(h);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Mu(r.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",_a(g.color),a),(d=(h=vs(f.formatTooltip(h,!0,null))).frag)&&(f=vd([f],n).get("valueFormatter"),o.blocks.push(f?l({valueFormatter:f},d):d)),h.text&&u.push(h.text),s.push(g))}))})}),h.blocks.reverse(),u.reverse(),e.position),e=r.get("order"),e=Ks(h,c,a,e,i.get("useUTC"),r.get("textStyle")),e=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),d=u.join(e);this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,d,s,Math.random()+"",o[0],o[1],p,null,c)})},md.prototype._showSeriesItemTooltip=function(t,e,i){var n,o,r,a,s,h=this._ecModel,e=Rv(e),u=e.seriesIndex,c=h.getSeriesByIndex(u),p=e.dataModel||c,d=e.dataIndex,e=e.dataType,f=p.getData(e),g=this._renderMode,y=t.positionDefault,m=vd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(n=p.getDataParams(d,e),o=new bb,n.marker=o.makeTooltipMarker("item",_a(n.color),g),y=vs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?Ks(e?l({valueFormatter:e},r):r,o,g,c,h.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,n,s,t.offsetX,t.offsetY,t.position,t.target,o)}),i({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:u,from:this.uid}))},md.prototype._showComponentItemTooltip=function(t,e,i){var n="html"===this._renderMode,o=Rv(e),r=o.tooltipConfig.option||{},s=r.encodeHTMLContent,s=(b(r)&&(r={content:r,formatter:r},s=!0),s&&n&&r.content&&((r=a(r)).content=yt(r.content)),[r]),n=this._ecModel.getComponent(o.componentMainType,o.componentIndex),o=(n&&s.push(n),s.push({formatter:r.content}),t.positionDefault),l=vd(s,this._tooltipModel,o?{position:o}:null),h=l.get("content"),u=Math.random()+"",c=new bb;this._showOrMove(l,function(){var i=a(l.get("formatterParams")||{});this._showTooltipContent(l,h,i,u,t.offsetX,t.offsetY,t.position,e,c)}),i({type:"showTip",from:this.uid})},md.prototype._showTooltipContent=function(t,e,i,n,o,r,a,s,l){var h,u,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&((h=this._tooltipContent).setEnterable(t.get("enterable")),u=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([o,r],i,t.get("trigger"),t.get("borderColor")).color,u&&(e=b(u)?(p=t.ecModel.get("useUTC"),e=u,ma(e=(d=x(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Qr(d.axisValue,e,p):e,i,!0)):w(u)?(d=$f(function(e,n){e===this._ticket&&(h.setContent(n,l,t,c,a),this._updatePosition(t,a,o,r,h,i,s))},this),this._ticket=n,u(i,n,d)):u),h.setContent(e,l,t,c,a),h.show(t,c),this._updatePosition(t,a,o,r,h,i,s))},md.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||x(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:x(e)?void 0:{color:n||e.color||e.borderColor}},md.prototype._updatePosition=function(t,e,i,n,o,r,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([i,n],r,o.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(i=Ai(e[0],l),n=Ai(e[1],h)):M(e)?((r=e).width=u[0],r.height=u[1],i=(r=ba(r,{width:l,height:h})).x,n=r.y,p=c=null):(i=(s=b(e)&&a?function(t,e,i,n){var o=i[0],r=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,h=e.width,u=e.height;switch(t){case"inside":s=e.x+h/2-o/2,l=e.y+u/2-r/2;break;case"top":s=e.x+h/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+h/2-o/2,l=e.y+u+a;break;case"left":s=e.x-o-a,l=e.y+u/2-r/2;break;case"right":s=e.x+h+a,l=e.y+u/2-r/2}return[s,l]}(e,d,u,t.get("borderWidth")):function(t,e,i,n,o,r,a){var i=i.getSize(),s=i[0],i=i[1];return null!=r&&(n<t+s+r+2?t-=s+r:t+=r),null!=a&&(o<e+i+a?e-=i+a:e+=a),[t,e]}(i,n,o,l,h,c?null:20,p?null:20))[0],n=s[1]),c&&(i-=xd(c)?u[0]/2:"right"===c?u[0]:0),p&&(n-=xd(p)?u[1]/2:"bottom"===p?u[1]:0),ad(t)&&(r=i,a=n,e=l,d=h,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),i=(s=[r,a])[0],n=s[1]),o.moveTo(i,n)},md.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&f(i,function(i,r){var i=i.dataByAxis||[],a=(t[r]||{}).dataByAxis||[];(o=o&&i.length===a.length)&&f(i,function(t,i){var i=a[i]||{},r=t.seriesDataIndices||[],s=i.seriesDataIndices||[];(o=o&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===s.length)&&f(r,function(t,e){e=s[e],o=o&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),n&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,i=e[t],t=n[t];i&&t&&t.data!==i.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},md.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},md.prototype.dispose=function(t,e){!Pf.node&&e.getDom()&&(xl(this,"_updatePosition"),this._tooltipContent.dispose(),Zp("itemTooltip",e))},md.type="tooltip",md);Du(function(t){Du(od),t.registerComponentModel(aI),t.registerComponentView(gI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Z),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Z)});var yI,mI=on(),vI=(i(bd,yI=aw),bd.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},bd.prototype.isAnimationEnabled=function(){var t;return!Pf.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},bd.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},bd.prototype._mergeOption=function(t,e,i,n){var o=this.mainType;i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),r=mI(t)[o];i&&i.data?(r?r._mergeOption(i,e,!0):(n&&wd(i),f(i.data,function(t){t instanceof Array?(wd(t[0]),wd(t[1])):wd(t)}),l(r=this.createMarkerModelFromSeries(i,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),r.__hostSeries=t),mI(t)[o]=r):mI(t)[o]=null},this)},bd.prototype.formatTooltip=function(t,e,i){var n=this.getData(),o=this.getRawValue(t),n=n.getName(t);return Gs("section",{header:this.name,blocks:[Gs("nameValue",{name:n,value:o,noName:!n,noValue:null==o})]})},bd.prototype.getData=function(){return this._data},bd.prototype.setData=function(t){this._data=t},bd.prototype.getDataParams=function(t,e){return t=Kw.prototype.getDataParams.call(this,t,e),e=this.__hostSeries,e&&(t.seriesId=e.id,t.seriesName=e.name,t.seriesType=e.subType),t},bd.getMarkerModelFromSeries=function(t,e){return mI(t)[e]},bd.type="marker",bd.dependencies=["series","grid","polar","geo"],bd);p(vI,Kw.prototype),i(Sd,_I=vI),Sd.prototype.createMarkerModelFromSeries=function(t,e,i){return new Sd(t,e,i)},Sd.type="markPoint",Sd.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var _I,xI,wI=Sd,bI={min:_(Td,"min"),max:_(Td,"max"),average:_(Td,"average"),median:_(Td,"median")},SI=on(),g_=(i(kd,xI=Cb),kd.prototype.init=function(){this.markerGroupMap=X()},kd.prototype.render=function(t,e,i){var n=this,o=this.markerGroupMap;o.each(function(t){SI(t).keep=!1}),e.eachSeries(function(t){var o=vI.getMarkerModelFromSeries(t,n.type);o&&n.renderSeries(t,o,e,i)}),o.each(function(t){SI(t).keep||n.group.remove(t.group)})},kd.prototype.markKeep=function(t){SI(t).keep=!0},kd.prototype.toggleBlurSeries=function(t,e){var i=this;f(t,function(t){(t=vI.getMarkerModelFromSeries(t,i.type))&&t.getData().eachItemGraphicEl(function(t){t&&(e?_o:xo)(t)})})},kd.type="marker",kd);i(Dd,TI=g_),Dd.prototype.updateTransform=function(t,e,i){e.eachSeries(function(t){var e=vI.getMarkerModelFromSeries(t,"markPoint");e&&(Ad(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())},this)},Dd.prototype.renderSeries=function(t,e,i,n){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,s=s.get(r)||s.set(r,new zM),h=function(t,e,i){var n;n=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new wT(n,i),i=g(i.get("data"),_(Md,e));return t&&(i=m(i,_(Cd,t))),t=function(t,e){return t?function(t,i,n,o){return Ss(o<2?t.coord&&t.coord[o]:t.value,e[o])}:function(t,i,n,o){return Ss(t.value,e[o])}}(!!t,n),o.initData(i,null,t),o}(o,t,e);e.setData(h),Ad(e.getData(),t,n),h.each(function(t){var i=h.getItemModel(t),n=i.getShallow("symbol"),o=i.getShallow("symbolSize"),r=i.getShallow("symbolRotate"),s=i.getShallow("symbolOffset"),l=i.getShallow("symbolKeepAspect"),u=((w(n)||w(o)||w(r)||w(s))&&(u=e.getRawValue(t),c=e.getDataParams(t),w(n)&&(n=n(u,c)),w(o)&&(o=o(u,c)),w(r)&&(r=r(u,c)),w(s))&&(s=s(u,c)),i.getModel("itemStyle").getItemStyle()),c=Rl(a,"color");u.fill||(u.fill=c),h.setItemVisual(t,{symbol:n,symbolSize:o,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:u})}),s.updateData(h),this.group.add(s.group),h.eachItemGraphicEl(function(t){t.traverse(function(t){Rv(t).dataModel=e})}),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},Dd.type="markPoint";var TI,MI=Dd;Du(function(t){t.registerComponentModel(wI),t.registerComponentView(MI),t.registerPreprocessor(function(t){!function(t,e){if(t)for(var i=x(t)?t:[t],n=0;n<i.length;n++)if(i[n]&&i[n].markPoint)return 1}(t.series)||(t.markPoint=t.markPoint||{})})}),Du(yc);var CI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},II=(Pd.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!T(e)&&this._condVal.test(t+"")},Pd);Od.prototype.evaluate=function(){return this.value};var kI=Od;Ld.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var AI=Ld;Ed.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var DI=Ed;Rd.prototype.evaluate=function(){return!this.child.evaluate()};var PI=Rd;Nd.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),i=t?this.valueParser(e):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(t?i:e))return!1;return!0};var OI=Nd;Vd.prototype.evaluate=function(){return this._cond.evaluate()};var LI=Vd,EI={type:"echarts:filter",transform:function(t){for(var e,i,n=t.upstream,o=(t=t.config,i={valueGetterAttrMap:X({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(q(t,"dimension")||Xi(""),n.getDimensionInfo(e));return t||Xi(""),{dimIdx:t.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}},new LI(t,i)),r=[],a=0,s=n.count();a<s;a++)e=n.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},RI={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Ui(t),i=(t.length||Xi(""),[]),t=(f(t,function(t){var n=t.dimension,o=t.order,r=t.parser,t=t.incomparable,n=(null==n&&Xi(""),"asc"!==o&&"desc"!==o&&Xi(""),t&&"min"!==t&&"max"!==t&&Xi(""),"asc"!==o&&"desc"!==o&&Xi(""),e.getDimensionInfo(n)),a=(n||Xi(""),r?Ts(r):null);r&&!a&&Xi(""),i.push({dimIdx:n.index,parser:a,comparator:new lb(o,t)})}),e.sourceFormat),n=(t!==fw&&t!==gw&&Xi(""),[]),o=0,r=e.count();o<r;o++)n.push(e.getRawDataItem(o));return n.sort(function(t,n){for(var o=0;o<i.length;o++){var r=i[o],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx),r=(r.parser&&(a=r.parser(a),s=r.parser(s)),r.comparator.evaluate(a,s));if(0!==r)return r}return 0}),{data:n}}};Du(function(t){t.registerTransform(EI),t.registerTransform(RI)});var NI,BI=Math.sin,zI=Math.cos,FI=Math.PI,VI=2*Math.PI,YI=180/FI,HI=(Yd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},Yd.prototype.moveTo=function(t,e){this._add("M",t,e)},Yd.prototype.lineTo=function(t,e){this._add("L",t,e)},Yd.prototype.bezierCurveTo=function(t,e,i,n,o,r){this._add("C",t,e,i,n,o,r)},Yd.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},Yd.prototype.arc=function(t,e,i,n,o,r){this.ellipse(t,e,i,i,0,n,o,r)},Yd.prototype.ellipse=function(t,e,i,n,o,r,a,s){var l,h=a-r,s=!s,u=Math.abs(h),c=ke(u-VI)||(s?VI<=h:VI<=-h),p=!1,p=!!c||!ke(u)&&FI<=(0<h?h%VI:h%VI+VI)==!!s,u=t+i*zI(r),h=e+n*BI(r),o=(this._start&&this._add("M",u,h),Math.round(o*YI));c?(c=1/this._p,this._add("A",i,n,o,1,+s,t+i*zI(r+(l=(s?1:-1)*(VI-c))),e+n*BI(r+l)),.01<c&&this._add("A",i,n,o,0,+s,u,h)):(r=t+i*zI(a),l=e+n*BI(a),this._add("A",i,n,o,+p,+s,r,l))},Yd.prototype.rect=function(t,e,i,n){this._add("M",t,e),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},Yd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},Yd.prototype._add=function(t,e,i,n,o,r,a,s,l){for(var h=[],u=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);h.push(Math.round(p*u)/u)}this._d.push(t+h.join(" ")),this._start="Z"===t},Yd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},Yd.prototype.getStr=function(){return this._str},Yd),WI="none",XI=Math.round,GI=["lineCap","miterLimit","lineJoin"],UI=g(GI,function(t){return"stroke-"+t.toLowerCase()}),jI="http://www.w3.org/2000/svg",qI="http://www.w3.org/1999/xlink",ZI="http://www.w3.org/2000/xmlns/",KI="http://www.w3.org/XML/1998/namespace",QI="ecmeta_",$I=0,JI={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"},tk="transform-origin",ek={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},ik=Math.round,nk={circle:[(NI=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,i){for(var n=0;n<NI.length;n++){var o=NI[n],r=t[o[0]];null!=r&&(e[o[1]]=ik(r*i)/i)}})],polyline:[rf,af],polygon:[rf,af]},ok=58,rk=120,ak=Xd("",""),sk=0;If.prototype.getType=function(){return this.type},If.prototype.getViewportRoot=function(){return this._viewport},If.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},If.prototype.getSvgDom=function(){return this._svgDom},If.prototype.refresh=function(){var t,e,i,n,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",xf(e=this._oldVNode,i=t)?Cf(e,i):(o=gf(n=e.elm),wf(i),null!==o&&(pf(o,i.elm,yf(n)),Sf(o,[e],0,0))),this._oldVNode=t)},If.prototype.renderOneToVNode=function(t){return lf(t,Ud(this._id))},If.prototype.renderToVNode=function(t){t=t||{};var e,i,n,o,r,a=this.storage.getDisplayList(!0),s=this._width,l=this._height,h=Ud(this._id),u=(h.animation=t.animation,h.willUpdate=t.willUpdate,h.compress=t.compress,h.emphasis=t.emphasis,[]),c=this._bgVNode=function(t,e,i,n){var o;return i&&"none"!==i&&(o=Xd("rect","bg",{width:t,height:e,x:"0",y:"0"}),Re(i)?hf({fill:i},o.attrs,"fill",n):Oe(i)?uf({style:{fill:i},dirty:Z,getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",n):(n=Ie(i),i=n.color,n=n.opacity,o.attrs.fill=i,n<1&&(o.attrs["fill-opacity"]=n))),o}(s,l,this._backgroundColor,h),c=(c&&u.push(c),t.compress?null:this._mainVNode=Xd("g","main",{},[])),a=(this._paintList(a,h,c?c.children:u),c&&u.push(c),g(v(h.defs),function(t){return h.defs[t]}));return a.length&&u.push(Xd("defs","defs",{},a)),t.animation&&(e=h.cssNodes,i=h.cssAnims,n=(c=(c={newline:!0})||{}).newline?"\n":"",o=" {"+n,r=n+"}",c=g(v(e),function(t){return t+o+g(v(e[t]),function(i){return i+":"+e[t][i]+";"}).join(n)+r}).join(n),a=g(v(i),function(t){return"@keyframes "+t+o+g(v(i[t]),function(e){return e+o+g(v(i[t][e]),function(n){var o=i[t][e][n];return n+":"+(o="d"===n?'path("'+o+'")':o)+";"}).join(n)+r}).join(n)+r}).join(n),c=c||a?["<![CDATA[",c,a,"]]>"].join(n):"")&&(a=Xd("style","stl",{},[],c),u.push(a)),jd(s,l,u,t.useViewBox)},If.prototype.renderToString=function(t){return Gd(this.renderToVNode({animation:E((t=t||{}).cssAnimation,!0),emphasis:E(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:E(t.useViewBox,!0)}),{newline:!0})},If.prototype.setBackgroundColor=function(t){this._backgroundColor=t},If.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},If.prototype._paintList=function(t,e,i){for(var n,o,r,a,s,l,h,u=t.length,c=[],p=0,d=0,f=0;f<u;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=T&&T.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!T||y[_]!==T[_]);_--);for(var x=v-1;_<x;x--)n=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(o=y[w],r=b,h=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(h=l[o.id])||(s={id:h=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=h]=Xd("clipPath",h,s,[sf(o,a)])),r["clip-path"]=Ne(h),Xd("g","clip-g-"+d++,b,[]));(n?n.children:i).push(S),n=c[p++]=S}var T=y,v=lf(g,e);v&&(n?n.children:i).push(v)}}},If.prototype.resize=function(t,e){var i=this._opts,n=this.root,o=this._viewport;null!=t&&(i.width=t),null!=e&&(i.height=e),n&&o&&(o.style.display="none",t=Gl(n,0,i),e=Gl(n,1,i),o.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,o&&((n=o.style).width=t+"px",n.height=e+"px"),Oe(this._backgroundColor)?this.refresh():((i=this._svgDom)&&(i.setAttribute("width",t),i.setAttribute("height",e)),(o=this._bgVNode&&this._bgVNode.elm)&&(o.setAttribute("width",t),o.setAttribute("height",e))))},If.prototype.getWidth=function(){return this._width},If.prototype.getHeight=function(){return this._height},If.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},If.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},If.prototype.toDataURL=function(t){var e=this.renderToString(),i="data:image/svg+xml;";return t?(e=yy(e))&&i+"base64,"+e:i+"charset=UTF-8,"+encodeURIComponent(e)},Mi("svg",If),e.Axis=Gx,e.ChartView=Ab,e.ComponentModel=aw,e.ComponentView=Cb,e.List=wT,e.Model=Ox,e.PRIORITY=$b,e.SeriesModel=Mb,e.color=cy,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_"+tT++,f(e,function(e){e.group=t})),$S[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.6.0"},e.disConnect=Qb,e.disconnect=vh,e.dispose=function(t){b(t)?t=QS[t]:t instanceof HS||(t=_h(t)),t instanceof HS&&!t.isDisposed()&&t.dispose()},e.env=Pf,e.extendChartView=function(t){return t=Ab.extend(t),Ab.registerClass(t),t},e.extendComponentModel=function(t){return t=aw.extend(t),aw.registerClass(t),t},e.extendComponentView=function(t){return t=Cb.extend(t),Cb.registerClass(t),t},e.extendSeriesModel=function(t){return t=Mb.extend(t),Mb.registerClass(t),t},e.format=kx,e.getCoordinateSystemDimensions=function(t){if(t=Ow.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=_h,e.getInstanceById=function(t){return QS[t]},e.getMap=function(t){var e=gS.getMap;return e&&e(t)},e.graphic=Dx,e.helper=Jb,e.init=function(t,e,i){var n=!(i&&i.ssr);if(n){var o=_h(t);if(o)return o}return(o=new HS(t,e,i)).id="ec_"+JS++,QS[o.id]=o,n&&ln(t,eT,o.id),BS(o),fS.trigger("afterinit",o),o},e.innerDrawElementOnCanvas=oh,e.matrix=bg,e.number=Ix,e.parseGeoJSON=Vu,e.parseGeoJson=Vu,e.registerAction=Ch,e.registerCoordinateSystem=Ih,e.registerLayout=kh,e.registerLoading=Ph,e.registerLocale=qr,e.registerMap=Oh,e.registerPostInit=Sh,e.registerPostUpdate=Th,e.registerPreprocessor=wh,e.registerProcessor=bh,e.registerTheme=xh,e.registerTransform=Lh,e.registerUpdateLifecycle=Mh,e.registerVisual=Ah,e.setCanvasCreator=function(t){n({createCanvas:t})},e.setPlatformAPI=n,e.throttle=vl,e.time=mm,e.use=Du,e.util=Mx,e.vector=sg,e.version="5.5.1",e.zrUtil=og,e.zrender=rm})}).call(e,i(305).Buffer)},2130:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},o=[];n._withStripped=!0},2131:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.benefitBtnShow,expression:"benefitBtnShow"}],class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"specialShowBox"},[i("div",{staticClass:"numShow"},[i("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][n])/100)+"\n ")]),t._v(" "),i("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),i("div",{staticClass:"titleShow"},[i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?i("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?i("span",[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()])]):t._e()]})]:[i("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"textShowBox"},[i("div",{staticClass:"iconblock"},[i("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),i("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"moneyShowBox"},[i("div",{staticClass:"numShow"},[i("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.getNum(t.selectIndex,n,e))+"\n ")]),t._v(" "),i("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?i("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?i("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()]):t._e()]})],2)]],2),t._v(" "),i("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),i("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?i("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e(),t._v(" "),t.tip?i("div",{staticClass:"tipContent"},[i("div",{staticClass:"tip",domProps:{innerHTML:t._s(t.tip)}})]):t._e()],1)},o=[];n._withStripped=!0},2132:function(t,e,i){"use strict";function n(t){s||i(2133)}var o=i(1588),r=i(2134),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-4eebaa8b",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=h.exports},2133:function(t,e){},2134:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[i("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr"},[t._l(e,function(e,o){return[t.showCol(o)?i("td",{key:"td-"+n+"-"+o,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},o=[];n._withStripped=!0},2135:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=this,i=e.$createElement,n=e._self._c||i;return e.isShowChart?n("div",[n("benefit",{attrs:{renderData:e.renderData,benefitBtnShow:e.benefitBtnShow,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,tip:e.tip,percentageTypes:e.percentageTypes,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(" "),n("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),n("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},o=[];n._withStripped=!0},22:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},23:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},24:function(t,e,i){var n=i(29);t.exports=function(t){return Object(n(t))}},25:function(t,e){e.f={}.propertyIsEnumerable},26:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},27:function(t,e,i){var n=i(7).f,o=i(6),r=i(3)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},279:function(t,e,i){"use strict";e.a={props:{title:{type:String},subtitle:{type:String},cancelTxt:{type:String,default:""},confirmTxt:{type:String,default:""},swipeTime:{type:Number,default:2500},maskClosable:{type:Boolean,default:!0},confirmColor:{type:String,default:""},cancelColor:{type:String,default:""}},computed:{_cancelTxt:function(){return this.cancelTxt||"取消"},_confirmTxt:function(){return this.confirmTxt||"确定"}}}},28:function(t,e,i){t.exports={default:i(83),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,i){var n=i(32)("wks"),o=i(23),r=i(2).Symbol,a="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=a&&r[t]||(a?r:o)("Symbol."+t))}).store=n},30:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},304:function(t,e,i){"use strict";var n={value:"value",text:"text",order:"order",children:"children"};e.a={props:{data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},alias:{type:Object,default:function(){return{}}}},computed:{valueKey:function(){return this.alias.value||n.value},textKey:function(){return this.alias.text||n.text},orderKey:function(){return n.order},childrenKey:function(){return this.alias.children||n.children},merge:function(){return[this.data,this.selectedIndex]}},watch:{merge:function(t){this.setData(t[0],t[1])}}}},305:function(t,e,i){"use strict";(function(t){function n(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=r.prototype):(null===t&&(t=new r(e)),t.length=e),t}function r(t,e,i){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return a(this,t,e,i)}function a(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,i,n):"string"==typeof e?u(t,e,i):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,i,n){return s(e),e<=0?o(t,e):void 0!==i?"string"==typeof n?o(t,e).fill(i,n):o(t,e).fill(i):o(t,e)}function h(t,e){if(s(e),t=o(t,e<0?0:0|f(e)),!r.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function u(t,e,i){if("string"==typeof i&&""!==i||(i="utf8"),!r.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,i);t=o(t,n);var a=t.write(e,i);return a!==n&&(t=t.slice(0,a)),t}function c(t,e){var i=e.length<0?0:0|f(e.length);t=o(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function p(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),r.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=r.prototype):t=c(t,e),t}function d(t,e){if(r.isBuffer(e)){var i=0|f(e.length);return t=o(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?o(t,0):c(t,e);if("Buffer"===e.type&&$(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>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),r.alloc(+t)}function y(t,e){if(r.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 i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return j(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return D(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return I(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function _(t,e,i,n,o){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(o)return-1;i=t.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof e&&(e=r.from(e,n)),r.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,o);if("number"==typeof e)return e&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,o){function r(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}var h;if(o){var u=-1;for(h=i;h<s;h++)if(r(t,h)===r(e,-1===u?0:h-u)){if(-1===u&&(u=h),h-u+1===l)return u*a}else-1!==u&&(h-=h-u),u=-1}else for(i+l>s&&(i=s-l),h=i;h>=0;h--){for(var c=!0,p=0;p<l;p++)if(r(t,h+p)!==r(e,p)){c=!1;break}if(c)return h}return-1}function w(t,e,i,n){i=Number(i)||0;var o=t.length-i;n?(n=Number(n))>o&&(n=o):n=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function b(t,e,i,n){return q(X(e,t.length-i),t,i,n)}function S(t,e,i,n){return q(G(e),t,i,n)}function T(t,e,i,n){return S(t,e,i,n)}function M(t,e,i,n){return q(j(e),t,i,n)}function C(t,e,i,n){return q(U(e,t.length-i),t,i,n)}function I(t,e,i){return 0===e&&i===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,i))}function k(t,e,i){i=Math.min(t.length,i);for(var n=[],o=e;o<i;){var r=t[o],a=null,s=r>239?4:r>223?3:r>191?2:1;if(o+s<=i){var l,h,u,c;switch(s){case 1:r<128&&(a=r);break;case 2:l=t[o+1],128==(192&l)&&(c=(31&r)<<6|63&l)>127&&(a=c);break;case 3:l=t[o+1],h=t[o+2],128==(192&l)&&128==(192&h)&&(c=(15&r)<<12|(63&l)<<6|63&h)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[o+1],h=t[o+2],u=t[o+3],128==(192&l)&&128==(192&h)&&128==(192&u)&&(c=(15&r)<<18|(63&l)<<12|(63&h)<<6|63&u)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return A(n)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=J));return i}function D(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(127&t[o]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var o="",r=e;r<i;++r)o+=W(t[r]);return o}function L(t,e,i){for(var n=t.slice(e,i),o="",r=0;r<n.length;r+=2)o+=String.fromCharCode(n[r]+256*n[r+1]);return o}function E(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,i,n,o,a){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function N(t,e,i,n){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-i,2);o<r;++o)t[i+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function B(t,e,i,n){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-i,4);o<r;++o)t[i+o]=e>>>8*(n?o:3-o)&255}function z(t,e,i,n,o,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,o){return o||z(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,i,n,23,4),i+4}function V(t,e,i,n,o){return o||z(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,i,n,52,8),i+8}function Y(t){if(t=H(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function H(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 X(t,e){e=e||1/0;for(var i,n=t.length,o=null,r=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!o){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),o=i;continue}i=65536+(o-55296<<10|i-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function G(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function U(t,e){for(var i,n,o,r=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,o=i%256,r.push(o),r.push(n);return r}function j(t){return K.toByteArray(Y(t))}function q(t,e,i,n){for(var o=0;o<n&&!(o+i>=e.length||o>=t.length);++o)e[o+i]=t[o];return o}function Z(t){return t!==t}var K=i(306),Q=i(307),$=i(308);e.Buffer=r,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,r.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=n(),r.poolSize=8192,r._augment=function(t){return t.__proto__=r.prototype,t},r.from=function(t,e,i){return a(null,t,e,i)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(t,e,i){return l(null,t,e,i)},r.allocUnsafe=function(t){return h(null,t)},r.allocUnsafeSlow=function(t){return h(null,t)},r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,o=0,a=Math.min(i,n);o<a;++o)if(t[o]!==e[o]){i=t[o],n=e[o];break}return i<n?-1:n<i?1:0},r.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}},r.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return r.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=r.allocUnsafe(e),o=0;for(i=0;i<t.length;++i){var a=t[i];if(!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},r.byteLength=y,r.prototype._isBuffer=!0,r.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},r.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},r.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},r.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===r.compare(this,t)},r.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t,e,i,n,o){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||i>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,s=i-e,l=Math.min(a,s),h=this.slice(n,o),u=t.slice(e,i),c=0;c<l;++c)if(h[c]!==u[c]){a=h[c],s=u[c];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},r.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},r.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},r.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var o=this.length-e;if((void 0===i||i>o)&&(i=o),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return T(this,t,e,i);case"base64":return M(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;r.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n;if(r.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=r.prototype;else{var o=e-t;n=new r(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},r.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return n},r.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},r.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},r.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,o=1,r=this[t+--n];n>0&&(o*=256);)r+=this[t+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},r.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},r.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=1,r=0;for(this[e]=255&t;++r<i&&(o*=256);)this[e+r]=t/o&255;return e+i},r.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=i-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+i},r.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},r.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.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},r.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.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},r.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=0,a=1,s=0;for(this[e]=255&t;++r<i&&(a*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=i-1,a=1,s=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},r.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),r.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},r.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),r.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},r.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},r.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},r.prototype.writeDoubleLE=function(t,e,i){return V(this,t,e,!0,i)},r.prototype.writeDoubleBE=function(t,e,i){return V(this,t,e,!1,i)},r.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var o,a=n-i;if(this===t&&i<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+i];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},r.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<i;++a)this[a]=t;else{var s=r.isBuffer(t)?t:X(new r(t,n).toString()),l=s.length;for(a=0;a<i-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,i(117))},306:function(t,e,i){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function o(t){var e=n(t),i=e[0],o=e[1];return 3*(i+o)/4-o}function r(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,o=n(t),a=o[0],s=o[1],l=new p(r(t,a,s)),h=0,u=s>0?a-4:a;for(i=0;i<u;i+=4)e=c[t.charCodeAt(i)]<<18|c[t.charCodeAt(i+1)]<<12|c[t.charCodeAt(i+2)]<<6|c[t.charCodeAt(i+3)],l[h++]=e>>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=c[t.charCodeAt(i)]<<2|c[t.charCodeAt(i+1)]>>4,l[h++]=255&e),1===s&&(e=c[t.charCodeAt(i)]<<10|c[t.charCodeAt(i+1)]<<4|c[t.charCodeAt(i+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function s(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function l(t,e,i){for(var n,o=[],r=e;r<i;r+=3)n=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),o.push(s(n));return o.join("")}function h(t){for(var e,i=t.length,n=i%3,o=[],r=0,a=i-n;r<a;r+=16383)o.push(l(t,r,r+16383>a?a:r+16383));return 1===n?(e=t[i-1],o.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],o.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),o.join("")}e.byteLength=o,e.toByteArray=a,e.fromByteArray=h;for(var u=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)u[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},307:function(t,e){e.read=function(t,e,i,n,o){var r,a,s=8*o-n-1,l=(1<<s)-1,h=l>>1,u=-7,c=i?o-1:0,p=i?-1:1,d=t[e+c];for(c+=p,r=d&(1<<-u)-1,d>>=-u,u+=s;u>0;r=256*r+t[e+c],c+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=n;u>0;a=256*a+t[e+c],c+=p,u-=8);if(0===r)r=1-h;else{if(r===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),r-=h}return(d?-1:1)*a*Math.pow(2,r-n)},e.write=function(t,e,i,n,o,r){var a,s,l,h=8*r-o-1,u=(1<<h)-1,c=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:r-1,f=n?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=u):(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>=u?(s=0,a=u):a+c>=1?(s=(e*l-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[i+d]=255&s,d+=f,s/=256,o-=8);for(a=a<<o|s,h+=o;h>0;t[i+d]=255&a,d+=f,a/=256,h-=8);t[i+d-f]|=128*g}},308:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},31:function(t,e,i){var n=i(32)("keys"),o=i(23);t.exports=function(t){return n[t]||(n[t]=o(t))}},32:function(t,e,i){var n=i(0),o=i(2),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(2),o=i(0),r=i(16),a=i(36),s=i(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(39);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,o){var r=e.call(this,t,n,o);if(r)return i=n,r}),i}function o(t){return t?JSON.parse(V()(t)):t}function r(t,e){for(var i in e)t[i]&&"object"===z()(t[i])?r(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function d(t){return void 0===t}function f(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function y(t){return"[object Promise]"===Object.prototype.toString.call(t)||h(t)&&g(t.then)}function m(t,e,i){function n(e){var i=y,n=m;return y=m=void 0,b=e,_=t.apply(n,i)}function o(t,e){return C?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function r(t){if(C)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=o(u,e),S?n(t):_}function s(t){var i=t-w,n=t-b,o=e-i;return T?Math.min(o,v-n):o}function l(t){var i=t-w,n=t-b;return void 0===w||i>=e||i<0||T&&n>=v}function u(){var t=Date.now();if(l(t))return c(t);x=o(u,s(t))}function c(t){return x=void 0,M&&y?n(t):(y=m=void 0,_)}function p(){void 0!==x&&r(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(),i=l(t),r=arguments.length,s=Array(r),h=0;h<r;h++)s[h]=arguments[h];if(y=s,m=this,w=t,i){if(void 0===x)return a(w);if(T)return x=o(u,e),n(w)}return void 0===x&&(x=o(u,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,T=!1,M=!0,C=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,h(i)&&(S=!!i.leading,T="maxWait"in i,v=T?Math.max(+i.maxWait||0,e):v,M="trailing"in i?!!i.trailing:M),g.cancel=p,g.flush=d,g.pending=f,g}function v(t,e,i){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return h(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),m(t,e,{leading:n,trailing:o,maxWait:e})}function _(t){return!!/^1\d{10}$/.test(t)}function x(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,i){return e+" "+i.replace(/(.{4})(?=.)/g,"$1 ")})),t}function w(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function b(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function S(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("&emsp;&emsp;"):3===e?t.split("").join("&ensp;"):t}function T(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);i+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return i}function M(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),o=null;return i?o={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(o={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),o?void 0!==e?"rgba("+o.r+", "+o.g+", "+o.b+", "+e+")":"rgb("+o.r+", "+o.g+", "+o.b+")":""}function C(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var o=0;o<t;o++)n+=e.charAt(Math.floor(Math.random()*i));return n}function I(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),o=i.match(n);return o&&o[2]}function k(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function A(t,e,i){return Math.min(Math.max(t,e),i)}function D(t){var e=/os (\d\d?_\d(_\d)?)/,i=e.exec(t);if(!i)return null;var n=i[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var i=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(i);return decodeURIComponent(n?n[2]:"")}function O(t){return t?f(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function L(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var o=t[n];if(!i.test(o))return;e.push(o.split("?")[0])}return e}function E(t){var e=JSON.parse(V()(t)),i=e.attrModules,n=void 0===i?{}:i,o=e.plan,r=n.applicant,s=n.insureds,l=n.hcpics,h=n.hctext,u=n.makeup,c=n.apphctext,p=n.apphcpics,d={},f=function(t){var e=null,i=null,n=null,o=null,r={},s={},l={};for(var h in t){var u=t[h].defaultValue,c=t[h].required,p=t[h].display;if(a(u)){var d=L(u);d&&(u=d)}1!==Number(c)&&1!==Number(p)||("idType"===h||"id"===h||"idValidType"===h||"idValidEndTime"===h||"idValidStartTime"===h?(e=e||{},e[h]=u):"socialInsAddr"===h||"socialInsDetail"===h||"socialInsPost"===h||"socialInsTel"===h?(i=i||{},i[h]=u):"residentAddr"===h||"residentDetail"===h||"residentPost"===h||"residentTel"===h?(n=n||{},n[h]=u):"officeAddr"===h||"officeDetail"===h||"officePost"===h||"officeTel"===h?(o=o||{},o[h]=u):"companyIdType"===h||"companyId"===h?(s=s||{},s[h]=u):"detail"===h?(l=l||{},l[h]=u):r[h]=u)}return e&&(r.certificate=e),i&&(r.socialIns=i),n&&(r.resident=n),o&&(r.office=o),s&&(r.companyCertificate=s),l&&(r.companyAddress=l),r};if(n.plan&&(o=f(n.plan)),r&&(d.applicant={},r&&(d.applicant=f(r))),s||o){d.insureds=[];for(var g=s||[""],y=0;y<g.length;y++){var m=g[y],v=null,_={};m&&(v=f(m)),v&&(_.insured=v),o&&(_.plan=o),d.insureds.push(_)}}if(h&&(d.hctext=f(h)),c&&(d.apphctext=f(c)),l&&(d.hcpics=f(l)),p&&(d.apphcpics=f(p)),u){d.makeup={};for(var x=u||[""],w=0;w<x.length;w++){var b=x[w],S=null;b&&(S=f(b)),S&&(d.makeup=N()(d.makeup,S))}}return d}i.d(e,"H",function(){return nt}),i.d(e,"w",function(){return ot}),e.d=n,e.c=o,e.b=r,e.o=a,e.B=s,e.y=l,e.z=h,e.p=u,e.x=c,e.q=p,e.C=d,e.r=f,e.s=g,e.A=y,e.a=m,e.G=v,e.v=_,e.g=x,e.e=w,e.f=b,e.h=S,e.D=T,e.n=M,e.E=C,e.l=I,e.t=k,e.F=A,e.k=D,e.m=P,e.j=O,e.i=E,i.d(e,"u",function(){return rt});var R=i(28),N=i.n(R),B=i(80),z=i.n(B),F=i(58),V=i.n(F),Y="undefined"!=typeof window,H=Y&&window.navigator.userAgent.toLowerCase(),W=H&&/msie|trident/.test(H),X=H&&H.indexOf("msie 9.0")>0,G=H&&H.indexOf("edge/")>0,U=H&&H.indexOf("android")>0,j=H&&/iphone|ipad|ipod|ios/.test(H),q=H&&/arkweb|harmony/.test(H),Z=H&&/chrome\/\d+/.test(H)&&!G,K=H&&/MicroMessenger/i.test(H),Q=H&&/wxwork/i.test(H),$=H&&/mucxiaoyusan/i.test(H),J=H&&/muckacabao/i.test(H),tt=H&&/mucyanxuan/i.test(H),et=$||J,it=H&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(H),nt={isIE:W,isMobile:it,isIE9:X,isEdge:G,isAndroid:U,isIOS:j,isHarmonyOS:q,isChrome:Z,isWx:K,isWxWork:Q,isApp:et,isXysApp:$,isKcbApp:J,isYxApp:tt},ot=/MucWebAutoTester/.test(window.navigator.userAgent),rt=function(){return!("undefined"==typeof window||!window)&&(/iphone/gi.test(window.navigator.userAgent)&&window.screen.height>=812)}},40:function(t,e,i){var n=i(10),o=i(2).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},44:function(t,e,i){"use strict";var n=i(16),o=i(13),r=i(50),a=i(8),s=i(18),l=i(72),h=i(27),u=i(76),c=i(3)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,i,f,g,y,m){l(i,e,f);var v,_,x,w=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},b=e+" Iterator",S="values"==g,T=!1,M=t.prototype,C=M[c]||M["@@iterator"]||g&&M[g],I=C||w(g),k=g?S?w("entries"):I:void 0,A="Array"==e?M.entries||C:C;if(A&&(x=u(A.call(new t)))!==Object.prototype&&x.next&&(h(x,b,!0),n||"function"==typeof x[c]||a(x,c,d)),S&&C&&"values"!==C.name&&(T=!0,I=function(){return C.call(this)}),n&&!m||!p&&!T&&M[c]||a(M,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 M||r(M,_,v[_]);else o(o.P+o.F*(p||T),e,v);return v}},46:function(t,e,i){var n=i(9),o=i(73),r=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(40)("iframe"),n=r.length;for(e.style.display="none",i(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:o(i,e)}},47:function(t,e,i){var n=i(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},49:function(t,e,i){t.exports=!i(5)&&!i(12)(function(){return 7!=Object.defineProperty(i(40)("div"),"a",{get:function(){return 7}}).a})},5:function(t,e,i){t.exports=!i(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},50:function(t,e,i){t.exports=i(8)},51:function(t,e,i){var n=i(6),o=i(11),r=i(74)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=o(t),l=0,h=[];for(i in s)i!=a&&n(s,i)&&h.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~r(h,i)||h.push(i));return h}},52:function(t,e,i){"use strict";var n=i(71)(!0);i(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},53:function(t,e,i){var n=i(51),o=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},54:function(t,e,i){i(77);for(var n=i(2),o=i(8),r=i(18),a=i(3)("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 h=s[l],u=n[h],c=u&&u.prototype;c&&!c[a]&&o(c,a,h),r[h]=r.Array}},55:function(t,e,i){var n=i(11),o=i(53).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==r.call(t)?s(t):o(n(t))}},56:function(t,e,i){"use strict";var n=i(2),o=i(6),r=i(5),a=i(13),s=i(50),l=i(79).KEY,h=i(12),u=i(32),c=i(27),p=i(23),d=i(3),f=i(36),g=i(37),y=i(86),m=i(81),v=i(9),_=i(10),x=i(24),w=i(11),b=i(34),S=i(22),T=i(46),M=i(55),C=i(87),I=i(35),k=i(7),A=i(15),D=C.f,P=k.f,O=M.f,L=n.Symbol,E=n.JSON,R=E&&E.stringify,N=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=u("symbol-registry"),V=u("symbols"),Y=u("op-symbols"),H=Object.prototype,W="function"==typeof L&&!!I.f,X=n.QObject,G=!X||!X.prototype||!X.prototype.findChild,U=r&&h(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(H,e);n&&delete H[e],P(t,e,i),n&&t!==H&&P(H,e,n)}:P,j=function(t){var e=V[t]=T(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,i){return t===H&&Z(Y,e,i),v(t),e=b(e,!0),v(i),o(V,e)?(i.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(o(t,N)||P(t,N,S(1,{})),t[N][e]=!0),U(t,e,i)):P(t,e,i)},K=function(t,e){v(t);for(var i,n=y(e=w(e)),o=0,r=n.length;r>o;)Z(t,i=n[o++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},$=function(t){var e=z.call(this,t=b(t,!0));return!(this===H&&o(V,t)&&!o(Y,t))&&(!(e||!o(this,t)||!o(V,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==H||!o(V,e)||o(Y,e)){var i=D(t,e);return!i||!o(V,e)||o(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],r=0;i.length>r;)o(V,e=i[r++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===H,n=O(i?Y:w(t)),r=[],a=0;n.length>a;)!o(V,e=n[a++])||i&&!o(H,e)||r.push(V[e]);return r};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(i){this===H&&e.call(Y,i),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),U(this,t,S(1,i))};return r&&G&&U(H,t,{configurable:!0,set:e}),j(t)},s(L.prototype,"toString",function(){return this._k}),C.f=J,k.f=Z,i(53).f=M.f=tt,i(25).f=$,I.f=et,r&&!i(16)&&s(H,"propertyIsEnumerable",$,!0),f.f=function(t){return j(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)d(it[nt++]);for(var ot=A(d.store),rt=0;ot.length>rt;)g(ot[rt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(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(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!W,"Object",{create:Q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=h(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),E&&a(a.S+a.F*(!W||h(function(){var t=L();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[B]||i(8)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},57:function(t,e,i){var n=i(13),o=i(0),r=i(12);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",a)}},58:function(t,e,i){t.exports={default:i(82),__esModule:!0}},59:function(t,e,i){var n=i(30),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},6:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},60:function(t,e,i){var n=i(2).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=i(66),r=i.n(o),a=i(96),s=i.n(a),l=i(28),h=i.n(l),u=i(99),c=i.n(u),p=c.a,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=function(){try{if(!h.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===r()(h()({},n)).join("")}catch(t){return!1}}()?h.a:function(t,e){for(var i,o,r=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)d.call(i,s)&&(r[s]=i[s]);if(p){o=p(i);for(var l=0;l<o.length;l++)f.call(i,o[l])&&(r[o[l]]=i[o[l]])}}return r};e.a=g},65:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},66:function(t,e,i){t.exports={default:i(94),__esModule:!0}},7:function(t,e,i){var n=i(9),o=i(49),r=i(34),a=Object.defineProperty;e.f=i(5)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},70:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},71:function(t,e,i){var n=i(30),o=i(29);t.exports=function(t){return function(e,i){var r,a,s=String(o(e)),l=n(i),h=s.length;return l<0||l>=h?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===h||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):r:t?s.slice(l,l+2):a-56320+(r-55296<<10)+65536)}}},72:function(t,e,i){"use strict";var n=i(46),o=i(22),r=i(27),a={};i(8)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:o(1,i)}),r(t,e+" Iterator")}},73:function(t,e,i){var n=i(7),o=i(9),r=i(15);t.exports=i(5)?Object.defineProperties:function(t,e){o(t);for(var i,a=r(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},74:function(t,e,i){var n=i(11),o=i(59),r=i(75);t.exports=function(t){return function(e,i,a){var s,l=n(e),h=o(l.length),u=r(a,h);if(t&&i!=i){for(;h>u;)if((s=l[u++])!=s)return!0}else for(;h>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},75:function(t,e,i){var n=i(30),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},76:function(t,e,i){var n=i(6),o=i(24),r=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},77:function(t,e,i){"use strict";var n=i(78),o=i(70),r=i(18),a=i(11);t.exports=i(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},78:function(t,e){t.exports=function(){}},79:function(t,e,i){var n=i(23)("meta"),o=i(10),r=i(6),a=i(7).f,s=0,l=Object.isExtensible||function(){return!0},h=!i(12)(function(){return l(Object.preventExtensions({}))}),u=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},p=function(t,e){if(!r(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},d=function(t){return h&&f.NEED&&l(t)&&!r(t,n)&&u(t),t},f=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},8:function(t,e,i){var n=i(7),o=i(22);t.exports=i(5)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},80:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=i(88),r=n(o),a=i(90),s=n(a),l="function"==typeof s.default&&"symbol"==typeof r.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(r.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)}},81:function(t,e,i){var n=i(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},82:function(t,e,i){var n=i(0),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},83:function(t,e,i){i(84),t.exports=i(0).Object.assign},84:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(85)})},85:function(t,e,i){"use strict";var n=i(5),o=i(15),r=i(35),a=i(25),s=i(24),l=i(47),h=Object.assign;t.exports=!h||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=n})?function(t,e){for(var i=s(t),h=arguments.length,u=1,c=r.f,p=a.f;h>u;)for(var d,f=l(arguments[u++]),g=c?o(f).concat(c(f)):o(f),y=g.length,m=0;y>m;)d=g[m++],n&&!p.call(f,d)||(i[d]=f[d]);return i}:h},86:function(t,e,i){var n=i(15),o=i(35),r=i(25);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var a,s=i(t),l=r.f,h=0;s.length>h;)l.call(t,a=s[h++])&&e.push(a);return e}},87:function(t,e,i){var n=i(25),o=i(22),r=i(11),a=i(34),s=i(6),l=i(49),h=Object.getOwnPropertyDescriptor;e.f=i(5)?h:function(t,e){if(t=r(t),e=a(e,!0),l)try{return h(t,e)}catch(t){}if(s(t,e))return o(!n.f.call(t,e),t[e])}},88:function(t,e,i){t.exports={default:i(89),__esModule:!0}},89:function(t,e,i){i(52),i(54),t.exports=i(36).f("iterator")},9:function(t,e,i){var n=i(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,i){t.exports={default:i(91),__esModule:!0}},91:function(t,e,i){i(56),i(61),i(92),i(93),t.exports=i(0).Symbol},92:function(t,e,i){i(37)("asyncIterator")},93:function(t,e,i){i(37)("observable")},94:function(t,e,i){i(95),t.exports=i(0).Object.keys},95:function(t,e,i){var n=i(24),o=i(15);i(57)("keys",function(){return function(t){return o(n(t))}})},96:function(t,e,i){t.exports={default:i(97),__esModule:!0}},97:function(t,e,i){i(98);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},98:function(t,e,i){i(57)("getOwnPropertyNames",function(){return i(55).f})},99:function(t,e,i){t.exports={default:i(100),__esModule:!0}}})});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2116)}({0:function(t,e){var i=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(t,e,i){"use strict";function n(t,e,i,n,o,r,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var h="function"==typeof t?t.options:t;e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),r&&(h._scopeId=r);var u;if(a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):o&&(u=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(h.functional){h._injectStyles=u;var c=h.render;h.render=function(t,e){return u.call(e),c(t,e)}}else{var p=h.beforeCreate;h.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:h}}e.a=n},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){i(56),t.exports=i(0).Object.getOwnPropertySymbols},101:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var h=a.exec(l)[1];h=Object(r.a)(h),n[h]=t[l]}else i[l]=t[l];return e.on=Object(o.a)(n,e.on),e.props=Object(o.a)(i,e.props),e}e.a=n;var o=i(62),r=i(102),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},102:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var o=i(28),r=i.n(o),a=i(4),s=function(t){for(var e=!1,i=!1,n=!1,o=0;o<t.length;o++){var r=t[o];e&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,n=i,i=!0,o++):i&&n&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),n=i,i=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,n=i,i=r.toUpperCase()===r&&r.toLowerCase()!==r)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=r()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},103:function(t,e,i){"use strict";function n(t,e,i,n){var r=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(o.o)(i)&&(i=[i]),t(e,r,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){r=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var o=i(4)},1033:function(t,e,i){"use strict";var n=i(120),o=i(108),r=i(65),a=i(116),s=i(304),l=i(279),h=i(21),u=i(155);e.a={name:"ActPicker",mixins:[r.a,h.a,s.a,l.a,a.a],props:{pending:{type:Boolean,default:!1}},data:function(){return{finalData:this.data.slice()}},created:function(){this._values=[],this._indexes=this.selectedIndex},methods:{confirm:function(){if(this._canConfirm()){this.hide();var t=!1,e=[],i=this.finalData.length,n=this._values.length;n!==i&&(t=!0,n>i&&(this._values.length=this._indexes.length=i));for(var o=0;o<i;o++){var r=this._getSelectIndex(this.wheels[o]);this._indexes[o]=r;var a=null,s="";this.finalData[o].length&&(a=this.finalData[o][r][this.valueKey],s=this.finalData[o][r][this.textKey]),this._values[o]!==a&&(t=!0),this._values[o]=a,e[o]=s}this.$emit("select",this._values,this._indexes,e),t&&this.$emit("value-change",this._values,this._indexes,e)}},maskClick:function(){this.maskClosable&&this.cancel()},cancel:function(){this.hide(),this.$emit("cancel")},show:function(){var t=this;if(!this.isVisible)if(this.isVisible=!0,!this.wheels||this.dirty)this.$nextTick(function(){t.wheels=t.wheels||[];for(var e=t.$refs.wheelWrapper,i=0;i<t.finalData.length;i++)t._createWheel(e,i).enable(),t.wheels[i].wheelTo(t._indexes[i]);t.dirty&&t._destroyExtraWheels(),t.dirty=!1});else for(var e=0;e<this.finalData.length;e++)this.wheels[e].enable(),this.wheels[e].wheelTo(this._indexes[e])},hide:function(){if(this.isVisible){this.isVisible=!1;for(var t=0;t<this.finalData.length;t++)this.wheels[t].disable()}},setData:function(t,e){var i=this;this._indexes=e?[].concat(e):[],this.finalData=t.slice(),this.isVisible?this.$nextTick(function(){var t=i.$refs.wheelWrapper;i.finalData.forEach(function(e,n){i._createWheel(t,n),i.wheels[n].wheelTo(i._indexes[n])}),i._destroyExtraWheels()}):this.dirty=!0},refill:function(t){var e=this,i=[];return t.length?(t.forEach(function(t,n){i[n]=e.refillColumn(n,t)}),i):i},refillColumn:function(t,e){var i=this,n=this.$refs.wheelWrapper,o=n.children[t].querySelector(".act-picker-wheel-scroll"),r=!!this.wheels&&this.wheels[t],a=0;if(o&&r){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=r.getSelectedIndex();if(s.length)for(var h=s[l][this.valueKey],u=0;u<e.length;u++)if(e[u][this.valueKey]===h){a=u;break}this._indexes[t]=a,this.$nextTick(function(){r=i._createWheel(n,t),r.wheelTo(a)})}return a},scrollTo:function(t,e){var i=this.wheels[t];this._indexes[t]=e,i.wheelTo(e)},refresh:function(){var t=this;this.$nextTick(function(){t.wheels.forEach(function(t){t.refresh()})})},_createWheel:function(t,e){var i=this;if(this.wheels[e])this.wheels[e].refresh();else{var o=this.wheels[e]=new n.default(t.children[e],{wheel:{selectedIndex:this._indexes[e]||0,wheelWrapperClass:"act-picker-wheel-scroll",wheelItemClass:"act-picker-wheel-item"},swipeTime:this.swipeTime,observeDOM:!1,useTransition:u.a});o.on("scrollStart",function(){o.inScroll=!0}),o.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(o)),o.inScroll=!1})}return this.wheels[e]},_destroyExtraWheels:function(){var t=this.finalData.length;if(this.wheels.length>t){this.wheels.splice(t).forEach(function(t){t.destroy()})}},_canConfirm:function(){return!this.pending&&this.wheels.every(function(t){return u.a?!t.isInTransition:!(t.inScroll||t.isInTransition)})},_getFlexOrder:function(t){return t[0]?t[0][this.orderKey]:0},_getSelectIndex:function(t){var e=t.y;return u.a?t.getSelectedIndex():e>t.minScrollY?0:e<t.maxScrollY?t.items.length-1:Math.round(Math.abs(e/t.itemHeight))}},beforeDestroy:function(){this.wheels&&this.wheels.forEach(function(t){t.destroy()}),this.wheels=null},components:{ActPopup:o.a}}},104:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},105:function(t,e,i){var n=i(26),o=i(3)("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},106:function(t,e,i){"use strict";var n=i(21),o=i(65);e.a={name:"ActPopup",mixins:[n.a,o.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},108:function(t,e,i){"use strict";function n(t){s||i(125)}var o=i(106),r=i(126),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,null,null);h.options.__file="src\\components\\common\\popup.vue",e.a=h.exports},11:function(t,e,i){var n=i(47),o=i(29);t.exports=function(t){return n(o(t))}},115:function(t,e,i){var n=i(105),o=i(3)("iterator"),r=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},116:function(t,e,i){"use strict";function n(t){t.preventDefault()}var o={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=o},117:function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},1197:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),o=i(1198);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createPicker=Object(n.a)(o.a,t)},e.default=o.a},1198:function(t,e,i){"use strict";function n(t){s||i(1199)}var o=i(1033),r=i(1200),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-65cf9f1c",null);h.options.__file="src\\components\\Picker\\src\\index.vue",e.a=h.exports},1199:function(t,e){},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(162);e.default=n.a},1200:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"act-picker-fade"}},[i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[i("transition",{attrs:{name:"act-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"act-picker-choose"},[i("span",{staticClass:"act-picker-cancel",style:{color:t.cancelColor},on:{click:t.cancel}},[t._v(t._s(t._cancelTxt))]),t._v(" "),i("span",{staticClass:"act-picker-confirm",style:{color:t.confirmColor},on:{click:t.confirm}},[t._v(t._s(t._confirmTxt))]),t._v(" "),i("div",{staticClass:"act-picker-title-group"},[i("h1",{staticClass:"act-picker-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.subtitle?i("h2",{staticClass:"act-picker-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])]),t._v(" "),i("div",{staticClass:"act-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"act-picker-wheel-wrapper"},t._l(t.finalData,function(e,n){return i("div",{key:n,style:{order:t._getFlexOrder(e)}},[i("ul",{staticClass:"act-picker-wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"act-picker-wheel-item",domProps:{innerHTML:t._s(e[t.textKey])}})}),0)])}),0)]),t._v(" "),i("div",{staticClass:"act-picker-footer"})])])],1)],1)},o=[];n._withStripped=!0},125:function(t,e){},126:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];n._withStripped=!0},13:function(t,e,i){var n=i(2),o=i(0),r=i(38),a=i(8),s=i(6),l=function(t,e,i){var h,u,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?o:o[e]||(o[e]={}),_=v.prototype,x=d?n:f?n[e]:(n[e]||{}).prototype;d&&(i=e);for(h in i)(u=!p&&x&&void 0!==x[h])&&s(v,h)||(c=u?x[h]:i[h],v[h]=d&&"function"!=typeof x[h]?i[h]:y&&u?r(c,n):m&&x[h]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?r(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[h]=c,t&l.R&&_&&!_[h]&&a(_,h,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},14:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(o.a)(i),l=Object(r.a)(e,t,s,n),h=l.$parent,u=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,u&&u.call(this),h.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var o=i(101),r=i(103)},143:function(t,e,i){t.exports={default:i(189),__esModule:!0}},15:function(t,e,i){var n=i(51),o=i(33);t.exports=Object.keys||function(t){return n(t,o)}},155:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(4),o=function(){var t=!0;if(n.H.isIOS){var e=Object(n.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},1585:function(t,e,i){"use strict";var n=i(66),o=i.n(n),r=i(143),a=i.n(r),s=i(4),l=i(2118),h=i(2125),u=i(2132),c=i(1197);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},agePickerData:[],selectIndex:10}},components:{benefit:h.a,GoldCostTable:u.a,goldPicker:c.default},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},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}},notShowLineTypes:{type:Array,default:function(){return[]}},benefitBtnShow:{type:Boolean,default:!0}},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.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var o=this.chartConfig[n];if(!o.colsType)return!1;(this.tables.colsType.includes(o.colsType)||this.tables.colsType.includes(o.colsType+""))&&(1==~~o.showType&&(t+=1),2==~~o.showType&&(e+=1),3==~~o.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,o,r,a){e=o,i=a,n=r}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),o=n.firstParamColsType,r=n.secondParamColsType,a=n.operator;if(void 0!==o&&void 0!==r&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,h=[];if(s=this.findTablesIndex(o,i.colsType),l=this.findTablesIndex(r,i.colsType),void 0!==s&&void 0!==l)return i.rows.forEach(function(t,e){var i=void 0;switch(a){case"+":i=t[s]+t[l];break;case"-":i=t[s]-t[l];break;case"/":i=t[s]/t[l];break;case"*":i=t[s]*t[l]}h.push(Number(i).toFixed(1))}),h}},initConfig:function(t,e){var i=this;if(t&&e){for(var n=[],o=[],r=[],h=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),u=Object(s.c)(h.showType2),c=Object(s.c)(h.showType3),p=t,d=Array.isArray(p),f=0,p=d?p:a()(p);;){var g;if(d){if(f>=p.length)break;g=p[f++]}else{if(f=p.next(),f.done)break;g=f.value}var y=g;(function(o){var a=void 0,p=o.colsType,d=i.findTablesIndex(p,e.colsType);if(!d)return"continue";var f=Number(o.showType),g=o.name||l.c[p],y=o.titleName||o.name||l.c[p],m=i.getExpressionData(o.tipsExpression,t,e),v=o.lineStyle,_=o.boxConfig;if(!(2!==f||v&&_)){u.length||(u=Object(s.c)(h.showType2));var x=u.shift();v=x.lineStyle,_=x.boxConfig}if(3===f&&!v){c.length||(c=Object(s.c)(h.showType3));v=c.shift().lineStyle}r.push(g);var w=[],b=o.multcolType||0;if(31===b){var S=o.multValues||[],T=i.findTablesIndex(b,e.colsType);T&&S.length&&(w=S.map(function(t){var i=e.rows.findIndex(function(e){return t===Math.floor(e[T])});return-1===i?{coord:[],value:0}:{coord:[i,e.rows[i][d]],value:t}}))}var M=!0;i.notShowLineTypes.includes(p)&&(M=!1),a={showType:f,colsType:p,name:g,titleName:y,problemText:o.problemText,tableRowIndex:d,lineStyle:v,boxConfig:_,tipsText:o.tipsText,markPoint:w,displayLine:M,negativeText:o.negativeText||""},m&&(a.expressionData=m),n.push(a)})(y)}var m=e.rows.map(function(t){for(var e=[],i=n,r=Array.isArray(i),s=0,i=r?i:a()(i);;){var l;if(r){if(s>=i.length)break;l=i[s++]}else{if(s=i.next(),s.done)break;l=s.value}var h=l;1===h.showType&&o.push(t[h.tableRowIndex]),e.push(t[h.tableRowIndex])}return e});return m.unshift(r),{chartConfig:n,dataSource:m,xAxisData:o}}}},watch:{tables:{handler:function(t){if(t&&o()(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}}}},1586:function(t,e,i){"use strict";var n=i(66),o=i.n(n),r=i(2127),a=i(4);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:r.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},benefitBtnShow:{type:Boolean,default:!0},unit:{default:"周岁",type:String},note:{default:"",type:String},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},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:{getNum:function(t,e,i){var n=Math.round(100*this.pureDataSource[t][e])/100;return n<0&&i.negativeText?i.negativeText:(this.percentageTypes.includes(Number(i.colsType))&&(n+="%"),n)},showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];this.dialog?this.dialog.setData(t,e):this.dialog=this.$createGoldDialog({title:t,content:e,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 i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+30))break;var o=parseInt(getComputedStyle(i).fontSize);if(o<=12)break;i.style.fontSize=o-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&o()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1587:function(t,e,i){"use strict";var n=i(66),o=i.n(n),r=i(143),a=i.n(r),s=i(104),l=i.n(s),h=i(4),u=i(2129);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],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=n/375*10;return n?t*o: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=this,e=[],i=[],n=this.getXAxisName(),o=this.getTooltipName(),r=0;r<this.chartConfig.length;r++){var s=this.chartConfig[r];if([2,3].includes(s.showType)&&s.displayLine){var c={};Object(h.o)(s.lineStyle.areaStyleColor)?c.color=new u.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(h.B)(s.lineStyle.areaStyleColor)&&(c.color=s.lineStyle.areaStyleColor),e.push({name:s.name,type:"line",smooth:!0,symbol:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:s.name},lineStyle:{width:1,color:s.lineStyle.lineColor},emphasis:{lineStyle:{color:s.lineStyle.lineColor}},zlevel:s.lineStyle.zIndex,z:s.lineStyle.zIndex,areaStyle:c.color?c:void 0,markPoint:{symbol:"circle",showSymbol:!0,symbolSize:[this.remToPxBased10Px(.8),this.remToPxBased10Px(.8)],symbolOffset:["-10%","-10%"],silent:!0,data:s.markPoint.map(function(e){return l()({itemStyle:{color:"#ffab11",borderWidth:t.remToPxBased10Px(.21),borderType:"solid",borderColor:"#FFEAC3"},label:{show:!0,position:"top",formatter:"{c}倍",backgroundColor:"#FFAB11",color:"#fff",borderRadius:t.remToPxBased10Px(.21),fontSize:t.remToPxBased10Px(1),width:t.remToPxBased10Px(2.8),height:t.remToPxBased10Px(1.5),borderWidth:t.remToPxBased10Px(.11),borderType:"solid",borderColor:"#FFEAC3",lineHeight:t.remToPxBased10Px(1.5)}},e)})}}),i.push({name:s.name,icon:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle"})}}var p={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.4)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:i,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,i,n,o){return t[0]>o.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,i=Array.isArray(e),n=0,e=i?e:a()(e);;){var r;if(i){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var s=r;if(s.seriesName===o){var l=s.encode.y[0],h=s.value[l];return o+"<br>"+h+"元"}}}},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:e};this.chart.setOption(p),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=u.init(this.$refs.chart,null,{renderer:"svg"}),this.setEcharts(),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[0]))})},watch:{dataSource:{handler:function(t){var e=this;o()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1588:function(t,e,i){"use strict";var n=i(120);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 i=document.querySelector(".cost-scroll");i&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new n.default(i,{})})}}}}},16:function(t,e){t.exports=!0},162:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var o=0;o<i.length;o++){var r=i[o];for(var a in r)t[a]=r[a]}return t}function r(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==N&&("standard"===N?"transitionEnd"===t?"transitionend":t:N+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function h(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function u(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function d(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function f(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),o(a,r)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var r={};n&&(r.screenX=n.screenX||0,r.screenY=n.screenY||0,r.clientX=n.clientX||0,r.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,o({bubbles:s,cancelable:l},r))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function y(t){g(t,"dblclick")}function m(t,e){e.firstChild?v(t,e.firstChild):e.appendChild(t)}function v(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,o,r,a){var s=t-e,l=Math.abs(s)/i,h=a.deceleration,u=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,d=a.swipeTime,f=d,g=p?4:15,y=t+l/h*(s<0?-1:1);return p&&u&&(y=Math.round(y/u)*u),y<n?(y=r?Math.max(n-r/4,n-r/g*l):n,f=c):y>o&&(y=r?Math.min(o+r/4,o+r/g*l):o,f=c),{destination:Math.round(y),duration:f}}function w(){}function b(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function M(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function C(t){if(t&&t.classList)return t.classList.contains("tombstone")}function I(t,e){var i=this;this.options=e,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function k(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||b("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||b("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var A=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,N=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),B=s("transform"),z=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),V=!1!==B,Y=P&&s("transition")in R,H={transform:B,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},W=1,X={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},G={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:F,disableTouch:!F,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},U={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},j=function(){return P?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),q=function(){return P?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),Z=1,K=-1,Q=1,$=-1,J=1,tt=3;M.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},M.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},M.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[H.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},M.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},M.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[H.transitionDuration]=t+"ms"},M.prototype.transitionTimingFunction=function(t){this.indicatorStyle[H.transitionTimingFunction]=t},M.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},M.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(l),this.scroller.trigger("beforeScrollStart")},M.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+i,r=this.y+n;this._pos(o,r)},M.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(h);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,o=void 0===n?U.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,a,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},M.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},M.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},M.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},M.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},M.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t),this._handleMoveEvents(t)},M.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},M.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;I.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,o=i.index;e<0?(n-=30,o+=10):(n-=10,o+=30),this.fill(n,o),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var o=this.items[n].node,r=this.items[n].data;o&&!C(o)||r||(t||(t=n),o&&this.scrollerEl.removeChild(o))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(C(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},I.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var n=this.items[i].node,o=this.items[i].data;if(n){if(!C(n)||!o)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var r=o?this.options.render(o,t.pop()):this._getTombStone();r.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(r),this.items[i].node=r}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var o=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,o[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var r=this.firstAttachedItem;r<this.lastAttachedItem;r++){var a=t[r];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[r].width/this.tombstoneWidth+", "+this.items[r].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[r].top&&(a||(this.items[r].node.style.transition=""),this.items[r].node.style.transform="translateY("+e+"px)"),this.items[r].top=e,e+=this.items[r].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=r(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=o({},G,t),this.translateZ=this.options.HWCompositing&&z?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&Y,this.options.useTransform=this.options.useTransform&&V,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),F&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,H.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],o=e&&!t.pulling?"none":"auto",r=0;r<n.length;r++)n[r].style.pointerEvents=o}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,o=!1,r=0;r<i.length;r++){var a=i[r];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){o=!0;break}}n?t.refresh():o&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,r=i.height;n===t&&o===r||this.refresh(),n=t,o=r,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,o=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(d(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=u(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(k),function(t){t.prototype._start=function(t){var e=X[t.type];if((e===W||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,o=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=o;var r=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&r<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(r>a+this.options.directionLockThreshold?this.directionLocked="h":a>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=o>0?K:o<0?Z:0;var l=this.x+i,h=this.y+o,u=!1,c=!1,p=!1,d=!1,f=this.options.bounce;!1!==f&&(u=void 0===f.top||f.top,c=void 0===f.bottom||f.bottom,p=void 0===f.left||f.left,d=void 0===f.right||f.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&d?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(h>this.minScrollY||h<this.maxScrollY)&&(h=h>this.minScrollY&&u||h<this.maxScrollY&&c?this.y+o/3:h>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,h),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===J&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>J&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,y=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,m=this.pointX-g,v=this.pointY-y;(m>document.documentElement.clientWidth-this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||v>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),o=e-this.absStartX,r=i-this.absStartY;if(this.directionX=o>0?$:o<0?Q:0,this.directionY=r>0?K:r<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,U.bounce)){this._translate(e,i),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),l=Math.abs(i-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&l<this.options.flickLimitDistance)return void this.trigger("flick");var h=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(l>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var u=!1,c=!1,p=!1,f=!1,g=this.options.bounce;!1!==g&&(u=void 0===g.top||g.top,c=void 0===g.bottom||g.bottom,p=void 0===g.left||g.left,f=void 0===g.right||g.right);var y=this.directionX===$&&p||this.directionX===Q&&f?this.wrapperWidth:0,m=this.directionY===K&&u||this.directionY===Z&&c?this.wrapperHeight:0,v=this.hasHorizontalScroll?x(this.x,this.startX,a,this.maxScrollX,this.minScrollX,y,this.options):{destination:e,duration:0},_=this.hasVerticalScroll?x(this.y,this.startY,a,this.maxScrollY,this.minScrollY,m,this.options):{destination:i,duration:0};e=v.destination,i=_.destination,h=Math.max(v.duration,_.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,h=this.options.wheel.adjustTime||400);var w=U.swipe;if(this.options.snap){var b=this._nearestSnap(e,i);this.currentPage=b,h=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-b.x),1e3),Math.min(Math.abs(i-b.y),1e3)),300),e=b.x,i=b.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||U.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(w=U.swipeBounce),void this.scrollTo(e,i,h,w);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var i=Math.abs(Math.round(this.y/this.itemHeight)),o=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+o]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,U.swipe),!0}if(!e){var r=this.options.dblclick,a=!1;if(r&&this.lastClickTime){var s=r.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,y(t))}return this.options.tap&&f(t,this.options.tap),this.options.click&&!d(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=j(t)}q(this.probeTimer),this.probeTimer=j(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[H.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[H.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,U.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,i){if(S(!r(t)&&!r(e),"Translate x or y is null or undefined."),r(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[H.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,o=void 0===n?25:n,a=0;a<this.items.length;a++){var s=o*(e/this.itemHeight+a);this.items[a].style[H.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,o){function r(){var d=n();if(d>=p)return a.isAnimating=!1,a._translate(t,e,u),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));d=(d-c)/i;var f=o(d),g=(t-s)*f+s,y=(e-l)*f+l,m=(u-h)*f+h;a._translate(g,y,m),a.isAnimating&&(a.animateTimer=j(r)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,h=this.lastScale,u=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),r()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&this.options.probeType===tt&&this._startProbe(),i||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,U.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,i,n.fn)},t.prototype.scrollToElement=function(t,e,i,n,o){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var r=u(t);r.left-=this.wrapperOffset.left,r.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),r.left-=i||0,r.top-=n||0,r.left=r.left>this.minScrollX?this.minScrollX:r.left<this.maxScrollX?this.maxScrollX:r.left,r.top=r.top>this.minScrollY?this.minScrollY:r.top<this.maxScrollY?this.maxScrollY:r.top,this.options.wheel&&(r.top=Math.round(r.top/this.itemHeight)*this.itemHeight),this.scrollTo(r.left,r.top,e,o)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var o=this.y,r=Math.round(o);return!this.hasVerticalScroll||r>this.minScrollY?o=this.minScrollY:r<this.maxScrollY&&(o=this.maxScrollY),(i!==this.x||o!==this.y)&&(this.scrollTo(i,o,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[H.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(k),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),o=0;o<i;o++){var r=n[o],a=A(r,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(k),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(m(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,o=e.stepY||t.wrapperHeight,r=0,a=void 0,s=void 0,l=void 0,h=0,u=void 0,c=0,d=void 0,f=void 0;if(n)for(u=n.length,d=-1;h<u;h++)f=p(n[h]),(0===h||f.left<=p(n[h-1]).left)&&(c=0,d++),t.pages[c]||(t.pages[c]=[]),r=Math.max(-f.left,t.maxScrollX),a=Math.max(-f.top,t.maxScrollY),s=r-Math.round(f.width/2),l=a-Math.round(f.height/2),t.pages[c][d]={x:r,y:a,width:f.width,height:f.height,cx:s,cy:l},r>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(o/2);r>-t.scrollerWidth;){for(t.pages[h]=[],u=0,a=0;a>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(r,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:o,cx:r-s,cy:a-l},a-=o,u++;r-=i,h++}t._checkSnapLoop();var g=e._loopX?1:0,y=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||y,0);var m=e.threshold;m%1==0?(t.snapThresholdX=m,t.snapThresholdY=m):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*m),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*m))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&b("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var o=0;o<n;o++)if(e>=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],o=this.options.snap;if(o&&this.pages&&this.pages.length&&(n=n||o.easing||U.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var r=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:r,y:a,pageX:t,pageY:e},this.scrollTo(r,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var o=this.options.snap;if(o&&this.pages&&this.pages.length){if(o.loop){var r=void 0;o._loopX?(r=this.pages.length-2,t>=r?t=r-1:t<0&&(t=0),t+=1):(r=this.pages[0].length-2,e>=r?e=r-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?o({},this.currentPage,{pageX:this.currentPage.pageX-1}):o({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(k),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,b("wheel option selectedIndex is required!"))}}(k),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,o=e.interactive,r=void 0!==o&&o;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:r},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:r},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(k),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,i=void 0===e?90:e,n=t.stop,o=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,o,this.options.bounceTime,U.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,U.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(k),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,i=this.options.pullUpLoad.threshold,n=void 0===i?0:i;this.movingDirectionY===Z&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(k),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(l),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(h)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var i=this.options.mouseWheel,n=i.speed,o=void 0===n?20:n,r=i.invert,a=void 0!==r&&r,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var h=void 0,u=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(h=-t.deltaX*o,u=-t.deltaY*o):(h=-t.deltaX,u=-t.deltaY);break;case"wheelDeltaX"in t:h=t.wheelDeltaX/120*o,u=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:h=u=t.wheelDelta/120*o;break;case"detail"in t:h=u=-t.detail/3*o;break;default:return}var c=a?-1:1;h*=c,u*=c,this.hasVerticalScroll||(h=u,u=0);var p=void 0,d=void 0;if(this.options.snap)return p=this.currentPage.pageX,d=this.currentPage.pageY,h>0?p--:h<0&&p++,u>0?d--:u<0&&d++,void this._goToPage(p,d);p=this.x+Math.round(this.hasHorizontalScroll?h:0),d=this.y+Math.round(this.hasVerticalScroll?u:0),this.movingDirectionX=this.directionX=h>0?-1:h<0?1:0,this.movingDirectionY=this.directionY=u>0?-1:u<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var f=this.y===d;this.scrollTo(p,d,l,U.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),f&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},l))}}}(k),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,i=void 0===e?1:e,n=t.min,o=void 0===n?1:n,r=t.max,a=void 0===r?4:r;this.scale=Math.min(Math.max(i,o),a),this.setScale(this.scale),this.scrollerStyle[H.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var o=t/(n||this.scale);this.setScale(t),this.refresh();var r=Math.round(this.startX-(e-this.relativeX)*(o-1)),a=Math.round(this.startY-(i-this.relativeY)*(o-1));r>this.minScrollX?r=this.minScrollX:r<this.maxScrollX&&(r=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===r&&this.y===a||this.scrollTo(r,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),o=n.left,r=n.top,a=e+o-this.x,s=i+r-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,o),this.startScale=this.scale;var r=c(this.wrapper),s=r.left,l=r.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY),r=a(n,o),s=r/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,h=l.min,u=void 0===h?1:h,c=l.max,p=void 0===c?4:c;s<u?s=.5*u*Math.pow(2,s/u):s>p&&(s=2*p*Math.pow(.5,p/s));var d=s/this.startScale,f=this.startX-(this.originX-this.relativeX)*(d-1),g=this.startY-(this.originY-this.relativeY)*(d-1);this.setScale(s),this.scrollTo(f,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,o=e.max,r=void 0===o?4:o,a=this.scale>r?r:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(k),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(k),k.Version="1.12.6",e.a=k},18:function(t,e){t.exports={}},189:function(t,e,i){i(54),i(52),t.exports=i(190)},190:function(t,e,i){var n=i(9),o=i(115);t.exports=i(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},2:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},21:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,i){e?t.show():i&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}}};e.a=n},2116:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),o=i(2117);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=Object(n.a)(o.a,t)},e.default=o.a},2117:function(t,e,i){"use strict";var n=i(1585),o=i(2135),r=i(1),a=Object(r.a)(n.a,o.a,o.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2118:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2119),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2120),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2121),zIndex:3}}]},o={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2122),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2123),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2124),zIndex:3}}]},r={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2119:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAgRJREFUSEtjZCACNDAwMMWbeomx/2MWYPj/jxFFCyPT/59Mfz8sPL3tVQMDwz9CxqFqRlP9StuB5w87tywhQ5DlWX5+fSx29cAXXHpwWvjM2E2D4T8rXgfhdAjj7/9SZ3fdwCaPYeAZY2NWqf8SKqT4CpfaZ4wv7picPfsbWR7FQmpaBrME3VIUC58ZeWtSw2foZkid23odJga3kFCcMfLzMYmunzWRmZ/HGdnAvx+/7H0dmJb//+Mn3CkUKU7BFhJKjRIHVkxl5OVxxOf7/5+/7H/hEJGNSw0s9YItxBeUkqc3HWVgYhIEG3TwJAPD7OUMDP//Q8xlZGRgSI1kYLA3h/D//Xv/3NTPGpeloKBlBGXqNCNvdWyKUHwWX8TA8OcvdrNYmBkYFvaB5fD5dNa5rTcZ75t6SbD/ZYT4AAmA4kxi37IrYCF8lsH0IFn6wilKB1uc/mT+/57xmbGvBkZxxcDAILZvxWRwAgEF46xlxCXe9CgGBjtzBlBCeuUUkYuhiZHpPyOu+JM8u+UaWENMASLOCFkLitMlE8Cqnhv7aGFTTtjC6HxC1qDKL5041CykepBSM9GkRYHzJN5EQ/dsQfeMD0pSdC3aQBbSvfAG+5JAk4Kq1RMs59K1AgZZSvcmBrUtJdiIQi4UCcUp3gKWlGYiskGEUi82S8luCCMbRs2mPgATfE9ommN9bQAAAABJRU5ErkJggg=="},2120:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAflJREFUSEtjZCAKNDBlhZaIMbH8E/j3j5ERWQsT0/////4wfZi2uucVA0PDP0LGoWhGV5wV+oqHgYlTlpAhKPL/vj+etlrsCy49OC1MC/6kwcKC6htiLf7z5///WWv5bmBTj2FhWtp/VpaPX1SINRyfuj/8PHdmzWL8jawGxUJqWgazBN1SFAuzwj9rUsNn6GZMW8l7HSYGt5BQnPHyMTDV9nFP5OZhdEY28OuX/3ubi77mf/7EgDOFIscp2EJCqbFnLs9UTm4GR3y+//6VYX9J8pdsnGqgqRdiIZ6gnLyM5ygTE4MgSN2V8z8Zdm36xvD/P8RYUBp28+Ni0DFkB/P//WN4nxv1xRqXpaCgZWRgaGDKCi9Wx6YI2Wf9ze8Z/v3FbhQTMwNDYS3YTQz4fDptZe9NxqzQLxIMTP8hqpEAKM46ZvFcAQnhswymBdnSirQvOljj9B/je8acyE8a6MUVyJCuOdyTQQkEFIw7N34jKvG6+0OCF5SQylK+5qJrAhWDjLjib+oKnmsgDX2N7+FxRshWUJwW1UMCKzviixY29QQt7G14T8geFPnihqFmIdWDlP6Jht7Zgu4ZfwCKtgEovEG+pGv1BMu5dK2Awb6kYnsG5gm8TQxqW0qwEYVcKBKKU3wFLEnNRGSDCDU9sFpKbkMY1TDqNfUBayRb+GkJOFQAAAAASUVORK5CYII="},2121:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2122:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAfxJREFUSEvVlrkvBFEcx79v7cQRLI1odBLr6MSxVCKOgtY/oEBEWFEim1CJWBsRFP4BrcYRUWER3boSnU7DIo7M2ifzxjBvd+Y9Ky+bmG7md3zmd733I/jFQ0PwoKChDPneEiQo4Uy8hOI18YCX0zsSQlLmjjdO0aah2kL4iipkTjh5/OmWhM6f3WxcgXS+3o8cTfhDrj/yoVMycXblJE9zSNfqNbxolRlF5aZcoN+QgTPdLuaASmEWJQXKA8PN1UoiS3FCgtFL69M3UFozzedB/0YEecXtnL+3xz2s941Cj7t3qK2mDCjtxqGdZeQWtQmjf3/ax0rnsKvOV/eaQFEqRw8OQDylzFFsE9idBSg1/RICdEwCdb3mO03eI9La6joSweglYUPta65yVLJHttgCJBPOvjxeYOzQlIkijUevCZ1rKIeWY0Zgf4yaDW/F2CcRzLKxQ5e76xxrqn/cE7oU8KcdV4aTwe0l1iBGGndmfte8XdNAbQ9gNNJq10iakZdQ4lq/saMLZhBu+qmZDGvUNHhsai0GapzU5cCFRhmGl4+f/Deg8pSqbJrOKXMmhU2T9bHI9uCzEymbRxsDylYJ1Yc3g8pWCpXXkzW5wtRmNv6ctuMFzKJUuc9YSNGKoRwqW6LseZDWVJTiTNZEDirrXifoXxdhHqxu1f8E1v4qfGBe9yAAAAAASUVORK5CYII="},2123:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAghJREFUSEtjZCACNDAwMJUkeIn9Y2AWYPz7jxFZy39mpv9MDH8/9CzY9qqBgeEfIeNQNKMrfhXqwMPJwS1LyBBk+e8/vj4WW33gCy49OC38FOmmwcjCitdBuAz9/+f3f77lu25gk8cw8H+aMeuX7xIqpPgKl1oezhd3GGed/Y0sjxofVLQMZgm6pSgWfo711qSGz9DN4F289TpMDG4hwTjj42Pi7pw1kZGbxxkllX79svdreVo+w6dPOFMocpyCLSSUGnmmr5jKwM3jiNf3X7/s/5IZkY1LDSz1gi3EF5Q8CzYdZWBiEgSp+3VwD8P32RMZGP7/h5jLyMjAmZrPwGbvAuH/+/f+S4KfNS5LQUHLCMrUxbHe6tgUIfvsY3wAA8OfP9jNYmFh4F+4ASKHx6e9i7feZPyS4CXx/y8j2AcogI+PiWfKsisgMbyWwTQhWfolJ0oHW5wyMv9/z/gpwVcDvbgCmcE9fcVkUAIBB+OsCUQlXs70AgY2OxeG/6CElBmRi64JVAwy4oo/nkVbroF9F+OLiDNC1jIyMvAv2QxW9SXORwubcsIWRvsQsgZFnn/plqFmIbWDlKqJJq0AnCfxJhq6Zwu6Z3y6F20gC+leeIMspWv1BMu5dK2AQZZSsz0D8wTeJga1LSXYiEIuFAnGKZ4SlqRmIrI5hFIvNjvJbggjG0bNpj4ANlBfOpfc/OcAAAAASUVORK5CYII="},2124:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2125:function(t,e,i){"use strict";function n(t){s||i(2126)}var o=i(1586),r=i(2131),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-8a13b6be",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=h.exports},2126:function(t,e){},2127:function(t,e,i){"use strict";function n(t){s||i(2128)}var o=i(1587),r=i(2130),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-5bf23e30",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=h.exports},2128:function(t,e){},2129:function(t,e,i){(function(t){!function(t,i){i(e)}(0,function(e){"use strict";function i(t,e){function i(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Af(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function n(t){for(var e in zf)t[e]&&(zf[e]=t[e])}function o(){return Kf++}function r(){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,i=Yf.call(t);if("[object Array]"===i){if(!Y(t))for(var e=[],n=0,o=t.length;n<o;n++)e[n]=a(t[n])}else if(Vf[i]){if(!Y(t)){var r=t.constructor;if(r.from)e=r.from(t);else for(e=new r(t.length),n=0,o=t.length;n<o;n++)e[n]=t[n]}}else if(!Ff[i]&&!Y(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Zf&&(e[s]=a(t[s]));return e}function s(t,e,i){if(!M(e)||!M(t))return i?a(e):t;for(var n in e){var o,r;e.hasOwnProperty(n)&&n!==Zf&&(o=t[n],!M(r=e[n])||!M(o)||x(r)||x(o)||k(r)||k(o)||C(r)||C(o)||Y(r)||Y(o)?!i&&n in t||(t[n]=a(e[n])):s(o,r,i))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==Zf&&(t[i]=e[i]);return t}function h(t,e,i){for(var n=v(e),o=0;o<n.length;o++){var r=n[o];(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n,o=t.prototype;for(n in i.prototype=e.prototype,t.prototype=new i,o)o.hasOwnProperty(n)&&(t.prototype[n]=o[n]);(t.prototype.constructor=t).superClass=e}function p(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o];"constructor"!==r&&(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}else h(t,e,i)}function d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Wf)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function g(t,e,i){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===Uf)return t.map(e,i);for(var n=[],o=0,r=t.length;o<r;o++)n.push(e.call(i,t[o],o,t));return n}function y(t,e,i,n){if(t&&e){for(var o=0,r=t.length;o<r;o++)i=e.call(n,i,t[o],o,t);return i}}function m(t,e,i){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===Xf)return t.filter(e,i);for(var n=[],o=0,r=t.length;o<r;o++)e.call(i,t[o],o,t)&&n.push(t[o]);return n}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}function _(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(Gf.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 T(t){return"number"==typeof t}function M(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function C(t){return!!Ff[Yf.call(t)]}function I(t){return!!Vf[Yf.call(t)]}function k(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function A(t){return null!=t.colorStops}function D(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 i=0,n=t.length;i<n;i++)if(null!=t[i])return t[i]}function E(t,e){return null!=t?t:e}function R(t,e,i){return null!=t?t:null!=e?e:i}function N(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Gf.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[Jf]=!0}function Y(t){return t[Jf]}function H(){this.data={}}function W(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=x(t),n=(this.data=new(eg?Map:tg),this);t instanceof W?t.each(e):t&&f(t,e)}function X(t){return new ig(t)}function G(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var o=t.length,n=0;n<e.length;n++)i[n+o]=e[n];return i}function U(t,e){var i,t=Object.create?Object.create(t):((i=function(){}).prototype=t,new i);return e&&l(t,e),t}function j(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function q(t,e){return t.hasOwnProperty(e)}function Z(){}function K(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Q(t){return[t[0],t[1]]}function $(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function J(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function tt(t){return Math.sqrt(et(t))}function et(t){return t[0]*t[0]+t[1]*t[1]}function it(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function nt(t,e){var i=tt(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ot(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 at(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function st(t,e,i){var n=e[0],e=e[1];return t[0]=i[0]*n+i[2]*e+i[4],t[1]=i[1]*n+i[3]*e+i[5],t}function lt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function ht(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[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 ct(t){t&&(this._$eventProcessor=t)}function pt(t,e,i,n,o,r){var a,s=n+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/cg),t[i][a];for(var h=n|1<<i,u=i+1;n&1<<u;)u++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[i][p]*pt(t,e-1,u,h,o|f,r),d++)}return r[s]=c}function dt(t,e){var i=[[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]]],n={},o=pt(i,8,0,0,0,n);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*pt(i,7,0===a?1:0,1<<a,1<<s,n)/o*e[a];return function(t,e,i){var n=e*r[6]+i*r[7]+1;t[0]=(e*r[0]+i*r[1]+r[2])/n,t[1]=(e*r[3]+i*r[4]+r[5])/n}}}function ft(t,e,i,n,o){if(e.getBoundingClientRect&&Pf.domSupported&&!gt(e)){var r=e[pg]||(e[pg]={}),e=function(t,e,i){for(var n=i?"invTrans":"trans",o=e[n],r=e.srcCoords,a=[],s=[],l=!0,h=0;h<4;h++){var u=t[h].getBoundingClientRect(),c=2*h,p=u.left,u=u.top;a.push(p,u),l=l&&r&&p===r[c]&&u===r[1+c],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&o?o:(e.srcCoords=a,e[n]=i?dt(s,a):dt(a,s))}(function(t,e){var i=e.markers;if(!i){i=e.markers=[];for(var n=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,h=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[h]+":0",n[1-l]+":auto",o[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}}return i}(e,r),r,o);if(e)return e(t,i,n),!0}return!1}function gt(t){return"CANVAS"===t.nodeName.toUpperCase()}function yt(t){return null==t?"":(t+"").replace(fg,function(t,e){return gg[e]})}function mt(t,e,i,n){return i=i||{},n?vt(t,e,i):vg&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):vt(t,e,i),i}function vt(t,e,i){if(Pf.domSupported&&t.getBoundingClientRect){var n,o=e.clientX,e=e.clientY;if(gt(t))return n=t.getBoundingClientRect(),i.zrX=o-n.left,void(i.zrY=e-n.top);if(ft(mg,t,o,e))return i.zrX=mg[0],void(i.zrY=mg[1])}i.zrX=i.zrY=0}function _t(t){return t||window.event}function xt(t,e,i){var n;return null==(e=_t(e)).zrX&&((n=e.type)&&0<=n.indexOf("touch")?(n=("touchend"!==n?e.targetTouches:e.changedTouches)[0])&&mt(t,n,e,i):(mt(t,e,e,i),n=function(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,t=t.deltaY;return null!=i&&null!=t?3*(0!==t?Math.abs(t):Math.abs(i))*(0<t||!(t<0)&&0<i?-1:1):e}(e),e.zrDelta=n?n/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&yg.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function wt(){this._track=[]}function bt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function St(){return[1,0,0,1,0,0]}function Tt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Mt(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 Ct(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],i=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=i,t}function It(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function kt(t,e,i,n){void 0===n&&(n=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],e=e[5],h=Math.sin(i),i=Math.cos(i);return t[0]=o*i+s*h,t[1]=-o*h+s*i,t[2]=r*i+l*h,t[3]=-r*h+i*l,t[4]=i*(a-n[0])+h*(e-n[1])+n[0],t[5]=i*(e-n[1])-h*(a-n[0])+n[1],t}function At(t,e,i){var n=i[0],i=i[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Dt(t,e){var i=e[0],n=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=i*a-r*n;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-n*s,t[3]=i*s,t[4]=(n*e-a*o)*s,t[5]=(r*o-i*e)*s,t):null}function Pt(t,e){this.x=t||0,this.y=e||0}function Ot(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function Lt(){_g(this.event)}function Et(){var t=null!==Eg&&Eg.apply(this,arguments)||this;return t.handler=null,t}function Rt(t,e,i,n,o){var r=Rg.call(this)||this;return r._hovered=new Bg(0,0),r.storage=t,r.painter=e,r.painterRoot=n,r._pointerSize=o,i=i||new Ng,r.proxy=null,r.setHandlerProxy(i),r._draggingMgr=new hg(r),r}function Nt(t,e,i,n,o){for(var r=t.length-1;0<=r;r--){var a=t[r],s=void 0;if(a!==o&&!a.ignore&&(s=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,o=void 0,r=!1;n;){if(!(r=!!n.ignoreClip||r)){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(o=!0),a=n.__hostTarget,n=a||n.parent}return!o||Lg}return!1}(a,i,n))&&(e.topTarget||(e.topTarget=a),s!==Lg)){e.target=a;break}}}function Bt(t,e,i){return t=t.painter,e<0||e>t.getWidth()||i<0||i>t.getHeight()}function zt(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o<i&&n(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<i&&0<=n(t[o],t[o-1]);)o++;return o-e}function Ft(t,e,i,n,o){for(n===e&&n++;n<i;n++){for(var r,a=t[n],s=e,l=n;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var h=n-s;switch(h){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<h;)t[s+h]=t[s+h-1],h--}t[s]=a}}function Vt(t,e,i,n,o,r){var a=0,s=0,l=1;if(0<r(t,e[i+o])){for(s=n-o;l<s&&0<r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[i+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);n=a,a=o-(l=s<l?s:l),l=o-n}for(a++;a<l;){var h=a+(l-a>>>1);0<r(t,e[i+h])?a=h+1:l=h}return l}function Yt(t,e,i,n,o,r){var a=0,s=0,l=1;if(r(t,e[i+o])<0){for(s=o+1;l<s&&r(t,e[i+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var h=a,a=o-(l=s<l?s:l),l=o-h}else{for(s=n-o;l<s&&0<=r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var u=a+(l-a>>>1);r(t,e[i+u])<0?l=u:a=u+1}return l}function Ht(t,e){function i(i){var l=n[i],h=o[i],u=n[i+1],c=o[i+1],i=(o[i]=h+c,i===a-3&&(n[i+1]=n[i+2],o[i+1]=o[i+2]),a--,Yt(t[u],t,l,h,0,e));if(l+=i,0!=(h-=i)&&0!==(c=Vt(t[l+h-1],t,u,c,c-1,e)))if(h<=c){var p=l,d=h,i=u,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=i,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=r;;){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!==(_=Yt(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=Vt(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--,Hg<=_||Hg<=x);if(w)break;b<0&&(b=0),b+=2}if((r=b)<1&&(r=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,T=h,M=u,C=c,I=0;for(I=0;I<C;I++)s[I]=t[M+I];var k=S+T-1,A=C-1,D=M+C-1,P=0,O=0;if(t[D--]=t[k--],0==--T)for(P=D-(C-1),I=0;I<C;I++)t[P+I]=s[I];else if(1===C){for(O=1+(D-=T),P=1+(k-=T),I=T-1;0<=I;I--)t[O+I]=t[P+I];t[D]=s[A]}else{for(var L=r;;){var E=0,R=0,N=!1;do{if(e(s[A],t[k])<0){if(t[D--]=t[k--],E++,(R=0)==--T){N=!0;break}}else if(t[D--]=s[A--],R++,E=0,1==--C){N=!0;break}}while((E|R)<L);if(N)break;do{if(0!=(E=T-Yt(s[A],t,S,T,T-1,e))){for(T-=E,O=1+(D-=E),P=1+(k-=E),I=E-1;0<=I;I--)t[O+I]=t[P+I];if(0===T){N=!0;break}}if(t[D--]=s[A--],1==--C){N=!0;break}if(0!=(R=C-Vt(t[k],s,0,C,C-1,e))){for(C-=R,O=1+(D-=R),P=1+(A-=R),I=0;I<R;I++)t[O+I]=s[P+I];if(C<=1){N=!0;break}}if(t[D--]=t[k--],0==--T){N=!0;break}}while(L--,Hg<=E||Hg<=R);if(N)break;L<0&&(L=0),L+=2}if((r=L)<1&&(r=1),1===C){for(O=1+(D-=T),P=1+(k-=T),I=T-1;0<=I;I--)t[O+I]=t[P+I];t[D]=s[A]}else{if(0===C)throw new Error;for(P=D-(C-1),I=0;I<C;I++)t[P+I]=s[I]}}}}var n,o,r=Hg,a=0,s=[];return n=[],o=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&o[t-1]<=o[t]+o[t+1]||2<=t&&o[t-2]<=o[t]+o[t-1])o[t-1]<o[t+1]&&t--;else if(o[t]>o[t+1])break;i(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&o[t-1]<o[t+1]&&t--,i(t)}},pushRun:function(t,e){n[a]=t,o[a]=e,a+=1}}}function Wt(t,e,i,n){var o=(n=n||t.length)-(i=i||0);if(!(o<2)){var r=0;if(o<Yg)Ft(t,i,n,i+(r=zt(t,i,n,e)),e);else{var a,s=Ht(t,e),l=function(t){for(var e=0;Yg<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=zt(t,i,n,e))<l&&(Ft(t,i,i+(a=l<(a=o)?l:o),i+r,e),r=a),s.pushRun(i,r),s.mergeRuns(),i+=r,0!=(o-=r));s.forceMergeRuns()}}}function Xt(){Gg||(Gg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Gt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Ut(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Gt}function jt(t){return-Qg<t&&t<Qg}function qt(t){return Qg<t||t<-Qg}function Zt(t,e,i,n,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*n+3*r*i)}function Kt(t,e,i,n,o){var r=1-o;return 3*(((e-t)*r+2*(i-e)*o)*r+(n-i)*o*o)}function Qt(t,e,i,n,o,r){var a,s,n=n+3*(e-i)-t,i=3*(i-2*e+t),e=3*(e-t),t=t-o,o=i*i-3*n*e,l=i*e-9*n*t,t=e*e-3*i*t,h=0;return jt(o)&&jt(l)?jt(i)?r[0]=0:0<=(a=-e/i)&&a<=1&&(r[h++]=a):jt(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-i/n+t)&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s)):0<e?(e=o*i+1.5*n*(-l-(t=Kg(e))),0<=(a=(-i-((t=(t=o*i+1.5*n*(-l+t))<0?-Zg(-t,Jg):Zg(t,Jg))+(e=e<0?-Zg(-e,Jg):Zg(e,Jg))))/(3*n))&&a<=1&&(r[h++]=a)):(t=(2*o*i-3*n*l)/(2*Kg(o*o*o)),e=Math.acos(t)/3,a=(-i-2*(l=Kg(o))*(t=Math.cos(e)))/(3*n),s=(-i+l*(t+$g*Math.sin(e)))/(3*n),o=(-i+l*(t-$g*Math.sin(e)))/(3*n),0<=a&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s),0<=o&&o<=1&&(r[h++]=o)),h}function $t(t,e,i,n,o){var r,a=6*i-12*e+6*t,n=9*e+3*n-3*t-9*i,i=3*e-3*t,e=0;return jt(n)?qt(a)&&0<=(r=-i/a)&&r<=1&&(o[e++]=r):jt(t=a*a-4*n*i)?o[0]=-a/(2*n):0<t&&(t=(-a-(i=Kg(t)))/(2*n),0<=(r=(-a+i)/(2*n))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Jt(t,e,i,n,o,r){var a=(e-t)*o+t,e=(i-e)*o+e,i=(n-i)*o+i,s=(e-a)*o+a,e=(i-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=i,r[7]=n}function te(t,e,i,n,o,r,a,s,l,h,u){var c,p,d,f,g=.005,y=1/0;ty[0]=l,ty[1]=h;for(var m=0;m<1;m+=.05)ey[0]=Zt(t,i,o,a,m),ey[1]=Zt(e,n,r,s,m),(d=ag(ty,ey))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,ey[0]=Zt(t,i,o,a,f=c-g),ey[1]=Zt(e,n,r,s,f),d=ag(ey,ty),0<=f&&d<y?(c=f,y=d):(iy[0]=Zt(t,i,o,a,p),iy[1]=Zt(e,n,r,s,p),f=ag(iy,ty),p<=1&&f<y?(c=p,y=f):g*=.5);return u&&(u[0]=Zt(t,i,o,a,c),u[1]=Zt(e,n,r,s,c)),Kg(y)}function ee(t,e,i,n){var o=1-n;return o*(o*t+2*n*e)+n*n*i}function ie(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function ne(t,e,i){return i=t+i-2*e,0==i?.5:(t-e)/i}function oe(t,e,i,n,o){var r=(e-t)*n+t,e=(i-e)*n+e,n=(e-r)*n+r;o[0]=t,o[1]=r,o[2]=n,o[3]=n,o[4]=e,o[5]=i}function re(t,e,i,n,o,r,a,s,l){var h,u=.005,c=1/0;ty[0]=a,ty[1]=s;for(var p=0;p<1;p+=.05)ey[0]=ee(t,i,o,p),ey[1]=ee(e,n,r,p),(y=ag(ty,ey))<c&&(h=p,c=y);for(var c=1/0,d=0;d<32&&!(u<1e-4);d++){var f=h-u,g=h+u,y=(ey[0]=ee(t,i,o,f),ey[1]=ee(e,n,r,f),ag(ey,ty));0<=f&&y<c?(h=f,c=y):(iy[0]=ee(t,i,o,g),iy[1]=ee(e,n,r,g),f=ag(iy,ty),g<=1&&f<c?(h=g,c=f):u*=.5)}return l&&(l[0]=ee(t,i,o,h),l[1]=ee(e,n,r,h)),Kg(c)}function ae(t){if(t=t&&ny.exec(t)){var e,t=t[1].split(","),i=+F(t[0]),n=+F(t[1]),o=+F(t[2]),r=+F(t[3]);if(!isNaN(i+n+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Qt(0,i,o,1,t,e)&&Zt(0,n,r,1,e[0])}}}function se(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||Z,this.ondestroy=t.ondestroy||Z,this.onrestart=t.onrestart||Z,t.easing&&this.setEasing(t.easing)}function le(){this._len=0}function he(t){this._list=new ay,this._maxSize=10,this._map={},this._maxSize=t}function ue(t){return(t=Math.round(t))<0?0:255<t?255:t}function ce(t){return t<0?0:1<t?1:t}function pe(t){return ue(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function de(t){return ce(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function fe(t,e,i){return i<0?i+=1:1<i&&--i,6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function ge(t,e,i){return t+(e-t)*i}function ye(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function me(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function ve(t,e){uy&&me(uy,e),uy=hy.put(t,uy||e.slice())}function _e(t,e){if(t){e=e||[];var i=hy.get(t);if(i)return me(e,i);if((i=(t+="").replace(/ /g,"").toLowerCase())in ly)return me(e,ly[i]),ve(t,e),e;var n=i.length;if("#"===i.charAt(0))return 4===n||5===n?0<=(o=parseInt(i.slice(1,4),16))&&o<=4095?(ye(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===n?parseInt(i.slice(4),16)/15:1),ve(t,e),e):void ye(e,0,0,0,1):7===n||9===n?0<=(o=parseInt(i.slice(1,7),16))&&o<=16777215?(ye(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===n?parseInt(i.slice(7),16)/255:1),ve(t,e),e):void ye(e,0,0,0,1):void 0;var o=i.indexOf("("),r=i.indexOf(")");if(-1!==o&&r+1===n){var n=i.substr(0,o),a=i.substr(o+1,r-(o+1)).split(","),s=1;switch(n){case"rgba":if(4!==a.length)return 3===a.length?ye(e,+a[0],+a[1],+a[2],1):ye(e,0,0,0,1);s=de(a.pop());case"rgb":return 3<=a.length?(ye(e,pe(a[0]),pe(a[1]),pe(a[2]),3===a.length?s:de(a[3])),ve(t,e),e):void ye(e,0,0,0,1);case"hsla":return 4!==a.length?void ye(e,0,0,0,1):(a[3]=de(a[3]),xe(a,e),ve(t,e),e);case"hsl":return 3!==a.length?void ye(e,0,0,0,1):(xe(a,e),ve(t,e),e);default:return}}ye(e,0,0,0,1)}}function xe(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=de(t[1]),o=de(t[2]),n=o<=.5?o*(n+1):o+n-o*n,o=2*o-n;return ye(e=e||[],ue(255*fe(o,n,i+1/3)),ue(255*fe(o,n,i)),ue(255*fe(o,n,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function we(t,e){var i=_e(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,255<i[n]?i[n]=255:i[n]<0&&(i[n]=0);return Te(i,4===i.length?"rgba":"rgb")}}function be(t,e,i){var n,o,r;if(e&&e.length&&0<=t&&t<=1)return i=i||[],t*=e.length-1,n=Math.floor(t),r=Math.ceil(t),o=e[n],e=e[r],i[0]=ue(ge(o[0],e[0],r=t-n)),i[1]=ue(ge(o[1],e[1],r)),i[2]=ue(ge(o[2],e[2],r)),i[3]=ce(ge(o[3],e[3],r)),i}function Se(t,e,i){var n,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,n=Math.floor(t),o=Math.ceil(t),a=_e(e[n]),e=_e(e[o]),a=Te([ue(ge(a[0],e[0],r=t-n)),ue(ge(a[1],e[1],r)),ue(ge(a[2],e[2],r)),ce(ge(a[3],e[3],r))],"rgba"),i?{color:a,leftIndex:n,rightIndex:o,value:t}:a}function Te(t,e){var i;if(t&&t.length)return i=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}function Me(t,e){return t=_e(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function Ce(t){var e;return b(t)?((e=dy.get(t))||(e=we(t,-.1),dy.put(t,e)),e):A(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:we(t.color,-.1)}}),e):t}function Ie(t){var e,i;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(i=_e(t))&&(t="rgb("+i[0]+","+i[1]+","+i[2]+")",e=i[3]):t="none",{color:t,opacity:null==e?1:e}}function ke(t){return t<1e-4&&-1e-4<t}function Ae(t){return fy(1e3*t)/1e3}function De(t){return fy(1e4*t)/1e4}function Pe(t){return t&&!!t.image}function Oe(t){return Pe(t)||(t=t)&&!!t.svgElement}function Le(t){return"linear"===t.type}function Ee(t){return"radial"===t.type}function Re(t){return t&&("linear"===t.type||"radial"===t.type)}function Ne(t){return"url(#"+t+")"}function Be(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function ze(t){var e=t.x||0,i=t.y||0,n=(t.rotation||0)*ng,o=E(t.scaleX,1),r=E(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||i)&&s.push("translate("+e+"px,"+i+"px)"),n&&s.push("rotate("+n+")"),1===o&&1===r||s.push("scale("+o+","+r+")"),(a||t)&&s.push("skew("+fy(a*ng)+"deg, "+fy(t*ng)+"deg)"),s.join(" ")}function Fe(t,e,i){return(e-t)*i+t}function Ve(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=Fe(e[r],i[r],n);return t}function Ye(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+i[r]*n;return t}function He(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function We(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;n<e;n++)i.push(my.call(t[n]));return i}return my.call(t)}return t}function Xe(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 Ge(t){return 4===t||5===t}function Ue(t){return 1===t||2===t}function je(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function qe(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?r("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}function Ze(){return(new Date).getTime()}function Ke(t){var e=wy.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 Qe(t){return"pen"===(t=t.pointerType)||"touch"===t}function $e(t){t&&(t.zrByTouch=!0)}function Je(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function ti(t,e){var i=e.domHandlers;Pf.pointerEventsSupported?f(Iy.pointer,function(n){ii(e,n,function(e){i[n].call(t,e)})}):(Pf.touchEventsSupported&&f(Iy.touch,function(n){ii(e,n,function(o){var r;i[n].call(t,o),(r=e).touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),f(Iy.mouse,function(n){ii(e,n,function(o){o=_t(o),e.touching||i[n].call(t,o)})}))}function ei(t,e){function i(i){ii(e,i,function(n){var o;n=_t(n),Je(t,n.target)||(o=n,n=xt(t.dom,new Py(t,o),!0),e.domHandlers[i].call(t,n))},{capture:!0})}Pf.pointerEventsSupported?f(Ay,i):Pf.touchEventsSupported||f(ky,i)}function ii(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,t.domTarget.addEventListener(e,i,n)}function ni(t){var e,i,n,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(i=t.domTarget,o=a[n=e],r=t.listenerOpts[e],i.removeEventListener(n,o,r));t.mounted={}}function oi(t,e){var i=Sy.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=e,i._localHandlerScope=new Ey(t,Oy),Cy&&(i._globalHandlerScope=new Ey(document,Ly)),ti(i,i._localHandlerScope),i}function ri(t){return 5e-5<t||t<-5e-5}function ai(){}function si(t,e){for(var i=0;i<Gy.length;i++){var n=Gy[i];t[n]=e[n]}}function li(t,e){var i=Uy[e=e||Nf],n=(i=i||(Uy[e]=new sy(500))).get(t);return null==n&&(n=zf.measureText(t,e).width,i.put(t,n)),n}function hi(t,e,i,n){return t=li(t,e),e=di(e),i=ci(0,t,i),n=pi(0,e,n),new Og(i,n,t,e)}function ui(t,e,i,n){var o=((t||"")+"").split("\n");if(1===o.length)return hi(o[0],e,i,n);for(var r=new Og(0,0,0,0),a=0;a<o.length;a++){var s=hi(o[a],e,i,n);0===a?r.copy(s):r.union(s)}return r}function ci(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function pi(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function di(t){return li("国",t)}function fi(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function gi(t,e,i){var n=e.position||"inside",o=null!=e.distance?e.distance:5,r=i.height,a=i.width,s=r/2,l=i.x,h=i.y,u="left",c="top";if(n instanceof Array)l+=fi(n[0],i.width),h+=fi(n[1],i.height),c=u=null;else switch(n){case"left":l-=o,h+=s,u="right",c="middle";break;case"right":l+=o+a,h+=s,c="middle";break;case"top":l+=a/2,h-=o,u="center",c="bottom";break;case"bottom":l+=a/2,h+=r+o,u="center";break;case"inside":l+=a/2,h+=s,u="center",c="middle";break;case"insideLeft":l+=o,h+=s,c="middle";break;case"insideRight":l+=a-o,h+=s,u="right",c="middle";break;case"insideTop":l+=a/2,h+=o,u="center";break;case"insideBottom":l+=a/2,h+=r-o,u="center",c="bottom";break;case"insideTopLeft":l+=o,h+=o;break;case"insideTopRight":l+=a-o,h+=o,u="right";break;case"insideBottomLeft":l+=o,h+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,h+=r-o,u="right",c="bottom"}return(t=t||{}).x=l,t.y=h,t.align=u,t.verticalAlign=c,t}function yi(t){this.id=Kf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function mi(t,e,i,n){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[n]},set:function(e){t[n]=e}})}Object.defineProperty(Ty,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[i]=t[0],this[n]=t[1],this[e]=t,o(this,t)}})}function vi(t,e,i,n,o){function r(){h=!0,--l<=0&&(h?c&&c():p&&p())}function a(){--l<=0&&(h?c&&c():p&&p())}var s=[],l=(function t(e,i,n,o,r,a,s,l){for(var h=v(o),c=r.duration,p=r.delay,f=r.additive,g=r.setToFinal,y=!M(a),_=e.animators,x=[],w=0;w<h.length;w++){var b=h[w],S=o[b];null!=S&&null!=n[b]&&(y||a[b])?!M(S)||d(S)||A(S)?x.push(b):i?l||(n[b]=S,e.updateDuringAnimation(i)):t(e,b,n[b],S,r,a&&a[b],s,l):l||(n[b]=S,e.updateDuringAnimation(i),x.push(b))}var T=x.length;if(!f&&T)for(var C,I=0;I<_.length;I++)(k=_[I]).targetName===i&&k.stopTracks(x)&&(C=u(_,k),_.splice(C,1));if(r.force||(x=m(x,function(t){return!wi(o[t],n[t])}),T=x.length),0<T||r.force&&!s.length){var k,D=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(D={}),I=0;I<T;I++)b=x[I],P[b]=n[b],g?D[b]=o[b]:n[b]=o[b];else if(g)for(O={},I=0;I<T;I++)b=x[I],O[b]=We(n[b]),xi(n,o,b);(k=new xy(n,!1,!1,f?m(_,function(t){return t.targetName===i}):null)).targetName=i,r.scope&&(k.scope=r.scope),g&&D&&k.whenWithKeys(0,D,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:o,x).delay(p||0),e.addAnimator(k,i),s.push(k)}}(t,"",t,e,i=i||{},n,s,o),s.length),h=!1,c=i.done,p=i.aborted;l||c&&c(),0<s.length&&i.during&&s[0].during(function(t,e){i.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(r),g.aborted(a),i.force&&g.duration(i.duration),g.start(i.easing)}return s}function _i(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function xi(t,e,i){if(d(e[i]))if(d(t[i])||(t[i]=[]),I(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),_i(t[i],e[i],n))}else{var o=e[i],r=t[i],a=o.length;if(d(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?_i(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else _i(r,o,a);r.length=o.length}else t[i]=e[i]}function wi(t,e){return t===e||d(t)&&d(e)&&function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}(t,e)}function bi(t){var e=$y.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function Si(t,e,i){var n,o=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t,new Ug),a=i.renderer||"canvas",a=(tm[a]||(a=v(tm)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect,new tm[a](e,r,i,t)),e=i.ssr||a.ssrOnly,t=(this.storage=r,this.painter=a,Pf.node||Pf.worker||e?null:new Ry(a.getViewportRoot(),a.root)),s=i.useCoarsePointer;(null==s||"auto"===s?Pf.touchEventsSupported:!!s)&&(n=E(i.pointerSize,44)),this.handler=new Vg(r,a,t,a.root,n),this.animation=new My({stage:{update:e?null:function(){return o._flush(!0)}}}),e||this.animation.start()}function Ti(t,e){return t=new om(Kf++,t,e),em[t.id]=t}function Mi(t,e){tm[t]=e}function Ci(t){if("function"==typeof im)return im(t)}function Ii(t){im=t}function ki(t,e,i,n){var o=e[0],e=e[1],r=i[0],i=i[1],a=e-o,s=i-r;if(0==a)return 0==s?r:(r+i)/2;if(n)if(0<a){if(t<=o)return r;if(e<=t)return i}else{if(o<=t)return r;if(t<=e)return i}else{if(t===o)return r;if(t===e)return i}return(t-o)/a*s+r}function Ai(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 Di(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),am),t=(+t).toFixed(e),i?t:+t}function Pi(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,i=0;i<15;i++,e*=10)if(Math.round(t*e)/e===t)return i;return Oi(t)}function Oi(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),i=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)-i)}function Li(t,e){var i=Math.log,n=Math.LN10,t=Math.floor(i(t[1]-t[0])/n),i=Math.round(i(Math.abs(e[1]-e[0]))/n),e=Math.min(Math.max(-t+i,0),20);return isFinite(e)?e:20}function Ei(t){var e=2*Math.PI;return(t%e+e)%e}function Ri(t){return-1e-4<t&&t<1e-4}function Ni(t){var e,i;return t instanceof Date?t:b(t)?(e=sm.exec(t))?e[8]?(i=+e[4]||0,"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(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 Bi(t){return Math.pow(10,zi(t))}function zi(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Fi(t,e){var i=zi(t),n=Math.pow(10,i),o=t/n,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*n,-20<=i?+t.toFixed(i<0?-i:0):t}function Vi(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Yi(t){return!isNaN(Vi(t))}function Hi(){return Math.round(9*Math.random())}function Wi(t,e){return null==t?e:null==e?t:t*e/function t(e,i){return 0===i?e:t(i,e%i)}(t,e)}function Xi(t){throw new Error(t)}function Gi(t,e,i){return(e-t)*i+t}function Ui(t){return t instanceof Array?t:null==t?[]:[t]}function ji(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,o=i.length;n<o;n++){var r=i[n];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}function qi(t){return!M(t)||x(t)||t instanceof Date?t:t.value}function Zi(t,e,i){var n,o,r,a,s,l,h,u,c,p,d="normalMerge"===i,g="replaceMerge"===i,y="replaceAll"===i,m=(t=t||[],e=(e||[]).slice(),X()),i=(f(e,function(t,i){M(t)||(e[i]=null)}),function(t,e,i){var n=[];if("replaceAll"!==i)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),n.push({existing:"replaceMerge"===i||tn(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return n}(t,m,i));return(d||g)&&(n=i,o=t,r=m,f(a=e,function(t,e){var i,s,l;t&&null!=t.id&&(i=Qi(t.id),null!=(s=r.get(i)))&&(z(!(l=n[s]).newOption,'Duplicated option on id "'+i+'".'),l.newOption=t,l.existing=o[s],a[e]=null)})),d&&(s=i,f(l=e,function(t,e){if(t&&null!=t.name)for(var i=0;i<s.length;i++){var n=s[i].existing;if(!s[i].newOption&&n&&(null==n.id||null==t.id)&&!tn(t)&&!tn(n)&&Ki("name",n,t))return s[i].newOption=t,void(l[e]=null)}})),d||g?(u=i,c=g,f(e,function(t){if(t){for(var e,i=0;(e=u[i])&&(e.newOption||tn(e.existing)||e.existing&&null!=t.id&&!Ki("id",t,e.existing));)i++;e?(e.newOption=t,e.brandNew=c):u.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),i++}})):y&&(h=i,f(e,function(t){h.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=i,p=X(),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 i=t.existing,n=t.newOption,o=t.keyInfo;if(M(n)){if(o.name=null!=n.name?Qi(n.name):i?i.name:lm+e,i)o.id=Qi(i.id);else if(null!=n.id)o.id=Qi(n.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),i}function Ki(t,e,i){return e=$i(e[t],null),i=$i(i[t],null),null!=e&&null!=i&&e===i}function Qi(t){return $i(t,"")}function $i(t,e){return null==t?e:b(t)?t:T(t)||S(t)?t+"":e}function Ji(t){return!(!(t=t.name)||!t.indexOf(lm))}function tn(t){return t&&null!=t.id&&0===Qi(t.id).indexOf("\0_ec_\0")}function en(t,e,i){f(t,function(t){var n,o,r=t.newOption;M(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,r=r,t=t.existing,o=i,r.type||(t?t.subType:o.determineSubType(n,r))))})}function nn(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 on(){var t="__ec_inner_"+um++;return function(e){return e[t]||(e[t]={})}}function rn(t,e,i){var e=an(e,i),n=e.mainTypeSpecified,o=e.queryOptionMap,r=e.others,a=i?i.defaultMainType:null;return!n&&a&&o.set(a,{}),o.each(function(e,n){e=sn(t,n,e,{useDefault:a===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone}),r[n+"Models"]=e.models,r[n+"Model"]=e.models[0]}),r}function an(t,e){var i=b(t)?((i={})[t+"Index"]=0,i):t,n=X(),o={},r=!1;return f(i,function(t,i){var a;"dataIndex"===i||"dataIndexInside"===i?o[i]=t:(a=(i=i.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||"").toLowerCase(),!a||!i||e&&e.includeMainTypes&&u(e.includeMainTypes,a)<0||(r=r||!!a,(n.get(a)||n.set(a,{}))[i]=t))}),{mainTypeSpecified:r,queryOptionMap:n,others:o}}function sn(t,e,i,n){n=n||cm;var o=i.index,r=i.id,i=i.name,a={models:null,specified:null!=o||null!=r||null!=i};return a.specified?"none"===o||!1===o?(z(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(z(n.enableAll,'`"all"` is not a valid value on index option.'),o=r=i=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:i})):(o=void 0,a.models=n.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function ln(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hn(t,e,i,n,o){var r=null==e||"auto"===e;if(null==n)return n;if(T(n))return Di(p=Gi(i||0,n,o),r?Math.max(Pi(i||0),Pi(n)):e);if(b(n))return o<1?i:n;for(var a=[],s=i,l=n,h=Math.max(s?s.length:0,l.length),u=0;u<h;++u){var c,p,d=t.getDimensionInfo(u);d&&"ordinal"===d.type?a[u]=(o<1&&s?s:l)[u]:(p=Gi(d=s&&s[u]?s[u]:0,c=l[u],o),a[u]=Di(p,r?Math.max(Pi(d),Pi(c)):e))}return a}function un(t){var e={main:"",sub:""};return t&&(t=t.split(pm),e.main=t[0]||"",e.sub=t[1]||""),e}function cn(t){(t.$constructor=t).extend=function(t){function e(){return o.apply(this,arguments)||this}var n,o,r,a=this;return w(r=a)&&/^class\s/.test(Function.prototype.toString.call(r))?(i(e,o=a),n=e):c(n=function(){(t.$constructor||a).apply(this,arguments)},this),l(n.prototype,t),n[fm]=!0,n.extend=this.extend,n.superCall=dn,n.superApply=fn,n.superClass=a,n}}function pn(t,e){t.extend=e.extend}function dn(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function fn(t,e,i){return this.superClass.prototype[e].apply(t,i)}function gn(t){var e={};t.registerClass=function(t){var i,n=t.type||t.prototype.type;return n&&(z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i=n),'componentType "'+i+'" illegal'),(i=un(t.prototype.type=n)).sub?i.sub!==dm&&((function(t){var i=e[t.main];return i&&i[dm]||(i=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),i}(i))[i.sub]=t):e[i.main]=t),t},t.getClass=function(t,i,n){var o=e[t];if(o&&o[dm]&&(o=i?o[i]:null),n&&!o)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){var t=un(t),i=[],t=e[t.main];return t&&t[dm]?f(t,function(t,e){e!==dm&&i.push(t)}):i.push(t),i},t.hasClass=function(t){return t=un(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(e,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){return t=un(t),(t=e[t.main])&&t[dm]}}function yn(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,o){for(var r={},a=0;a<t.length;a++){var s=t[a][1];n&&0<=u(n,s)||o&&u(o,s)<0||null!=(s=i.getShallow(s,e))&&(r[t[a][0]]=s)}return r}}function mn(){}function vn(t,e,i,n,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!i||(i={hostEl:i,cb:n,cbPayload:o},(n=vm.get(t))?xn(e=n.image)||n.pending.push(i):((e=zf.loadImage(t,_n,_n)).__zrImageSrc=t,vm.put(t,e.__cachedImgObj={image:e,pending:[i]}))),e):t:e}function _n(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function xn(t){return t&&t.width&&t.height}function wn(t,e,i,n,o){if(!e)return"";var r=(t+"").split("\n");o=bn(e,i,n,o);for(var a=0,s=r.length;a<s;a++)r[a]=Sn(r[a],o);return r.join("\n")}function bn(t,e,i,n){for(var o=l({},n=n||{}),r=(o.font=e,i=E(i,"..."),o.maxIterations=E(n.maxIterations,2),o.minChar=E(n.minChar,0)),a=(o.cnCharWidth=li("国",e),o.ascCharWidth=li("a",e)),s=(o.placeholder=E(n.placeholder,""),t=Math.max(0,t-1)),h=0;h<r&&a<=s;h++)s-=a;return n=li(i,e),s<n&&(i="",n=0),s=t-n,o.ellipsis=i,o.ellipsisWidth=n,o.contentWidth=s,o.containerWidth=t,o}function Sn(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var r=li(t,n);if(!(r<=i)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,i,n){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?i:n}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=li(t=t.substr(0,s),n)}""===t&&(t=e.placeholder)}return t}function Tn(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,d+=i,f=Math.max(f,e)}var n=new bm;if(null!=t&&(t+=""),t){for(var o,r=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===s},h=_m.lastIndex=0;null!=(o=_m.exec(t));){var u=o.index;h<u&&Mn(n,t.substring(h,u),e,l),Mn(n,o[2],e,l,o[1]),h=_m.lastIndex}h<t.length&&Mn(n,t.substring(h,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<n.lines.length;v++){for(var _=n.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(D=_.tokens[b]).styleName&&e.rich[D.styleName]||{},T=D.textPadding=S.padding,M=T?T[1]+T[3]:0,C=D.font=S.font||e.font,I=(D.contentHeight=di(C),E(S.height,D.contentHeight));if(D.innerHeight=I,T&&(I+=T[0]+T[2]),D.height=I,D.lineHeight=R(S.lineHeight,e.lineHeight,I),D.align=S&&S.align||e.align,D.verticalAlign=S&&S.verticalAlign||"middle",m&&null!=a&&d+D.lineHeight>a){0<b?(_.tokens=_.tokens.slice(0,b),i(_,w,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var k,T=S.width,A=null==T||"auto"===T;"string"==typeof T&&"%"===T.charAt(T.length-1)?(D.percentWidth=T,p.push(D),D.contentWidth=li(D.text,C)):(A&&(T=(T=S.backgroundColor)&&T.image)&&(k=void 0,xn(T="string"==typeof(c=T)?(k=vm.get(c))&&k.image:c))&&(D.width=Math.max(D.width,T.width*I/T.height)),null!=(k=y&&null!=r?r-w:null)&&k<D.width?!A||k<M?(D.text="",D.width=D.contentWidth=0):(D.text=wn(D.text,k-M,C,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=li(D.text,C)):D.contentWidth=li(D.text,C)),D.width+=M,w+=D.width,S&&(x=Math.max(x,D.lineHeight))}i(_,w,x)}for(n.outerWidth=n.width=E(r,f),n.outerHeight=n.height=E(a,d),n.contentHeight=d,n.contentWidth=f,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var D,P=(D=p[v]).percentWidth;D.width=parseInt(P,10)/100*n.width}}return n}function Mn(t,e,i,n,o){var r,a,s=""===e,l=o&&i.rich[o]||{},h=t.lines,u=l.font||i.font,c=!1;n?(i=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=fi(l.width,n.width)+i,0<h.length&&t+n.accumWidth>n.width&&(r=e.split("\n"),c=!0),n.accumWidth=t):(t=Cn(e,u,n.width,n.breakAll,n.accumWidth),n.accumWidth=t.accumWidth+i,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new xm;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:li(g,u),p||c?h.push(new wm([y])):1===(f=(d=(h[h.length-1]||(h[0]=new wm)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function Cn(t,e,i,n,o){for(var r,a=[],s=[],l="",h="",u=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(h&&(l+=h,c+=u),a.push(l),s.push(c),h=l="",c=u=0):(d=li(g,e),f=!(n||(f=void 0,!(32<=(f=(f=r=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||Sm[r]),(a.length?i<c+d:i<o+c+d)?c?(l||h)&&(c=f?(l||(l=h,h="",c=u=0),a.push(l),s.push(c-u),h+=g,l="",u+=d):(h&&(l+=h,h="",u=0),a.push(l),s.push(c),l=g,d)):f?(a.push(h),s.push(u),h=g,u=d):(a.push(g),s.push(d)):(c+=d,f?(h+=g,u+=d):(h&&(l+=h,h="",u=0),l+=g)))}return a.length||l||(l=t,h="",u=0),h&&(l+=h),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}function In(t){return nm.call(this,t)||this}function kn(t,e,i,n,o,r){o[0]=Pm(t,i),o[1]=Pm(e,n),r[0]=Om(t,i),r[1]=Om(e,n)}function An(t){return Math.round(t/Jm*1e8)/1e8%2*Jm}function Dn(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 Pn(t,e,i,n,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&n+o<a||a<e-o&&a<n-o||t+o<r&&i+o<r||r<t-o&&r<i-o)&&(t===i?Math.abs(r-t)<=o/2:(r=(s=(e-n)/(t-i))*r-a+(t*n-i*e)/(t-i))*r/(s*s+1)<=o/2*o/2)}function On(t){return(t%=av)<0&&(t+=av),t}function Ln(t,e,i,n,o,r){return e<r&&n<r||r<e&&r<n||n===e?0:(i=(r=(r-e)/(n-e))*(i-t)+t)===o?1/0:o<i?1!=r&&0!=r?n<e?1:-1:n<e?.5:-.5:0}function En(t,e,i,n,o,r,a,s,l,h){if(e<h&&n<h&&r<h&&s<h||h<e&&h<n&&h<r&&h<s)return 0;var u=Qt(e,n,r,s,h,cv);if(0===u)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<u;y++){var m=cv[y],v=0===m||1===m?.5:1;Zt(t,i,o,a,m)<l||(d<0&&(d=$t(e,n,r,s,pv),pv[1]<pv[0]&&1<d&&(c=void 0,c=pv[0],pv[0]=pv[1],pv[1]=c),f=Zt(e,n,r,s,pv[0]),1<d)&&(g=Zt(e,n,r,s,pv[1])),2===d?m<pv[0]?p+=f<e?v:-v:m<pv[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<pv[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Rn(t,e,i,n,o,r,a,s){if(e<s&&n<s&&r<s||s<e&&s<n&&s<r)return 0;c=cv,u=(l=e)-2*(h=n)+(u=r),h=2*(h-l),l-=s=s,s=0,jt(u)?qt(h)&&0<=(p=-l/h)&&p<=1&&(c[s++]=p):jt(l=h*h-4*u*l)?0<=(p=-h/(2*u))&&p<=1&&(c[s++]=p):0<l&&(d=(-h-(l=Kg(l)))/(2*u),0<=(p=(-h+l)/(2*u))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,h,u,c,p,d,f=s;if(0===f)return 0;var g=ne(e,n,r);if(0<=g&&g<=1){for(var y=0,m=ee(e,n,r,g),v=0;v<f;v++){var _=0===cv[v]||1===cv[v]?.5:1;ee(t,i,o,cv[v])<a||(cv[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===cv[0]||1===cv[0]?.5:1,ee(t,i,o,cv[0])<a?0:r<e?_:-_}function Nn(t,e,i,n,o){for(var r,a=t.data,s=t.len(),l=0,h=0,u=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===lv.M&&1<d&&(i||(l+=Ln(h,u,c,p,n,o))),g&&(c=h=a[d],p=u=a[d+1]),f){case lv.M:h=c=a[d++],u=p=a[d++];break;case lv.L:if(i){if(Pn(h,u,a[d],a[d+1],e,n,o))return!0}else l+=Ln(h,u,a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case lv.C:if(i){if(function(t,e,i,n,o,r,a,s,l,h,u){if(0!==l)return!(e+(l=l)<u&&n+l<u&&r+l<u&&s+l<u||u<e-l&&u<n-l&&u<r-l&&u<s-l||t+l<h&&i+l<h&&o+l<h&&a+l<h||h<t-l&&h<i-l&&h<o-l&&h<a-l)&&te(t,e,i,n,o,r,a,s,h,u,null)<=l/2}(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=En(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case lv.Q:if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&n+a<l&&r+a<l||l<e-a&&l<n-a&&l<r-a||t+a<s&&i+a<s&&o+a<s||s<t-a&&s<i-a&&s<o-a)&&re(t,e,i,n,o,r,s,l,null)<=a/2}(h,u,a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=Rn(h,u,a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case lv.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,T=Math.sin(x)*_+m,M=(g?(c=S,p=T):l+=Ln(h,u,S,T,n,o),(n-y)*_/v+y);if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(i<(t=Math.sqrt(s*s+l*l))-a||t+a<i)&&(Math.abs(n-o)%sv<1e-4||((o=r?(e=n,n=On(o),On(e)):(n=On(n),On(o)))<n&&(o+=sv),(t=Math.atan2(l,s))<0&&(t+=sv),n<=t&&t<=o)||n<=t+sv&&t+sv<=o)}(y,m,_,x,x+w,b,e,M,o))return!0}else l+=function(t,e,i,n,o,r,a,s){if(i<(s-=e)||s<-i)return 0;var e=Math.sqrt(i*i-s*s);if(cv[0]=-e,cv[1]=e,(i=Math.abs(n-o))<1e-4)return 0;if(hv-1e-4<=i)return o=hv,u=r?1:-1,a>=cv[n=0]+t&&a<=cv[1]+t?u:0;o<n&&(e=n,n=o,o=e),n<0&&(n+=hv,o+=hv);for(var l=0,h=0;h<2;h++){var u,c=cv[h];a<c+t&&(u=r?1:-1,n<=(c=(c=Math.atan2(s,c))<0?hv+c:c)&&c<=o||n<=c+hv&&c+hv<=o)&&(l+=u=c>Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,M,o);h=Math.cos(x+w)*v+y,u=Math.sin(x+w)*_+m;break;case lv.R:if(c=h=a[d++],p=u=a[d++],S=c+a[d++],T=p+a[d++],i){if(Pn(c,p,S,p,e,n,o)||Pn(S,p,S,T,e,n,o)||Pn(S,T,c,T,e,n,o)||Pn(c,T,c,p,e,n,o))return!0}else l=(l+=Ln(S,p,S,T,n,o))+Ln(c,T,c,p,n,o);break;case lv.Z:if(i){if(Pn(h,u,c,p,e,n,o))return!0}else l+=Ln(h,u,c,p,n,o);h=c,u=p}}return i||(t=u,r=p,Math.abs(t-r)<uv)||(l+=Ln(h,u,c,p,n,o)||0),0!==l}function Bn(t){return nv.call(this,t)||this}function zn(){return null!==ov&&ov.apply(this,arguments)||this}function Fn(){return null!==wv&&wv.apply(this,arguments)||this}function Vn(t,e,i){var n,o,r;if(e)return n=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=n,t.x2=o,t.y1=r,t.y2=e,(i=i&&i.lineWidth)&&(Tv(2*n)===Tv(2*o)&&(t.x1=t.x2=Hn(n,i,!0)),Tv(2*r)===Tv(2*e))&&(t.y1=t.y2=Hn(r,i,!0)),t}function Yn(t,e,i){var n,o,r;if(e)return n=e.x,o=e.y,r=e.width,e=e.height,t.x=n,t.y=o,t.width=r,t.height=e,(i=i&&i.lineWidth)&&(t.x=Hn(n,i,!0),t.y=Hn(o,i,!0),t.width=Math.max(Hn(n+r,i,!1)-t.x,0===r?0:1),t.height=Math.max(Hn(o+e,i,!1)-t.y,0===e?0:1)),t}function Hn(t,e,i){var n;return e?((n=Tv(2*t))+Tv(e))%2==0?n/2:(n+(i?1:-1))/2:t}function Wn(t){return Sv.call(this,t)||this}function Xn(t){var e=kv.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Av,e.attr(t),e}function Gn(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Ef+"px":t+"px":t}function Un(t,e){for(var i=0;i<Ev.length;i++){var n=Ev[i],o=e[n];null!=o&&(t[n]=o)}}function jn(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function qn(t){var e;t&&(t.font=Pv.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Ov[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Lv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Zn(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Kn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Qn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function $n(t){return t=t.text,null!=t&&(t+=""),t}function Jn(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function to(t){return null!=t&&"none"!==t}function eo(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function io(t){eo(t,"emphasis",Hv)}function no(t){t.hoverState===Hv&&eo(t,"normal",Vv)}function oo(t){eo(t,"blur",Yv)}function ro(t){t.hoverState===Yv&&eo(t,"normal",Vv)}function ao(t){t.selected=!0}function so(t){t.selected=!1}function lo(t,e,i){e(t,i)}function ho(t,e,i){lo(t,e,i),t.isGroup&&t.traverse(function(t){lo(t,e,i)})}function uo(t,e){switch(e){case"emphasis":t.hoverState=Hv;break;case"normal":t.hoverState=Vv;break;case"blur":t.hoverState=Yv;break;case"select":t.selected=!0}}function co(t,e,i){var n=0<=u(t.currentStates,e),o=t.style.opacity,t=n?null:function(t,e,i,n){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&h.__fromStateTransition.indexOf(i)<0&&"style"===h.targetName&&h.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(i=i||{}).style||{};return null==e.opacity&&(i=l({},i),e=l({opacity:n?o:.1*t.opacity},e),i.style=e),i}function po(t,e){var i,n,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return i=this,n=s,e=(e=e)&&0<=u(e,"select"),a=!1,i instanceof yv&&(o=zv(i),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,to(r)||to(e))&&("inherit"===(o=(n=n||{}).style||{}).fill?(a=!0,n=l({},n),(o=l({},o)).fill=r):!to(o.fill)&&to(r)?(a=!0,n=l({},n),(o=l({},o)).fill=Ce(r)):!to(o.stroke)&&to(e)&&(a||(n=l({},n),o=l({},o)),o.stroke=Ce(e)),n.style=o),n&&null==n.z2&&(a||(n=l({},n)),r=i.z2EmphasisLift,n.z2=i.z2+(null!=r?r:10)),n;if("blur"===t)return co(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=l({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function fo(t){t.stateProxy=po;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=po),t&&(t.stateProxy=po)}function go(t,e){So(t,e)||t.__highByOuter||ho(t,io)}function yo(t,e){So(t,e)||t.__highByOuter||ho(t,no)}function mo(t,e){t.__highByOuter|=1<<(e||0),ho(t,io)}function vo(t,e){(t.__highByOuter&=~(1<<(e||0)))||ho(t,no)}function _o(t){ho(t,oo)}function xo(t){ho(t,ro)}function wo(t){ho(t,ao)}function bo(t){ho(t,so)}function So(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function To(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,o){var r=Fv(o),e="series"===e,a=e?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);e||n.push(a),r.isBlured&&(a.group.traverse(function(t){ro(t)}),e)&&i.push(o),r.isBlured=!1}),f(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function Mo(t,e,i,n){function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&xo(n)}}var r,a,s,l=n.getModel();i=i||"coordinateSystem",null!=t&&e&&"none"!==e&&(r=l.getSeriesByIndex(t),(a=r.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=r===t,h=t.coordinateSystem,h=(h=h&&h.master?h.master:h)&&a?h===a:l;if(!("series"===i&&!l||"coordinateSystem"===i&&!h||"series"===e&&l)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&l&&"self"===e||oo(t)}),d(e))o(t.getData(),e);else if(M(e))for(var u=v(e),c=0;c<u.length;c++)o(t.getData(u[c]),e[u[c]]);s.push(t),Fv(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=n.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(s,!0,l)}))}function Co(t,e,i){var n;null!=t&&null!=e&&(t=i.getModel().getComponent(t,e))&&(Fv(t).isBlured=!0,n=i.getViewOfComponentModel(t))&&n.focusBlurEnabled&&n.group.traverse(function(t){oo(t)})}function Io(t,e,i,n){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return o;if(!(t=n.getModel().getComponent(t,e)))return o;if(!(e=n.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(i),s=0;s<a.length;s++)if("self"===Rv(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function ko(t){f(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){(t.isSelected(i,n)?wo:bo)(e)})})}function Ao(t,e,i){Oo(t,!0),ho(t,fo),t=Rv(t),null!=e?(t.focus=e,t.blurScope=i):t.focus&&(t.focus=null)}function Do(t,e,i,n){n?Oo(t,!1):Ao(t,e,i)}function Po(t,e,i,n){i=i||"itemStyle";for(var o=0;o<Kv.length;o++){var r=Kv[o],a=e.getModel([r,i]);t.ensureState(r).style=n?n(a):a[Qv[i]]()}}function Oo(t,e){var e=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Lo(t){return!(!t||!t.__highDownDispatcher)}function Eo(t){return(t=t.type)===jv||t===qv||t===Zv}function Ro(t){return(t=t.type)===Gv||t===Uv}function No(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Bo(t,e){return(t[0]*e[0]+t[1]*e[1])/(No(t)*No(e))}function zo(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Bo(t,e))}function Fo(t,e,i,n,o,r,a,s,l,h,u){var l=l*(r_/180),c=o_(l)*(t-i)/2+n_(l)*(e-n)/2,p=-1*n_(l)*(t-i)/2+o_(l)*(e-n)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=i_(d),s*=i_(d)),(o===r?-1:1)*i_((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+i)/2+o_(l)*o-n_(l)*d,i=(e+n)/2+n_(l)*o+o_(l)*d,e=zo([1,0],[(c-o)/a,(p-d)/s]),n=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=zo(n,c);Bo(n,c)<=-1&&(o=r_),(o=1<=Bo(n,c)?0:o)<0&&(p=Math.round(o/r_*1e6)/1e6,o=2*r_+p%2*r_),u.addData(h,t,i,a,s,e,o,l,r)}function Vo(){return null!==l_&&l_.apply(this,arguments)||this}function Yo(t){return null!=t.setData}function Ho(t,e){var i=function(t){var e=new rv;if(t){var i,n=0,o=0,r=n,a=o,s=rv.CMD,l=t.match(a_);if(l){for(var h=0;h<l.length;h++){for(var u=l[h],c=u.charAt(0),p=void 0,d=u.match(s_)||[],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,T=n,M=o,C=void 0,I=void 0;switch(c){case"l":n+=d[y++],o+=d[y++],p=s.L,e.addData(p,n,o);break;case"L":n=d[y++],o=d[y++],p=s.L,e.addData(p,n,o);break;case"m":n+=d[y++],o+=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="l";break;case"M":n=d[y++],o=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="L";break;case"h":n+=d[y++],p=s.L,e.addData(p,n,o);break;case"H":n=d[y++],p=s.L,e.addData(p,n,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,n,o);break;case"V":o=d[y++],p=s.L,e.addData(p,n,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o),n+=d[y-2],o+=d[y-1];break;case"S":m=n,v=o,C=e.len(),I=e.data,i===s.C&&(m+=n-I[C-4],v+=o-I[C-3]),p=s.C,T=d[y++],M=d[y++],n=d[y++],o=d[y++],e.addData(p,m,v,T,M,n,o);break;case"s":m=n,v=o,C=e.len(),I=e.data,i===s.C&&(m+=n-I[C-4],v+=o-I[C-3]),p=s.C,T=n+d[y++],M=o+d[y++],n+=d[y++],o+=d[y++],e.addData(p,m,v,T,M,n,o);break;case"Q":T=d[y++],M=d[y++],n=d[y++],o=d[y++],p=s.Q,e.addData(p,T,M,n,o);break;case"q":T=d[y++]+n,M=d[y++]+o,n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,T,M,n,o);break;case"T":m=n,v=o,C=e.len(),I=e.data,i===s.Q&&(m+=n-I[C-4],v+=o-I[C-3]),n=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"t":m=n,v=o,C=e.len(),I=e.data,i===s.Q&&(m+=n-I[C-4],v+=o-I[C-3]),n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Fo(T=n,M=o,n=d[y++],o=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++],Fo(T=n,M=o,n+=d[y++],o+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),n=r,o=a),i=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Yo(t)?(t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e,1)):i.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=i,n=t;if(n){for(var o,r,a,s,l=e.data,h=e.len(),u=$v.M,c=$v.C,p=$v.L,d=$v.R,f=$v.A,g=$v.Q,y=0,m=0;y<h;){switch(o=l[y++],m=y,r=0,o){case u:case p:r=1;break;case c:r=3;break;case g:r=2;break;case f:var v=n[4],_=n[5],x=t_(n[0]*n[0]+n[1]*n[1]),w=t_(n[2]*n[2]+n[3]*n[3]),b=e_(-n[1]/w,n[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++],st(s,s,n),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],st(s,s,n),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<r;a++){var S=Jv[a];S[0]=l[y++],S[1]=l[y++],st(S,S,n),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Wo(t){return h_.call(this,t)||this}function Xo(t){return d_.call(this,t)||this}function Go(t,e,i,n,o,r,a){var s=t-i,l=e-n,a=(a?r:-r)/T_(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=i+l,i=n+a,n=(s+e)/2,h=(t+i)/2,u=e-s,c=i-t,p=u*u+c*c,r=o-r,s=s*i-e*t,i=(c<0?-1:1)*T_(M_(0,r*r*p-s*s)),e=(s*c-u*i)/p,t=(-s*u-c*i)/p,d=(s*c+u*i)/p,s=(-s*u+c*i)/p,u=e-n,c=t-h,i=d-n,p=s-h;return i*i+p*p<u*u+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function Uo(t,e){var i,n,o,r,a,s,l,h,u,c,p,d,f,g,y,m,v,_,w,b,S,T,M,C,I,k,A,D,P,O,L=M_(e.r,0),E=M_(e.r0||0,0),R=0<L;(R||0<E)&&(R||(L=E,E=0),L<E&&(R=L,L=E,E=R),R=e.startAngle,i=e.endAngle,isNaN(R)||isNaN(i)||(n=e.cx,o=e.cy,r=!!e.clockwise,m=S_(i-R),I_<(a=v_<m&&m%v_)&&(m=a),I_<L?v_-I_<m?(t.moveTo(n+L*x_(R),o+L*__(R)),t.arc(n,o,L,R,i,!r),I_<E&&(t.moveTo(n+E*x_(i),o+E*__(i)),t.arc(n,o,E,i,R,r))):(T=S=b=w=_=v=c=u=k=I=C=M=h=l=s=a=void 0,p=L*x_(R),d=L*__(R),f=E*x_(i),g=E*__(i),(y=I_<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],h=e[3]),e=S_(L-E)/2,M=C_(e,l),C=C_(e,h),I=C_(e,a),k=C_(e,s),v=u=M_(M,C),_=c=M_(I,k),I_<u||I_<c)&&(w=L*x_(i),b=L*__(i),S=E*x_(R),T=E*__(R),m<m_)&&(e=function(t,e,i,n,o,r,a,s){var l=(s-=r)*(i-=t)-(a-=o)*(n-=e);if(!(l*l<I_))return[t+(l=(a*(e-r)-s*(t-o))/l)*i,e+l*n]}(p,d,S,T,w,b,f,g))&&(M=p-e[0],C=d-e[1],I=w-e[0],k=b-e[1],m=1/__(w_((M*I+C*k)/(T_(M*M+C*C)*T_(I*I+k*k)))/2),M=T_(e[0]*e[0]+e[1]*e[1]),v=C_(u,(L-M)/(1+m)),_=C_(c,(E-M)/(m-1))),y?I_<v?(A=C_(l,v),D=C_(h,v),P=Go(S,T,p,d,L,A,r),O=Go(w,b,f,g,L,D,r),t.moveTo(n+P.cx+P.x0,o+P.cy+P.y0),v<u&&A===D?t.arc(n+P.cx,o+P.cy,v,b_(P.y0,P.x0),b_(O.y0,O.x0),!r):(0<A&&t.arc(n+P.cx,o+P.cy,A,b_(P.y0,P.x0),b_(P.y1,P.x1),!r),t.arc(n,o,L,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),!r),0<D&&t.arc(n+O.cx,o+O.cy,D,b_(O.y1,O.x1),b_(O.y0,O.x0),!r))):(t.moveTo(n+p,o+d),t.arc(n,o,L,R,i,!r)):t.moveTo(n+p,o+d),I_<E&&y?I_<_?(A=C_(a,_),P=Go(f,g,w,b,E,-(D=C_(s,_)),r),O=Go(p,d,S,T,E,-A,r),t.lineTo(n+P.cx+P.x0,o+P.cy+P.y0),_<c&&A===D?t.arc(n+P.cx,o+P.cy,_,b_(P.y0,P.x0),b_(O.y0,O.x0),!r):(0<D&&t.arc(n+P.cx,o+P.cy,D,b_(P.y0,P.x0),b_(P.y1,P.x1),!r),t.arc(n,o,E,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),r),0<A&&t.arc(n+O.cx,o+O.cy,A,b_(O.y1,O.x1),b_(O.y0,O.x0),!r))):(t.lineTo(n+f,o+g),t.arc(n,o,E,i,R,r)):t.lineTo(n+f,o+g)):t.moveTo(n,o),t.closePath()))}function jo(t){return y_.call(this,t)||this}function qo(t){return D_.call(this,t)||this}function Zo(t,e,i){var n=e.smooth,o=e.points;if(o&&2<=o.length){if(n)for(var r=function(t,e,i,n){var o,r,a=[],s=[],l=[],h=[];if(n){for(var u=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)lt(u,u,t[p]),ht(c,c,t[p]);lt(u,u,n[0]),ht(c,c,n[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(i)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Q(t[p]));continue}o=t[p-1],r=t[p+1]}J(s,r,o),it(s,s,e);var g=ot(f,o),y=ot(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),it(l,s,-g),it(h,s,y),$([],f,l)),g=$([],f,h);n&&(ht(m,m,u),lt(m,m,c),ht(g,g,u),lt(g,g,c)),a.push(m),a.push(g)}return i&&a.push(a.shift()),a}(o,n,i,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(i?a:a-1);s++){var l=r[2*s],h=r[2*s+1],u=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}else{t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}i&&t.closePath()}}function Ko(t){return L_.call(this,t)||this}function Qo(t){return N_.call(this,t)||this}function $o(t){return F_.call(this,t)||this}function Jo(t,e,i){var n=t.cpx2,o=t.cpy2;return null!=n||null!=o?[(i?Kt:Zt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Kt:Zt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?ie:ee)(t.x1,t.cpx1,t.x2,e),(i?ie:ee)(t.y1,t.cpy1,t.y2,e)]}function tr(t){return G_.call(this,t)||this}function er(t){return j_.call(this,t)||this}function ir(){var t=null!==K_&&K_.apply(this,arguments)||this;return t.type="compound",t}function nr(t){this.colorStops=t||[]}function or(t,e,i,n,o,r){return o=J_.call(this,o)||this,o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==i?1:i,o.y2=null==n?0:n,o.type="linear",o.global=r||!1,o}function rr(t,e,i,n,o){return n=ex.call(this,n)||this,n.x=null==t?.5:t,n.y=null==e?.5:e,n.r=null==i?.5:i,n.type="radial",n.global=o||!1,n}function ar(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Sg;for(i=0;i<2;i++)this._axes[i]=new Sg;t&&this.fromBoundingRect(t,e)}function sr(){var t=null!==ix&&ix.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function lr(t,e,i,n,o,r,a){var s,l,h,u,c,p,d=!1,f=(w(o)?(a=r,r=o,o=null):M(o)&&(r=o.cb,a=o.during,d=o.isFrom,l=o.removeOpt,o=o.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=o,l=f?l||{}:null,n=(g=n)&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null,g&&g.ecModel&&(h=(h=g.ecModel.getUpdatePayload())&&h.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=u=o=void 0,c=l?(o=E(l.duration,200),u=E(l.easing,"cubicOut"),0):(o=g.getShallow(p?"animationDurationUpdate":"animationDuration"),u=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=h&&(null!=h.duration&&(o=h.duration),null!=h.easing&&(u=h.easing),null!=h.delay)?h.delay:c)&&(c=c(s,n)),{duration:(o=w(o)?o(s):o)||0,delay:c,easing:u}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:r,force:!!r||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(i,p):e.animateTo(i,p)):(e.stopAnimation(),d||e.attr(i),a&&a(1),r&&r())}function hr(t,e,i,n,o,r){lr("update",t,e,i,n,o,r)}function ur(t,e,i,n,o,r){lr("enter",t,e,i,n,o,r)}function cr(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 pr(t,e,i,n,o,r){cr(t)||lr("leave",t,e,i,n,o,r)}function dr(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),pr(t,{style:{opacity:0}},e,i,n)}function fr(t){return yv.extend(t)}function gr(t,e){return dx(t,e)}function yr(t,e){px[t]=e}function mr(t){if(px.hasOwnProperty(t))return px[t]}function vr(t,e,i,n){return t=new u_(Ho(t,e)),i&&("center"===n&&(i=xr(i,t.getBoundingRect())),br(t,i)),t}function _r(t,e,i){var n=new bv({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===i&&(t={width:t.width,height:t.height},n.setStyle(xr(e,t)))}});return n}function xr(t,e){var e=e.width/e.height,i=t.height*e,e=i<=t.width?t.height:(i=t.width)/e;return{x:t.x+t.width/2-i/2,y:t.y+t.height/2-e/2,width:i,height:e}}function wr(t,e){for(var i=[],n=t.length,o=0;o<n;o++){var r=t[o];i.push(r.getUpdatedPathProxy(!0))}return(e=new yv(e)).createPathProxy(),e.buildPath=function(t){var e;Yo(t)&&(t.appendPath(i),e=t.getContext())&&t.rebuildPath(e,1)},e}function br(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function Sr(t,e){return Vn(t,t,{lineWidth:e}),t}function Tr(t,e){for(var i=Tt([]);t&&t!==e;)Ct(i,t.getLocalTransform(),i),t=t.parent;return i}function Mr(t,e,i){return e&&!d(e)&&(e=Xy.getLocalTransform(e)),st([],t,e=i?Dt([],e):e)}function Cr(t){return!t.isGroup}function Ir(t,e,i){function n(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var o,r;t&&e&&(r={},t.traverse(function(t){Cr(t)&&t.anid&&(r[t.anid]=t)}),o=r,e.traverse(function(t){var e,r;Cr(t)&&t.anid&&(e=o[t.anid])&&(r=n(t),t.attr(n(e)),hr(t,r,i,Rv(t).dataIndex))}))}function kr(t,e){return g(t,function(t){var i=t[0],i=ux(i,e.x),t=(i=cx(i,e.x+e.width),t[1]),t=ux(t,e.y);return[i,cx(t,e.y+e.height)]})}function Ar(t,e){var i=ux(t.x,e.x),n=cx(t.x+t.width,e.x+e.width),o=ux(t.y,e.y),t=cx(t.y+t.height,e.y+e.height);if(i<=n&&o<=t)return{x:i,y:o,width:n-i,height:t-o}}function Dr(t,e,i){var e=l({rectHover:!0},e),n=e.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),h(n,i),new bv(e)):vr(t.replace("path://",""),e,i,"center")}function Pr(t,e,i,n,o,r,a,s){var l,i=i-t,n=n-e,a=a-o,s=s-r,h=a*n-i*s;return!((l=h)<=1e-6&&-1e-6<=l||(o=((l=t-o)*n-i*(t=e-r))/h)<0||1<o||(n=(l*s-a*t)/h)<0||1<n)}function Or(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,e=b(e)?{formatter:e}:e,o=i.mainType,i=i.componentIndex,r={componentType:o,name:n,$vars:["name"]},a=(r[o+"Index"]=i,t.formatterParamsExtra),t=(a&&f(v(a),function(t){q(r,t)||(r[t]=a[t],r.$vars.push(t))}),Rv(t.el));t.componentMainType=o,t.componentIndex=i,t.tooltipConfig={name:n,option:h({content:n,encodeHTMLContent:!0,formatterParams:r},e)}}function Lr(t,e){var i;(i=t.isGroup?e(t):i)||t.traverse(e)}function Er(t,e){if(t)if(x(t))for(var i=0;i<t.length;i++)Lr(t[i],e);else Lr(t,e)}function Rr(t,e){for(var i=0;i<Wv.length;i++){var n=Wv[i],o=e[n],n=t.ensureState(n);n.style=n.style||{},n.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Nr(t,e,i){for(var n,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:n=null==(n=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null):n)?w(t.defaultText)?t.defaultText(r,t,i):t.defaultText:n},h=0;h<Wv.length;h++){var u=Wv[h],c=e[u];l[u]=E(o?o.getFormattedLabel(r,u,null,a,c&&c.get("formatter")):null,n)}return l}function Br(t,e,i,n){i=i||yx;for(var o=t instanceof Pv,r=!1,a=0;a<Xv.length;a++)if((p=e[Xv[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new Pv,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Nr(i,e),h=e.normal,u=!!h.getShallow("show"),c=Fr(h,n&&n.normal,i,!1,!o);for(c.text=l.normal,o||t.setTextConfig(Vr(h,i,!1)),a=0;a<Wv.length;a++){var p,d,f,g=Wv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!E(p.getShallow("show"),u))!=u&&(d.ignore=!f),d.style=Fr(p,n&&n[g],i,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Vr(p,i,!0)))}s.silent=!!h.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!u,s.useStyle(c),s.dirty(),i.enableTextSetter&&(xx(s).setLabelText=function(t){t=Nr(i,e,t),Rr(s,t)})}else s&&(s.ignore=!0);t.dirty()}function zr(t,e){for(var i={normal:t.getModel(e=e||"label")},n=0;n<Wv.length;n++){var o=Wv[n];i[o]=t.getModel([o,e])}return i}function Fr(t,e,i,n,o){var r,a={},s=a,h=t,u=i,c=n,p=o;u=u||yx;var d,t=h.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||yx).rich;if(i){e=e||{};for(var n=v(i),o=0;o<n.length;o++){e[n[o]]=1}}t=t.parentModel}return e}(h);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(r=h.getModel(["rich",y]),Yr(d[y]={},r,f,u,c,p,!1,!0));return d&&(s.rich=d),(t=h.get("overflow"))&&(s.overflow=t),null!=(t=h.get("minMargin"))&&(s.margin=t),Yr(s,h,f,u,c,p,!0,!1),e&&l(a,e),a}function Vr(t,e,i){e=e||{};var n={},o=t.getShallow("rotate"),r=E(t.getShallow("distance"),i?null:5),a=t.getShallow("offset"),i=t.getShallow("position")||(i?null:"inside");return null!=(i="outside"===i?e.defaultOutsidePosition||"top":i)&&(n.position=i),null!=a&&(n.offset=a),null!=o&&(o*=Math.PI/180,n.rotation=o),null!=r&&(n.distance=r),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",n}function Yr(t,e,i,n,o,r,a,s){i=!o&&i||yx;var l=n&&n.inheritColor,h=e.getShallow("color"),u=e.getShallow("textBorderColor"),c=E(e.getShallow("opacity"),i.opacity),h=("inherit"!==h&&"auto"!==h||(h=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),r||(h=h||i.color,u=u||i.textBorderColor),null!=h&&(t.fill=h),null!=u&&(t.stroke=u),E(e.getShallow("textBorderWidth"),i.textBorderWidth)),u=(null!=h&&(t.lineWidth=h),E(e.getShallow("textBorderType"),i.textBorderType)),h=(null!=u&&(t.lineDash=u),E(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset));null!=h&&(t.lineDashOffset=h),null!=(c=o||null!=c||s?c:n&&n.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<mx.length;p++){var d=mx[p];null!=(f=E(e.getShallow(d),i[d]))&&(t[d]=f)}for(var p=0;p<vx.length;p++)d=vx[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(u=e.getShallow("baseline"))&&(t.verticalAlign=u),!a||!n.disableBox){for(p=0;p<_x.length;p++){var f,d=_x[p];null!=(f=e.getShallow(d))&&(t[d]=f)}h=e.getShallow("borderType"),null!=h&&(t.borderDash=h),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Hr(t,e,i,n,o){var r,a,s,l=xx(t);l.valueAnimation&&l.prevValue!==l.value&&(r=l.defaultInterpolatedText,a=E(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?ur:hr)(t,{percent:1},n,e,null,function(n){var h=hn(i,l.precision,a,s,n),n=(l.interpolatedValue=1===n?null:h,Nr({labelDataIndex:e,labelFetcher:o,defaultText:r?r(h):h+""},l.statesModels,h));Rr(t,n)}))}function Wr(){}function Xr(){}function Gr(){}function Ur(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function jr(t){return[t||"",Lx++].join("_")}function qr(t,e){t=t.toUpperCase(),zx[t]=new Ox(e),Bx[t]=e}function Zr(t,e){return"0000".substr(0,e-(t+="").length)+t}function Kr(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 Qr(t,e,i,n){var t=Ni(t),o=t[ta(i)](),r=t[ea(i)]()+1,a=Math.floor((r-1)/3)+1,s=t[ia(i)](),l=t["get"+(i?"UTC":"")+"Day"](),h=t[na(i)](),u=(h-1)%12+1,c=t[oa(i)](),p=t[ra(i)](),t=t[aa(i)](),i=12<=h?"pm":"am",d=i.toUpperCase(),n=(n instanceof Ox?n:zx[n||Fx]||zx[Nx]).getModel("time"),f=n.get("month"),g=n.get("monthAbbr"),y=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,i+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Zr(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[r-1]).replace(/{MMM}/g,g[r-1]).replace(/{MM}/g,Zr(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,Zr(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Zr(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Zr(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Zr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Zr(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Zr(t,3)).replace(/{S}/g,t+"")}function $r(t,e){var t=Ni(t),i=t[ea(e)]()+1,n=t[ia(e)](),o=t[na(e)](),r=t[oa(e)](),a=t[ra(e)](),t=0===t[aa(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===n;return o&&1===i?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Jr(t,e,i){var n=T(t)?Ni(t):t;switch(e=e||$r(t,i)){case"year":return n[ta(i)]();case"half-year":return 6<=n[ea(i)]()?1:0;case"quarter":return Math.floor((n[ea(i)]()+1)/4);case"month":return n[ea(i)]();case"day":return n[ia(i)]();case"half-day":return n[na(i)]()/24;case"hour":return n[na(i)]();case"minute":return n[oa(i)]();case"second":return n[ra(i)]();case"millisecond":return n[aa(i)]()}}function ta(t){return t?"getUTCFullYear":"getFullYear"}function ea(t){return t?"getUTCMonth":"getMonth"}function ia(t){return t?"getUTCDate":"getDate"}function na(t){return t?"getUTCHours":"getHours"}function oa(t){return t?"getUTCMinutes":"getMinutes"}function ra(t){return t?"getUTCSeconds":"getSeconds"}function aa(t){return t?"getUTCMilliseconds":"getMilliseconds"}function sa(t){return t?"setUTCMonth":"setMonth"}function la(t){return t?"setUTCDate":"setDate"}function ha(t){return t?"setUTCHours":"setHours"}function ua(t){return t?"setUTCMinutes":"setMinutes"}function ca(t){return t?"setUTCSeconds":"setSeconds"}function pa(t){return t?"setUTCMilliseconds":"setMilliseconds"}function da(t){var e;return Yi(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function fa(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 ga(t,e,i){function n(t){return t&&F(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?Ni(t):t;if(!isNaN(+r))return Qr(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}return"ordinal"===e?S(t)?n(t):T(t)&&o(t)?t+"":"-":o(r=Vi(t))?da(r):S(t)?n(t):"boolean"==typeof t?t+"":"-"}function ya(t,e){return"{"+t+(null==e?"":e)+"}"}function ma(t,e,i){var n=(e=x(e)?e:[e]).length;if(!n)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Kx[r];t=t.replace(ya(a),ya(a,0))}for(var s=0;s<n;s++)for(var l=0;l<o.length;l++){var h=e[s][o[l]];t=t.replace(ya(Kx[l],s),i?yt(h):h)}return t}function va(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},i=t.color,n=t.type,o=(e=t.extraCssText,t.renderMode||"html");return i?"html"===o?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yt(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function _a(t,e){return e=e||"transparent",b(t)?t:M(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function xa(t,e){var i;"_blank"===e||"blank"===e?((i=window.open()).opener=null,i.location.href=t):window.open(t,e)}function wa(t,e,i,n,o){var r=0,a=0,s=(null==n&&(n=1/0),null==o&&(o=1/0),0);e.eachChild(function(l,h){var u,c,p,d=l.getBoundingRect(),h=e.childAt(h+1),h=h&&h.getBoundingRect();s="horizontal"===t?(c=d.width+(h?-h.x+d.x:0),n<(u=r+c)||l.newline?(r=0,u=c,a+=s+i,d.height):Math.max(s,d.height)):(c=d.height+(h?-h.y+d.y:0),o<(p=a+c)||l.newline?(r+=s+i,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=u+i:a=p+i)})}function ba(t,e,i){i=Zx(i||0);var n=e.width,o=e.height,r=Ai(t.left,n),a=Ai(t.top,o),e=Ai(t.right,n),s=Ai(t.bottom,o),l=Ai(t.width,n),h=Ai(t.height,o),u=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(l)&&(l=n-e-c-r),isNaN(h)&&(h=o-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(n/o<p?l=.8*n:h=.8*o),isNaN(l)&&(l=p*h),isNaN(h))&&(h=l/p),isNaN(r)&&(r=n-e-l-c),isNaN(a)&&(a=o-s-h-u),t.left||t.right){case"center":r=n/2-l/2-i[3];break;case"right":r=n-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-i[0];break;case"bottom":a=o-h-u}return r=r||0,a=a||0,isNaN(l)&&(l=n-c-r-(e||0)),isNaN(h)&&(h=o-u-a-(s||0)),p=new Og(r+i[3],a+i[0],l,h),p.margin=i,p}function Sa(t){return t=t.layoutMode||t.constructor.layoutMode,M(t)?t:t?{type:t}:null}function Ta(t,e,i){function n(i,n){var a={},l=0,h={},u=0;if(Qx(i,function(e){h[e]=t[e]}),Qx(i,function(t){o(e,t)&&(a[t]=h[t]=e[t]),r(a,t)&&l++,r(h,t)&&u++}),s[n])r(e,i[1])?h[i[2]]=null:r(e,i[2])&&(h[i[1]]=null);else if(2!==u&&l){if(!(2<=l))for(var c=0;c<i.length;c++){var p=i[c];if(!o(a,p)&&o(t,p)){a[p]=t[p];break}}return a}return h}function o(t,e){return t.hasOwnProperty(e)}function r(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){Qx(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize,i=(x(s)||(s=[s,s]),n(Jx[0],0)),l=n(Jx[1],1);a(Jx[0],t,i),a(Jx[1],t,l)}function Ma(t){return e={},(i=t)&&e&&Qx($x,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e;var e,i}function Ca(t,e,i){return t=ew.call(this,t,e,i)||this,t.uid=jr("ec_cpt_model"),t}function Ia(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function ka(t,e,i){function n(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function o(t){return t=t.dimsDef,t?t.length:1}var r,a,s,l,h,u={},c=Aa(e);return c&&t&&(r=[],a=[],e=e.ecModel,e=bw(e).datasetMap,c=c.uid+"_"+i.seriesLayoutBy,f(t=t.slice(),function(e,i){e=M(e)?e:t[i]={name:e},"ordinal"===e.type&&null==s&&(s=i,l=o(e)),u[e.name]=[]}),h=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var i,l=t.name,t=o(t);null==s?(i=h.valueWayDim,n(u[l],i,t),n(a,i,t),h.valueWayDim+=t):s===e?(n(u[l],0,t),n(r,0,t)):(i=h.categoryWayDim,n(u[l],i,t),n(a,i,t),h.categoryWayDim+=t)}),r.length&&(u.itemName=r),a.length)&&(u.seriesName=a),u}function Aa(t){if(!t.get("data",!0))return sn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},cm).models[0]}function Da(t,e){function i(t){var e=b(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?ww.Might:ww.Not:e&&"-"!==t?ww.Must:void 0}var n,o,r,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,h=t.dimensionsDefine,u=t.startIndex,c=e;if(!I(a)){if(h&&(M(h=h[c])?(o=h.name,r=h.type):b(h)&&(o=h)),null!=r)return"ordinal"===r?ww.Must:ww.Not;if(s===fw){var p=a;if(l===xw){for(var d=p[c],f=0;f<(d||[]).length&&f<5;f++)if(null!=(n=i(d[u+f])))return n}else for(f=0;f<p.length&&f<5;f++){var g=p[u+f];if(g&&null!=(n=i(g[c])))return n}}else if(s===gw){var y=a;if(!o)return ww.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(n=i(v[o])))return n}else if(s===yw){if(h=a,!o)return ww.Not;if(!(d=h[o])||I(d))return ww.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(n=i(d[f])))return n}else if(s===dw)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=qi(v=m[f]);if(!x(_))return ww.Not;if(null!=(n=i(_[c])))return n}}return ww.Not}function Pa(){}function Oa(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}function La(){return null!==uw&&uw.apply(this,arguments)||this}function Ea(t,e,i){var n,o;return x(e)?(n=X(),f(e,function(t){null!=t&&null!=$i(t,null)&&n.set(t,!0)}),m(i,function(e){return e&&n.get(e[t])})):(o=$i(e,null),m(i,function(e){return e&&null!=o&&e[t]===o}))}function Ra(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function Na(t){var e=X();return t&&f(Ui(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Ba(t){f(Dw,function(e){this[e]=$f(t[e],t)},this)}function za(){this._coordinateSystems=[]}function Fa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Va(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=Bw.length;i<n;i++){var o=Bw[i],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?s(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?s(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function Ya(t,e,i){var n,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(n=t[e].normal,o=t[e].emphasis,n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function Ha(t){Ya(t,"itemStyle"),Ya(t,"lineStyle"),Ya(t,"areaStyle"),Ya(t,"label"),Ya(t,"labelLine"),Ya(t,"upperLabel"),Ya(t,"edgeLabel")}function Wa(t,e){var i=Nw(t)&&t[e],n=Nw(i)&&i.textStyle;if(n)for(var o=0,r=hm.length;o<r;o++){var a=hm[o];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Xa(t){t&&(Ha(t),Wa(t,"label"),t.emphasis)&&Wa(t.emphasis,"label")}function Ga(t){return x(t)?t:t?[t]:[]}function Ua(t){return(x(t)?t[0]:t)||{}}function ja(t,e){Rw(Ga(t.series),function(t){if(Nw(t)&&Nw(t)){Va(t),Ha(t),Wa(t,"label"),Wa(t,"upperLabel"),Wa(t,"edgeLabel"),t.emphasis&&(Wa(t.emphasis,"label"),Wa(t.emphasis,"upperLabel"),Wa(t.emphasis,"edgeLabel"));var e=t.markPoint,i=(e&&(Va(e),Xa(e)),t.markLine),n=(i&&(Va(i),Xa(i)),t.markArea),o=(n&&Xa(n),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!I(r))for(var a=0;a<r.length;a++)Xa(r[a]);f(t.categories,function(t){Ha(t)})}if(o&&!I(o))for(a=0;a<o.length;a++)Xa(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Xa(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)x(l[a])?(Xa(l[a][0]),Xa(l[a][1])):Xa(l[a]);"gauge"===t.type?(Wa(t,"axisLabel"),Wa(t,"title"),Wa(t,"detail")):"treemap"===t.type?(Ya(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ha(t)})):"tree"===t.type&&Ha(t.leaves)}});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),Rw(i,function(e){Rw(Ga(t[e]),function(t){t&&(Wa(t,"axisLabel"),Wa(t.axisPointer,"label"))})}),Rw(Ga(t.parallel),function(t){t=t&&t.parallelAxisDefault,Wa(t,"axisLabel"),Wa(t&&t.axisPointer,"label")}),Rw(Ga(t.calendar),function(t){Ya(t,"itemStyle"),Wa(t,"dayLabel"),Wa(t,"monthLabel"),Wa(t,"yearLabel")}),Rw(Ga(t.radar),function(t){Wa(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)}),Rw(Ga(t.geo),function(t){Nw(t)&&(Xa(t),Rw(Ga(t.regions),function(t){Xa(t)}))}),Rw(Ga(t.timeline),function(t){Xa(t),Ya(t,"label"),Ya(t,"itemStyle"),Ya(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){M(t)&&(Ya(t,"label"),Ya(t,"itemStyle"))})}),Rw(Ga(t.toolbox),function(t){Ya(t,"iconStyle"),Rw(t.feature,function(t){Ya(t,"iconStyle")})}),Wa(Ua(t.axisPointer),"label"),Wa(Ua(t.tooltip).axisPointer,"label")}function qa(t){t&&f(zw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Za(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<Vw.length;i++){var n=Vw[i][1],o=Vw[i][0];null!=e[n]&&(e[o]=e[n])}}function Ka(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Qa(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function $a(t,e){ja(t,e),t.series=Ui(t.series),f(t.series,function(t){if(M(t)){var e,i=t.type;if("line"===i)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===i||"gauge"===i){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Ka(t.label),(e=t.data)&&!I(e))for(var n=0;n<e.length;n++)Ka(e[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===i){var o=function(t,e){for(var i=e.split(","),n=t,o=0;o<i.length&&null!=(n=n&&n[i[o]]);o++);return n}(t,"pointer.color");if(null!=o){for(var r,a=t,s="itemStyle.color",l=s.split(","),u=a,c=0;c<l.length-1;c++)null==u[r=l[c]]&&(u[r]={}),u=u[r];null!=u[l[c]]||(u[l[c]]=o)}}else if("bar"===i){if(Za(t),Za(t.backgroundStyle),Za(t.emphasis),(e=t.data)&&!I(e))for(n=0;n<e.length;n++)"object"==typeof e[n]&&(Za(e[n]),Za(e[n]&&e[n].emphasis))}else"sunburst"===i?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Qa(t),function t(e,i){if(e)for(var n=0;n<e.length;n++)i(e[n]),e[n]&&t(e[n].children,i)}(t.data,Qa)):"graph"===i||"sankey"===i?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===i&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&h(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),qa(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(Fw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){qa(t)})})}function Ja(t){f(t,function(e,i){var n=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,function(r,h,u){var c,p,d=a.get(e.stackedDimension,u);if(isNaN(d))return o;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f,g,y,m=NaN,v=i-1;0<=v;v--){var _=t[v];if(0<=(p=s?p:_.data.rawIndexOf(_.stackedByDimension,c))&&(_=_.data.getByRawIndex(_.stackResultDimension,p),"all"===l||"positive"===l&&0<_||"negative"===l&&_<0||"samesign"===l&&0<=d&&0<_||"samesign"===l&&d<=0&&_<0)){f=d,g=_,y=void 0,y=Math.max(Pi(f),Pi(g)),f+=g,d=am<y?f:Di(f,y),m=_;break}}return n[0]=d,n[1]=m,n})})}function ts(t){return t instanceof Yw}function es(t,e,i){i=i||ns(t);var n=e.seriesLayoutBy,o=function(t,e,i,n,o){var r,a;if(!t)return{dimensionsDefine:os(o),startIndex:a,dimensionsDetectedCount:r};var s;return e===fw?(s=t,"auto"===n||null==n?rs(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,s,10):a=T(n)?n:n?1:0,o||1!==a||(o=[],rs(function(t,e){o[e]=null!=t?t+"":""},i,s,1/0)),r=o?o.length:i===xw?s.length:s[0]?s[0].length:null):e===gw?o=o||function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e)return v(e)}(t):e===yw?o||(o=[],f(t,function(t,e){o.push(e)})):e===dw&&(n=qi(t[0]),r=x(n)&&n.length||1),{startIndex:a,dimensionsDefine:os(o),dimensionsDetectedCount:r}}(t,i,n,e.sourceHeader,e.dimensions);return new Yw({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:a(e)})}function is(t){return new Yw({data:t,sourceFormat:I(t)?mw:dw})}function ns(t){var e=vw;if(I(t))e=mw;else if(x(t)){0===t.length&&(e=fw);for(var i=0,n=t.length;i<n;i++){var o=t[i];if(null!=o){if(x(o)||I(o)){e=fw;break}if(M(o)){e=gw;break}}}}else if(M(t))for(var r in t)if(q(t,r)&&d(t[r])){e=yw;break}return e}function os(t){var e;if(t)return e=X(),g(t,function(t,i){var n,t={name:(t=M(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=e.get(t.name))?t.name+="-"+n.count++:e.set(t.name,{count:1})),t})}function rs(t,e,i,n){if(e===xw)for(var o=0;o<i.length&&o<n;o++)t(i[o]?i[o][0]:null,o);else for(var r=i[0]||[],o=0;o<r.length&&o<n;o++)t(r[o],o)}function as(t){return(t=t.sourceFormat)===gw||t===yw}function ss(t,e){var t=ts(t)?t:is(t),i=(this._source=t,this._data=t.data);t.sourceFormat===mw&&(this._offset=0,this._dimSize=e,this._data=i),Aw(this,i,t)}function ls(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function hs(t,e,i,n){return t[n]}function us(t,e){return Uw[gs(t,e)]}function cs(t,e,i){return t.length}function ps(t,e){return jw[gs(t,e)]}function ds(t,e,i){return t[e]}function fs(t){return qw[t]}function gs(t,e){return t===fw?t+"_"+e:t}function ys(t,e,i){if(t){var n,o,e=t.getRawDataItem(e);if(null!=e)return n=(o=t.getStore()).getSource().sourceFormat,null!=i?(t=t.getDimensionIndex(i),i=o.getDimensionProperty(t),fs(n)(e,t,i)):(o=e,n===dw?qi(e):o)}}function ms(){}function vs(t){var e,i;return M(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function _s(t){return new nb(t)}function xs(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ws(){return $w<Qw?$w++:null}function bs(){var t=$w%eb*Jw+Math.ceil($w/eb),t=Qw<=$w?null:t<tb?t:$w;return $w++,t}function Ss(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||T(t)||null==t||"-"===t?t:+Ni(t))||""===t?NaN:Number(t)}function Ts(t){return rb.get(t)}function Ms(t,e){T(e)||Xi(""),this._opFn=ab[t],this._rvalFloat=Vi(e)}function Cs(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 Is(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vi(e)}function ks(){}function As(t){return Es(t.sourceFormat)||Xi(""),t.data}function Ds(t){var e=t.sourceFormat,i=t.data;if(Es(e)||Xi(""),e===fw){for(var n=[],o=0,r=i.length;o<r;o++)n.push(i[o].slice());return n}if(e===gw){for(n=[],o=0,r=i.length;o<r;o++)n.push(l({},i[o]));return n}}function Ps(t,e,i){if(null!=i)return T(i)||!isNaN(i)&&!q(e,i)?t[i]:q(e,i)?e[i]:void 0}function Os(t){return a(t)}function Ls(t,e){var i=Ui(t),t=i.length;t||Xi("");for(var n=0,o=t;n<o;n++)e=function(t,e){e.length||Xi(""),M(t)||Xi("");var i=t.type,n=pb.get(i);return n||Xi(""),i=g(e,function(t){var e=t,t=n,i=new cb,o=e.data,r=i.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==_w&&Xi(""),[]),l={};if(c=e.dimensionsDefine)f(c,function(t,e){var i=t.name,e={index:e,name:i,displayName:t.displayName};s.push(e),null!=i&&(q(l,i)&&Xi(""),l[i]=e)});else for(var h=0;h<e.dimensionsDetectedCount;h++)s.push({index:h});var u=us(r,_w),c=(t.__isBuiltIn&&(i.getRawDataItem=function(t){return u(o,a,s,t)},i.getRawData=$f(As,null,e)),i.cloneRawData=$f(Ds,null,e),ps(r,_w)),p=(i.count=$f(c,null,o,a,s),fs(r)),d=(i.retrieveValue=function(t,e){return t=u(o,a,s,t),d(t,e)},i.retrieveValueFromItem=function(t,e){var i;return null!=t&&(i=s[e])?p(t,e,i.name):void 0});return i.getDimensionInfo=$f(Ps,null,s,l),i.cloneAllDimensionInfo=$f(Os,null,s),i}),g(Ui(n.transform({upstream:i[0],upstreamList:i,config:a(t.config)})),function(t,i){M(t)||Xi(""),t.data||Xi(""),Es(ns(t.data))||Xi("");var n=e[0],i=n&&0===i&&!t.dimensions?((i=n.startIndex)&&(t.data=n.data.slice(0,i).concat(t.data)),{seriesLayoutBy:_w,sourceHeader:i,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:_w,sourceHeader:0,dimensions:t.dimensions};return es(t.data,i,null)})}(i[n],e),n!==o-1&&(e.length=Math.max(e.length,1));return e}function Es(t){return t===fw||t===gw}function Rs(t){return 65535<t?db:fb}function Ns(){return[1/0,-1/0]}function Bs(t,e,i,n,o){if(i=yb[i||"float"],o){var r=t[e],a=r&&r.length;if(a!==n){for(var s=new i(n),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new i(n)}function zs(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}function Fs(t,e,i,n){return Ss(t[n],this._dimensions[n])}function Vs(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Ys(t){t.option.transform&&V(t.option.transform)}function Hs(t){return"series"===t.mainType}function Ws(t){throw new Error(t)}function Xs(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+yt(n+"")+"px;color:"+yt(i)+";font-weight:"+yt(o+""),valueStyle:"font-size:"+yt(a+"")+"px;color:"+yt(r)+";font-weight:"+yt(t+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}function Gs(t,e){return e.type=t,e}function Us(t){return"section"===t.type}function js(t){return Us(t)?qs:Zs}function qs(t,e,i,n){var o,r=e.noHeader,a=(h=function t(e){var i,n,o;return Us(e)?(i=0,n=e.blocks.length,o=1<n||0<n&&!e.noHeader,f(e.blocks,function(e){var n=t(e);i<=n&&(i=n+ +(o&&(!n||Us(e)&&!e.noHeader)))}),i):0}(e),{html:xb[h],richText:wb[h]}),s=[],h=e.blocks||[],u=(z(!h||x(h)),h=h||[],t.orderMode),c=(e.sortBlocks&&u&&(h=h.slice(),q(c={valueAsc:"asc",valueDesc:"desc"},u)?(o=new lb(c[u],null),h.sort(function(t,e){return o.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&h.reverse()),f(h,function(i,o){var r=e.valueFormatter,r=js(i)(r?l(l({},t),{valueFormatter:r}):t,i,0<o?a.html:0,n);null!=r&&s.push(r)}),"richText"===t.renderMode?s.join(a.richText):Qs(s.join(""),r?i:a.html));return r?c:(u=ga(e.header,"ordinal",t.useUTC),h=Xs(n,t.renderMode).nameStyle,"richText"===t.renderMode?$s(t,u,h)+a.richText+c:Qs('<div style="'+h+";"+_b+';">'+yt(u)+"</div>"+c,i))}function Zs(t,e,i,n){var o,r,a,s,l=t.renderMode,h=e.noName,u=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 ga(t,x(r)?r[e]:r,d)})};if(!h||!u)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":ga(p,"ordinal",d),r=e.valueType,f=u?[]:f(e.value,e.dataIndex),e=!c||!h,a=!c&&h,n=Xs(n,l),s=n.nameStyle,n=n.valueStyle,"richText"===l?(c?"":o)+(h?"":$s(t,p,s))+(u?"":function(t,e,i,n,o){return o=[o],n=n?10:20,i&&o.push({padding:[0,0,0,n],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,o)}(t,f,e,a,n)):Qs((c?"":o)+(h?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+yt(p)+"</span>")+(u?"":function(t,e,i,n){return i=i?"10px":"20px",e=e?"float:right;margin-left:"+i:"",t=x(t)?t:[t],'<span style="'+e+";"+n+'">'+g(t,yt).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,n)),i)}function Ks(t,e,i,n,o,r){if(t)return js(t)({useUTC:o,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Qs(t,e){return'<div style="margin: '+e+"px 0 0;"+_b+';">'+t+'<div style="clear:both"></div></div>'}function $s(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function Js(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function tl(){this.richTextStyles={},this._nextStyleNameId=Hi()}function el(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(h?p.push(Gs("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(u.push(t),c.push(e.type)))}var i,n,o,r,a,s,l,h,u,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,_a((T=d).getData().getItemVisual(S,"style")[T.visualDrawType]));1<_||b&&!_?(T=w,r=g,a=v,s=S,l=d.getData(),h=y(T,function(t,e,i){return i=l.getDimensionInfo(i),t||i&&!1!==i.tooltip&&null!=i.displayName},!1),u=[],c=[],p=[],a.length?f(a,function(t){e(ys(l,r,t),t)}):f(T,e),i=(a={inlineValues:u,inlineValueTypes:c,blocks:p}).inlineValueTypes,n=a.blocks,o=(a=a.inlineValues)[0]):_?(T=m.getDimensionInfo(v[0]),o=a=ys(m,g,v[0]),i=T.type):o=a=b?w[0]:w;var _=Ji(d),v=_&&d.name||"",T=m.getName(g),b=t?v:T;return Gs("section",{header:v,noHeader:t||!_,sortParam:o,blocks:[Gs("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:i,dataIndex:g})].concat(n||[])})}function il(t,e){return t.getName(e)||t.getId(e)}function nl(){var t=null!==Tb&&Tb.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function ol(t){var e,i,n=t.name;Ji(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),i=[],f(t,function(t){t=e.getDimensionInfo(t),t.displayName&&i.push(t.displayName)}),i.join(" ")||n))}function rl(t){return t.model.getRawData().count()}function al(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),sl}function sl(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ll(t,e){f(G(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,_(hl,e))})}function hl(t,e){return t=ul(t),t&&t.setOutputEnd((e||this).count()),e}function ul(t){var e,i=(t.ecModel||{}).scheduler,i=i&&i.getPipeline(t.uid);if(i)return(i=i.currentTask)&&(e=i.agentStubMap)?e.get(t.uid):i}function cl(){this.group=new Jy,this.uid=jr("viewComponent")}function pl(){var t=on();return function(e){var i=t(e),e=e.pipelineContext,n=!!i.large,o=!!i.progressiveRender,r=i.large=!(!e||!e.large),i=i.progressiveRender=!(!e||!e.progressiveRender);return!(n==r&&o==i)&&"reset"}}function dl(){this.group=new Jy,this.uid=jr("viewChart"),this.renderTask=_s({plan:yl,reset:ml}),this.renderTask.context={view:this}}function fl(t,e,i){t&&Lo(t)&&("emphasis"===e?mo:vo)(t,i)}function gl(t,e,i){var n,o=nn(t,e),r=e&&null!=e.highlightKey?(e=e.highlightKey,n=null==(n=Bv[e])&&Nv<=32?Bv[e]=Nv++:n):null;null!=o?f(Ui(o),function(e){fl(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){fl(t,i,r)})}function yl(t){return kb(t.model)}function ml(t){var e=t.model,i=t.ecModel,n=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Ib(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,i,n,o),Db[r]}function vl(t,e,i){function n(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function o(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];r=(new Date).getTime(),s=this,l=t;var d=h||e,f=h||i;h=null,a=r-(f?u:c)-d,clearTimeout(p),f?p=setTimeout(n,d):0<=a?n():p=setTimeout(n,-a),u=r}var r,a,s,l,h,u=0,c=0,p=null;return e=e||0,o.clear=function(){p&&(clearTimeout(p),p=null)},o.debounceNextCall=function(t){h=t},o}function _l(t,e,i,n){var o=t[e];if(o){var r=o[Pb]||o,a=o[Lb];if(o[Ob]!==i||a!==n){if(null==i||!n)return t[e]=r;(o=t[e]=vl(r,i,"debounce"===n))[Pb]=r,o[Lb]=n,o[Ob]=i}}}function xl(t,e){var i=t[e];i&&i[Pb]&&(i.clear&&i.clear(),t[e]=i[Pb])}function wl(t,e){return(t=t.visualStyleMapper||Rb[e])||(console.warn("Unknown style type '"+e+"'."),Rb.itemStyle)}function bl(t,e){return(t=t.visualDrawType||Nb[e])||(console.warn("Unknown style type '"+e+"'."),"fill")}function Sl(t,e,i,n){this._stageTaskMap=X(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}function Tl(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ml(t){return t.overallProgress&&Cl}function Cl(){this.agent.dirty(),this.getDownstream().dirty()}function Il(){this.agent&&this.agent.dirty()}function kl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Al(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Ui(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return Dl(e)}):Yb}function Dl(t){return function(e,i){var n=i.data,o=i.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(n,r);else o&&o.progress&&o.progress(e,n)}}function Pl(t){return t.data.count()}function Ol(t,e){for(var i in e.prototype)t[i]=Z}function Ll(){return{axisLine:{lineStyle:{color:Xb}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function El(){}function Rl(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Nl(t,e,i,n,o){var r=t+e;i.isSilent(r)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,a=t.seriesIndex,s=t.option.selectedMap,h=o.selected,u=0;u<h.length;u++)h[u].seriesIndex===a&&(n=nn(e=t.getData(),o.fromActionPayload),i.trigger(r,{type:r,seriesId:t.id,name:x(n)?e.getName(n[0]):e.getName(n),selected:b(s)?s:l({},s)}))})}function Bl(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function zl(){this._id="__ec_inner_"+qb++}function Fl(t,e){var i;"image"!==this.type&&(i=this.style,this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw())}function Vl(t,e,i,n,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?_r(t.slice(8),new Og(e,i,n,o),a?"center":"cover"):0===t.indexOf("path://")?vr(t.slice(7),{},new Og(e,i,n,o),a?"center":"cover"):new nS({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=s,a.setColor=Fl,r&&a.setColor(r),a}function Yl(t,e){if(null!=t)return[Ai((t=x(t)?t:[t,t])[0],e[0])||0,Ai(E(t[1],t[0]),e[1])||0]}function Hl(t){return isFinite(t)}function Wl(t,e,i){for(var n,o,r,a,s,l,h,u,c,p="radial"===e.type?(n=t,o=e,a=(r=i).width,s=r.height,l=Math.min(a,s),h=null==o.x?.5:o.x,u=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(h=h*a+r.x,u=u*s+r.y,c*=l),h=Hl(h)?h:.5,u=Hl(u)?u:.5,c=0<=c&&Hl(c)?c:.5,n.createRadialGradient(h,u,0,h,u,c)):(o=t,a=i,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,n=null==s.y?0:s.y,h=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,n=n*a.height+a.y,h=h*a.height+a.y),r=Hl(r)?r:0,l=Hl(l)?l:1,n=Hl(n)?n:0,h=Hl(h)?h:0,o.createLinearGradient(r,n,l,h)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Xl(t){return parseInt(t,10)}function Gl(t,e,i){var n=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=i[n]&&"auto"!==i[n]?parseFloat(i[n]):(i=document.defaultView.getComputedStyle(t),(t[o]||Xl(i[n])||Xl(t.style[n]))-(Xl(i[r])||0)-(Xl(i[e])||0)|0)}function Ul(t){var e,i=t.style,n=i.lineDash&&0<i.lineWidth&&(o=i.lineDash,n=i.lineWidth,o&&"solid"!==o&&0<n?"dashed"===o?[4*n,2*n]:"dotted"===o?[n]:T(o)?[o]:x(o)?o:null:null),o=i.lineDashOffset;return n&&(e=i.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(n=g(n,function(t){return t/e}),o/=e),[n,o]}function jl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function ql(t){return"string"==typeof t&&"none"!==t}function Zl(t){return null!=(t=t.fill)&&"none"!==t}function Kl(t,e){var i;null!=e.fillOpacity&&1!==e.fillOpacity?(i=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i):t.fill()}function Ql(t,e){var i;null!=e.strokeOpacity&&1!==e.strokeOpacity?(i=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i):t.stroke()}function $l(t,e,i){var i=vn(e.image,e.__image,i);if(xn(i))return t=t.createPattern(i,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((i=new DOMMatrix).translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*ng),i.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(i)),t}function Jl(t,e,i,n,o){var r,a=!1;if(!n&&e===(i=i||{}))return!1;!n&&e.opacity===i.opacity||(ih(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Mm.opacity:r),!n&&e.blend===i.blend||(a||(ih(t,o),a=!0),t.globalCompositeOperation=e.blend||Mm.blend);for(var s=0;s<rS.length;s++){var l=rS[s];!n&&e[l]===i[l]||(a||(ih(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!n&&e.shadowColor===i.shadowColor||(a||(ih(t,o),a=!0),t.shadowColor=e.shadowColor||Mm.shadowColor),a}function th(t,e,i,n,o){var r=nh(e,o.inHover),a=n?null:i&&nh(i,o.inHover)||{};if(r!==a){var s=Jl(t,r,a,n,o);(n||r.fill!==a.fill)&&(s||(ih(t,o),s=!0),ql(r.fill))&&(t.fillStyle=r.fill),(n||r.stroke!==a.stroke)&&(s||(ih(t,o),s=!0),ql(r.stroke))&&(t.strokeStyle=r.stroke),!n&&r.opacity===a.opacity||(s||(ih(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(i=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==i)&&(s||(ih(t,o),s=!0),t.lineWidth=i);for(var l=0;l<aS.length;l++){var h=aS[l],u=h[0];!n&&r[u]===a[u]||(s||(ih(t,o),s=!0),t[u]=r[u]||h[1])}}}function eh(t,e){var e=e.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)}function ih(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function nh(t,e){return e&&t.__hoverStyle||t.style}function oh(t,e){rh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function rh(t,e,i,n){var o=e.transform;if(e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){var r=e.__clipPaths,a=i.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 i=0;i<t.length;i++)if(t[i]!==e[i])return 1}}(r,a)){if(a&&a.length&&(ih(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),r&&r.length){ih(t,i),t.save();for(var h=r,u=t,a=i,c=!1,p=0;p<h.length;p++){var d=h[p],c=c||d.isZeroArea();eh(u,d),u.beginPath(),d.buildPath(u,d.shape),u.clip()}a.allClipped=c,s=!0}i.prevElClipPaths=r}if(i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,T,M,C,I,k,A,D,P,O,L,E,R,N,a=i.prevEl,B=(a||(l=s=!0),e instanceof yv&&e.autoBatch&&(r=e.style,B=Zl(r),f=jl(r),!(r.lineDash||!(+B^+f)||B&&"string"!=typeof r.fill||f&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1))),s=(s||(f=o,r=a.transform,f&&r?f[0]!==r[0]||f[1]!==r[1]||f[2]!==r[2]||f[3]!==r[3]||f[4]!==r[4]||f[5]!==r[5]:f||r)?(ih(t,i),eh(t,e)):B||ih(t,i),nh(e,i.inHover));if(e instanceof yv)i.lastDrawType!==sS&&(l=!0,i.lastDrawType=sS),th(t,e,a,l,i),B&&(i.batchFill||i.batchStroke)||t.beginPath(),o=t,r=e,H=B,k=jl(m=s),A=Zl(m),D=m.strokePercent,P=D<1,O=!r.path,r.silent&&!P||!O||r.createPathProxy(),L=r.path||oS,E=r.__dirty,H||(v=m.fill,N=m.stroke,_=A&&!!v.colorStops,x=k&&!!N.colorStops,w=A&&!!v.image,b=k&&!!N.image,R=C=M=T=S=void 0,(_||x)&&(R=r.getBoundingRect()),_&&(S=E?Wl(o,v,R):r.__canvasFillGradient,r.__canvasFillGradient=S),x&&(T=E?Wl(o,N,R):r.__canvasStrokeGradient,r.__canvasStrokeGradient=T),w&&(M=E||!r.__canvasFillPattern?$l(o,v,r):r.__canvasFillPattern,r.__canvasFillPattern=M),b&&(C=E||!r.__canvasStrokePattern?$l(o,N,r):r.__canvasStrokePattern,r.__canvasStrokePattern=M),_?o.fillStyle=S:w&&(M?o.fillStyle=M:A=!1),x?o.strokeStyle=T:b&&(C?o.strokeStyle=C:k=!1)),R=r.getGlobalScale(),L.setScale(R[0],R[1],r.segmentIgnoreThreshold),o.setLineDash&&m.lineDash&&(I=(v=Ul(r))[0],Y=v[1]),N=!0,(O||E&Xg)&&(L.setDPR(o.dpr),P?L.setContext(null):(L.setContext(o),N=!1),L.reset(),r.buildPath(L,r.shape,H),L.toStatic(),r.pathUpdated()),N&&L.rebuildPath(o,P?D:1),I&&(o.setLineDash(I),o.lineDashOffset=Y),H||(m.strokeFirst?(k&&Ql(o,m),A&&Kl(o,m)):(A&&Kl(o,m),k&&Ql(o,m))),I&&o.setLineDash([]),B&&(i.batchFill=s.fill||"",i.batchStroke=s.stroke||"");else if(e instanceof vv)i.lastDrawType!==hS&&(l=!0,i.lastDrawType=hS),th(t,e,a,l,i),_=t,S=e,null!=(M=(w=s).text)&&(M+=""),M&&(_.font=w.font||Nf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,T=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Ul(S))[0],T=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=T),w.strokeFirst?(jl(w)&&_.strokeText(M,w.x,w.y),Zl(w)&&_.fillText(M,w.x,w.y)):(Zl(w)&&_.fillText(M,w.x,w.y),jl(w)&&_.strokeText(M,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof bv)i.lastDrawType!==lS&&(l=!0,i.lastDrawType=lS),b=a,C=l,Jl(t,nh(e,(R=i).inHover),b&&nh(b,R.inHover),C,R),v=t,O=s,(r=(E=e).__image=vn(O.image,E.__image,E,E.onload))&&xn(r)&&(N=O.x||0,L=O.y||0,P=E.getWidth(),E=E.getHeight(),D=r.width/r.height,null==P&&null!=E?P=E*D:null==E&&null!=P?E=P/D:null==P&&null==E&&(P=r.width,E=r.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(r,g,y,O.sWidth,O.sHeight,N,L,P,E)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(r,g,y,P-g,E-y,N,L,P,E)):v.drawImage(r,N,L,P,E));else if(e.getTemporalDisplayables){i.lastDrawType!==uS&&(l=!0,i.lastDrawType=uS);var z,F,V=t,Y=e,H=i,W=Y.getDisplayables(),X=Y.getTemporalDisplayables(),G=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:H.viewWidth,viewHeight:H.viewHeight,inHover:H.inHover});for(z=Y.getCursor(),F=W.length;z<F;z++)(U=W[z]).beforeBrush&&U.beforeBrush(),U.innerBeforeBrush(),rh(V,U,G,z===F-1),U.innerAfterBrush(),U.afterBrush&&U.afterBrush(),G.prevEl=U;for(var U,j=0,q=X.length;j<q;j++)(U=X[j]).beforeBrush&&U.beforeBrush(),U.innerBeforeBrush(),rh(V,U,G,j===q-1),U.innerAfterBrush(),U.afterBrush&&U.afterBrush(),G.prevEl=U;Y.clearTemporalDisplayables(),Y.notClear=!0,V.restore()}B&&n&&ih(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(i.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Wg,e.__isRendered=!1}function ah(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),o="svg"===n.painter.type,e=(t.dirty&&cS.delete(t),cS.get(t));if(e)return e;for(var r,a=h(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=[i],u=!0,c=0;c<dS.length;++c){var p=a[dS[c]];if(null!=p&&!x(p)&&!b(p)&&!T(p)&&"boolean"!=typeof p){u=!1;break}l.push(p)}u&&(r=l.join(",")+(o?"-svg":""),w=pS.get(r))&&(o?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(T(e))return[[r=Math.ceil(e),r]];for(var i=!0,n=0;n<e.length;++n)if(!T(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n){var r;T(e[n])?(r=Math.ceil(e[n]),o.push([r,r])):(r=g(e[n],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(T(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 i=!0,n=0;n<e.length;++n)if(!b(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n)b(e[n])?o.push([e[n]]):o.push(e[n]);return o}(a.symbol),v=function(t){return g(t,sh)}(f),_=sh(y),w=!o&&zf.createCanvas(),S=o&&{tag:"g",attrs:{},key:"dcl",children:[]},M=function(){for(var t=1,e=0,i=v.length;e<i;++e)t=Wi(t,v[e]);for(var n=1,e=0,i=m.length;e<i;++e)n=Wi(n,m[e].length);t*=n;var o=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();w&&(w.width=M.width*i,w.height=M.height*i,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 C=0,I=0;I<y.length;++I)C+=y[I];if(!(C<=0))for(var k=-_,A=0,D=0,P=0;k<M.height;){if(A%2==0){for(var O=D/2%m.length,L=0,E=0,R=0;L<2*M.width;){for(var N,B,z,F,V,Y=0,I=0;I<f[P].length;++I)Y+=f[P][I];if(Y<=0)break;E%2==0&&(B=.5*(1-a.symbolSize),N=L+f[P][E]*B,B=k+y[A]*B,z=f[P][E]*a.symbolSize,F=y[A]*a.symbolSize,V=R/2%m[O].length,function(t,e,r,s,l){var h=o?1:i,l=Vl(l,t*h,e*h,r*h,s*h,a.color,a.symbolKeepAspect);o?(t=n.painter.renderOneToVNode(l))&&S.children.push(t):oh(d,l)}(N,B,z,F,m[O][V])),L+=f[P][E],++R,++E===f[P].length&&(E=0)}++P===f.length&&(P=0)}k+=y[A],++D,++A===y.length&&(A=0)}return u&&pS.put(r,w||S),s.image=w,s.svgElement=S,s.svgWidth=M.width,s.svgHeight=M.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/i,cS.set(t,e),t.dirty=!1,e}function sh(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function lh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(!this.isDisposed())return uh(this,t,e);this.id}}function hh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return uh(this,t,e)}}function uh(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),ug.prototype[e].apply(t,i)}function ch(){return null!==wS&&wS.apply(this,arguments)||this}function ph(t,e,i){function n(t,e){return t.__prio-e.__prio}var o=VS.call(this,new Gb)||this,t=(o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},b(e)&&(e=ZS[e]),o._dom=t,i.ssr&&Ii(function(t){var e,t=Rv(t),i=t.dataIndex;if(null!=i)return(e=X()).set("series_index",t.seriesIndex),e.set("data_index",i),t.ssrType&&e.set("ssr_type",t.ssrType),e}),o._zr=Ti(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:E(i.useDirtyRect,!1),useCoarsePointer:E(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize})),i=(o._ssr=i.ssr,o._throttledZrFlush=vl($f(t.flush,t),17),(e=a(e))&&$a(e,!0),o._theme=e,o._locale=b(e=i.locale||Fx)?(i=Bx[e.toUpperCase()]||{},e===Ex||e===Rx?a(i):s(a(i),a(Bx[Nx]),!1)):s(a(e),a(Bx[Nx]),!1),o._coordSysMgr=new Ow,o._api=NS(o));return Wt(qS,n),Wt(US,n),o._scheduler=new Vb(o,i,US,qS),o._messageCenter=new YS,o._initEvents(),o.resize=$f(o.resize,o),t.animation.on("frame",o._onframe,o),PS(t,o),OS(t,o),V(o),o}function dh(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function fh(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var o=i[n];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Hv&&t.states.emphasis?e.push("emphasis"):t.hoverState===Yv&&t.states.blur&&e.push("blur"),t.useStates(e)}function gh(t,e){var i,n;t.preventAutoZ||(i=t.get("z")||0,n=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,i,n,o){var r=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),h=0;h<l.length;h++)o=Math.max(t(l[h],i,n,o),o);else e.z=i,e.zlevel=n,o=Math.max(e.z2,o);return r&&(r.z=i,r.zlevel=n,isFinite(o))&&(r.z2=o+2),a&&(s=e.textGuideLineConfig,a.z=i,a.zlevel=n,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1)),o}(t,i,n,-1/0),!0}))}function yh(t,e){e.eachRendered(function(t){var e,i;cr(t)||(e=t.getTextContent(),i=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function mh(t,e){var i=t.getModel("stateAnimation"),n=t.isAnimationEnabled(),t=i.get("duration"),o=0<t?{duration:t,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){var e,i,r;t.states&&t.states.emphasis&&(cr(t)||(t instanceof yv&&((r=zv(i=t)).normalFill=i.style.fill,r.normalStroke=i.style.stroke,i=i.states.select||{},r.selectFill=i.style&&i.style.fill||null,r.selectStroke=i.style&&i.style.stroke||null),t.__dirty&&(r=t.prevStates)&&t.useStates(r),n&&(t.stateTransition=o,i=t.getTextContent(),e=t.getTextGuideLine(),i&&(i.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&fh(t)))})}function vh(t){$S[t]=!1}function _h(t){return QS[(e=eT,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function xh(t,e){ZS[t]=e}function wh(t){u(jS,t)<0&&jS.push(t)}function bh(t,e){Dh(US,t,e,2e3)}function Sh(t){Mh("afterinit",t)}function Th(t){Mh("afterupdate",t)}function Mh(t,e){fS.on(t,e)}function Ch(t,e,i){w(e)&&(i=e,e="");var n=M(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,GS[e]||(z(_S.test(n)&&_S.test(e)),XS[n]||(XS[n]={action:i,actionInfo:t}),GS[e]=n)}function Ih(t,e){Ow.register(t,e)}function kh(t,e){Dh(qS,t,e,1e3,"layout")}function Ah(t,e){Dh(qS,t,e,3e3,"visual")}function Dh(t,e,i,n,o){(w(e)||M(e))&&(i=e,e=n),0<=u(iT,i)||(iT.push(i),(n=Vb.wrapStageHandler(i,o)).__prio=e,n.__raw=i,t.push(n))}function Ph(t,e){KS[t]=e}function Oh(t,e,i){var n=gS.registerMap;n&&n(t,e,i)}function Lh(t){var e=(t=a(t)).type,i=(e||Xi(""),e.split(":")),n=(2!==i.length&&Xi(""),!1);"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,pb.set(e,t)}function Eh(t){return null==t?0:t.length||1}function Rh(t){return t}function Nh(t,e,i,n,o,r){this._old=t,this._new=e,this._oldKeyGetter=i||Rh,this._newKeyGetter=n||Rh,this.context=o,this._diffModeMultiple="multiple"===r}function Bh(t,e){this._encode=t,this._schema=e}function zh(t,e){var i={},n=i.encode={},o=X(),r=[],a=[],s={},l=(f(t.dimensions,function(e){var i,l,h=t.getDimensionInfo(e),u=h.coordDim;u&&(i=h.coordDimIndex,Fh(n,u)[i]=e,h.isExtraCoord||(o.set(u,1),"ordinal"!==(l=h.type)&&"time"!==l&&(r[0]=e),Fh(s,u)[i]=t.getDimensionIndex(h.name)),h.defaultTooltip)&&a.push(e),pw.each(function(t,e){var i=Fh(n,e),e=h.otherDims[e];null!=e&&!1!==e&&(i[e]=h.name)})}),[]),h={},u=(o.each(function(t,e){var i=n[e];h[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=h,n.label),u=(u&&u.length&&(r=u.slice()),n.tooltip);return u&&u.length?a=u.slice():a.length||(a=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=a,i.userOutput=new cT(s,e),i}function Fh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Vh(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Yh(t){return t instanceof gT}function Hh(t){for(var e=X(),i=0;i<(t||[]).length;i++){var n=t[i],n=M(n)?n.name:n;null!=n&&null==e.get(n)&&e.set(n,i)}return e}function Wh(t){var e=dT(t);return e.dimNameMap||(e.dimNameMap=Hh(t.dimensionsDefine))}function Xh(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 i,n,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(Yh(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,i=t),i=i||["x","y"],{}),a=[],s={},l=!1,h={},u=0;u<i.length;u++){var c=i[u],c=b(c)?new pT({name:c}):c instanceof pT?c:new pT(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!=h[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),o&&(c.storeDimIndex=u)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(n=this._dimIdxToName=X(),f(a,function(t){n.set(r[t].storeDimIndex,t)}))}function Gh(t,e){function i(t){var e,i,n,o=x[t];return o<0?(e=M(e=u[t])?e:{name:e},i=new pT,null!=(n=e.name)&&null!=m.get(n)&&(i.name=i.displayName=n),null!=e.type&&(i.type=e.type),null!=e.displayName&&(i.displayName=e.displayName),x[t]=p.length,i.storeDimIndex=t,p.push(i),i):p[o]}function n(t,e,i){null!=pw.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,c.set(e,!0))}function o(t){null==t.name&&(t.name=t.coordDim)}ts(t)||(t=is(t));for(var r,a,s=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],c=X(),p=[],d=(g=t,r=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,r.length,u.length,v||0),f(r,function(t){M(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=u===t.dimensionsDefine,m=y?Wh(t):Hh(u),v=e.encodeDefine,_=X(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new gb(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)i(w);_.each(function(t,e){var o,t=Ui(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(o=_.set(e,[]),f(t,function(t,r){null!=(t=b(t)?m.get(t):t)&&t<d&&n(i(o[r]=t),e,r)}))});var S=0;f(s,function(t){b(t)?(a=t,r={}):(a=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=l({},r)).ordinalMeta=t,e=r.dimsDef,o=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var e,o,r,a,s=_.get(a);if(!1!==s){if(!(s=Ui(s)).length)for(var u=0;u<(e&&e.length||1);u++){for(;S<d&&null!=i(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=i(t),y&&null!=r.type&&(t.type=r.type),n(h(t,r),a,s),null==t.name&&e&&(M(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),o&&h(t.otherDims,o)})}});var T=e.generateCoord,C=null!=(I=e.generateCoordCount),I=T?I||1:0,k=T||"value";if(g)f(p,function(t){o(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var A=0;A<d;A++){var D=i(A);null==D.coordDim&&(D.coordDim=function(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}(k,c,C),D.coordDimIndex=0,(!T||I<=0)&&(D.isExtraCoord=!0),I--),o(D),null!=D.type||Da(t,A)!==ww.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}for(var P=p,O=X(),L=0;L<P.length;L++){var E=P[L],R=E.name,N=O.get(R)||0;0<N&&(E.name=R+(N-1)),N++,O.set(R,N)}return new gT({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Uh(t){return"category"===t.get("type")}function jh(t,e,i){var n,o,r,a,s,l,h,u,c,p=(i=i||{}).byIndex,d=i.stackedCoordDimension,g=(Yh(e.schema)?(o=e.schema,n=o.dimensions,r=e.store):n=e,!(!t||!t.get("stack")));return f(n,function(t,e){b(t)&&(n[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,h="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),u=s.coordDim,i=s.type,c=0,f(n,function(t){t.coordDim===u&&c++}),e={name:l,coordDim:u,coordDimIndex:c,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},t={name:h,coordDim:h,coordDimIndex:c+1,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(h,i),t.storeDimIndex=r.ensureCalculationDimension(l,i)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(n.push(e),n.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:h,stackResultDimension:l}}function qh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Zh(t,e){return qh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Kh(t,e,i){i=i||{};var n,o,r,a,s,l,h=e.getSourceManager(),u=!1,t=(t?(u=!0,n=is(t)):u=(n=h.getSource()).sourceFormat===dw,function(t){var e=t.get("coordinateSystem"),i=new bT(e);if(e=ST[e])return e(t,i,i.axisMap,i.categoryAxisMap),i}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=Ow.get(c),p=(p=o&&o.coordSysDims?g(o.coordSysDims,function(t){var e={name:t},t=o.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=i.useEncodeDefaulter,p=w(p)?p:p?_(ka,c,e):null,c={coordDimensions:c,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!u},p=Gh(n,c),d=(c=p.dimensions,r=i.createInvertedIndices,(a=t)&&f(c,function(t,e){var i=t.coordDim,i=a.categoryAxisMap.get(i);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),i=u?null:h.getSharedDataStore(p),t=jh(e,{schema:p,store:i}),c=new wT(p,e),p=(c.setCalculationInfo(t),null==d||(h=n).sourceFormat!==dw||x(qi(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(h.data||[])))?null:function(t,e,i,n){return n===d?i:this.defaultDimValueGetter(t,e,i,n)});return c.hasItemOption=!1,c.initData(u?n:i,null,p),c}function Qh(t){this._setting=t||{},this._extent=[1/0,-1/0]}function $h(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++MT}function Jh(t){return M(t)&&null!=t.value?t.value:t+""}function tu(t){return"interval"===t.type||"log"===t.type}function eu(t,e,i,n){var o={},r=t[1]-t[0],r=o.interval=Fi(r/e,!0),e=(null!=i&&r<i&&(r=o.interval=i),null!=n&&n<r&&(r=o.interval=n),o.intervalPrecision=nu(r)),i=o.niceTickExtent=[Di(Math.ceil(t[0]/r)*r,e),Di(Math.floor(t[1]/r)*r,e)];return n=i,r=t,isFinite(n[0])||(n[0]=r[0]),isFinite(n[1])||(n[1]=r[1]),ou(n,0,r),ou(n,1,r),n[0]>n[1]&&(n[0]=n[1]),o}function iu(t){var e=Math.pow(10,zi(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Di(t*e)}function nu(t){return Pi(t)+2}function ou(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function ru(t,e){return t>=e[0]&&t<=e[1]}function au(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function su(t,e){return t*(e[1]-e[0])+e[0]}function lu(t){var t=IT.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new CT({}))&&(e=new CT({categories:g(e,function(t){return M(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function hu(){var t=null!==AT&&AT.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function uu(t){return x(t)?OT?new Float32Array(t):t:new LT(t)}function cu(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function pu(t){return t.dim+t.index}function du(t,e){var i=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&i.push(t)}),i}function fu(t){var e,i,n=function(t){var e,i={},n=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,o=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),a=0,s=r.count();a<s;++a){var l=r.get(o,a);i[n]?i[n].push(l):i[n]=[l]}}),{});for(e in i)if(i.hasOwnProperty(e)){var o=i[e];if(o){o.sort(function(t,e){return t-e});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];0<s&&(r=null===r?s:Math.min(r,s))}n[e]=r}}return n}(t),o=[];return f(t,function(t){var e,i,r=t.coordinateSystem.getBaseAxis(),a=r.getExtent(),s=(e="category"===r.type?r.getBandWidth():"value"===r.type||"time"===r.type?(e=r.dim+"_"+r.index,e=n[e],s=Math.abs(a[1]-a[0]),i=r.scale.getExtent(),i=Math.abs(i[1]-i[0]),e?s/i*e:s):(i=t.getData(),Math.abs(a[1]-a[0])/i.count()),Ai(t.get("barWidth"),e)),a=Ai(t.get("barMaxWidth"),e),l=Ai(t.get("barMinWidth")||((i=t).pipelineContext&&i.pipelineContext.large?.5:1),e),h=t.get("barGap"),u=t.get("barCategoryGap");o.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:h,barCategoryGap:u,axisKey:pu(r),stackId:cu(t)})}),e={},f(o,function(t,i){var n=t.axisKey,o=t.bandWidth,o=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=o.stacks,n=(e[n]=o,t.stackId),a=(r[n]||o.autoWidthCount++,r[n]=r[n]||{width:0,maxWidth:0},t.barWidth),a=(a&&!r[n].width&&(r[n].width=a,a=Math.min(o.remainedWidth,a),o.remainedWidth-=a),t.barMaxWidth),a=(a&&(r[n].maxWidth=a),t.barMinWidth),r=(a&&(r[n].minWidth=a),t.barGap),n=(null!=r&&(o.gap=r),t.barCategoryGap);null!=n&&(o.categoryGap=n)}),i={},f(e,function(t,e){i[e]={};var n,o=t.stacks,r=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(o).length,a=Math.max(35-4*s,15)+"%"),Ai(a,r)),l=Ai(t.gap,1),h=t.remainedWidth,u=t.autoWidthCount,c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),p=(f(o,function(t){var e,i=t.maxWidth,n=t.minWidth;t.width?(e=t.width,i&&(e=Math.min(e,i)),n&&(e=Math.max(e,n)),t.width=e,h-=e+l*e,u--):(e=c,i&&i<e&&(e=Math.min(i,h)),(e=n&&e<n?n:e)!==c&&(t.width=e,h-=e+l*e,u--))}),c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),0),d=(f(o,function(t,e){t.width||(t.width=c),p+=(n=t).width*(1+l)}),n&&(p-=n.width*l),-p/2);f(o,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),i}function gu(t){return t=ET.call(this,t)||this,t.type="time",t}function yu(t,e){return 30<(t/=e?Yx:Vx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function mu(){var t=null!==BT&&BT.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new PT,t._interval=0,t}function vu(t,e){return VT(t,Pi(e))}function _u(t,e,i){this._prepareParams(t,e,i)}function xu(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function wu(t,e){var i,n,o,r,a,s=t.type,l=(l=e,h=(u=t).getExtent(),(c=u.rawExtentInfo)||(c=new UT(u,l,h),u.rawExtentInfo=c),c.calculate()),h=(t.setBlank(l.isBlank),l.min),u=l.max,c=e.ecModel;return c&&"time"===s&&(t=du("bar",c),i=!1,f(t,function(t){i=i||t.getBaseAxis()===e.axis}),i)&&(s=fu(t),c=h,t=u,s=s,a=(a=(n=e).axis.getExtent())[1]-a[0],void 0!==(s=function(t,e,i){if(t&&e)return t=t[pu(e)],t}(s,n.axis))&&(o=1/0,f(s,function(t){o=Math.min(t.offset,o)}),r=-1/0,f(s,function(t){r=Math.max(t.offset+t.width,r)}),o=Math.abs(o),r=Math.abs(r),t+=r/(n=o+r)*(a=(s=t-c)/(1-(o+r)/a)-s),c-=o/n*a),h=(s={min:c,max:t}).min,u=s.max),{extent:[h,u],fixMin:l.minFixed,fixMax:l.maxFixed}}function bu(t,e){var i=wu(t,e),n=i.extent,o=e.get("splitNumber"),r=(t instanceof GT&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setExtent(n[0],n[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function Su(t,e){if(e=e||t.get("type"))switch(e){case"category":return new kT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new RT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(TT.getClass(e)||PT)}}function Tu(t){var e,i,n,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=o,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):b(o)?(i=o,function(e){return e=t.scale.getLabel(e),i.replace("{value}",null!=e?e:"")}):w(o)?(e=o,function(i,n){return null!=r&&(n=i.value-r),e(Mu(t,i),n,null!=i.level?{level:i.level}:null)}):function(e){return t.scale.getLabel(e)}}function Mu(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Cu(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,o,r=i.getExtent(),a=i instanceof kT?i.count():(n=i.getTicks()).length,s=t.getLabelModel(),l=Tu(t),h=1;40<a&&(h=Math.ceil(a/40));for(var u,c,p,d=0;d<a;d+=h){var f=l(n?n[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,u=s.get("rotate")||0,c=p=g=c=void 0,u=u*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(u))+Math.abs(g*Math.sin(u)),c=c*Math.abs(Math.sin(u))+Math.abs(g*Math.cos(u)),new Og(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function Iu(t){return t=t.get("interval"),null==t?"auto":t}function ku(t){return"category"===t.type&&0===Iu(t.getLabelModel())}function Au(){}function Du(t){x(t)?f(t,function(t){Du(t)}):0<=u(KT,t)||(KT.push(t),(t=w(t)?{install:t}:t).install(QT))}function Pu(t,e){return Math.abs(t-e)<$T}function Ou(t,e,i){var n=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];n+=Ln(o[0],o[1],a[0],a[1],e,i),o=a}var s=t[0];return Pu(o[0],s[0])&&Pu(o[1],s[1])||(n+=Ln(o[0],o[1],s[0],s[1],e,i)),0!==n}}function Lu(t,e){for(var i=0;i<t.length;i++)st(t[i],t[i],e)}function Eu(t,e,i,n){for(var o=0;o<t.length;o++){var r=t[o];(r=n?n.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(lt(e,e,r),ht(i,i,r))}}function Ru(t){this.name=t}function Nu(t,e,i){return t=tM.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=i&&[i[0],i[1]],t}function Bu(t,e){return t=eM.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function zu(t,e,i){for(var n=0;n<t.length;n++)t[n]=Fu(t[n],e[n],i)}function Fu(t,e,i){for(var n=[],o=e[0],r=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);n.push([(o=s+=o)/i,(r=l+=r)/i])}return n}function Vu(t,e){var i,n,o;return g(m((t=(i=t).UTF8Encoding?(null==(o=(n=i).UTF8Scale)&&(o=1024),f(n.features,function(t){var e=t.geometry,i=e.encodeOffsets,n=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Fu(n,i,o);break;case"Polygon":case"MultiLineString":zu(n,i,o);break;case"MultiPolygon":f(n,function(t,e){return zu(t,i[e],o)})}}),n.UTF8Encoding=!1,n):i).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var i=t.properties,n=t.geometry,o=[];switch(n.type){case"Polygon":var r=n.coordinates;o.push(new iM(r[0],r.slice(1)));break;case"MultiPolygon":f(n.coordinates,function(t){t[0]&&o.push(new iM(t[0],t.slice(1)))});break;case"LineString":o.push(new nM([n.coordinates]));break;case"MultiLineString":o.push(new nM(n.coordinates))}return t=new oM(i[e||"name"],o,i.cp),t.properties=i,t})}function Yu(t,e){return e=g(e,function(e){return t.scale.parse(e)}),"time"===t.type&&0<e.length&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Hu(t){var e,i,n,o,r,a=t.getLabelModel().get("customValues");return a?(e=Tu(t),{labels:Yu(t,a).map(function(i){var n={value:i};return{formattedLabel:e(n),rawLabel:t.scale.getLabel(n),tickValue:i}})}):"category"===t.type?(o=(a=t).getLabelModel(),r=Xu(a,o),!o.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(i=t).scale.getTicks(),n=Tu(i),{labels:g(o,function(t,e){return{level:t.level,formattedLabel:n(t,e),rawLabel:i.scale.getLabel(t),tickValue:t.value}})})}function Wu(t,e){var i,n,o,r,a,s=t.getTickModel().get("customValues");return s?{ticks:Yu(t,s)}:"category"===t.type?(s=e,o=Gu(e=t,"ticks"),r=Iu(s),(a=Uu(o,r))||(s.get("show")&&!e.scale.isBlank()||(i=[]),i=w(r)?Zu(e,r,!0):"auto"===r?(a=Xu(e,e.getLabelModel()),n=a.labelCategoryInterval,g(a.labels,function(t){return t.tickValue})):qu(e,n=r,!0),ju(o,r,{ticks:i,tickCategoryInterval:n}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Xu(t,e){var i,n=Gu(t,"labels"),e=Iu(e),o=Uu(n,e);return o||ju(n,e,{labels:w(e)?Zu(t,e):qu(t,i="auto"===e?null!=(n=rM(o=t).autoInterval)?n:rM(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:i})}function Gu(t,e){return rM(t)[e]||(rM(t)[e]=[])}function Uu(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function ju(t,e,i){return t.push({key:e,value:i}),i}function qu(t,e,i){function n(t){var e={value:t};l.push(i?t:{formattedLabel:o(e),rawLabel:r.getLabel(e),tickValue:t})}for(var o=Tu(t),r=t.scale,a=r.getExtent(),s=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),e=a[0],u=r.count(),u=(0!==e&&1<h&&2<u/h&&(e=Math.round(Math.ceil(e/h)*h)),ku(t)),t=s.get("showMinLabel")||u,s=s.get("showMaxLabel")||u,c=(t&&e!==a[0]&&n(a[0]),e);c<=a[1];c+=h)n(c);return s&&c-h!==a[1]&&n(a[1]),l}function Zu(t,e,i){var n=t.scale,o=Tu(t),r=[];return f(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&r.push(i?s:{formattedLabel:o(t),rawLabel:a,tickValue:s})}),r}function Ku(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}function Qu(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function $u(t,e,i,n,o,r,a,s){var l=o-t,h=r-e,i=i-t,n=n-e,u=Math.sqrt(i*i+n*n),l=(l*(i/=u)+h*(n/=u))/u,h=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=u)*i),s=a[1]=e+l*n;return Math.sqrt((h-o)*(h-o)+(s-r)*(s-r))}function Ju(t,e,i,n,o,r,a){return i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),i=t+i,n=e+n,t=a[0]=Math.min(Math.max(o,t),i),i=a[1]=Math.min(Math.max(r,e),n),Math.sqrt((t-o)*(t-o)+(i-r)*(i-r))}function tc(t,e,i){for(var n,o,r,a,s,l,h,u,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 lM.M:p=f=m[x++],d=g=m[x++];break;case lM.L:b=$u(p,d,m[x],m[x+1],v,_,uM,!0),p=m[x++],d=m[x++];break;case lM.C:b=te(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,uM),p=m[x++],d=m[x++];break;case lM.Q:b=re(p,d,m[x++],m[x++],m[x],m[x+1],v,_,uM),p=m[x++],d=m[x++];break;case lM.A:var S=m[x++],T=m[x++],M=m[x++],C=m[x++],I=m[x++],k=m[x++],A=(x+=1,!!(1-m[x++])),D=Math.cos(I)*M+S,P=Math.sin(I)*C+T;x<=1&&(f=D,g=P),P=(D=I)+k,A=A,a=(v-S)*(r=C)/M+S,s=_,l=uM,c=u=h=void 0,a-=n=S,s-=o=T,h=Math.sqrt(a*a+s*s),u=(a/=h)*r+n,c=(s/=h)*r+o,b=Math.abs(D-P)%sM<1e-4||((P=A?(A=D,D=On(P),On(A)):(D=On(D),On(P)))<D&&(P+=sM),(A=Math.atan2(s,a))<0&&(A+=sM),D<=A&&A<=P)||D<=A+sM&&A+sM<=P?(l[0]=u,l[1]=c,h-r):(c=((A=r*Math.cos(D)+n)-a)*(A-a)+((u=r*Math.sin(D)+o)-s)*(u-s))<(n=((h=r*Math.cos(P)+n)-a)*(h-a)+((D=r*Math.sin(P)+o)-s)*(D-s))?(l[0]=A,l[1]=u,Math.sqrt(c)):(l[0]=h,l[1]=D,Math.sqrt(n)),p=Math.cos(I+k)*M+S,d=Math.sin(I+k)*C+T;break;case lM.R:b=Ju(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,uM);break;case lM.Z:b=$u(p,d,f,g,v,_,uM,!0),p=f,d=g}b<y&&(y=b,i.set(uM[0],uM[1]))}return y}function ec(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||hM,s=n.getBoundingRect().clone(),l=(s.applyTransform(n.getComputedTransform()),1/0),h=o.anchor,u=t.getComputedTransform(),c=u&&Dt([],u),p=e.get("length2")||0;h&&dM.copy(h);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=cM,w=fM,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)}Sg.scaleAndAdd(pM,cM,fM,p),pM.transform(c),y=t.getBoundingRect(),y=h?h.distance(pM):t instanceof yv?tc(pM,t.path,dM):(m=dM,d=Ju((d=y).x,y.y,y.width,y.height,pM.x,pM.y,uM),m.set(uM[0],uM[1]),d),y<l&&(l=y,pM.transform(u),dM.transform(u),dM.toArray(r[0]),pM.toArray(r[1]),cM.toArray(r[2]))}n=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,cM.fromArray(n[0]),pM.fromArray(n[1]),dM.fromArray(n[2]),Sg.sub(fM,cM,pM),Sg.sub(gM,dM,pM),e=fM.len(),f=gM.len(),e<.001||f<.001||(fM.scale(1/e),gM.scale(1/f),e=fM.dot(gM),Math.cos(o)<e&&(f=$u(pM.x,pM.y,dM.x,dM.y,cM.x,cM.y,yM,!1),mM.fromArray(yM),mM.scaleAndAdd(gM,f/Math.tan(Math.PI-o)),e=dM.x!==pM.x?(mM.x-pM.x)/(dM.x-pM.x):(mM.y-pM.y)/(dM.y-pM.y),isNaN(e)||(e<0?Sg.copy(mM,pM):1<e&&Sg.copy(mM,dM),mM.toArray(n[1]))))),i.setShape({points:r})}}}function ic(t,e,i,n){var o="normal"===i,i=o?t:t.ensureState(i),e=(i.ignore=e,n.get("smooth")),e=(e&&!0===e&&(e=.3),i.shape=i.shape||{},0<e&&(i.shape.smooth=e),n.getModel("lineStyle").getLineStyle());o?t.useStyle(e):i.style=e}function nc(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),0<i&&3<=n.length){var e=rg(n[0],n[1]),o=rg(n[1],n[2]);e&&o?(i=Math.min(e,o)*i,e=at([],n[1],n[0],i/e),i=at([],n[1],n[2],i/o),o=at([],e,i,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(i[0],i[1],i[0],i[1],n[2][0],n[2][1])):(t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]))}else for(var r=1;r<n.length;r++)t.lineTo(n[r][0],n[r][1])}function oc(t){for(var e=[],i=0;i<t.length;i++){var n,o,r,a,s,l,h=t[i];h.defaultAttr.ignore||(o=(n=h.label).getComputedTransform(),r=n.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=n.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new sx(r,o):null,e.push({label:n,labelLine:h.labelLine,rect:s,localRect:r,obb:l,priority:h.priority,defaultAttr:h.defaultAttr,layoutOption:h.computedLayoutOption,axisAligned:a,transform:o}))}return e}function rc(t,e,i,n,o,r){function a(){_=w.rect[e]-n,x=o-b.rect[e]-b.rect[i]}function s(t,e,i){t<0&&(0<(e=Math.min(e,-t))?(l(e*i,0,c),(e+=t)<0&&h(-e*i,1)):h(-t*i,1))}function l(i,n,o){0!==i&&(d=!0);for(var r=n;r<o;r++){var a=t[r];a.rect[e]+=i,a.label[e]+=i}}function h(n,o){for(var r=[],a=0,s=1;s<c;s++){var h=t[s-1].rect,h=Math.max(t[s].rect[e]-h[e]-h[i],0);r.push(h),a+=h}if(a){var u=Math.min(Math.abs(n)/a,o);if(0<n)for(s=0;s<c-1;s++)l(r[s]*u,0,s+1);else for(s=c-1;0<s;s--)l(-r[s-1]*u,s,c)}}function u(t){for(var e=t<0?-1:1,i=(t=Math.abs(t),Math.ceil(t/(c-1))),n=0;n<c-1;n++)if(0<e?l(i,0,n+1):l(-i,c-n-1,c),(t-=i)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,i){return t.rect[e]-i.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[i]}0<f&&r&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&h(-_,.8),x<0&&h(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&u(-_),x<0&&u(x),d}}function ac(t){function e(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var i=[],n=(t.sort(function(t,e){return e.priority-t.priority}),new Og(0,0,0,0)),o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,h=r.label,u=r.labelLine,c=(n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,r.obb),p=!1,d=0;d<i.length;d++){var f=i[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new sx(f.localRect,f.transform)),(c=c||new sx(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(h),u&&e(u)):(h.attr("ignore",r.defaultAttr.ignore),u&&u.attr("ignore",r.defaultAttr.labelGuideIgnore),i.push(r))}}function sc(t,e){var i=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:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}(e&&e.shape.points)}}function lc(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null!=e[o]&&(t[o]=e[o])}}function hc(){this._labelList=[],this._chartViewList=[]}function uc(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){(TM(e).labelManager||(TM(e).labelManager=new SM)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=TM(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function cc(t,e,i){var n=zf.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*i,n.height=e*i,n}function pc(t,e,i){var n,o=MM.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Ny,"string"==typeof t?n=cc(t,e,i):M(t)&&(t=(n=t).id),o.id=t,(o.dom=n).style);return t&&(j(n),n.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=i,o}function dc(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Ny,this._singleCanvas=o,(this.root=t).style&&(j(t),t.innerHTML=""),this.storage=e;var r,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=i.width&&(r=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new CM(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[IM]=r).zlevel=IM,e.push(IM),this._domRoot=t):(this._width=Gl(t,0,i),this._height=Gl(t,1,i),r=this._domRoot=(a=this._width,o=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}function fc(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type="dataset",t}function gc(){var t=null!==PM&&PM.apply(this,arguments)||this;return t.type="dataset",t}function yc(t){t.registerComponentModel(DM),t.registerComponentView(OM)}function mc(){var t=null!==LM&&LM.apply(this,arguments)||this;return t.type=mc.type,t.hasSymbolVisual=!0,t}function vc(t,e){var i,n=t.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o)return null!=(i=ys(t,e,n[0]))?i+"":null;if(o){for(var r=[],a=0;a<n.length;a++)r.push(ys(t,e,n[a]));return r.join(" ")}}function _c(t,e,i,n){var o=RM.call(this)||this;return o.updateData(t,e,i,n),o}function xc(t,e){this.parent.drift(t,e)}function wc(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!n.isIgnore||!n.isIgnore(i))&&(!n.clipShape||n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function bc(t){return(t=null==t||M(t)?t:{isIgnore:t})||{}}function Sc(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:zr(t),cursorStyle:t.get("cursor")}}function Tc(t){this.group=new Jy,this._SymbolCtor=t||NM}function Mc(t,e,i){var n=t.getBaseAxis(),o=t.getOtherAxis(n),i=function(t,e){var i=0,t=t.scale.getExtent();return"start"===e?i=t[0]:"end"===e?i=t[1]:T(e)&&!isNaN(e)?i=e:0<t[0]?i=t[0]:t[1]<0&&(i=t[1]),i}(o,i),n=n.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(n),s="x"===o||"radius"===o?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,h=e.getCalculationInfo("stackResultDimension");return qh(e,t[0])&&(l=!0,t[0]=h),qh(e,t[1])&&(l=!0,t[1]=h),{dataDimsForPoint:t,valueStart:i,valueAxisDim:o,baseAxisDim:n,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Cc(t,e,i,n){var o=NaN,r=(t.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=i.get(t.baseDim,n),a[1-r]=o,e.dataToPoint(a)}function Ic(t,e){return isNaN(t)||isNaN(e)}function kc(t,e,i,n,o,r,a,s,l){for(var h,u,c,p,d=i,f=0;f<n;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(Ic(g,y)){if(l){d+=r;continue}break}if(d===i)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-h,v=y-u;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var _=d+r,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<n;)f++,d+=r,x=e[2*(_+=r)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;Ic(x,w)&&b<n;)b++,x=e[2*(_+=r)],w=e[2*_+1];var S,T,M,C,I,k,A,D,P,m=0,v=0,O=void 0,L=void 0;n<=b||Ic(x,w)?(A=g,D=y):(m=x-h,v=w-u,S=g-h,T=x-g,M=y-u,C=w-y,k=I=void 0,L="x"===s?(A=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,D=y,O=g+P*(k=Math.abs(T))*a,y):"y"===s?(D=y-(P=0<v?1:-1)*(I=Math.abs(M))*a,O=A=g,y+P*(k=Math.abs(C))*a):(I=Math.sqrt(S*S+M*M),A=g-m*a*(1-(S=(k=Math.sqrt(T*T+C*C))/(k+I))),D=y-v*a*(1-S),L=y+v*a*S,O=FM(O=g+m*a*S,VM(x,g)),L=FM(L,VM(w,y)),O=VM(O,FM(x,g)),D=y-(v=(L=VM(L,FM(w,y)))-y)*I/k,A=FM(A=g-(m=O-g)*I/k,VM(h,g)),D=FM(D,VM(u,y)),O=g+(m=g-(A=VM(A,FM(h,g))))*k/I,y+(v=y-(D=VM(D,FM(u,y))))*k/I)),t.bezierCurveTo(c,p,A,D,g,y),c=O,p=L}else t.lineTo(g,y)}h=g,u=y,d+=r}return f}function Ac(t){return t=BM.call(this,t)||this,t.type="ec-polyline",t}function Dc(){return null!==WM&&WM.apply(this,arguments)||this}function Pc(t){return t=GM.call(this,t)||this,t.type="ec-polygon",t}function Oc(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return 1}}function Lc(t){for(var e=1/0,i=1/0,n=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),o=Math.max(s,o))}return[[e,i],[n,o]]}function Ec(t,e){var t=Lc(t),i=t[0],t=t[1],e=Lc(e),n=e[0],e=e[1];return Math.max(Math.abs(i[0]-n[0]),Math.abs(i[1]-n[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function Rc(t){return T(t)?t:t?.5:0}function Nc(t,e,i,n){var e=e.getBaseAxis(),o="x"===e.dim||"radius"===e.dim?0:1,r=[],a=0,s=[],l=[],h=[],u=[];if(n){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||u.push(t[a],t[a+1]);t=u}for(a=0;a<t.length-2;a+=2)switch(h[0]=t[a+2],h[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],r.push(l[0],l[1]),i){case"end":s[o]=h[o],s[1-o]=l[1-o],r.push(s[0],s[1]);break;case"middle":var c=[];s[o]=c[o]=(l[o]+h[o])/2,s[1-o]=l[1-o],c[1-o]=h[1-o],r.push(s[0],s[1]),r.push(c[0],c[1]);break;default:s[o]=l[o],s[1-o]=h[1-o],r.push(s[0],s[1])}return r.push(t[a++],t[a++]),r}function Bc(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=n.length-1;0<=r;r--){var a,s=t.getDimensionInfo(n[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=n[r];break}}if(o){var l=e.getAxis(a),e=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=e.length,u=o.outerColors.slice(),i=(h&&e[0].coord>e[h-1].coord&&(e.reverse(),u.reverse()),function(t,e){function i(t,e,i){var n=t.coord;return{coord:i,color:Se((i-n)/(e.coord-n),[t.color,e.color])}}for(var n,o,r=[],a=t.length,s=0;s<a;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(e<h){o?r.push(i(o,l,e)):n&&r.push(i(n,l,0),i(n,l,e));break}n&&(r.push(i(n,l,0)),n=null),r.push(l),o=l}}return r}(e,"x"===a?i.getWidth():i.getHeight())),c=i.length;if(!c&&h)return e[0].coord<0?u[1]||e[h-1].color:u[0]||e[0].color;var p=i[0].coord-10,h=i[c-1].coord+10,d=h-p;return d<.001?"transparent":(f(i,function(t){t.offset=(t.coord-p)/d}),i.push({offset:c?i[c-1].offset:.5,color:u[1]||"transparent"}),i.unshift({offset:c?i[0].offset:.5,color:u[0]||"transparent"}),e=new tx(0,0,0,0,i,!0),e[a]=p,e[a+"2"]=h,e)}}}function zc(t,e,i){var t=t.get("showAllSymbol"),n="auto"===t;if(!t||n){var o,r,a=i.getAxesByScale("ordinal")[0];if(a&&(!n||!function(t,e){for(var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count(),o=(isNaN(n)&&(n=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*NM.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Fc(t){for(var e,i,n=t.length/2;0<n&&(e=t[2*n-2],i=t[2*n-1],isNaN(e)||isNaN(i));n--);return n-1}function Vc(t,e){return[t[2*e],t[2*e+1]]}function Yc(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Wv.length;e++)if(t.get([Wv[e],"endLabel","show"]))return 1}function Hc(t,e,i,n){var o,r,a,s,l,h,u,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(o=n.getModel("endLabel"),r=o.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},x=Yc(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,r,o,e)}:null,l=e.getBaseAxis().isHorizontal(),u=i,c=n,p=function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(h=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,y=Math.ceil(y),f!==Math.floor(f)&&(f=Math.floor(f),y++),_=new Iv({shape:{x:f,y:g,width:y,height:m}}),u&&(u=(v=h.getBaseAxis()).isHorizontal(),h=v.inverse,u?(h&&(_.shape.x+=y),_.shape.width=0):(h||(_.shape.y+=m),_.shape.height=0),v=w(d)?function(t){d(t,_)}:null,ur(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,v)),u=_,n.get("clip",!0)||(h=u.shape,y=Math.max(h.width,h.height),l?(h.y-=y,h.height+=2*y):(h.x-=y,h.width+=2*y)),x&&x(1,u),u):(m=i,f=n,c=(g=e).getArea(),p=Di(c.r0,1),v=Di(c.r,1),l=new A_({shape:{cx:Di(g.cx,1),cy:Di(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,ur(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Wc(){return null!==jM&&jM.apply(this,arguments)||this}function Xc(){return null!==QM&&QM.apply(this,arguments)||this}function Gc(){return null!==JM&&JM.apply(this,arguments)||this}function Uc(t,e,n,o){f(iC,function(r,a){function l(){var t=null!==h&&h.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var h,u=s(s({},eC[a],!0),o,!0),u=(i(l,h=n),l.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ma(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=jc(t),i&&Ta(t,n,i)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=CT.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=u,l);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(e+"Axis",jc)}function jc(t){return t.type||(t.data?"category":"value")}function qc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function Zc(t){return"interval"===t.type||"time"===t.type}function Kc(){var t=null!==oC&&oC.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=nC,t}function Qc(t,e,i,n,o){return t=aC.call(this,t,e,i)||this,t.index=0,t.type=n||"value",t.position=o||"bottom",t}function $c(t,e,i){i=i||{};var t=t.coordinateSystem,n=e.axis,o={},r=n.getAxesOnZeroOf()[0],a=n.position,s=r?"onZero":a,n=n.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},h=e.get("offset")||0,h="x"===n?[t[2]-h,t[3]+h]:[t[0]-h,t[1]+h],u=(r&&(u=r.toGlobalCoord(r.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),o.position=["y"===n?h[l[s]]:t[0],"x"===n?h[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===n?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),L(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-u:u,o.z2=1,o}function Jc(t){return"cartesian2d"===t.get("coordinateSystem")}function tp(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(i,n){var o=n.replace(/Model$/,""),o=t.getReferringComponents(o,cm).models[0];e[n]=o}),e}function ep(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nC,this._initCartesian(t,e,i),this.model=t}function ip(t,e){return t.getCoordSysModel()===e}function np(t,e,i,n){function o(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],t=i.model,e=t.get(["axisLine","onZero"]),i=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=i)op(a[i])&&(r=a[i]);else for(var s in a)if(a.hasOwnProperty(s)&&op(a[s])&&!n[o(a[s])]){r=a[s];break}r&&(n[o(r)]=!0)}}function op(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 rp(t,e){this.group=new Jy,this.opt=e,this.axisModel=t,h(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new Jy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function ap(t){t&&(t.ignore=!0)}function sp(t,e){var i,n=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(n&&o)return kt(i=Tt([]),i,-t.rotation),n.applyTransform(Ct([],i,t.getLocalTransform())),o.applyTransform(Ct([],i,e.getLocalTransform())),n.intersect(o)}function lp(t){return"middle"===t||"center"===t}function hp(t,e,i,n,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord,h=(a[0]=h,s[a[1]=0]=h,s[1]=i,e&&(st(a,a,e),st(s,s,e)),new H_({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0}));Sr(h.shape,h.style.lineWidth),h.anid=o+"_"+t[l].tickValue,r.push(h)}return r}function up(t,e){var i,n,o,r,s,l,u,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i=c,e=e,o=(n=t).getComponent("tooltip"),r=n.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,o,p){var d,g,y=p.model.getModel("axisPointer",r),m=y.get("show");m&&("auto"!==m||e||dp(y))&&(null==o&&(o=y.get("triggerTooltip")),m=(y=e?function(t,e,i,n,o,r){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&&!!r,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===o&&(o=s.get(["label","show"]),e.show=null==o||o,r||(o=l.lineStyle=s.get("crossStyle"))&&h(e,o.textStyle)),t.model.getModel("axisPointer",new Ox(l,i,n))}(p,c,r,n,e,o):y).get("snap"),e=y.get("triggerEmphasis"),d=fp(p.model),g=o||m||"category"===p.type,o=i.axesInfo[d]={key:d,axis:p,coordSys:t,axisPointerModel:y,triggerTooltip:o,triggerEmphasis:e,involveSeries:g,snap:m,useHandle:dp(y),seriesModels:[],linkGroup:null},u[d]=o,i.seriesInvolved=i.seriesInvolved||g,null!=(e=function(t,e){for(var i=e.model,n=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(cp(r[n+"AxisId"],i.id)||cp(r[n+"AxisIndex"],i.componentIndex)||cp(r[n+"AxisName"],i.name))return o}}(s,p)))&&((m=l[e]||(l[e]={axesInfo:{}})).axesInfo[d]=o,m.mapper=s[e].mapper,o.linkGroup=m)}var u,c,p,d,g;t.axisPointerEnabled&&(p=fp(t.model),u=i.coordSysAxesInfo[p]={},c=(i.coordSysMap[p]=t).model.getModel("tooltip",o),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&o&&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&&(u=c,t.eachSeries(function(t){var e=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);e&&"none"!==i&&!1!==i&&"item"!==i&&!1!==n&&!1!==t.get(["axisPointer","show"],!0)&&f(u.coordSysAxesInfo[fp(e.model)],function(i){var n=i.axis;e.getAxis(n.dim)===n&&(i.seriesModels.push(t),null==i.seriesDataCount&&(i.seriesDataCount=0),i.seriesDataCount+=t.getData().count())})})),c}function cp(t,e){return"all"===t||x(t)&&0<=u(t,e)||t===e}function pp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fp(t)]}function dp(t){return!!t.get(["handle","show"])}function fp(t){return t.type+"||"+t.id}function gp(){var t=null!==hC&&hC.apply(this,arguments)||this;return t.type=gp.type,t}function yp(){var t=null!==uC&&uC.apply(this,arguments)||this;return t.type=yp.type,t.axisPointerClass="CartesianAxisPointer",t}function mp(){var t=null!==cC&&cC.apply(this,arguments)||this;return t.type=mp.type,t}function vp(){var t=null!==SC&&SC.apply(this,arguments)||this;return t.type=bC.type,t}function _p(){var t=null!==MC&&MC.apply(this,arguments)||this;return t.type="grid",t}function xp(){var t=null!==kC&&kC.apply(this,arguments)||this;return t.type=xp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function wp(){var t=null!==DC&&DC.apply(this,arguments)||this;return t.type=wp.type,t}function bp(){var t=null!==OC&&OC.apply(this,arguments)||this;return t.type=bp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Sp(){var t=null!==LC&&LC.apply(this,arguments)||this;return t.type=Sp.type,t.newlineDisabled=!1,t}function Tp(t,e,i,n){Ip(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Cp(t,e,i,n)}function Mp(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,o=i.length;n<o&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function Cp(t,e,i,n){Mp(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Ip(t,e,i,n){Mp(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function kp(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Ap(t,e,i){var n,o={},r="toggleSelected"===t;return i.eachComponent("legend",function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name)),f(i.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=i.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function Dp(t){t.registerComponentModel(EC),t.registerComponentView(zC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,kp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(Ap,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(Ap,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(Ap,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(Ap,"select")),t.registerAction("legendUnSelect","legendunselected",_(Ap,"unSelect"))}function Pp(){var t=null!==FC&&FC.apply(this,arguments)||this;return t.type=Pp.type,t}function Op(t,e,i){var n=[1,1];n[t.getOrient().index]=0,Ta(e,i,{type:"box",ignoreSize:!!n})}function Lp(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.type=Lp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Ep(){this._dragging=!1,this.animationThreshold=15}function Rp(t,e,i,n){!function t(e,i){var n;return M(e)&&M(i)?(n=!0,f(i,function(i,o){n=n&&t(e[o],i)}),!!n):e===i}(UC(i).lastProp,n)&&(UC(i).lastProp=n,e?hr(i,n,t):(i.stopAnimation(),i.attr(n)))}function Np(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Bp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function zp(t,e,i){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=o&&(t.zlevel=o),t.silent=i)})}function Fp(t,e,i,n,o){var r=Vp(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),i=i.getModel("label"),a=Zx(i.get("padding")||0),s=i.getFont(),l=ui(r,s),h=o.position,u=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(h[0]-=u),"center"===c&&(h[0]-=u/2),o.verticalAlign),n=("bottom"===c&&(h[1]-=l),"middle"===c&&(h[1]-=l/2),o=h,c=u,u=l,n=(l=n).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,n)-c,o[1]=Math.min(o[1]+u,l)-u,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i.get("backgroundColor"));n&&"auto"!==n||(n=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Fr(i,{text:r,font:s,fill:i.getTextColor(),padding:a,backgroundColor:n}),z2:10}}function Vp(t,e,i,n,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:Mu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),b(o)?a=o.replace("{value}",a):w(o)&&(a=o(r))),a}function Yp(t,e,i){var n=St();return kt(n,n,i.rotation),It(n,n,i.position),Mr([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Hp(){return null!==ZC&&ZC.apply(this,arguments)||this}function Wp(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Xp(t){return"x"===t.dim?0:1}function Gp(){var t=null!==$C&&$C.apply(this,arguments)||this;return t.type=Gp.type,t}function Up(t,e,i){function n(t,e){r.on(t,function(t){function i(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=i,n.dispatchAction(t))}n=a;var n,o,s={dispatchAction:i,pendings:o={showTip:[],hideTip:[]}};eI(tI(r).records,function(i){i&&e(i,t,s.dispatchAction)});var l,h=s.pendings,u=a,c=h.showTip.length,p=h.hideTip.length;c?l=h.showTip[c-1]:p&&(l=h.hideTip[p-1]),l&&(l.dispatchAction=null,u.dispatchAction(l))})}var o,r,a;Pf.node||(o=e.getZr(),tI(o).records||(tI(o).records={}),a=e,tI(r=o).initialized||(tI(r).initialized=!0,n("click",_(qp,"click")),n("mousemove",_(qp,"mousemove")),n("globalout",jp)),(tI(o).records[t]||(tI(o).records[t]={})).handler=i)}function jp(t,e,i){t.handler("leave",null,i)}function qp(t,e,i,n){e.handler(t,i,n)}function Zp(t,e){Pf.node||(e=e.getZr(),(tI(e).records||{})[t]&&(tI(e).records[t]=null))}function Kp(){var t=null!==iI&&iI.apply(this,arguments)||this;return t.type=Kp.type,t}function Qp(t,e){var i,n,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=nn(i=e.getData(),t))||s<0||x(s)?{point:[]}:(n=i.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=i.mapDimension(e),(r=[])[t]=i.get(e,s),r[1-t]=i.get(i.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(i.getValues(g(o.dimensions,function(t){return i.mapDimension(t)}),s))||[]:n&&((e=n.getBoundingRect().clone()).applyTransform(n.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:n})}function $p(t,e,i){var n,o,r,a,s,l,h,u,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||$f(i.dispatchAction,i),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return nd(x)&&(x=Qp({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),n=nd(x),o=w.axesInfo,r=S.axesInfo,a="leave"===v||nd(x),s={},e={list:[],map:{}},h={showPointer:_(td,l={}),showTooltip:_(ed,e)},f(S.coordSysMap,function(t,e){var i=n||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var r=t.axis,l=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(o,t);a||!i||o&&!l||null!=(l=null!=(l=l&&l.value)||n?l:r.pointToData(x))&&Jp(t,l,h,!1,s)})}),u={},f(r,function(t,e){var i=t.linkGroup;i&&!l[e]&&f(i.axesInfo,function(e,n){var n=l[n];e!==t&&n&&(n=n.value,i.mapper&&(n=t.axis.scale.parse(i.mapper(n,id(e),id(t)))),u[t.key]=n)})}),f(u,function(t,e){Jp(r[e],t,h,!0,s)}),c=l,w=r,p=s.axesInfo=[],f(w,function(t,e){var i=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(i.status="show"),i.value=e.value,i.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(i.status="hide"),"show"===i.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}),v=e,w=t,e=b,nd(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=r,w=(t=i).getZr(),b="axisPointerLastHighlights",d=oI(w)[b]||{},g=oI(w)[b]={},f(e,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&t.triggerEmphasis&&f(i.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 Jp(t,e,i,n,o){var r,a,s,h,u,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,h=s.dim,u=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var i,n=t.getData().mapDimensionsAll(h);if(t.getAxisTooltipData)var o=t.getAxisTooltipData(n,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=t.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;o=t.getData().get(n[0],r[0])}null!=o&&isFinite(o)&&(n=a-o,(i=Math.abs(n))<=p)&&((i<p||0<=n&&d<0)&&(p=i,d=n,u=o,c.length=0),f(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(r={payloadBatch:c,snapToValue:u}).snapToValue,(g=r.payloadBatch)[0]&&null==o.seriesIndex&&l(o,g[0]),!n&&t.snap&&m.containData(y)&&null!=y&&(e=y),i.showPointer(t,e,g),i.showTooltip(t,r,y)):i.showPointer(t,e))}function td(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function ed(t,e,i,n){var o,r,i=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&i.length&&(o=fp(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()}))}function id(t){var e=t.axis.model,i={},t=i.axisDim=t.axis.dim;return i.axisIndex=i[t+"AxisIndex"]=e.componentIndex,i.axisName=i[t+"AxisName"]=e.name,i.axisId=i[t+"AxisId"]=e.id,i}function nd(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function od(t){mC.registerAxisPointerClass("CartesianAxisPointer",KC),t.registerComponentModel(JC),t.registerComponentView(nI),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=up(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$p)}function rd(){var t=null!==rI&&rI.apply(this,arguments)||this;return t.type=rd.type,t}function ad(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function sd(t){if(Pf.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}function ld(t,e){if(!t)return e;e=fa(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}function hd(t,e,i){var n,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return Pf.transformSupported?(n="translate"+((n=Pf.transform3dSupported)?"3d":"")+"("+t+","+e+(n?",0":"")+")",i?"top:0;left:0;"+hI+":"+n+";":[["top",0],["left",0],[sI,n]]):i?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function ud(t,e,i){var n,o,r=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),h=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=Js(t,"html");return r.push("box-shadow:"+u+"px "+c+"px "+l+"px "+h),e&&a&&r.push((h="opacity"+(l=" "+(u=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,i||(l=" "+u+"s "+c,h+=Pf.transformSupported?","+hI+l:",left"+l+",top"+l),lI+":"+h)),s&&r.push("background-color:"+s),f(["width","color","radius"],function(e){var i="border-"+e,n=fa(i),n=t.get(n);null!=n&&r.push(i+":"+n+("color"===e?"":"px"))}),r.push((o=[],e=(n=p).get("fontSize"),(a=n.getTextColor())&&o.push("color:"+a),o.push("font:"+n.getFont()),e&&o.push("line-height:"+Math.round(3*e/2)+"px"),a=n.get("textShadowColor"),e=n.get("textShadowBlur")||0,i=n.get("textShadowOffsetX")||0,u=n.get("textShadowOffsetY")||0,a&&e&&o.push("text-shadow:"+i+"px "+u+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+Zx(d).join("px ")+"px"),r.join(";")+";"}function cd(t,e,i,n,o){var r,a,s=e&&e.painter;i?(r=s&&s.getViewportRoot())&&(a=t,i=i,ft(dg,r,n,o,!0))&&ft(a,i,dg[0],dg[1]):(t[0]=n,t[1]=o,(r=s&&s.getViewportRootOffset())&&(t[0]+=r.offsetLeft,t[1]+=r.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function pd(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Pf.wxa)return null;var i=document.createElement("div"),n=(i.domBelongToZr=!0,this.el=i,this._zr=t.getZr()),e=e.appendTo,e=e&&(b(e)?document.querySelector(e):k(e)?e:w(e)&&e(t.getDom())),o=(cd(this._styleCoord,n,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(i),this._api=t,this._container=e,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=n.handler,xt(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}function dd(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),yd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function fd(t){return Math.max(0,t)}function gd(t){var e=fd(t.shadowBlur||0),i=fd(t.shadowOffsetX||0),t=fd(t.shadowOffsetY||0);return{left:fd(e-i),right:fd(e+i),top:fd(e-t),bottom:fd(e+t)}}function yd(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function md(){var t=null!==pI&&pI.apply(this,arguments)||this;return t.type=md.type,t}function vd(t,e,i){for(var n=e.ecModel,o=i?(o=new Ox(i,n,n),new Ox(e.option,o,n)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(b(a=a instanceof Ox?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new Ox(a,o,n))}return o}function _d(t,e){return t.dispatchAction||$f(e.dispatchAction,e)}function xd(t){return"center"===t||"middle"===t}function wd(t){ji(t,"label",["show"])}function bd(){var t=null!==yI&&yI.apply(this,arguments)||this;return t.type=bd.type,t.createdBySelf=!1,t}function Sd(){var t=null!==_I&&_I.apply(this,arguments)||this;return t.type=Sd.type,t}function Td(t,e,i,n,o,r){var a=[],s=qh(e,n)?e.getCalculationInfo("stackResultDimension"):n,t=Id(e,s,t),t=e.indicesOfNearest(s,t)[0],o=(a[o]=e.get(i,t),a[r]=e.get(s,t),e.get(n,t)),i=Pi(e.get(n,t));return 0<=(i=Math.min(i,20))&&(a[r]=+a[r].toFixed(i)),[a,o]}function Md(t,e){if(e){var i,n=t.getData(),o=t.coordinateSystem,r=o&&o.dimensions;if(i=e,(isNaN(parseFloat(i.x))||isNaN(parseFloat(i.y)))&&!x(e.coord)&&x(r)&&(i=function(t,e,i,n){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=i.getAxis(function(t,e){return(t=t.getData().getDimensionInfo(e))&&t.coordDim}(n,o.valueDataDim)),o.baseAxis=i.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=n.getBaseAxis(),o.valueAxis=i.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}(e,n,o,t),(e=a(e)).type&&bI[e.type]&&i.baseAxis&&i.valueAxis?(o=u(r,i.baseAxis.dim),t=u(r,i.valueAxis.dim),i=bI[e.type](n,i.baseDataDim,i.valueDataDim,o,t),e.coord=i[0],e.value=i[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&x(r))for(var s=e.coord,l=0;l<2;l++)bI[s[l]]&&(s[l]=Id(n,n.mapDimension(r[l]),s[l]));else e.coord=[];return e}}function Cd(t,e){return!(t&&t.containData&&e.coord&&(i=e,isNaN(parseFloat(i.x)))&&isNaN(parseFloat(i.y)))||t.containData(e.coord);var i}function Id(t,e,i){var n,o;return"average"===i?(o=n=0,t.each(e,function(t,e){isNaN(t)||(n+=t,o++)}),n/o):"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}function kd(){var t=null!==xI&&xI.apply(this,arguments)||this;return t.type=kd.type,t}function Ad(t,e,i){var n=e.coordinateSystem;t.each(function(o){var r,a,s,l=t.getItemModel(o),h=Ai(l.get("x"),i.getWidth()),l=Ai(l.get("y"),i.getHeight());isNaN(h)||isNaN(l)?e.getMarkerPosition?s=e.getMarkerPosition(t.getValues(t.dimensions,o)):n&&(r=t.get(n.dimensions[0],o),a=t.get(n.dimensions[1],o),s=n.dataToPoint([r,a])):s=[h,l],isNaN(h)||(s[0]=h),isNaN(l)||(s[1]=l),t.setItemLayout(o,s)})}function Dd(){var t=null!==TI&&TI.apply(this,arguments)||this;return t.type=Dd.type,t}function Pd(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&Xi("")}function Od(){}function Ld(){}function Ed(){}function Rd(){}function Nd(){}function Bd(t,e){if(!0===t||!1===t)return(i=new kI).value=t,i;var i;if(Fd(t)||Xi(""),t.and)return zd("and",t,e);if(t.or)return zd("or",t,e);if(t.not)return i=e,Fd(r=(r=t).not)||Xi(""),(l=new PI).child=Bd(r,i),l.child||Xi(""),l;for(var n=t,o=e,r=o.prepareGetValue(n),a=[],s=v(n),l=n.parser,h=l?Ts(l):null,u=0;u<s.length;u++){var c,p=s[u];"parser"===p||o.valueGetterAttrMap.get(p)||(c=q(CI,p)?CI[p]:p,p=n[p],p=h?h(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new hb("eq"===t,e):q(ab,t)?new sb(t,e):null}(c,p)||"reg"===c&&new II(p))||Xi(""),a.push(c))}return a.length||Xi(""),(l=new OI).valueGetterParam=r,l.valueParser=h,l.getValue=o.getValue,l.subCondList=a,l}function zd(t,e,i){return e=e[t],x(e)||Xi(""),e.length||Xi(""),t=new("and"===t?AI:DI),t.children=g(e,function(t){return Bd(t,i)}),t.children.length||Xi(""),t}function Fd(t){return M(t)&&!d(t)}function Vd(t,e){this._cond=Bd(t,e)}function Yd(){}function Hd(t,e,i,n){var o=null==e.opacity?1:e.opacity;if(i instanceof bv)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==WI?(t("fill",(r=Ie(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(n||r<1)&&t("fill-opacity",r)):t("fill",WI),null!=(r=(r=e).stroke)&&r!==WI){var r=Ie(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?i.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!n&&1==a||t("stroke-width",a),(n||o)&&t("paint-order",o?"stroke":"fill"),(n||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=Ul(i))[0],r=a[1],o&&(r=XI(r||0),t("stroke-dasharray",o.join(",")),r||n)&&t("stroke-dashoffset",r)):n&&t("stroke-dasharray",WI);for(var s=0;s<GI.length;s++){var l=GI[s];(n||e[l]!==dv[l])&&(l=e[l]||dv[l])&&t(UI[s],l)}}else n&&t("stroke",WI)}function Wd(t){return document.createElementNS(jI,t)}function Xd(t,e,i,n,o){return{tag:t,attrs:i||{},children:n,text:o,key:e}}function Gd(t,e){var i=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,o=e.tag,r=e.attrs,e=e.text;return function(t,e){var i=[];if(e)for(var n in e){var o=e[n];!1!==o&&(!0!==o&&null!=o&&(n+='="'+o+'"'),i.push(n))}return"<"+t+" "+i.join(" ")+">"}(o,r)+("style"!==o?yt(e):e||"")+(n?i+g(n,t).join(i)+i:"")+"</"+o+">"}(t)}function Ud(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function jd(t,e,i,n){return Xd("svg","root",{width:t,height:e,xmlns:jI,"xmlns:xlink":qI,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},i)}function qd(t,e){var i=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[i]=t,i}function Zd(t){return b(t)?JI[t]?"cubic-bezier("+JI[t]+")":ae(t)?t:"":""}function Kd(t,e,i,n){var o=t.animators,r=o.length,a=[];if(t instanceof Q_){if(h=function(t,e,i){var n,o,t=t.shape.paths,r={};if(f(t,function(t){var e=Ud(i.zrId),t=(e.animation=!0,Kd(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,h,u=t[o=e[s-1]];for(l in u){var c=u[l];r[l]=r[l]||{d:""},r[l].d+=c.d||""}for(h in a){var p=a[h].animation;0<=p.indexOf(o)&&(n=p)}}}),n)return e.d=!1,t=qd(r,i),n.replace(o,t)}(t,e,i))a.push(h);else if(!r)return}else if(!r)return;for(var s,h,u,c={},p=0;p<r;p++){var d=o[p],g=[d.getMaxTime()/1e3+"s"],y=Zd(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)(h=function(o){function r(t,e,i){for(var n=t.getTracks(),o=t.getMaxTime(),r=0;r<n.length;r++){var a=n[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=i?i(l):l)for(var h=0;h<s.length;h++){var u=s[h],c=Math.round(u.time/o*100)+"%",p=Zd(u.easing),d=u.rawValue;(b(d)||T(d))&&(e[c]=e[c]||{},e[c][l]=u.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,h=o[1],u=h.length,c={},p={},d={},f="animation-timing-function",g=0;g<u;g++)(O=(P=h[g]).targetName)?"shape"===O&&r(P,p):n||r(P,c);for(D in c){var y={},_=(si(y,t),l(y,c[D]),ze(y)),x=c[D][f];d[D]=_?{transform:_}:{},_=d[D],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[tk]=a+"px "+y+"px"),x&&(d[D][f]=x)}var w,S,M,C=!0;for(D in p){d[D]=d[D]||{};var I=!s,x=p[D][f],k=(s=I?new rv:s).len(),A=(s.reset(),d[D].d=(S=p[D],M=s,A=void 0,A=l({},(w=t).shape),l(A,S),w.buildPath(M,A),(S=new HI).reset(Be(w)),M.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==A){C=!1;break}x&&(d[D][f]=x)}if(!C)for(var D in d)delete d[D].d;if(!n)for(var P,O,g=0;g<u;g++)"style"===(O=(P=h[g]).targetName)&&r(P,d,function(t){return ek[t]});for(var L,E=v(d),R=!0,g=1;g<E.length;g++){var N=E[g-1],B=E[g];if(d[N][tk]!==d[B][tk]){R=!1;break}L=d[N][tk]}if(R&&L){for(var D in d)d[D][tk]&&delete d[D][tk];e[tk]=L}if(m(E,function(t){return 0<v(d[t]).length}).length)return qd(d,i)+" "+o[0]+" both"}(c[s]))&&a.push(h);a.length&&(u=i.zrId+"-cls-"+$I++,i.cssNodes["."+u]={animation:a.join(",")},e.class=u)}function Qd(t,e,i,n){var o=JSON.stringify(t),r=i.cssStyleCache[o];r||(r=i.zrId+"-cls-"+$I++,i.cssStyleCache[o]=r,i.cssNodes["."+r+(n?":hover":"")]=t),e.class=e.class?e.class+" "+r:r}function $d(t){return t&&b(t.src)}function Jd(t){return t&&w(t.toDataURL)}function tf(t,e,i,n){Hd(function(o,r){var a="fill"===o||"stroke"===o;a&&Re(r)?hf(e,t,o,n):a&&Oe(r)?uf(i,t,o,n):t[o]=a&&"none"===r?"transparent":r},e,i,!1);var o=t,r=n;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(h=i).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(",")}(h),s=r.shadowCache,l=s[a];if(!l){var h=h.getGlobalScale(),u=h[0],h=h[1];if(!u||!h)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=Ie(f.shadowColor),g=f.opacity,f=f.color,d=d/2/u+" "+d/2/h;l=r.zrId+"-s"+r.shadowIdx++,r.defs[l]=Xd("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Xd("feDropShadow","",{dx:c/u,dy:p/h,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}o.filter=Ne(l)}}function ef(t,e){var i=Ci(e);i&&(i.each(function(e,i){null!=e&&(t[(QI+i).toLowerCase()]=e+"")}),e.isSilent())&&(t[QI+"silent"]="true")}function nf(t){return ke(t[0]-1)&&ke(t[1])&&ke(t[2])&&ke(t[3]-1)}function of(t,e,i){var n;!e||ke((n=e)[4])&&ke(n[5])&&nf(e)||(n=i?10:1e4,t.transform=nf(e)?"translate("+ik(e[4]*n)/n+" "+ik(e[5]*n)/n+")":"matrix("+Ae((i=e)[0])+","+Ae(i[1])+","+Ae(i[2])+","+Ae(i[3])+","+De(i[4])+","+De(i[5])+")")}function rf(t,e,i){for(var n=t.points,o=[],r=0;r<n.length;r++)o.push(ik(n[r][0]*i)/i),o.push(ik(n[r][1]*i)/i);e.points=o.join(" ")}function af(t){return!t.smooth}function sf(t,e){var i,n,o,r,a,s=t.style,l=t.shape,h=nk[t.type],u={},c=e.animation,p="path",d=t.style.strokePercent,f=e.compress&&Be(t)||4;return!h||e.willUpdate||h[1]&&!h[1](l)||c&&function(t){for(var e=t.animators,i=0;i<e.length;i++)if("shape"===e[i].targetName)return 1}(t)||d<1?(c=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),i=t.path,c&&(i.beginPath(),t.buildPath(i,t.shape),t.pathUpdated()),c=i.getVersion(),o=(n=t).__svgPathBuilder,n.__svgPathVersion===c&&o&&d===n.__svgPathStrokePercent||((o=o||(n.__svgPathBuilder=new HI)).reset(f),i.rebuildPath(o,d),o.generateStr(),n.__svgPathVersion=c,n.__svgPathStrokePercent=d),u.d=o.getStr()):(p=t.type,i=Math.pow(10,f),h[0](l,u,i)),of(u,t.transform),tf(u,s,t,e),ef(u,t),e.animation&&Kd(t,u,e),e.emphasis&&(c=u,n=e,(d=t).ignore||(d.isSilent()?Qd(a={"pointer-events":"none"},c,n,!0):(!(f=(o=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(r=d.style&&d.style.fill,h=d.states.select&&d.states.select.style&&d.states.select.style.fill,h=0<=d.currentStates.indexOf("select")&&h||r)&&(f=Ce(h)),(r=o.lineWidth)&&(r/=!o.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),o.stroke&&(a.stroke=o.stroke),r&&(a["stroke-width"]=r),Qd(a,c,n,!0)))),Xd(p,t.id+"",u)}function lf(t,e){if(t instanceof yv)return sf(t,e);if(t instanceof bv){var i=t,n=e,o=i.style,r=o.image;if(r&&!b(r)&&($d(r)?r=r.src:Jd(r)&&(r=r.toDataURL())),r)return a=o.x||0,s=o.y||0,r={href:r,width:o.width,height:o.height},a&&(r.x=a),s&&(r.y=s),of(r,i.transform),tf(r,o,i,n),ef(r,i),n.animation&&Kd(i,r,n),Xd("image",i.id+"",r)}else if(t instanceof vv){var a=t,s=e,o=a.style,n=o.text;if(null!=n&&(n+=""),n&&!isNaN(o.x)&&!isNaN(o.y)){var i=o.font||Nf,r=o.x||0,l=(t=o.y||0,e=di(i),"top"===(l=o.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":gy[o.textAlign]||o.textAlign};if(jn(o)){var t="",h=o.fontStyle,u=Gn(o.fontSize);if(!parseFloat(u))return;var c=o.fontFamily||Rf,p=o.fontWeight;t+="font-size:"+u+";font-family:"+c+";",h&&"normal"!==h&&(t+="font-style:"+h+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+i;return n.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),l&&(e.y=l),of(e,a.transform),tf(e,o,a,s),ef(e,a),s.animation&&Kd(a,e,s),Xd("text",a.id+"",e,void 0,n)}}}function hf(t,e,i,n){var o,t=t[i],r={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Le(t))o="linearGradient",r.x1=t.x,r.y1=t.y,r.x2=t.x2,r.y2=t.y2;else{if(!Ee(t))return;o="radialGradient",r.cx=E(t.x,.5),r.cy=E(t.y,.5),r.r=E(t.r,.5)}for(var a=t.colorStops,s=[],l=0,h=a.length;l<h;++l){var u=100*De(a[l].offset)+"%",c=Ie(a[l].color),p=c.color,c=c.opacity,u={offset:u};u["stop-color"]=p,c<1&&(u["stop-opacity"]=c),s.push(Xd("stop",l+"",u))}var t=Gd(Xd(o,"",r,s)),d=n.gradientCache,f=d[t];f||(f=n.zrId+"-g"+n.gradientIdx++,d[t]=f,r.id=f,n.defs[f]=Xd(o,f,r,s)),e[i]=Ne(f)}function uf(t,e,i,n){var o,r,s,l,h,u,c,p,d=t.style[i],f=t.getBoundingRect(),g={},y=d.repeat,m="no-repeat"===y,v="repeat-x"===y,_="repeat-y"===y;Pe(d)?(r=d.imageWidth,s=d.imageHeight,y=void 0,b(c=d.image)?y=c:$d(c)?y=c.src:Jd(c)&&(y=c.toDataURL()),"undefined"==typeof Image?(z(r,c="Image width/height must been given explictly in svg-ssr renderer."),z(s,c)):null!=r&&null!=s||(l=function(t,e){var i,n;t&&(i=t.elm,n=r||e.width,e=s||e.height,"pattern"===t.tag&&(v?(e=1,n/=f.width):_&&(n=1,e/=f.height)),t.attrs.width=n,t.attrs.height=e,i)&&(i.setAttribute("width",n),i.setAttribute("height",e))},(c=vn(y,null,t,function(t){m||l(u,t),l(o,t)}))&&c.width&&c.height&&(r=r||c.width,s=s||c.height)),o=Xd("image","img",{href:y,width:r,height:s}),g.width=r,g.height=s):d.svgElement&&(o=a(d.svgElement),g.width=d.svgWidth,g.height=d.svgHeight),o&&(m?p=h=1:v?(h=1,p=g.width/f.width):_?(p=1,h=g.height/f.height):g.patternUnits="userSpaceOnUse",null==p||isNaN(p)||(g.width=p),null==h||isNaN(h)||(g.height=h),(t=ze(d))&&(g.patternTransform=t),c=Gd(u=Xd("pattern","",g,[o])),(p=(y=n.patternCache)[c])||(p=n.zrId+"-p"+n.patternIdx++,y[c]=p,g.id=p,u=n.defs[p]=Xd("pattern",p,g,[o])),e[i]=Ne(p))}function cf(t){return document.createTextNode(t)}function pf(t,e,i){t.insertBefore(e,i)}function df(t,e){t.removeChild(e)}function ff(t,e){t.appendChild(e)}function gf(t){return t.parentNode}function yf(t){return t.nextSibling}function mf(t,e){t.textContent=e}function vf(t){return void 0===t}function _f(t){return void 0!==t}function xf(t,e){var i=t.key===e.key;return t.tag===e.tag&&i}function wf(t){var e,i=t.children,n=t.tag;if(_f(n)){var o=t.elm=Wd(n);if(Tf(ak,t),x(i))for(e=0;e<i.length;++e){var r=i[e];null!=r&&ff(o,wf(r))}else _f(t.text)&&!M(t.text)&&ff(o,cf(t.text))}else t.elm=cf(t.text);return t.elm}function bf(t,e,i,n,o){for(;n<=o;++n){var r=i[n];null!=r&&pf(t,wf(r),e)}}function Sf(t,e,i,n){for(;i<=n;++i){var o=e[i];null!=o&&(_f(o.tag)?df(gf(o.elm),o.elm):df(t,o.elm))}}function Tf(t,e){var i,n=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(i in r){var a=r[i];o[i]!==a&&(!0===a?n.setAttribute(i,""):!1===a?n.removeAttribute(i):"style"===i?n.style.cssText=a:i.charCodeAt(0)!==rk?n.setAttribute(i,a):"xmlns:xlink"===i||"xmlns"===i?n.setAttributeNS(ZI,i,a):i.charCodeAt(3)===ok?n.setAttributeNS(KI,i,a):i.charCodeAt(5)===ok?n.setAttributeNS(qI,i,a):n.setAttribute(i,a))}for(i in o)i in r||n.removeAttribute(i)}}function Mf(t,e,i){for(var n,o,r,a=0,s=0,l=e.length-1,h=e[0],u=e[l],c=i.length-1,p=i[0],d=i[c];a<=l&&s<=c;)null==h?h=e[++a]:null==u?u=e[--l]:null==p?p=i[++s]:null==d?d=i[--c]:xf(h,p)?(Cf(h,p),h=e[++a],p=i[++s]):xf(u,d)?(Cf(u,d),u=e[--l],d=i[--c]):xf(h,d)?(Cf(h,d),pf(t,h.elm,yf(u.elm)),h=e[++a],d=i[--c]):(xf(u,p)?(Cf(u,p),pf(t,u.elm,h.elm),u=e[--l]):(vf(n)&&(n=function(t,e,i){for(var n={},o=e;o<=i;++o){var r=t[o].key;void 0!==r&&(n[r]=o)}return n}(e,a,l)),vf(o=n[p.key])||(r=e[o]).tag!==p.tag?pf(t,wf(p),h.elm):(Cf(r,p),e[o]=void 0,pf(t,r.elm,h.elm))),p=i[++s]);(a<=l||s<=c)&&(l<a?bf(t,null==i[c+1]?null:i[c+1].elm,i,s,c):Sf(t,e,a,l))}function Cf(t,e){var i=e.elm=t.elm,n=t.children,o=e.children;t!==e&&(Tf(t,e),vf(e.text)?_f(n)&&_f(o)?n!==o&&Mf(i,n,o):_f(o)?(_f(t.text)&&mf(i,""),bf(i,null,o,0,o.length-1)):_f(n)?Sf(i,n,0,n.length-1):_f(t.text)&&mf(i,""):t.text!==e.text&&(_f(n)&&Sf(i,n,0,n.length-1),mf(i,e.text)))}function If(t,e,i){var n;this.type="svg",this.refreshHover=kf(),this.configLayer=kf(),this.storage=e,this._opts=i=l({},i),this.root=t,this._id="zr"+sk++,this._oldVNode=jd(i.width,i.height),t&&!i.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",n=this._svgDom=this._oldVNode.elm=Wd("svg"),Tf(null,this._oldVNode),e.appendChild(n),t.appendChild(e)),this.resize(i.width,i.height)}function kf(){return function(){}}var Af=function(t,e){return(Af=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},Df=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Pf=new function(){this.browser=new Df,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?(Pf.wxa=!0,Pf.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Pf.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Pf.node=!0,Pf.svgSupported=!0):(qf=navigator.userAgent,sg=(og=Pf).browser,Qf=qf.match(/Firefox\/([\d.]+)/),Hf=qf.match(/MSIE\s([\d.]+)/)||qf.match(/Trident\/.+?rv:(([\d.]+))/),jf=qf.match(/Edge?\/([\d.]+)/),qf=/micromessenger/i.test(qf),Qf&&(sg.firefox=!0,sg.version=Qf[1]),Hf&&(sg.ie=!0,sg.version=Hf[1]),jf&&(sg.edge=!0,sg.version=jf[1],sg.newEdge=18<+jf[1].split(".")[0]),qf&&(sg.weChat=!0),og.svgSupported="undefined"!=typeof SVGRect,og.touchEventsSupported="ontouchstart"in window&&!sg.ie&&!sg.edge,og.pointerEventsSupported="onpointerdown"in window&&(sg.edge||sg.ie&&11<=+sg.version),og.domSupported="undefined"!=typeof document,Qf=document.documentElement.style,og.transform3dSupported=(sg.ie&&"transition"in Qf||sg.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Qf)&&!("OTransition"in Qf),og.transformSupported=og.transform3dSupported||sg.ie&&9<=+sg.version);var Of,Lf,Ef=12,Rf="sans-serif",Nf=Ef+"px "+Rf,Bf=function(t){var e={};if("undefined"!=typeof JSON)for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),o=(t.charCodeAt(i)-20)/100;e[n]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),zf={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(Of||(i=zf.createCanvas(),Of=i&&i.getContext("2d")),Of)return Lf!==e&&(Lf=Of.font=e||Nf),Of.measureText(t);t=t||"",e=e||Nf;var i=/((?:\d+)?\.?\d*)px/.exec(e),n=i&&+i[1]||Ef,o=0;if(0<=e.indexOf("mono"))o=n*t.length;else for(var r=0;r<t.length;r++){var a=Bf[t[r]];o+=null==a?n:a*n}return{width:o}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}},Ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Vf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Yf=Object.prototype.toString,Hf=Array.prototype,Wf=Hf.forEach,Xf=Hf.filter,Gf=Hf.slice,Uf=Hf.map,jf=function(){}.constructor,qf=jf?jf.prototype:null,Zf="__proto__",Kf=2311,Qf=zf.createCanvas,$f=qf&&w(qf.bind)?qf.call.bind(qf.bind):function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(Gf.call(arguments)))}},Jf="__ec_primitive__";H.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},H.prototype.has=function(t){return this.data.hasOwnProperty(t)},H.prototype.get=function(t){return this.data[t]},H.prototype.set=function(t,e){return this.data[t]=e,this},H.prototype.keys=function(){return v(this.data)},H.prototype.forEach=function(t){var e,i=this.data;for(e in i)i.hasOwnProperty(e)&&t(i[e],e)};var tg=H,eg="function"==typeof Map;W.prototype.hasKey=function(t){return this.data.has(t)},W.prototype.get=function(t){return this.data.get(t)},W.prototype.set=function(t,e){return this.data.set(t,e),e},W.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},W.prototype.keys=function(){var t=this.data.keys();return eg?Array.from(t):t},W.prototype.removeKey=function(t){this.data.delete(t)};var ig=W,ng=180/Math.PI,og=Object.freeze({__proto__:null,HashMap:ig,RADIAN_TO_DEGREE:ng,assert:z,bind:$f,clone:a,concatArray:G,createCanvas:Qf,createHashMap:X,createObject:U,curry:_,defaults:h,disableUserSelect:j,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,i){if(t&&e)for(var n=0,o=t.length;n<o;n++)if(e.call(i,t[n],n,t))return t[n]},guid:o,hasOwn:q,indexOf:u,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:C,isDom:k,isFunction:w,isGradientObject:A,isImagePatternObject:D,isNumber:T,isObject:M,isPrimitive:Y,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:r,map:g,merge:s,mergeAll:function(t,e){for(var i=t[0],n=1,o=t.length;n<o;n++)i=s(i,t[n],e);return i},mixin:p,noop:Z,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:E,retrieve3:R,setAsPrimitive:V,slice:N,trim:F}),rg=ot,ag=rt,sg=Object.freeze({__proto__:null,add:$,applyTransform:st,clone:Q,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:K,dist:rg,distSquare:ag,distance:ot,distanceSquare:rt,div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:tt,lenSquare:et,length:tt,lengthSquare:et,lerp:at,max:ht,min:lt,mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:nt,scale:it,scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},set:function(t,e,i){return t[0]=e,t[1]=i,t},sub:J}),lg=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},hg=(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 lg(e,t),"dragstart",t.event))},ut.prototype._drag=function(t){var e,i,n,o,r=this._draggingTarget;r&&(e=t.offsetX,i=t.offsetY,n=e-this._x,o=i-this._y,this._x=e,this._y=i,r.drift(n,o,t),this.handler.dispatchToElement(new lg(r,t),"drag",t.event),n=this.handler.findHover(e,i,r).target,o=this._dropTarget,r!==(this._dropTarget=n))&&(o&&n!==o&&this.handler.dispatchToElement(new lg(o,t),"dragleave",t.event),n)&&n!==o&&this.handler.dispatchToElement(new lg(n,t),"dragenter",t.event)},ut.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new lg(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new lg(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ut);ct.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),i&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===i)return this;r={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},e=o[t].length-1,n=o[t][e],n&&n.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},ct.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ct.prototype.off=function(t,e){var i=this._$handlers;if(i)if(t)if(e){if(i[t]){for(var n=[],o=0,r=i[t].length;o<r;o++)i[t][o].h!==e&&n.push(i[t][o]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];else this._$handlers={};return this},ct.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){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)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},ct.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=e[r-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!o||!o.filter||null==h.query||o.filter(t,h.query))switch(r){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var ug=ct,cg=Math.log(2),pg="___zrEVENTSAVED",dg=[],fg=/([&<>"'])/g,gg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yg=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mg=[],vg=Pf.browser.firefox&&+Pf.browser.version.split(".")[0]<39,_g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},xg=(wt.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},wt.prototype.clear=function(){return this._track.length=0,this},wt.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},r=0,a=n.length;r<a;r++){var s=n[r],l=mt(i,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},wt.prototype._recognize=function(t){for(var e in wg)if(wg.hasOwnProperty(e)&&(e=wg[e](this._track,t)))return e},wt),wg={pinch:function(t,e){var i,n=t.length;if(n)return i=(t[n-1]||{}).points,(n=(t[n-2]||{}).points||i)&&1<n.length&&i&&1<i.length?(n=bt(i)/bt(n),isFinite(n)||(n=1),e.pinchScale=n,n=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2],e.pinchX=n[0],e.pinchY=n[1],{type:"pinch",target:t[0].target,event:e}):void 0}},bg=Object.freeze({__proto__:null,clone:function(t){var e=St();return Mt(e,t),e},copy:Mt,create:St,identity:Tt,invert:Dt,mul:Ct,rotate:kt,scale:At,translate:It}),Sg=(Pt.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Pt.prototype.clone=function(){return new Pt(this.x,this.y)},Pt.prototype.set=function(t,e){return this.x=t,this.y=e,this},Pt.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Pt.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Pt.prototype.scale=function(t){this.x*=t,this.y*=t},Pt.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Pt.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Pt.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Pt.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Pt.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Pt.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Pt.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Pt.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Pt.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Pt.prototype.transform=function(t){var e,i;if(t)return e=this.x,i=this.y,this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this},Pt.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Pt.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Pt.set=function(t,e,i){t.x=e,t.y=i},Pt.copy=function(t,e){t.x=e.x,t.y=e.y},Pt.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Pt.lenSquare=function(t){return t.x*t.x+t.y*t.y},Pt.dot=function(t,e){return t.x*e.x+t.y*e.y},Pt.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},Pt.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},Pt.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},Pt.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},Pt.lerp=function(t,e,i,n){var o=1-n;t.x=o*e.x+n*i.x,t.y=o*e.y+n*i.y},Pt),Tg=Math.min,Mg=Math.max,Cg=new Sg,Ig=new Sg,kg=new Sg,Ag=new Sg,Dg=new Sg,Pg=new Sg,Og=(Ot.prototype.union=function(t){var e=Tg(t.x,this.x),i=Tg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Mg(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Mg(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},Ot.prototype.applyTransform=function(t){Ot.applyTransform(this,this,t)},Ot.prototype.calculateTransform=function(t){var e=t.width/this.width,i=t.height/this.height,n=St();return It(n,n,[-this.x,-this.y]),At(n,n,[e,i]),It(n,n,[t.x,t.y]),n},Ot.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Ot||(t=Ot.create(t));var i,n,o,r,a,s,l,h,u=this,c=u.x,p=u.x+u.width,d=u.y,u=u.y+u.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||u<y||t<d);return e&&(i=1/0,n=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(u-y),s=Math.abs(t-d),l=Math.min(o,r),h=Math.min(a,s),p<f||g<c?n<l&&(n=l,o<r?Sg.set(Pg,-o,0):Sg.set(Pg,r,0)):l<i&&(i=l,o<r?Sg.set(Dg,o,0):Sg.set(Dg,-r,0)),u<y||t<d?n<h&&(n=h,a<s?Sg.set(Pg,0,-a):Sg.set(Pg,0,s)):l<i&&(i=l,a<s?Sg.set(Dg,0,a):Sg.set(Dg,0,-s))),e&&Sg.copy(e,m?Dg:Pg),m},Ot.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},Ot.prototype.clone=function(){return new Ot(this.x,this.y,this.width,this.height)},Ot.prototype.copy=function(t){Ot.copy(this,t)},Ot.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ot.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ot.prototype.isZero=function(){return 0===this.width||0===this.height},Ot.create=function(t){return new Ot(t.x,t.y,t.width,t.height)},Ot.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ot.applyTransform=function(t,e,i){var n,o,r,a;i?i[1]<1e-5&&-1e-5<i[1]&&i[2]<1e-5&&-1e-5<i[2]?(n=i[0],o=i[3],r=i[4],a=i[5],t.x=e.x*n+r,t.y=e.y*o+a,t.width=e.width*n,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Cg.x=kg.x=e.x,Cg.y=Ag.y=e.y,Ig.x=Ag.x=e.x+e.width,Ig.y=kg.y=e.y+e.height,Cg.transform(i),Ag.transform(i),Ig.transform(i),kg.transform(i),t.x=Tg(Cg.x,Ig.x,kg.x,Ag.x),t.y=Tg(Cg.y,Ig.y,kg.y,Ag.y),r=Mg(Cg.x,Ig.x,kg.x,Ag.x),a=Mg(Cg.y,Ig.y,kg.y,Ag.y),t.width=r-t.x,t.height=a-t.y):t!==e&&Ot.copy(t,e)},Ot),Lg="silent";i(Et,Eg=ug),Et.prototype.dispose=function(){},Et.prototype.setCursor=function(){};var Eg,Rg,Ng=Et,Bg=function(t,e){this.x=t,this.y=e},zg=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Fg=new Og(0,0,0,0),Vg=(i(Rt,Rg=ug),Rt.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f(zg,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},Rt.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=Bt(this,e,i),o=this._hovered,r=o.target,n=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=n?new Bg(e,i):this.findHover(e,i)),e=n.target,i=this.proxy;i.setCursor&&i.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(n,"mousemove",t),e&&e!==r&&this.dispatchToElement(n,"mouseover",t)},Rt.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})},Rt.prototype.resize=function(){this._hovered=new Bg(0,0)},Rt.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},Rt.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Rt.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},Rt.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var o="on"+e,r={type:e,event:i,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Lt};n&&(n[o]&&(r.cancelBubble=!!n[o].call(n,r)),n.trigger(e,r),n=n.__hostTarget||n.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},Rt.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),o=new Bg(t,e);if(Nt(n,o,t,e,i),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new Og(t-s,e-s,a,a),h=n.length-1;0<=h;h--){var u=n[h];u===i||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Fg.copy(u.getBoundingRect()),u.transform&&Fg.applyTransform(u.transform),Fg.intersect(l)&&r.push(u))}if(r.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(Nt(r,o,t+d*Math.cos(f),e+d*Math.sin(f),i),o.target)return o}return o},Rt.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new xg);var i=this._gestureMgr,n=("start"===e&&i.clear(),i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&i.clear(),n&&(e=n.type,t.gestureEvent=e,(i=new Bg).target=n.target,this.dispatchToElement(i,e,n.event))},Rt);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Vg.prototype[t]=function(e){var i,n,o=e.zrX,r=e.zrY,a=Bt(this,o,r);if("mouseup"===t&&a||(n=(i=this.findHover(o,r)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<rg(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Yg=32,Hg=7,Wg=1,Xg=4,Gg=!1;Ut.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},Ut.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},Ut.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,o=e.length;n<o;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Wt(i,Gt)},Ut.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var o=n,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Wg),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else n=t,e&&e.length?n.__clipPaths=e:n.__clipPaths&&0<n.__clipPaths.length&&(n.__clipPaths=[]),isNaN(n.z)&&(Xt(),n.z=0),isNaN(n.z2)&&(Xt(),n.z2=0),isNaN(n.zlevel)&&(Xt(),n.zlevel=0),this._displayList[this._displayListLen++]=n;n=t.getDecalElement&&t.getDecalElement(),n&&this._updateAndAddDisplayable(n,e,i),n=t.getTextGuideLine(),n&&this._updateAndAddDisplayable(n,e,i),n=t.getTextContent(),n&&this._updateAndAddDisplayable(n,e,i)}},Ut.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Ut.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=u(this._roots,t);0<=n&&this._roots.splice(n,1)}},Ut.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Ut.prototype.getRoots=function(){return this._roots},Ut.prototype.dispose=function(){this._displayList=null,this._roots=null};var Ug=Ut,jg=Pf.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},qg={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,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(e=!i||i<1?(i=1,.1):.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*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-qg.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*qg.bounceIn(2*t):.5*qg.bounceOut(2*t-1)+.5}},Zg=Math.pow,Kg=Math.sqrt,Qg=1e-8,$g=Kg(3),Jg=1/3,ty=K(),ey=K(),iy=K(),ny=/cubic-bezier\(([0-9,\.e ]+)\)/;se.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,o=n/i,r=(o<0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-n%i,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},se.prototype.pause=function(){this._paused=!0},se.prototype.resume=function(){this._paused=!1},se.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:qg[t]||ae(t)};var oy=se,ry=function(t){this.value=t},ay=(le.prototype.insert=function(t){return t=new ry(t),this.insertEntry(t),t},le.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++},le.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},le.prototype.len=function(){return this._len},le.prototype.clear=function(){this.head=this.tail=null,this._len=0},le);he.prototype.put=function(t,e){var i,n,o=this._list,r=this._map,a=null;return null==r[t]&&(n=o.len(),i=this._lastRemovedEntry,n>=this._maxSize&&0<n&&(n=o.head,o.remove(n),delete r[n.key],a=n.value,this._lastRemovedEntry=n),i?i.value=e:i=new ry(e),i.key=t,o.insertEntry(i),r[t]=i),a},he.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},he.prototype.clear=function(){this._list.clear(),this._map={}},he.prototype.len=function(){return this._list.len()};var sy=he,ly={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]},hy=new sy(20),uy=null,cy=be,py=Se,dy=new sy(100),cy=Object.freeze({__proto__:null,fastLerp:be,fastMapToColor:cy,lerp:Se,lift:we,liftColor:Ce,lum:Me,mapToColor:py,modifyAlpha:function(t,e){if((t=_e(t))&&null!=e)return t[3]=ce(e),Te(t,"rgba")},modifyHSL:function(t,e,i,n){var o=_e(t);if(t)return o=function(t){var e,i,n,o,r,a,s,l,h,u;if(t)return u=t[0]/255,e=t[1]/255,i=t[2]/255,s=Math.min(u,e,i),o=((n=Math.max(u,e,i))+s)/2,0==(h=n-s)?a=r=0:(a=o<.5?h/(n+s):h/(2-n-s),s=((n-u)/6+h/2)/h,l=((n-e)/6+h/2)/h,h=((n-i)/6+h/2)/h,u===n?r=h-l:e===n?r=1/3+s-h:i===n&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),u=[360*r,a,o],null!=t[3]&&u.push(t[3]),u}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=i&&(o[1]=de(i)),null!=n&&(o[2]=de(n)),Te(xe(o),"rgba")},parse:_e,random:function(){return Te([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Te,toHex:function(t){if(t=_e(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),fy=Math.round,gy={left:"start",right:"end",center:"middle",middle:"middle"},yy=Pf.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},my=Array.prototype.slice,vy=[0,0,0,0],_y=(je.prototype.isFinished=function(){return this._finished},je.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},je.prototype.needsAnimate=function(){return 1<=this.keyframes.length},je.prototype.getAdditiveTrack=function(){return this._additiveTrack},je.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n,o=this.keyframes,r=o.length,a=!1,s=6,h=e,u=(d(e)?(1==(s=n=d((n=e)&&n[0])?2:1)&&!T(e[0])||2==n&&!T(e[0][0]))&&(a=!0):T(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(n=_e(e))&&(h=n,s=3):s=0:A(e)&&((u=l({},h)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:_e(t.color)}}),Le(e)?s=4:Ee(e)&&(s=5),h=u),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:h,rawValue:e,percent:0});return i&&(u.easing=i,u.easingFunc=w(i)?i:qg[i]||ae(i)),o.push(u),u},je.prototype.prepare=function(t,e){for(var i=this.keyframes,n=(this._needsSort&&i.sort(function(t,e){return t.time-e.time}),this.valType),o=i.length,r=i[o-1],a=this.discrete,s=Ue(n),l=Ge(n),h=0;h<o;h++){var u=i[h],c=u.value,p=r.value;if(u.percent=u.time/t,!a)if(s&&h!==o-1){x=_=v=m=y=g=f=d=u=void 0;var d=p,f=n,g=u=c,y=d;if(g.push&&y.push){var u=g.length,m=y.length;if(u!==m)if(m<u)g.length=m;else for(var v=u;v<m;v++)g.push(1===f?y[v]:my.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){M=T=S=b=w=u=d=void 0;for(var d=c.colorStops,u=p.colorStops,w=d.length,b=u.length,S=b<w?u:d,u=Math.min(w,b),T=S[u-1]||{color:[0,0,0,0],offset:0},M=u;M<Math.max(w,b);M++)S.push({offset:T.offset,color:T.color.slice()})}}if(!a&&5!==n&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var C=i[0].value,h=0;h<o;h++)0===n?i[h].additiveValue=i[h].value-C:3===n?i[h].additiveValue=Ye([],i[h].value,C,-1):Ue(n)&&(i[h].additiveValue=(1===n?Ye:He)([],i[h].value,C,-1))}},je.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,h=this.keyframes,u=h.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===u)i=n=h[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,u-1);0<=y&&!(h[y].percent<=e);y--);y=f(y,u-2)}else{for(y=d;y<u&&!(h[y].percent>e);y++);y=f(y-1,u-2)}n=h[y+1],i=h[y]}i&&n&&(this._lastFr=y,this._lastFrP=e,d=n.percent-i.percent,o=0==d?1:f((e-i.percent)/d,1),n.easingFunc&&(o=n.easingFunc(o)),f=a?this._additiveValue:p?vy:t[c],(Ue(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?i:n).rawValue:Ue(l)?(1===l?Ve:function(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Fe(e[a][s],i[a][s],n)}})(f,i[s],n[s],o):Ge(l)?(d=i[s],r=n[s],t[c]={type:(l=4===l)?"linear":"radial",x:Fe(d.x,r.x,o),y:Fe(d.y,r.y,o),colorStops:g(d.colorStops,function(t,e){return e=r.colorStops[e],{offset:Fe(t.offset,e.offset,o),color:Xe(Ve([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=Fe(d.x2,r.x2,o),t[c].y2=Fe(d.y2,r.y2,o)):t[c].r=Fe(d.r,r.r,o)):p?(Ve(f,i[s],n[s],o),a||(t[c]=Xe(f))):(l=Fe(i[s],n[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},je.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(_e(t[i],vy),Ye(vy,vy,n,1),t[i]=Xe(vy)):1===e?Ye(t[i],t[i],n,1):2===e&&He(t[i],t[i],n,1)},je);qe.prototype.getMaxTime=function(){return this._maxTime},qe.prototype.getDelay=function(){return this._delay},qe.prototype.getLoop=function(){return this._loop},qe.prototype.getTarget=function(){return this._target},qe.prototype.changeTarget=function(t){this._target=t},qe.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,v(e),i)},qe.prototype.whenWithKeys=function(t,e,i,n){for(var o=this._tracks,r=0;r<i.length;r++){var a=i[r];if(!(l=o[a])){var s,l=o[a]=new _y(a),h=void 0,u=this._getAdditiveTrack(a);if(u?(h=(s=(s=u.keyframes)[s.length-1])&&s.value,3===u.valType&&(h=h&&Xe(h))):h=this._target[a],null==h)continue;0<t&&l.addKeyframe(0,We(h),n),this._trackKeys.push(a)}l.addKeyframe(t,We(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},qe.prototype.pause=function(){this._clip.pause(),this._paused=!0},qe.prototype.resume=function(){this._clip.resume(),this._paused=!1},qe.prototype.isPaused=function(){return!!this._paused},qe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},qe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},qe.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},qe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},qe.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(t);o&&(e=o)}return e},qe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,i=this,n=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,h=l.length;s.prepare(o,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[h-1])&&(i._target[s.propName]=a.rawValue),s.setFinished()):n.push(s))}return n.length||this._force?(e=new oy({life:o,loop:this._loop,delay:this._delay||0,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var o=!1,r=0;r<e.length;r++)if(e[r]._clip){o=!0;break}o||(i._additiveAnimators=null)}for(r=0;r<n.length;r++)n[r].step(i._target,t);var a=i._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](i._target,t)},ondestroy:function(){i._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},qe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},qe.prototype.delay=function(t){return this._delay=t,this},qe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},qe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},qe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},qe.prototype.getClip=function(){return this._clip},qe.prototype.getTrack=function(t){return this._tracks[t]},qe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},qe.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<t.length;o++){var r=i[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},qe.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var o=e[n],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[i?0:r.length-1])&&(t[o]=We(r.rawValue))}}},qe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var i=0;i<e.length;i++){var n,o=e[i],r=this._tracks[o];r&&1<(n=r.keyframes).length&&(n=n.pop(),r.addKeyframe(n.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var xy=qe;i(Ke,wy=ug),Ke.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},Ke.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Ke.prototype.removeClip=function(t){var e,i;t.animation&&(e=t.prev,i=t.next,e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},Ke.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ke.prototype.update=function(t){for(var e=Ze()-this._pausedTime,i=e-this._time,n=this._head;n;)var o=n.next,n=(n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),o);this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},Ke.prototype._startLoop=function(){var t=this;this._running=!0,jg(function e(){t._running&&(jg(e),t._paused||t.update())})},Ke.prototype.start=function(){this._running||(this._time=Ze(),this._pausedTime=0,this._startLoop())},Ke.prototype.stop=function(){this._running=!1},Ke.prototype.pause=function(){this._paused||(this._pauseStart=Ze(),this._paused=!0)},Ke.prototype.resume=function(){this._paused&&(this._pausedTime+=Ze()-this._pauseStart,this._paused=!1)},Ke.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},Ke.prototype.isFinished=function(){return null==this._head},Ke.prototype.animate=function(t,e){return e=e||{},this.start(),t=new xy(t,e.loop),this.addAnimator(t),t};var wy,by,Sy,Ty,My=Ke,Cy=Pf.domSupported,Iy=(by={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:py=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(py,function(t){var e=t.replace("mouse","pointer");return by.hasOwnProperty(e)?e:t})}),ky=["mousemove","mouseup"],Ay=["pointermove","pointerup"],Dy=!1,Py=function(t,e){this.stopPropagation=Z,this.stopImmediatePropagation=Z,this.preventDefault=Z,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Oy={mousedown:function(t){t=xt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=xt(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=xt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Je(this,(t=xt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Dy=!0,t=xt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Dy||(t=xt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){$e(t=xt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Oy.mousemove.call(this,t),Oy.mousedown.call(this,t)},touchmove:function(t){$e(t=xt(this.dom,t)),this.handler.processGesture(t,"change"),Oy.mousemove.call(this,t)},touchend:function(t){$e(t=xt(this.dom,t)),this.handler.processGesture(t,"end"),Oy.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Oy.click.call(this,t)},pointerdown:function(t){Oy.mousedown.call(this,t)},pointermove:function(t){Qe(t)||Oy.mousemove.call(this,t)},pointerup:function(t){Oy.mouseup.call(this,t)},pointerout:function(t){Qe(t)||Oy.mouseout.call(this,t)}},Ly=(f(["click","dblclick","contextmenu"],function(t){Oy[t]=function(e){e=xt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){Qe(t)||Ly.mousemove.call(this,t)},pointerup:function(t){Ly.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))}}),Ey=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ry=(i(oi,Sy=ug),oi.prototype.dispose=function(){ni(this._localHandlerScope),Cy&&ni(this._globalHandlerScope)},oi.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},oi.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Cy&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?ei(this,e):ni(e))},oi),py=1,Ny=py=Pf.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):py,By="#333",zy="#ccc",Fy=Tt,Vy=[],Yy=[],Hy=St(),Wy=Math.abs,Xy=(ai.prototype.getLocalTransform=function(t){return ai.getLocalTransform(this,t)},ai.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},ai.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},ai.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},ai.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},ai.prototype.needLocalTransform=function(){return ri(this.rotation)||ri(this.x)||ri(this.y)||ri(this.scaleX-1)||ri(this.scaleY-1)||ri(this.skewX)||ri(this.skewY)},ai.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||St(),e?this.getLocalTransform(i):Fy(i),t&&(e?Ct(i,t,i):Mt(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(Fy(i),this.invTransform=null)},ai.prototype._resolveGlobalScaleRatio=function(t){var e,i,n=this.globalScaleRatio;null!=n&&1!==n&&(this.getGlobalScale(Vy),i=((Vy[1]-(i=Vy[1]<0?-1:1))*n+i)/Vy[1]||0,t[0]*=n=((Vy[0]-(e=Vy[0]<0?-1:1))*n+e)/Vy[0]||0,t[1]*=n,t[2]*=i,t[3]*=i),this.invTransform=this.invTransform||St(),Dt(this.invTransform,t)},ai.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},ai.prototype.setLocalTransform=function(t){var e,i,n,o;t&&(o=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),i=Math.PI/2+e-Math.atan2(t[3],t[2]),n=Math.sqrt(n)*Math.cos(i),o=Math.sqrt(o),this.skewX=i,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=n,this.originX=0,this.originY=0)},ai.prototype.decomposeTransform=function(){var t,e,i;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||St(),Ct(Yy,e.invTransform,t),t=Yy),e=this.originX,i=this.originY,(e||i)&&(Hy[4]=e,Hy[5]=i,Ct(Yy,t,Hy),Yy[4]-=e,Yy[5]-=i,t=Yy),this.setLocalTransform(t))},ai.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},ai.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&st(t,t,e),t},ai.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&st(t,t,e),t},ai.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Wy(t[0]-1)&&1e-10<Wy(t[3]-1)?Math.sqrt(Wy(t[0]*t[3]-t[2]*t[1])):1},ai.prototype.copyTransform=function(t){si(this,t)},ai.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,h=t.x,u=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return i||n||a||s?(e[4]=-(a=i+a)*o-c*(s=n+s)*r,e[5]=-s*r-t*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=c*r,l&&kt(e,e,l),e[4]+=i+h,e[5]+=n+u,e},ai.initDefaultProps=((py=ai.prototype).scaleX=py.scaleY=py.globalScaleRatio=1,void(py.x=py.y=py.originX=py.originY=py.skewX=py.skewY=py.rotation=py.anchorX=py.anchorY=0)),ai),Gy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Uy={},jy="__zr_normal__",qy=Gy.concat(["ignore"]),Zy=y(Gy,function(t,e){return t[e]=!0,t},{ignore:!1}),Ky={},Qy=new Og(0,0,0,0),py=(yi.prototype._init=function(t){this.attr(t)},yi.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;(n=n||(this.transform=[1,0,0,1,0,0]))[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},yi.prototype.beforeUpdate=function(){},yi.prototype.afterUpdate=function(){},yi.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},yi.prototype.updateInnerText=function(t){var e,i,n,o,r,a,s,l,h,u,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,n=i=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,u=!1,e.copyTransform(c),null!=t.position&&(h=Qy,t.layoutRect?h.copy(t.layoutRect):h.copy(this.getBoundingRect()),l||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ky,t,h):gi(Ky,t,h),e.x=Ky.x,e.y=Ky.y,i=Ky.align,n=Ky.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*h.width,.5*h.height):(a=fi(r[0],h.width),fi(r[1],h.height)),u=!0,e.originX=-e.x+a+(l?0:h.x),e.originY=-e.y+s+(l?0:h.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],u||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),u=h=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,h=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(l),u=!0)):(l=t.outsideFill,h=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(l),u=!0)),(l=l||"#000")===s.fill&&h===s.stroke&&u===s.autoStroke&&i===s.align&&n===s.verticalAlign||(o=!0,s.fill=l,s.stroke=h,s.autoStroke=u,s.align=i,s.verticalAlign=n,c.setDefaultTextStyle(s)),c.__dirty|=Wg,o&&c.dirtyStyle(!0))},yi.prototype.canBeInsideText=function(){return!0},yi.prototype.getInsideTextFill=function(){return"#fff"},yi.prototype.getInsideTextStroke=function(t){return"#000"},yi.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zy:By},yi.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&_e(e),n=(i=i||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)i[r]=i[r]*n+(o?0:255)*(1-n);return i[3]=1,Te(i,"rgba")},yi.prototype.traverse=function(t,e){},yi.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},yi.prototype.hide=function(){this.ignore=!0,this.markRedraw()},yi.prototype.show=function(){this.ignore=!1,this.markRedraw()},yi.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(M(t))for(var i=v(t),n=0;n<i.length;n++){var o=i[n];this.attrKV(o,t[o])}return this.markRedraw(),this},yi.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],o=n.__fromStateTransition;n.getLoop()||o&&o!==jy||(o=(o=n.targetName)?e[o]:e,n.saveTo(o))}},yi.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,qy)},yi.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null==t[o]||o in e||(e[o]=this[o])}},yi.prototype.hasState=function(){return 0<this.currentStates.length},yi.prototype.getState=function(t){return this.states[t]},yi.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},yi.prototype.clearStates=function(t){this.useState(jy,!1,t)},yi.prototype.useState=function(t,e,i,n){var o=t===jy,a=this.hasState();if(a||!o){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=u(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!o?this.stateProxy(t):s)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||n))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!i&&!this.__inHover&&l&&0<l.duration,l),n=this._textContent,l=this._textGuide,n&&n.useState(t,e,i,a),l&&l.useState(t,e,i,a),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg),s;r("State "+t+" not exists.")}}},yi.prototype.useStates=function(t,e,i){if(t.length){var n=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],h=void 0;(h=(h=this.stateProxy?this.stateProxy(l,t):h)||this.states[l])&&n.push(h)}var u=n[r-1],u=!!(u&&u.hoverLayer||i),i=(u&&this._toggleHoverLayerFlag(!0),this._mergeStates(n)),c=this.stateTransition,i=(this.saveCurrentToNormalState(i),this._applyStateObj(t.join(","),i,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;i&&i.useStates(t,e,u),c&&c.useStates(t,e,u),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg)}}else this.clearStates()},yi.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},yi.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},yi.prototype.removeState=function(t){var e,t=u(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},yi.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),t=u(n,t),o=0<=u(n,e);0<=t?o?n.splice(t,1):n[t]=e:i&&!o&&n.push(e),this.useStates(n)},yi.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},yi.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var o=t[n];l(i,o),o.textConfig&&l(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},yi.prototype._applyStateObj=function(t,e,i,n,o,r){for(var a=!(e&&n),s=(e&&e.textConfig?(this.textConfig=l({},(n?this:i).textConfig),l(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig),{}),h=!1,u=0;u<qy.length;u++){var c=qy[u],p=o&&Zy[c];e&&null!=e[c]?p?(h=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(h=!0,s[c]=i[c]):this[c]=i[c])}if(!o)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||i)[f]:e||i)}h&&this._transitionState(t,s,r)},yi.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},yi.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},yi.prototype.getClipPath=function(){return this._clipPath},yi.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},yi.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},yi.prototype.getTextContent=function(){return this._textContent},yi.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Xy,this._attachComponent(t),this._textContent=t,this.markRedraw())},yi.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},yi.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},yi.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},yi.prototype.getTextGuideLine=function(){return this._textGuide},yi.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},yi.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},yi.prototype.markRedraw=function(){this.__dirty|=Wg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},yi.prototype.dirty=function(){this.markRedraw()},yi.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},yi.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},yi.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},yi.prototype.animate=function(t,e,i){var n=t?this[t]:this,n=new xy(n,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},yi.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=u(e,t);0<=i&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},yi.prototype.updateDuringAnimation=function(t){this.markRedraw()},yi.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,o=[],r=0;r<n;r++){var a=i[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},yi.prototype.animateTo=function(t,e,i){vi(this,t,e,i)},yi.prototype.animateFrom=function(t,e,i){vi(this,t,e,i,!0)},yi.prototype._transitionState=function(t,e,i,n){for(var o=vi(this,e,i,n),r=0;r<o.length;r++)o[r].__fromStateTransition=t},yi.prototype.getBoundingRect=function(){return null},yi.prototype.getPaintRect=function(){return null},yi.initDefaultProps=((Ty=yi.prototype).type="element",Ty.name="",Ty.ignore=Ty.silent=Ty.isGroup=Ty.draggable=Ty.dragging=Ty.ignoreClip=Ty.__inHover=!1,Ty.__dirty=Wg,void(Object.defineProperty&&(mi("position","_legacyPos","x","y"),mi("scale","_legacyScale","scaleX","scaleY"),mi("origin","_legacyOrigin","originX","originY")))),yi);p(py,ug),p(py,Xy),i(bi,$y=py),bi.prototype.childrenRef=function(){return this._children},bi.prototype.children=function(){return this._children.slice()},bi.prototype.childAt=function(t){return this._children[t]},bi.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},bi.prototype.childCount=function(){return this._children.length},bi.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},bi.prototype.addBefore=function(t,e){var i;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(i=this._children).indexOf(e))&&(i.splice(e,0,t),this._doAdd(t)),this},bi.prototype.replace=function(t,e){return t=u(this._children,t),0<=t&&this.replaceAt(e,t),this},bi.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];return t&&t!==this&&t.parent!==this&&t!==n&&(i[e]=t,n.parent=null,(i=this.__zr)&&n.removeSelfFromZr(i),this._doAdd(t)),this},bi.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()},bi.prototype.remove=function(t){var e=this.__zr,i=this._children,n=u(i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},bi.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},bi.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];t.call(e,o,n)}return this},bi.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],o=t.call(e,n);n.isGroup&&!o&&n.traverse(t,e)}return this},bi.prototype.addSelfToZr=function(t){$y.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},bi.prototype.removeSelfFromZr=function(t){$y.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},bi.prototype.getBoundingRect=function(t){for(var e=new Og(0,0,0,0),i=t||this._children,n=[],o=null,r=0;r<i.length;r++){var a,s=i[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(n))?(Og.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var $y,Jy=bi;Jy.prototype.type="group";var tm={},em={};Si.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Si.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Si.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Si.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Me(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,o=0;o<n;o++)i+=Me(e[o].color,1);return(i/=n)<.4}}return!1}(t))},Si.prototype.getBackgroundColor=function(){return this._backgroundColor},Si.prototype.setDarkMode=function(t){this._darkMode=t},Si.prototype.isDarkMode=function(){return this._darkMode},Si.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Si.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Si.prototype.flush=function(){this._disposed||this._flush(!1)},Si.prototype._flush=function(t){var e,i=Ze(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Ze());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-i})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},Si.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Si.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Si.prototype.refreshHover=function(){this._needsRefreshHover=!0},Si.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Si.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Si.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Si.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Si.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Si.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Si.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Si.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},Si.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Si.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Si.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Jy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Si.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete em[t])};var im,nm,om=Si,rm=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in em)em.hasOwnProperty(t)&&em[t].dispose();em={}},getElementSSRData:Ci,getInstance:function(t){return em[t]},init:Ti,registerPainter:Mi,registerSSRDataGetter:Ii,version:"5.6.0"}),am=20,sm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,lm="series\0",hm=["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"],um=Hi(),cm={useDefault:!0,enableAll:!1,enableNone:!1},pm=".",dm="___EC__COMPONENT__CONTAINER___",fm="___EC__EXTENDED_CLASS___",gm=Math.round(10*Math.random()),ym=yn([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mm=(mn.prototype.getAreaStyle=function(t,e){return ym(this,t,e)},mn),vm=new sy(50),_m=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,xm=function(){},wm=function(t){this.tokens=[],t&&(this.tokens=t)},bm=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Sm=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Tm="__zr_style_"+Math.round(10*Math.random()),Mm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Cm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Im=(Mm[Tm]=!0,["z","z2","invisible"]),km=["invisible"],py=(i(In,nm=py),In.prototype._init=function(t){for(var e=v(t),i=0;i<e.length;i++){var n=e[i];"style"===n?this.useStyle(t[n]):nm.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},In.prototype.beforeBrush=function(){},In.prototype.afterBrush=function(){},In.prototype.innerBeforeBrush=function(){},In.prototype.innerAfterBrush=function(){},In.prototype.shouldBePainted=function(t,e,i,n){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,i){return Am.copy(t.getBoundingRect()),t.transform&&Am.applyTransform(t.transform),Dm.width=e,Dm.height=i,!Am.intersect(Dm)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},In.prototype.contain=function(t,e){return this.rectContain(t,e)},In.prototype.traverse=function(t,e){t.call(e,this)},In.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},In.prototype.getPaintRect=function(){var t,e,i,n,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(n=this.style).shadowBlur||0,i=n.shadowOffsetX||0,n=n.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new Og(0,0,0,0)),o?Og.applyTransform(r,t,o):r.copy(t),(e||i||n)&&(r.width+=2*e+Math.abs(i),r.height+=2*e+Math.abs(n),r.x=Math.min(r.x,r.x+i-e),r.y=Math.min(r.y,r.y+n-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},In.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Og(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},In.prototype.getPrevPaintRect=function(){return this._prevPaintRect},In.prototype.animateStyle=function(t){return this.animate("style",t)},In.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},In.prototype.attrKV=function(t,e){"style"!==t?nm.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},In.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},In.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},In.prototype.dirty=function(){this.dirtyStyle()},In.prototype.styleChanged=function(){return!!(2&this.__dirty)},In.prototype.styleUpdated=function(){this.__dirty&=-3},In.prototype.createStyle=function(t){return U(Mm,t)},In.prototype.useStyle=function(t){t[Tm]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},In.prototype.isStyleObject=function(t){return t[Tm]},In.prototype._innerSaveToNormal=function(t){nm.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,Im)},In.prototype._applyStateObj=function(t,e,i,n,o,r){nm.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.style?o?n?a=e.style:(a=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(n?this:i).style),this._mergeStyle(a,e.style)):s&&(a=i.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var h=v(l),u=0;u<h.length;u++)(p=h[u])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),u=0;u<c.length;u++){var p=c[u];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?km:Im,u=0;u<d.length;u++)p=d[u],e&&null!=e[p]?this[p]=e[p]:s&&null!=i[p]&&(this[p]=i[p])},In.prototype._mergeStates=function(t){for(var e,i=nm.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(i.style=e),i},In.prototype._mergeStyle=function(t,e){return l(t,e),t},In.prototype.getAnimationStyleProps=function(){return Cm},In.initDefaultProps=((py=In.prototype).type="displayable",py.invisible=!1,py.z=0,py.z2=0,py.zlevel=0,py.culling=!1,py.cursor="pointer",py.rectHover=!1,py.incremental=!1,py._rect=null,py.dirtyRectTolerance=0,void(py.__dirty=2|Wg)),In),Am=new Og(0,0,0,0),Dm=new Og(0,0,0,0),Pm=Math.min,Om=Math.max,Lm=Math.sin,Em=Math.cos,Rm=2*Math.PI,Nm=K(),Bm=K(),zm=K(),Fm=[],Vm=[],Ym={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Hm=[],Wm=[],Xm=[],Gm=[],Um=[],jm=[],qm=Math.min,Zm=Math.max,Km=Math.cos,Qm=Math.sin,$m=Math.abs,Jm=Math.PI,tv=2*Jm,ev="undefined"!=typeof Float32Array,iv=[];Dn.prototype.increaseVersion=function(){this._version++},Dn.prototype.getVersion=function(){return this._version},Dn.prototype.setScale=function(t,e,i){0<(i=i||0)&&(this._ux=$m(i/Ny/t)||0,this._uy=$m(i/Ny/e)||0)},Dn.prototype.setDPR=function(t){this.dpr=t},Dn.prototype.setContext=function(t){this._ctx=t},Dn.prototype.getContext=function(){return this._ctx},Dn.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Dn.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Dn.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ym.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},Dn.prototype.lineTo=function(t,e){var i=$m(t-this._xi),n=$m(e-this._yi),o=i>this._ux||n>this._uy;return this.addData(Ym.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=i*i+n*n)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},Dn.prototype.bezierCurveTo=function(t,e,i,n,o,r){return this._drawPendingPt(),this.addData(Ym.C,t,e,i,n,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,o,r),this._xi=o,this._yi=r,this},Dn.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(Ym.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},Dn.prototype.arc=function(t,e,i,n,o,r){this._drawPendingPt(),iv[0]=n,iv[1]=o,s=r,(l=An((a=iv)[0]))<0&&(l+=tv),u=l-a[0],h=a[1],h+=u,!s&&tv<=h-l?h=l+tv:s&&tv<=l-h?h=l-tv:!s&&h<l?h=l+(tv-An(l-h)):s&&l<h&&(h=l-(tv-An(h-l))),a[0]=l,a[1]=h;var a,s,l,h,u=(o=iv[1])-(n=iv[0]);return this.addData(Ym.A,t,e,i,i,n,u,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,r),this._xi=Km(o)*i+t,this._yi=Qm(o)*i+e,this},Dn.prototype.arcTo=function(t,e,i,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,o),this},Dn.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(Ym.R,t,e,i,n),this},Dn.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ym.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},Dn.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Dn.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Dn.prototype.len=function(){return this._len},Dn.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ev||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},Dn.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,i=0,n=this._len,o=0;o<e;o++)i+=t[o].len();for(ev&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[n++]=r[a];this._len=n},Dn.prototype.addData=function(t,e,i,n,o,r,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var u=0;u<arguments.length;u++)h[this._len++]=arguments[u]}},Dn.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Dn.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}},Dn.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,ev)&&11<this._len&&(this.data=new Float32Array(t))},Dn.prototype.getBoundingRect=function(){Xm[0]=Xm[1]=Um[0]=Um[1]=Number.MAX_VALUE,Gm[0]=Gm[1]=jm[0]=jm[1]=-Number.MAX_VALUE;for(var t,e=this.data,i=0,n=0,o=0,r=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(o=i=e[a],r=n=e[a+1]),s){case Ym.M:i=o=e[a++],n=r=e[a++],Um[0]=o,Um[1]=r,jm[0]=o,jm[1]=r;break;case Ym.L:kn(i,n,e[a],e[a+1],Um,jm),i=e[a++],n=e[a++];break;case Ym.C:T=S=b=w=x=_=v=m=y=g=f=d=p=c=u=h=void 0;var h=i,u=n,c=e[a++],p=e[a++],d=e[a++],f=e[a++],g=e[a],y=e[a+1],m=Um,v=jm,_=$t,x=Zt,w=_(h,c,d,g,Fm);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(h,c,d,g,Fm[b]);m[0]=Pm(S,m[0]),v[0]=Om(S,v[0])}for(w=_(u,p,f,y,Vm),b=0;b<w;b++){var T=x(u,p,f,y,Vm[b]);m[1]=Pm(T,m[1]),v[1]=Om(T,v[1])}m[0]=Pm(h,m[0]),v[0]=Om(h,v[0]),m[0]=Pm(g,m[0]),v[0]=Om(g,v[0]),m[1]=Pm(u,m[1]),v[1]=Om(u,v[1]),m[1]=Pm(y,m[1]),v[1]=Om(y,v[1]),i=e[a++],n=e[a++];break;case Ym.Q:_=i,F=n,P=e[a++],I=e[a++],D=e[a],M=e[a+1],A=Um,O=jm,t=k=t=C=void 0,C=ee,t=Om(Pm((k=ne)(_,P,D),1),0),k=Om(Pm(k(F,I,M),1),0),P=C(_,P,D,t),t=C(F,I,M,k),A[0]=Pm(_,D,P),A[1]=Pm(F,M,t),O[0]=Om(_,D,P),O[1]=Om(F,M,t),i=e[a++],n=e[a++];break;case Ym.A:var M,C=e[a++],I=e[a++],k=e[a++],A=e[a++],D=e[a++],P=e[a++]+D,O=(a+=1,!e[a++]),L=(l&&(o=Km(D)*k+C,r=Qm(D)*A+I),X=M=W=H=Y=V=F=z=B=N=R=E=L=void 0,C),E=I,R=k,N=A,B=D,z=P,F=O,V=Um,Y=jm,H=lt,W=ht;if((M=Math.abs(B-z))%Rm<1e-4&&1e-4<M)V[0]=L-R,V[1]=E-N,Y[0]=L+R,Y[1]=E+N;else{Nm[0]=Em(B)*R+L,Nm[1]=Lm(B)*N+E,Bm[0]=Em(z)*R+L,Bm[1]=Lm(z)*N+E,H(V,Nm,Bm),W(Y,Nm,Bm),(B%=Rm)<0&&(B+=Rm),(z%=Rm)<0&&(z+=Rm),z<B&&!F?z+=Rm:B<z&&F&&(B+=Rm),F&&(M=z,z=B,B=M);for(var X=0;X<z;X+=Math.PI/2)B<X&&(zm[0]=Em(X)*R+L,zm[1]=Lm(X)*N+E,H(V,zm,V),W(Y,zm,Y))}i=Km(P)*k+C,n=Qm(P)*A+I;break;case Ym.R:kn(o=i=e[a++],r=n=e[a++],o+e[a++],r+e[a++],Um,jm);break;case Ym.Z:i=o,n=r}lt(Xm,Xm,Um),ht(Gm,Gm,jm)}return 0===a&&(Xm[0]=Xm[1]=Gm[0]=Gm[1]=0),new Og(Xm[0],Xm[1],Gm[0]-Xm[0],Gm[1]-Xm[1])},Dn.prototype._calculateLength=function(){for(var t=this.data,e=this._len,i=this._ux,n=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),h=0,u=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case Ym.M:o=a=t[c++],r=s=t[c++];break;case Ym.L:var g=t[c++],y=(_=t[c++])-r;($m(I=g-o)>i||$m(y)>n||c===e-1)&&(f=Math.sqrt(I*I+y*y),o=g,r=_);break;case Ym.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,i,n,o,r,a,s,l){for(var h=t,u=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Zt(t,i,o,a,d),d=Zt(e,n,r,s,d),g=f-h,y=d-u;c+=Math.sqrt(g*g+y*y),h=f,u=d}return c}(o,r,m,v,g,_,x,w),o=x,r=w;break;case Ym.Q:f=function(t,e,i,n,o,r,a){for(var s=t,l=e,h=0,u=1;u<=10;u++){var c=.1*u,p=ee(t,i,o,c),c=ee(e,n,r,c),d=p-s,f=c-l;h+=Math.sqrt(d*d+f*f),s=p,l=c}return h}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),o=g,r=_;break;case Ym.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],T=t[c++],M=t[c++],C=M+T;c+=1,d&&(a=Km(T)*b+x,s=Qm(T)*S+w),f=Zm(b,S)*qm(tv,Math.abs(M)),o=Km(C)*b+x,r=Qm(C)*S+w;break;case Ym.R:a=o=t[c++],s=r=t[c++],f=2*t[c++]+2*t[c++];break;case Ym.Z:var I=a-o,y=s-r;f=Math.sqrt(I*I+y*y),o=a,r=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},Dn.prototype.rebuildPath=function(t,e){var i,n,o,r,a,s,l,h,u=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 _=u[v++],x=1===v;switch(x&&(i=o=u[v],n=r=u[v+1]),_!==Ym.L&&0<m&&(t.lineTo(l,h),m=0),_){case Ym.M:i=o=u[v++],n=r=u[v++],t.moveTo(o,r);break;case Ym.L:var w=u[v++],b=u[v++],S=$m(w-o),T=$m(b-r);if(c<S||p<T){if(f){if(s<g+(H=a[y++])){var M=(s-g)/H;t.lineTo(o*(1-M)+w*M,r*(1-M)+b*M);break t}g+=H}t.lineTo(w,b),o=w,r=b,m=0}else S=S*S+T*T,m<S&&(l=w,h=b,m=S);break;case Ym.C:var C=u[v++],I=u[v++],k=u[v++],A=u[v++],T=u[v++],S=u[v++];if(f){if(s<g+(H=a[y++])){Jt(o,C,k,T,M=(s-g)/H,Hm),Jt(r,I,A,S,M,Wm),t.bezierCurveTo(Hm[1],Wm[1],Hm[2],Wm[2],Hm[3],Wm[3]);break t}g+=H}t.bezierCurveTo(C,I,k,A,T,S),o=T,r=S;break;case Ym.Q:if(C=u[v++],I=u[v++],k=u[v++],A=u[v++],f){if(s<g+(H=a[y++])){oe(o,C,k,M=(s-g)/H,Hm),oe(r,I,A,M,Wm),t.quadraticCurveTo(Hm[1],Wm[1],Hm[2],Wm[2]);break t}g+=H}t.quadraticCurveTo(C,I,k,A),o=k,r=A;break;case Ym.A:var D=u[v++],P=u[v++],O=u[v++],L=u[v++],E=u[v++],R=u[v++],N=u[v++],B=!u[v++],z=L<O?O:L,F=.001<$m(O-L),V=E+R,Y=!1;if(f&&(s<g+(H=a[y++])&&(V=E+R*(s-g)/H,Y=!0),g+=H),F&&t.ellipse?t.ellipse(D,P,O,L,N,E,V,B):t.arc(D,P,z,E,V,B),Y)break t;x&&(i=Km(E)*O+D,n=Qm(E)*L+P),o=Km(V)*O+D,r=Qm(V)*L+P;break;case Ym.R:i=o=u[v],n=r=u[v+1],w=u[v++],b=u[v++];var H,R=u[v++],F=u[v++];if(f){if(s<g+(H=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+qm(N,R),b),0<(N-=R)&&t.lineTo(w+R,b+qm(N,F)),0<(N-=F)&&t.lineTo(w+Zm(R-N,0),b+F),0<(N-=R)&&t.lineTo(w,b+Zm(F-N,0));break t}g+=H}t.rect(w,b,R,F);break;case Ym.Z:if(f){if(s<g+(H=a[y++])){M=(s-g)/H,t.lineTo(o*(1-M)+i*M,r*(1-M)+n*M);break t}g+=H}t.closePath(),o=i,r=n}}},Dn.prototype.clone=function(){var t=new Dn,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},Dn.CMD=Ym,Dn.initDefaultProps=((p_=Dn.prototype)._saveData=!0,p_._ux=0,p_._uy=0,p_._pendingPtDist=0,void(p_._version=0));var nv,ov,rv=Dn,av=2*Math.PI,sv=2*Math.PI,lv=rv.CMD,hv=2*Math.PI,uv=1e-4,cv=[-1,-1,-1],pv=[-1,-1],dv=h({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Mm),fv={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Cm.style)},gv=Gy.concat(["invisible","culling","z","z2","zlevel","parent"]),yv=(i(Bn,nv=py),Bn.prototype.update=function(){var t=this,e=(nv.prototype.update.call(this),this.style);if(e.decal){var i,n=this._decalEl=this._decalEl||new Bn,o=(n.buildPath===Bn.prototype.buildPath&&(n.buildPath=function(e){t.buildPath(e,t.shape)}),n.silent=!0,n.style);for(i in e)o[i]!==e[i]&&(o[i]=e[i]);o.fill=e.fill?e.decal:null,o.decal=null,o.shadowColor=null,e.strokeFirst&&(o.stroke=null);for(var r=0;r<gv.length;++r)n[gv[r]]=this[gv[r]];n.__dirty|=Wg}else this._decalEl&&(this._decalEl=null)},Bn.prototype.getDecalElement=function(){return this._decalEl},Bn.prototype._init=function(t){var e=v(t),i=(this.shape=this.getDefaultShape(),this.getDefaultStyle());i&&this.useStyle(i);for(var n=0;n<e.length;n++){var o=e[n],r=t[o];"style"===o?this.style?l(this.style,r):this.useStyle(r):"shape"===o?l(this.shape,r):nv.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},Bn.prototype.getDefaultStyle=function(){return null},Bn.prototype.getDefaultShape=function(){return{}},Bn.prototype.canBeInsideText=function(){return this.hasFill()},Bn.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=Me(e,0))?By:.2<t?"#eee":zy;if(e)return zy}return By},Bn.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())==Me(t,0)<.4)return e}},Bn.prototype.buildPath=function(t,e,i){},Bn.prototype.pathUpdated=function(){this.__dirty&=~Xg},Bn.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Bn.prototype.createPathProxy=function(){this.path=new rv(!1)},Bn.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Bn.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Bn.prototype.getBoundingRect=function(){var t,e,i=this._rect,n=this.style,o=!i;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Xg)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),i=e.getBoundingRect()),this._rect=i,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=i.clone()),(this.__dirty||o)&&(t.copy(i),e=n.strokeNoScale?this.getLineScale():1,o=n.lineWidth,this.hasFill()||(n=this.strokeContainThreshold,o=Math.max(o,null==n?4:n)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):i},Bn.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){if(i=this.path,this.hasStroke()&&(n=o.lineWidth,1e-10<(o=o.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),Nn(i,n/o,!0,t,e))))return!0;if(this.hasFill())return Nn(i,0,!1,t,e)}return!1},Bn.prototype.dirtyShape=function(){this.__dirty|=Xg,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Bn.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Bn.prototype.animateShape=function(t){return this.animate("shape",t)},Bn.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Bn.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):nv.prototype.attrKV.call(this,t,e)},Bn.prototype.setShape=function(t,e){var i=(i=this.shape)||(this.shape={});return"string"==typeof t?i[t]=e:l(i,t),this.dirtyShape(),this},Bn.prototype.shapeChanged=function(){return!!(this.__dirty&Xg)},Bn.prototype.createStyle=function(t){return U(dv,t)},Bn.prototype._innerSaveToNormal=function(t){nv.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},Bn.prototype._applyStateObj=function(t,e,i,n,o,r){nv.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.shape?o?n?a=e.shape:(a=l({},i.shape),l(a,e.shape)):(a=l({},(n?this:i).shape),l(a,e.shape)):s&&(a=i.shape),a)if(o){this.shape=l({},this.shape);for(var h={},u=v(a),c=0;c<u.length;c++){var p=u[c];"object"==typeof a[p]?this.shape[p]=a[p]:h[p]=a[p]}this._transitionState(t,{shape:h},r)}else this.shape=a,this.dirtyShape()},Bn.prototype._mergeStates=function(t){for(var e,i=nv.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(i.shape=e),i},Bn.prototype.getAnimationStyleProps=function(){return fv},Bn.prototype.isZeroArea=function(){return!1},Bn.extend=function(t){function e(e){var i=n.call(this,e)||this;return t.init&&t.init.call(i,e),i}i(e,n=Bn),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var n,o,r=e;for(o in t)"function"==typeof t[o]&&(r.prototype[o]=t[o]);return r},Bn.initDefaultProps=((p_=Bn.prototype).type="path",p_.strokeContainThreshold=5,p_.segmentIgnoreThreshold=0,p_.subPixelOptimize=!1,p_.autoBatch=!1,void(p_.__dirty=2|Wg|Xg)),Bn),mv=h({strokeFirst:!0,font:Nf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},dv),vv=(i(zn,ov=py),zn.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},zn.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},zn.prototype.createStyle=function(t){return U(mv,t)},zn.prototype.setBoundingRect=function(t){this._rect=t},zn.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=ui(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},zn.initDefaultProps=void(zn.prototype.dirtyRectTolerance=10),zn);vv.prototype.type="tspan";var _v=h({x:0,y:0},Mm),xv={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Cm.style)};i(Fn,wv=py),Fn.prototype.createStyle=function(t){return U(_v,t)},Fn.prototype._getSize=function(t){var e,i=this.style,n=i[t];return null!=n?n:(n=(n=i.image)&&"string"!=typeof n&&n.width&&n.height?i.image:this.__image)?null==(e=i[i="width"===t?"height":"width"])?n[t]:n[t]/n[i]*e:0},Fn.prototype.getWidth=function(){return this._getSize("width")},Fn.prototype.getHeight=function(){return this._getSize("height")},Fn.prototype.getAnimationStyleProps=function(){return xv},Fn.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Og(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var wv,bv=Fn;bv.prototype.type="image";var Sv,Tv=Math.round,Mv=function(){this.x=0,this.y=0,this.width=0,this.height=0},Cv={},Iv=(i(Wn,Sv=yv),Wn.prototype.getDefaultShape=function(){return new Mv},Wn.prototype.buildPath=function(t,e){var i,n,o,r,a,s,l,h,u,c,p,d,f,g;this.subPixelOptimize?(i=(a=Yn(Cv,e,this.style)).x,n=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(i=e.x,n=e.y,o=e.width,r=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=h=u=e:e instanceof Array?1===e.length?s=l=h=u=e[0]:2===e.length?(s=h=e[0],l=u=e[1]):3===e.length?(s=e[0],l=u=e[1],h=e[2]):(s=e[0],l=e[1],h=e[2],u=e[3]):s=l=h=u=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<h+u&&(h*=f/(c=h+u),u*=f/c),g<l+h&&(l*=g/(c=l+h),h*=g/c),g<s+u&&(s*=g/(c=s+u),u*=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-h),0!==h&&a.arc(p+f-h,d+g-h,h,0,Math.PI/2),a.lineTo(p+u,d+g),0!==u&&a.arc(p+u,d+g-u,u,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(i,n,o,r)},Wn.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Wn);Iv.prototype.type="rect";var kv,Av={fill:"#000"},Dv={style:h({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},Cm.style)},Pv=(i(Xn,kv=py),Xn.prototype.childrenRef=function(){return this._children},Xn.prototype.update=function(){kv.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}},Xn.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):kv.prototype.updateTransform.call(this)},Xn.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):kv.prototype.getLocalTransform.call(this,t)},Xn.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),kv.prototype.getComputedTransform.call(this)},Xn.prototype._updateSubTexts=function(){var t;this._childCursor=0,qn(t=this.style),f(t.rich,qn),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Xn.prototype.addSelfToZr=function(t){kv.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Xn.prototype.removeSelfFromZr=function(t){kv.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Xn.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Og(0,0,0,0),e=this._children,i=[],n=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(i);r?(t.copy(a),t.applyTransform(r),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},Xn.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Av},Xn.prototype.setTextContent=function(t){},Xn.prototype._mergeStyle=function(t,e){var i,n;return e&&(i=e.rich,n=t.rich||i&&{},l(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n)),t},Xn.prototype._mergeRich=function(t,e){for(var i=v(e),n=0;n<i.length;n++){var o=i[n];t[o]=t[o]||{},l(t[o],e[o])}},Xn.prototype.getAnimationStyleProps=function(){return Dv},Xn.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},Xn.prototype._updatePlainTexts=function(){for(var t,e=this.style,i=e.font||Nf,n=e.padding,o=function(t,e){null!=t&&(t+="");var i,n=e.overflow,o=e.padding,r=e.font,a="truncate"===n,s=di(r),l=E(e.lineHeight,s),h=!!e.backgroundColor,u="truncate"===e.lineOverflow,c=e.width,n=(i=null==c||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?Cn(t,e.font,c,"breakAll"===n,0).lines:[]).length*l,p=E(e.height,n);if(p<n&&u&&(u=Math.floor(p/l),i=i.slice(0,u)),t&&a&&null!=c)for(var d=bn(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<i.length;f++)i[f]=Sn(i[f],d);for(var u=p,g=0,f=0;f<i.length;f++)g=Math.max(li(i[f],r),g);return null==c&&(c=g),t=g,o&&(u+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:i,height:p,outerWidth:t=h?c:t,outerHeight:u,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:n,width:c}}($n(e),e),r=Jn(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,h=o.contentWidth,u=o.lines,c=o.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=pi(f,o.contentHeight,y),_=((r||n)&&(t=ci(d,l,g),f=pi(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,n&&(m=Qn(d,g,n),"top"===y?v+=n[0]:"bottom"===y&&(v-=n[2])),0),r=!1,x=(Kn(("fill"in e?e:(r=!0,p)).fill)),w=(Zn("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=o.calculatedLineHeight,M=0;M<u.length;M++){var C=this._getOrCreateChild(vv),I=C.createStyle();C.useStyle(I),I.text=u[M],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=i,Un(I,e),v+=c,S&&C.setBoundingRect(new Og(ci(I.x,e.width,I.textAlign),pi(I.y,T,I.textBaseline),h,T))}},Xn.prototype._updateRichTexts=function(){for(var t=this.style,e=Tn($n(t),t),i=e.width,n=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,h=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=ci(a,n,h),h=pi(s,o,l),u=a,c=h,p=(r&&(u+=r[3],c+=r[0]),u+i),d=(Jn(t)&&this._renderBackground(t,t,a,h,n,o),!!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=u,b=p,S=m-1,T=void 0;x<m&&(!(T=y[x]).align||"left"===T.align);)this._placeToken(T,t,v,c,w,"left",d),_-=T.width,w+=T.width,x++;for(;0<=S&&"right"===(T=y[S]).align;)this._placeToken(T,t,v,c,b,"right",d),_-=T.width,b-=T.width,S--;for(w+=(i-(w-u)-(p-b)-_)/2;x<=S;)T=y[x],this._placeToken(T,t,v,c,w+T.width/2,"center",d),w+=T.width,x++;c+=v}},Xn.prototype._placeToken=function(t,e,i,n,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),h=n+i/2;"top"===l?h=n+t.height/2:"bottom"===l&&(h=n+i-t.height/2),!t.isLineHolder&&Jn(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,h-t.height/2,t.width,t.height);var l=!!s.backgroundColor,n=t.textPadding,i=(n&&(o=Qn(o,r,n),h-=t.height/2-n[0]-t.innerHeight/2),this._getOrCreateChild(vv)),n=i.createStyle(),u=(i.useStyle(n),this._defaultStyle),c=!1,p=0,d=Kn(("fill"in s?s:"fill"in e?e:(c=!0,u)).fill),l=Zn("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||u.autoStroke&&!c?null:(p=2,u.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(n.text=t.text,n.x=o,n.y=h,a&&(n.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,n.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",n.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,n.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),n.textAlign=r,n.textBaseline="middle",n.font=t.font||Nf,n.opacity=R(s.opacity,e.opacity,1),Un(n,s),l&&(n.lineWidth=R(s.lineWidth,e.lineWidth,p),n.lineDash=E(s.lineDash,e.lineDash),n.lineDashOffset=e.lineDashOffset||0,n.stroke=l),d&&(n.fill=d),t.contentWidth),u=t.contentHeight;i.setBoundingRect(new Og(ci(n.x,c,n.textAlign),pi(n.y,u,n.textBaseline),c,u))},Xn.prototype._renderBackground=function(t,e,i,n,o,r){var a,s,l,h,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=u&&u.image,f=u&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(Iv)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=i,l.y=n,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((h=a.style).fill=u||null,h.fillOpacity=E(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(bv)).onload=function(){y.dirtyStyle()},(l=s.style).image=u.image,l.x=i,l.y=n,l.width=o,l.height=r),c&&p&&((h=a.style).lineWidth=c,h.stroke=p,h.strokeOpacity=E(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(h.strokeFirst=!0,h.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=R(t.opacity,e.opacity,1)},Xn.makeFont=function(t){var e="";return(e=jn(t)?[t.fontStyle,t.fontWeight,Gn(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Xn),Ov={left:!0,right:1,center:1},Lv={top:1,bottom:1,middle:1},Ev=["fontStyle","fontWeight","fontSize","fontFamily"],Rv=on(),Nv=1,Bv={},zv=on(),Fv=on(),Vv=0,Yv=1,Hv=2,Wv=["emphasis","blur","select"],Xv=["normal","emphasis","blur","select"],Gv="highlight",Uv="downplay",jv="select",qv="unselect",Zv="toggleSelect",Kv=["emphasis","blur","select"],Qv={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},$v=rv.CMD,Jv=[[],[],[]],t_=Math.sqrt,e_=Math.atan2,i_=Math.sqrt,n_=Math.sin,o_=Math.cos,r_=Math.PI,a_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,s_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;i(Vo,l_=yv),Vo.prototype.applyTransform=function(t){};var l_,h_,u_=Vo,c_=function(){this.cx=0,this.cy=0,this.r=0},p_=(i(Wo,h_=yv),Wo.prototype.getDefaultShape=function(){return new c_},Wo.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)},Wo);p_.prototype.type="circle";var d_,f_=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},g_=(i(Xo,d_=yv),Xo.prototype.getDefaultShape=function(){return new f_},Xo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(i-o,n),t.bezierCurveTo(i-o,n-a,i-r,n-e,i,n-e),t.bezierCurveTo(i+r,n-e,i+o,n-a,i+o,n),t.bezierCurveTo(i+o,n+a,i+r,n+e,i,n+e),t.bezierCurveTo(i-r,n+e,i-o,n+a,i-o,n),t.closePath()},Xo);g_.prototype.type="ellipse";var y_,m_=Math.PI,v_=2*m_,__=Math.sin,x_=Math.cos,w_=Math.acos,b_=Math.atan2,S_=Math.abs,T_=Math.sqrt,M_=Math.max,C_=Math.min,I_=1e-4,k_=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},A_=(i(jo,y_=yv),jo.prototype.getDefaultShape=function(){return new k_},jo.prototype.buildPath=function(t,e){Uo(t,e)},jo.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},jo);A_.prototype.type="sector";var D_,P_=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},O_=(i(qo,D_=yv),qo.prototype.getDefaultShape=function(){return new P_},qo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,o,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,o,!0)},qo);O_.prototype.type="ring";var L_,E_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},R_=(i(Ko,L_=yv),Ko.prototype.getDefaultShape=function(){return new E_},Ko.prototype.buildPath=function(t,e){Zo(t,e,!0)},Ko);R_.prototype.type="polygon";var N_,B_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},z_=(i(Qo,N_=yv),Qo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Qo.prototype.getDefaultShape=function(){return new B_},Qo.prototype.buildPath=function(t,e){Zo(t,e,!1)},Qo);z_.prototype.type="polyline";var F_,V_={},Y_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},H_=(i($o,F_=yv),$o.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},$o.prototype.getDefaultShape=function(){return new Y_},$o.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(i=(r=Vn(V_,e,this.style)).x1,n=r.y1,o=r.x2,r):(i=e.x1,n=e.y1,o=e.x2,e)).y2;var i,n,o,r,e=e.percent;0!==e&&(t.moveTo(i,n),e<1&&(o=i*(1-e)+o*e,r=n*(1-e)+r*e),t.lineTo(o,r))},$o.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},$o);H_.prototype.type="line";var W_=[],X_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};i(tr,G_=yv),tr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},tr.prototype.getDefaultShape=function(){return new X_},tr.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,e=e.percent;0!==e&&(t.moveTo(i,n),null==l||null==h?(e<1&&(oe(i,a,o,e,W_),a=W_[1],o=W_[2],oe(n,s,r,e,W_),s=W_[1],r=W_[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Jt(i,a,l,o,e,W_),a=W_[1],l=W_[2],o=W_[3],Jt(n,s,h,r,e,W_),s=W_[1],h=W_[2],r=W_[3]),t.bezierCurveTo(a,s,l,h,o,r)))},tr.prototype.pointAt=function(t){return Jo(this.shape,t,!1)},tr.prototype.tangentAt=function(t){return t=Jo(this.shape,t,!0),nt(t,t)};var G_,U_=tr;U_.prototype.type="bezier-curve";var j_,q_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=(i(er,j_=yv),er.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},er.prototype.getDefaultShape=function(){return new q_},er.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+i,l*o+n),t.arc(i,n,o,r,a,!e)},er);Z_.prototype.type="arc",i(ir,K_=yv),ir.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},ir.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},ir.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},ir.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},ir.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yv.prototype.getBoundingRect.call(this)};var K_,Q_=ir;nr.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var $_=nr;i(or,J_=$_);var J_,tx=or;i(rr,ex=$_);var ex,ix,$_=rr,nx=[0,0],ox=[0,0],rx=new Sg,ax=new Sg,sx=(ar.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(i[0].set(o,r),i[1].set(a,r),i[2].set(a,t),i[3].set(o,t),e)for(var s=0;s<4;s++)i[s].transform(e);for(Sg.sub(n[0],i[1],i[0]),Sg.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize(),s=0;s<2;s++)this._origin[s]=n[s].dot(i[0])},ar.prototype.intersect=function(t,e){var i=!0,n=!e;return rx.set(1/0,1/0),ax.set(0,0),!this._intersectCheckOneSide(this,t,rx,ax,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,rx,ax,n,-1)&&(i=!1,n)||n||Sg.copy(e,i?rx:ax),i},ar.prototype._intersectCheckOneSide=function(t,e,i,n,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,nx),this._getProjMinMaxOnAxis(s,e._corners,ox),nx[1]<ox[0]||ox[1]<nx[0]){if(a=!1,o)return a;var h=Math.abs(ox[0]-nx[1]),u=Math.abs(nx[0]-ox[1]);Math.min(h,u)>n.len()&&(h<u?Sg.scale(n,l,-h*r):Sg.scale(n,l,u*r))}else i&&(h=Math.abs(ox[0]-nx[1]),u=Math.abs(nx[0]-ox[1]),Math.min(h,u)<i.len())&&(h<u?Sg.scale(i,l,h*r):Sg.scale(i,l,-u*r))}return a},ar.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],o=this._origin,r=e[0].dot(n)+o[t],a=r,s=r,l=1;l<e.length;l++)var h=e[l].dot(n)+o[t],a=Math.min(h,a),s=Math.max(h,s);i[0]=a,i[1]=s},ar),lx=[],py=(i(sr,ix=py),sr.prototype.traverse=function(t,e){t.call(e,this)},sr.prototype.useStyle=function(){this.style={}},sr.prototype.getCursor=function(){return this._cursor},sr.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},sr.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},sr.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},sr.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},sr.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},sr.prototype.getDisplayables=function(){return this._displayables},sr.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},sr.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])},sr.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},sr.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Og(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(lx)),t.union(n)}this._rect=t}return this._rect},sr.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(t,e))return!0;return!1},sr),hx=on(),ux=Math.max,cx=Math.min,px={},dx=function(t,e){function n(t){return t=o.call(this,t)||this,t.applyTransform=r.applyTransform,t.buildPath=r.buildPath,t}var o,r=Ho(t,e);return i(n,o=u_),n},fx=Hn;yr("circle",p_),yr("ellipse",g_),yr("sector",A_),yr("ring",O_),yr("polygon",R_),yr("polyline",z_),yr("rect",Iv),yr("line",H_),yr("bezierCurve",U_),yr("arc",Z_);var gx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:U_,BoundingRect:Og,Circle:p_,CompoundPath:Q_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:H_,LinearGradient:tx,OrientedBoundingRect:sx,Path:yv,Point:Sg,Polygon:R_,Polyline:z_,RadialGradient:$_,Rect:Iv,Ring:O_,Sector:A_,Text:Pv,applyTransform:Mr,clipPointsByRect:kr,clipRectByRect:Ar,createIcon:Dr,extendPath:gr,extendShape:fr,getShapeClass:mr,getTransform:Tr,groupTransition:Ir,initProps:ur,isElementRemoved:cr,lineLineIntersect:Pr,linePolygonIntersect:function(t,e,i,n,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Pr(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:_r,makePath:vr,mergePath:wr,registerShape:yr,removeElement:pr,removeElementWithFadeOut:function(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||dr(t,e,i,n)}):dr(t,e,i,n)},resizePath:br,setTooltipConfig:Or,subPixelOptimize:fx,subPixelOptimizeLine:Sr,subPixelOptimizeRect:function(t){return Yn(t.shape,t.shape,t.style),t},transformDirection:function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),n=Mr(["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0],e,i);return Math.abs(n[0])>Math.abs(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"},traverseElements:Er,updateProps:hr}),yx={},mx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_x=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],xx=on(),bx=["textStyle","color"],Sx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Tx=new Pv,fx=(Wr.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(bx):null)},Wr.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},Wr.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Sx.length;i++)e[Sx[i]]=this.getShallow(Sx[i]);return Tx.useStyle(e),Tx.update(),Tx.getBoundingRect()},Wr),Mx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Cx=yn(Mx),Ix=(Xr.prototype.getLineStyle=function(t){return Cx(this,t)},Xr),kx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ax=yn(kx),Dx=(Gr.prototype.getItemStyle=function(t,e){return Ax(this,t,e)},Gr);Ur.prototype.init=function(t,e,i){},Ur.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Ur.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Ur.prototype.getShallow=function(t,e){var i=this.option,i=null==i?i:i[t];return null!=i||e||(e=this.parentModel)&&(i=e.getShallow(t)),i},Ur.prototype.getModel=function(t,e){var i=null!=t,t=i?this.parsePath(t):null;return new Ur(i?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Ur.prototype.isEmpty=function(){return null==this.option},Ur.prototype.restoreData=function(){},Ur.prototype.clone=function(){return new this.constructor(a(this.option))},Ur.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Ur.prototype.resolveParentPath=function(t){return t},Ur.prototype.isAnimationEnabled=function(){if(!Pf.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Ur.prototype._doGet=function(t,e){var i=this.option;if(t){for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel))}return i};var Px,Ox=Ur;cn(Ox),Gx=Ox,Px=["__\0is_clz",gm++].join("_"),Gx.prototype[Px]=!0,Gx.isInstance=function(t){return!(!t||!t[Px])},p(Ox,Ix),p(Ox,Dx),p(Ox,mm),p(Ox,fx);var Lx=Math.round(10*Math.random()),Ex="ZH",Rx="EN",Nx=Rx,Bx={},zx={},Fx=Pf.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nx).toUpperCase().indexOf(Ex)?Ex:Nx;qr(Rx,{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",custom:"Custom chart",chart:"Chart"}},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:". "}}}}),qr(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:"旭日图",custom:"自定义图表",chart:"图表"}},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 Vx=1e3,Yx=60*Vx,Hx=60*Yx,Wx=24*Hx,gm=365*Wx,Xx={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}"},Gx="{yyyy}-{MM}-{dd}",Ux={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gx,hour:Gx+" "+Xx.hour,minute:Gx+" "+Xx.minute,second:Gx+" "+Xx.second,millisecond:Xx.none},jx=["year","month","day","hour","minute","second","millisecond"],qx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Zx=B,Kx=["a","b","c","d","e","f","g"],Qx=f,$x=["left","right","top","bottom","width","height"],Jx=[["width","left","right"],["height","top","bottom"]],tw=wa;_(wa,"vertical"),_(wa,"horizontal");var ew,iw,nw,ow,rw=on(),aw=(i(Ca,ew=Ox),Ca.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},Ca.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ma(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&Ta(t,n,i)},Ca.prototype.mergeOption=function(t,e){s(this.option,t,!0);var i=Sa(this);i&&Ta(this.option,t,i)},Ca.prototype.optionUpdated=function(t,e){},Ca.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[fm])return t.defaultOption;var e=rw(this);if(!e.defaultOption){for(var i=[],n=t;n;){var o=n.prototype.defaultOption;o&&i.push(o),n=n.superClass}for(var r={},a=i.length-1;0<=a;a--)r=s(r,i[a],!0);e.defaultOption=r}return e.defaultOption},Ca.prototype.getReferringComponents=function(t,e){var i=t+"Id";return sn(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},e)},Ca.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")}},Ca.prototype.getZLevelKey=function(){return""},Ca.prototype.setZLevel=function(t){this.option.zlevel=t},Ca.protoInitialize=((Ix=Ca.prototype).type="component",Ix.id="",Ix.name="",Ix.mainType="",Ix.subType="",void(Ix.componentIndex=0)),Ca);pn(aw,Ox),gn(aw),nw={},(iw=aw).registerSubTypeDefaulter=function(t,e){t=un(t),nw[t.main]=e},iw.determineSubType=function(t,e){var i,n=e.type;return n||(i=un(t).main,iw.hasSubTypes(t)&&nw[i]&&(n=nw[i](e))),n},ow=function(t){var e=[];return f(aw.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return un(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e},aw.topologicalTravel=function(t,e,i,n){function o(t){0===--h[t].entryCount&&c.push(t)}function r(t){p[t]=!0,o(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,i,n=Ia(s,t),o=n.originalDeps=ow(t),o=(e=a,i=[],f(o,function(t){0<=u(e,t)&&i.push(t)}),i);n.entryCount=o.length,0===n.entryCount&&l.push(t),f(o,function(e){u(n.predecessor,e)<0&&n.predecessor.push(e);var i=Ia(s,e);u(i.successor,e)<0&&i.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},h=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=h[d],y=!!p[d];y&&(i.call(n,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?r:o)}f(p,function(){throw new Error("")})}};var sw,lw,hw,uw,Dx="",mm=("undefined"!=typeof navigator&&(Dx=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),cw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mm,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mm,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Dx.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},pw=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dw="original",fw="arrayRows",gw="objectRows",yw="keyedColumns",mw="typedArray",vw="unknown",_w="column",xw="row",ww={Must:1,Might:2,Not:3},bw=on(),Sw=X(),Tw=on(),Mw=(on(),Pa.prototype.getColorFromPalette=function(t,e,i){var n=Ui(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=Tw;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=null!=i&&o?Oa(o,i):n)||n)&&o.length?(i=o[r],t&&(e[t]=i),a.paletteIdx=(r+1)%o.length,i):void 0},Pa.prototype.clearColorPalette=function(){var t,e;(e=Tw)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Pa),Cw="\0_ec_inner",Iw=(i(La,uw=Ox),La.prototype.init=function(t,e,i,n,o,r){n=n||{},this.option=null,this._theme=new Ox(n),this._locale=new Ox(o),this._optionManager=r},La.prototype.setOption=function(t,e,i){e=Na(e),this._optionManager.setOption(t,i,e),this._resetOption(null,e)},La.prototype.resetOption=function(t,e){return this._resetOption(t,Na(e))},La.prototype._resetOption=function(t,e){var i,n=!1,o=this._optionManager;return t&&"recreate"!==t||(i=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):hw(this,i),n=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(i=o.getTimelineOption(this))&&(n=!0,this._mergeOption(i,e)),t&&"recreate"!==t&&"media"!==t||(i=o.getMediaOption(this)).length&&f(i,function(t){n=!0,this._mergeOption(t,e)},this),n},La.prototype.mergeOption=function(t){this._mergeOption(t,null)},La.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,o=this._componentsCount,r=[],h=X(),u=e&&e.replaceMergeMainTypeMap;bw(this).datasetMap=X(),f(t,function(t,e){null!=t&&(aw.hasClass(e)?e&&(r.push(e),h.set(e,!0)):i[e]=null==i[e]?a(t):s(i[e],t,!0))}),u&&u.each(function(t,e){aw.hasClass(e)&&!h.get(e)&&(r.push(e),h.set(e,!0))}),aw.topologicalTravel(r,aw.getAllClassMainTypes(),function(e){var r,a=function(t,e,i){return(e=(e=Sw.get(e))&&e(t))?i.concat(e):i}(this,e,Ui(t[e])),s=n.get(e),h=s?u&&u.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Zi(s,a,h),c=(en(s,e,aw),i[e]=null,n.set(e,null),o.set(e,0),[]),p=[],d=0;f(s,function(t,i){var n=t.existing,o=t.newOption;if(o){var a=aw.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(r)return;r=!0}n&&n.constructor===a?(n.name=t.keyInfo.name,n.mergeOption(o,this),n.optionUpdated(o,!1)):(i=l({componentIndex:i},t.keyInfo),l(n=new a(o,this,this,i),i),t.brandNew&&(n.__requireNewView=!0),n.init(o,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(c.push(n.option),p.push(n),d++):(c.push(void 0),p.push(void 0))},this),i[e]=c,n.set(e,p),o.set(e,d),"series"===e&&sw(this)},this),this._seriesIndices||sw(this)},La.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,i){if(aw.hasClass(i)){for(var n=Ui(e),o=n.length,r=!1,a=o-1;0<=a;a--)n[a]&&!tn(n[a])?r=!0:(n[a]=null,r||o--);n.length=o,t[i]=n}}),delete t[Cw],t},La.prototype.getTheme=function(){return this._theme},La.prototype.getLocaleModel=function(){return this._locale},La.prototype.setUpdatePayload=function(t){this._payload=t},La.prototype.getUpdatePayload=function(){return this._payload},La.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){if(t=i[e||0])return t;if(null==e)for(var n=0;n<i.length;n++)if(i[n])return i[n]}},La.prototype.queryComponents=function(t){var e,i,n,o,r,a=t.mainType;return a&&(e=t.index,i=t.id,n=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],f(Ui(e),function(t){o[t]&&r.push(o[t])})):r=null!=i?Ea("id",i,o):null!=n?Ea("name",n,o):m(o,function(t){return!!t}),Ra(r,t)):[]},La.prototype.findComponents=function(t){var e,i=t.query,n=t.mainType,o=(o=n+"Index",r=n+"Id",e=n+"Name",!(i=i)||null==i[o]&&null==i[r]&&null==i[e]?null:{mainType:n,index:i[o],id:i[r],name:i[e]}),r=o?this.queryComponents(o):m(this._componentsMap.get(n),function(t){return!!t});return i=Ra(r,t),t.filter?m(i,t.filter):i},La.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(w(t)){var o=e,r=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&r.call(o,e,n,n.componentIndex)}})}else for(var a=b(t)?n.get(t):M(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},La.prototype.getSeriesByName=function(t){var e=$i(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},La.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},La.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},La.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},La.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},La.prototype.eachSeries=function(t,e){lw(this),f(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},La.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},La.prototype.eachSeriesByType=function(t,e,i){lw(this),f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&e.call(i,o,n)},this)},La.prototype.eachRawSeriesByType=function(t,e,i){return f(this.getSeriesByType(t),e,i)},La.prototype.isSeriesFiltered=function(t){return lw(this),null==this._seriesIndicesMap.get(t.componentIndex)},La.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},La.prototype.filterSeries=function(t,e){lw(this);var i=[];f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(e,o,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=X(i)},La.prototype.restoreData=function(t){sw(this);var e=this._componentsMap,i=[];e.each(function(t,e){aw.hasClass(e)&&i.push(e)}),aw.topologicalTravel(i,aw.getAllClassMainTypes(),function(i){f(e.get(i),function(e){!e||"series"===i&&function(t,e){var i,n;if(e)return i=e.seriesIndex,n=e.seriesId,e=e.seriesName,null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=e&&t.name!==e}(e,t)||e.restoreData()})})},La.internalField=(sw=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=X(e)},lw=function(t){},void(hw=function(t,e){t.option={},t.option[Cw]=1,t._componentsMap=X({series:[]}),t._componentsCount=X();var i,n,o=e.aria;M(o)&&null==o.enabled&&(o.enabled=!0),i=e,o=t._theme.option,n=i.color&&!i.colorLayer,f(o,function(t,e){"colorLayer"===e&&n||aw.hasClass(e)||("object"==typeof t?i[e]=i[e]?s(i[e],t,!1):a(t):null==i[e]&&(i[e]=t))}),s(e,cw,!1),t._mergeOption(e,null)})),La);p(Iw,Mw);var kw,Aw,Dw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Pw={},Ow=(za.prototype.create=function(t,e){var i=[];f(Pw,function(n,o){n=n.create(t,e),i=i.concat(n||[])}),this._coordinateSystems=i},za.prototype.update=function(t,e){f(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},za.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},za.register=function(t,e){Pw[t]=e},za.get=function(t){return Pw[t]},za),Lw=/^(min|max)?(.+)$/,Ew=(Fa.prototype.setOption=function(t,e,i){t&&(f(Ui(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Ui(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var n=this._optionBackup,t=function(t,e,i){function n(t){f(e,function(e){e(t,i)})}var o,r,a=[],s=t.baseOption,l=t.timeline,h=t.options,u=t.media,c=!!t.media,p=!!(h||l||s&&s.timeline);return s?(r=s).timeline||(r.timeline=l):((p||c)&&(t.options=t.media=null),r=t),c&&x(u)&&f(u,function(t){t&&t.option&&(t.query?a.push(t):o=o||t)}),n(r),f(h,n),f(a,function(t){return n(t.option)}),{baseOption:r,timelineOptions:h||[],mediaDefault:o,mediaList:a}}(t,e,!n);this._newBaseOption=t.baseOption,n?(t.timelineOptions.length&&(n.timelineOptions=t.timelineOptions),t.mediaList.length&&(n.mediaList=t.mediaList),t.mediaDefault&&(n.mediaDefault=t.mediaDefault)):this._optionBackup=t},Fa.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)},Fa.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;return e=i.length&&(t=t.getComponent("timeline"))?a(i[t.getCurrentIndex()]):e},Fa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,r=[],s=[];if(n.length||o){for(var l,h,u=0,c=n.length;u<c;u++)!function(t,e,i){var n={width:e,height:i,aspectratio:e/i},o=!0;return f(t,function(t,e){var i,e=e.match(Lw);e&&e[1]&&e[2]&&(i=e[1],e=e[2].toLowerCase(),e=n[e],t=t,("min"===(i=i)?t<=e:"max"===i?e<=t:e===t)||(o=!1))}),o}(n[u].query,e,i)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(l=r,h=this._currentMediaIndices,l.join(",")!==h.join(","))&&(s=g(r,function(t){return a((-1===t?o:n[t]).option)})),this._currentMediaIndices=r}return s},Fa),Rw=f,Nw=M,Bw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],zw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],Yw=function(t){this.data=t.data||(t.sourceFormat===yw?{}:[]),this.sourceFormat=t.sourceFormat||vw,this.seriesLayoutBy=t.seriesLayoutBy||_w,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&Da(this,i)===ww.Must&&(n.type="ordinal")}};ss.prototype.getSource=function(){return this._source},ss.prototype.count=function(){return 0},ss.prototype.getItem=function(t,e){},ss.prototype.appendData=function(t){},ss.prototype.clean=function(){},ss.protoInitialize=((fx=ss.prototype).pure=!1,void(fx.persistent=!0)),ss.internalField=(Aw=function(t,e,i){var n,o=i.sourceFormat,r=i.seriesLayoutBy,a=i.startIndex,i=i.dimensionsDefine;l(t,kw[gs(o,r)]),o===mw?(t.getItem=Hw,t.count=Xw,t.fillStorage=Ww):(n=us(o,r),t.getItem=$f(n,null,e,a,i),n=ps(o,r),t.count=$f(n,null,e,a,i))},Hw=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,o=n*t,r=0;r<n;r++)e[r]=i[o+r];return e},Ww=function(t,e,i,n){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],u=e-t,c=i[a],p=0;p<u;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),h<d&&(h=d)}s[0]=l,s[1]=h}},Xw=function(){return this._data?this._data.length/this._dimSize:0},(fx={})[fw+"_"+_w]={pure:!0,appendData:ls},fx[fw+"_"+xw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},fx[gw]={pure:!0,appendData:ls},fx[yw]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,i){for(var n=e[i]||(e[i]=[]),o=0;o<(t||[]).length;o++)n.push(t[o])})}},fx[dw]={appendData:ls},fx[mw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(kw=fx));var Hw,Ww,Xw,Gw=ss;(Gx={})[fw+"_"+_w]=function(t,e,i,n){return t[n+e]},Gx[fw+"_"+xw]=function(t,e,i,n,o){n+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[n]:null}return r},Gx[gw]=hs,Gx[yw]=function(t,e,i,n,o){for(var r=o||[],a=0;a<i.length;a++){var s=t[i[a].name];r[a]=s?s[n]:null}return r},Gx[dw]=hs;var Uw=Gx;(Ix={})[fw+"_"+_w]=function(t,e,i){return Math.max(0,t.length-e)},Ix[fw+"_"+xw]=function(t,e,i){return t=t[0],t?Math.max(0,t.length-e):0},Ix[gw]=cs,Ix[yw]=function(t,e,i){return t=t[i[0].name],t?t.length:0},Ix[dw]=cs;var jw=Ix;(mm={})[fw]=ds,mm[gw]=function(t,e,i){return t[i]},mm[yw]=ds,mm[dw]=function(t,e,i){return t=qi(t),t instanceof Array?t[e]:t},mm[mw]=ds;var qw=mm,Zw=/\{@(.+?)\}/g,Kw=(ms.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),o=i.getRawIndex(t),r=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),t=s&&s[i.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,h="series"===l,i=i.userOutput&&i.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:n,color:t,borderColor:s,dimensionNames:i?i.fullDimensions:null,encode:i?i.encode:null,$vars:["seriesName","name","value"]}},ms.prototype.getFormattedLabel=function(t,e,i,n,o,r){e=e||"normal";var a=this.getData(i),i=this.getDataParams(t,i);return r&&(i.value=r.interpolatedValue),null!=n&&x(i.value)&&(i.value=i.value[n]),w(o=o||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(i.status=e,i.dimensionIndex=n,o(i)):b(o)?ma(o,i).replace(Zw,function(e,i){var n=i.length,n=("["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),ys(a,t,i));return null!=(n=r&&x(r.interpolatedValue)&&0<=(i=a.getDimensionIndex(i))?r.interpolatedValue[i]:n)?n+"":""}):void 0},ms.prototype.getRawValue=function(t,e){return ys(this.getData(e),t)},ms.prototype.formatTooltip=function(t,e,i){},ms);xs.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var i,n,o=this._upstream,r=t&&t.skip,a=(this._dirty&&o&&((a=this.context).data=a.outputData=o.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(i=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),h=t&&t.modDataCount||0;if(a===l&&s===h||(i="reset"),!this._dirty&&"reset"!==i||(this._dirty=!1,n=this._doReset(r)),this._modBy=l,this._modDataCount=h,a=t&&t.step,this._dueEnd=o?o._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!r&&(n||u<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],u,c,l,h);else this._doProgress(p,u,c,l,h)}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()},xs.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},xs.prototype._doProgress=function(t,e,i,n,o){ob.reset(e,i,n,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:ob.next},this.context)},xs.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),x(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,i,t=this._downstream;return t&&t.dirty(),i},xs.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},xs.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},xs.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},xs.prototype.getUpstream=function(){return this._upstream},xs.prototype.getDownstream=function(){return this._downstream},xs.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Qw,$w,Jw,tb,eb,ib,nb=xs,ob=ib={reset:function(t,e,i,n){$w=t,Qw=e,Jw=i,tb=n,eb=Math.ceil(tb/Jw),ib.next=1<Jw&&0<tb?bs:ws}},rb=X({number:function(t){return parseFloat(t)},time:function(t){return+Ni(t)},trim:function(t){return b(t)?F(t):t}}),ab={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}},sb=(Ms.prototype.evaluate=function(t){return T(t)?this._opFn(t,this._rvalFloat):this._opFn(Vi(t),this._rvalFloat)},Ms);Cs.prototype.evaluate=function(t,e){var i=T(t)?t:Vi(t),n=T(e)?e:Vi(e),o=isNaN(i),r=isNaN(n);return o&&(i=this._incomparable),r&&(n=this._incomparable),o&&r&&(o=b(t),r=b(e),o&&(i=r?t:0),r)&&(n=o?e:0),i<n?this._resultLT:n<i?-this._resultLT:0};var lb=Cs;Is.prototype.evaluate=function(t){var e,i=t===this._rval;return i||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(i=Vi(t)===this._rvalFloat),this._isEQ?i:!i};var hb=Is;ks.prototype.getRawData=function(){throw new Error("not supported")},ks.prototype.getRawDataItem=function(t){throw new Error("not supported")},ks.prototype.cloneRawData=function(){},ks.prototype.getDimensionInfo=function(t){},ks.prototype.cloneAllDimensionInfo=function(){},ks.prototype.count=function(){},ks.prototype.retrieveValue=function(t,e){},ks.prototype.retrieveValueFromItem=function(t,e){},ks.prototype.convertValue=Ss;var ub,cb=ks,pb=X(),Dx="undefined",db=typeof Uint32Array==Dx?Array:Uint32Array,fb=typeof Uint16Array==Dx?Array:Uint16Array,gb=typeof Int32Array==Dx?Array:Int32Array,fx=typeof Float64Array==Dx?Array:Float64Array,yb={float:fx,int:gb,ordinal:Array,number:Array,time:fx};zs.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),o=this.defaultDimValueGetter=ub[n.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],as(n),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},zs.prototype.getProvider=function(){return this._provider},zs.prototype.getSource=function(){return this._provider.getSource()},zs.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,o=i.get(t);if(null!=o){if(n[o].type===e)return o}else o=n.length;return n[o]={type:e},i.set(t,o),this._chunks[o]=new yb[e||"float"](this._rawCount),this._rawExtent[o]=Ns(),o},zs.prototype.collectOrdinalMeta=function(t,e){for(var i=this._chunks[t],n=this._dimensions[t],o=this._rawExtent,r=n.ordinalOffset||0,a=i.length,s=(0===r&&(o[t]=Ns()),o[t]),l=r;l<a;l++){var h=i[l]=e.parseAndCollect(i[l]);isNaN(h)||(s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},zs.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},zs.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},zs.prototype.appendData=function(t){var e=this._provider,i=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=i),i<t&&this._initDataFromProvider(i,t,!0),[i,t]},zs.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,o=n.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)Bs(i,l,(d=n[l]).type,s,!0);for(var h=[],u=a;u<s;u++)for(var c=u-a,p=0;p<o;p++){var d=n[p],f=ub.arrayRows.call(this,t[c]||h,d.property,c,p),g=(i[p][u]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},zs.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=g(r,function(t){return t.property}),h=0;h<a;h++){var u=r[h];s[h]||(s[h]=Ns()),Bs(o,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=n.getItem(p,c),d=0;d<a;d++){var f=o[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)}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},zs.prototype.count=function(){return this._count},zs.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},zs.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)n.push(o)}else n=t;for(var o=0,r=n.length;o<r;o++)i.push(this.get(n[o],e));return i},zs.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},zs.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,n=this.count();i<n;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},zs.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})),i=this.count();return 0===i?0:i%2==1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},zs.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,o=this._count-1;n<=o;){var r=(n+o)/2|0;if(e[r]<t)n=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},zs.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],o=[];if(n){null==i&&(i=1/0);for(var r=1/0,a=-1,s=0,l=0,h=this.count();l<h;l++){var u=e-n[this.getRawIndex(l)],c=Math.abs(u);c<=i&&((c<r||c===r&&0<=u&&a<0)&&(r=c,a=u,s=0),u===a)&&(o[s++]=l)}o.length=s}return o},zs.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array)for(var n=new e(i),o=0;o<i;o++)n[o]=t[o];else n=new e(t.buffer,0,i)}else for(n=new(e=Rs(this._rawCount))(this.count()),o=0;o<n.length;o++)n[o]=o;return n},zs.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),o=new(Rs(i._rawCount))(n),r=[],a=t.length,s=0,l=t[0],h=i._chunks,u=0;u<n;u++){var c=void 0,p=i.getRawIndex(u);if(0===a)c=e(u);else if(1===a)c=e(h[l][p],u);else{for(var d=0;d<a;d++)r[d]=h[t[d]][p];r[d]=u,c=e.apply(null,r)}c&&(o[s++]=p)}return s<n&&(i._indices=o),i._count=s,i._extent=[],i._updateGetRawIdx(),i},zs.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=v(t),o=n.length;if(!o)return this;var r=e.count(),a=new(Rs(e._rawCount))(r),s=0,l=n[0],h=t[l][0],u=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[n[0]],f=0;f<i;f++)(h<=(_=d[f])&&_<=u||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[n[0]],g=c[n[1]],y=t[n[1]][0],m=t[n[1]][1],f=0;f<i;f++){var _=d[f],x=g[f];(h<=_&&_<=u||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var w=e.getRawIndex(f);(h<=(_=c[n[0]][w])&&_<=u||isNaN(_))&&(a[s++]=w)}else for(f=0;f<r;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<o;S++){var T=n[S];((_=c[T][w])<t[T][0]||_>t[T][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},zs.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},zs.prototype.modify=function(t,e){this._updateDims(this,t,e)},zs.prototype._updateDims=function(t,e,i){for(var n=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=Ns();for(var u=0;u<a;u++){for(var c=t.getRawIndex(u),p=0;p<r;p++)s[p]=n[e[p]][c];s[r]=u;var d=i&&i.apply(null,s);if(null!=d)for("object"!=typeof d&&(o[0]=d,d=o),h=0;h<d.length;h++){var f=e[h],g=d[h],y=l[f],f=n[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},zs.prototype.lttbDownSample=function(t,e){var i,n=this.clone([t],!0),o=n._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),h=new(Rs(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));h[a++]=l;for(var u=1;u<r-1;u+=s){for(var c=Math.min(u+s,r-1),p=Math.min(u+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[T=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=u,m=Math.min(u+s,r),v=u-1,_=o[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var T,y=o[T=this.getRawIndex(g)];isNaN(y)?(S++,b<0&&(b=T)):x<(i=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=i,w=T)}0<S&&S<m-c&&(h[a++]=Math.min(b,w),w=Math.max(b,w)),l=h[a++]=w}return h[a++]=this.getRawIndex(r-1),n._count=a,n._indices=h,n.getRawIndex=this._getRawIdx,n},zs.prototype.downSample=function(t,e,i,n){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],h=this.count(),u=o._rawExtent[t]=Ns(),c=new(Rs(this._rawCount))(Math.ceil(h/s)),p=0,d=0;d<h;d+=s){h-d<s&&(a.length=s=h-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=i(a),m=this.getRawIndex(Math.min(d+n(a,y)||0,h-1));(l[m]=y)<u[0]&&(u[0]=y),y>u[1]&&(u[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},zs.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(n[t[0]][a],o);break;case 2:e(n[t[0]][a],n[t[1]][a],o);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=o,e.apply(null,l)}}},zs.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Ns();if(!e)return i;var n=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=i)[0],a=o[1],s=0;s<n;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},zs.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,o=0;o<n.length;o++)i.push(n[o][e]);return i},zs.prototype.clone=function(t,e){var i,n,o=new zs,r=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(i=r[s],n=void 0,(n=i.constructor)===Array?i.slice():new n(i)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},zs.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)},zs.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var i=this._indices.length,e=new t(i),n=0;n<i;n++)e[n]=this._indices[n];else e=new t(this._indices);return e}return null},zs.prototype._getRawIdxIdentity=function(t){return t},zs.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},zs.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},zs.internalField=void(ub={arrayRows:Fs,objectRows:function(t,e,i,n){return Ss(t[e],this._dimensions[n])},keyedColumns:Fs,original:function(t,e,i,n){return t=t&&(null==t.value?t:t.value),Ss(t instanceof Array?t[n]:t,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}});var mb=zs;Vs.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Vs.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Vs.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Vs.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Vs.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i,n,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),h=!!l.length;Hs(s)?(n=s,o=t=r=void 0,e=h?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=I(r=n.get("data",!0))?mw:dw,[]),n=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=E(n.seriesLayoutBy,o.seriesLayoutBy)||null,i=E(n.sourceHeader,o.sourceHeader),n=E(n.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!i!=!!o.sourceHeader||n?[es(r,{seriesLayoutBy:a,sourceHeader:i,dimensions:n},t)]:[]):(r=s,e=h?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[es(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Vs.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),o=i.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Ws(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Ws(""),r.push(e),s.push(t._getVersionSign())}),n?e=Ls(n,r,i.componentIndex):null!=o&&(e=[new Yw({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Vs.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},Vs.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Vs.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Vs.prototype._innerGetDataStore=function(t,e,i){var n,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[i];return o||(n=this._getUpstreamSourceManagers()[0],Hs(this._sourceHost)&&n?o=n._innerGetDataStore(t,e,i):(o=new mb).initData(new Gw(e,t.length),t),r[i]=o),o},Vs.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Hs(e)?(t=Aa(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?sn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},cm).models:[],function(t){return t.getSourceManager()})},Vs.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;return Hs(n)?(t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(n=n).get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:i}};var vb=Vs,_b="line-height:1",xb=[0,10,20,30],wb=["","\n","\n\n","\n\n\n"];tl.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},tl.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,e=va({color:e,type:t,renderMode:i,markerId:n});return b(e)?e:(this.richTextStyles[n]=e.style,e.content)},tl.prototype.wrapRichTextStyle=function(t,e){var i={},e=(x(e)?f(e,function(t){return l(i,t)}):l(i,e),this._generateStyleName());return this.richTextStyles[e]=i,"{"+e+"|"+t+"}"};var bb=tl,Sb=on();i(nl,Tb=aw),nl.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=_s({count:rl,reset:al}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(Sb(this).sourceManager=new vb(this)).prepareSource(),t=this.getInitialData(t,i),ll(t,this),this.dataTask.context.data=t,Sb(this).dataBeforeProcessed=t,ol(this),this._initSelectedMapFromData(t)},nl.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ma(t):{},o=this.subType;aw.hasClass(o),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),ji(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Ta(t,n,i)},nl.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Sa(this),i=(i&&Ta(this.option,t,i),Sb(this).sourceManager),i=(i.dirty(),i.prepareSource(),this.getInitialData(t,e));ll(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Sb(this).dataBeforeProcessed=i,ol(this),this._initSelectedMapFromData(i)},nl.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&ji(t[i],"label",e)},nl.prototype.getInitialData=function(t,e){},nl.prototype.appendData=function(t){this.getRawData().appendData(t.data)},nl.prototype.getData=function(t){var e=ul(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):Sb(this).data},nl.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},nl.prototype.setData=function(t){var e,i=ul(this);i&&((e=i.context).outputData=t,i!==this.dataTask)&&(e.data=t),Sb(this).data=t},nl.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return X(t)},nl.prototype.getSourceManager=function(){return Sb(this).sourceManager},nl.prototype.getSource=function(){return this.getSourceManager().getSource()},nl.prototype.getRawData=function(){return Sb(this).dataBeforeProcessed},nl.prototype.getColorBy=function(){return this.get("colorBy")||"series"},nl.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},nl.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},nl.prototype.formatTooltip=function(t,e,i){return el({series:this,dataIndex:t,multipleSeries:e})},nl.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!Pf.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},nl.prototype.restoreData=function(){this.dataTask.dirty()},nl.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel;return Mw.prototype.getColorFromPalette.call(this,t,e,i)||n.getColorFromPalette(t,e,i)},nl.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},nl.prototype.getProgressive=function(){return this.get("progressive")},nl.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},nl.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},nl.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,o=this.getData(e);if("series"===n||"all"===i)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=il(o,t[r]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},nl.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},nl.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),i=[],n=0;n<e.length;n++){var o=t[e[n]];0<=o&&i.push(o)}return i},nl.prototype.isSelected=function(t,e){var i=this.option.selectedMap;return!!i&&(e=this.getData(e),"all"===i||i[il(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},nl.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},nl.prototype._innerSelect=function(t,e){var i=this.option,n=i.selectedMode,o=e.length;if(n&&o)if("series"===n)i.selectedMap="all";else if("multiple"===n){M(i.selectedMap)||(i.selectedMap={});for(var r=i.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=il(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==n&&!0!==n||(s=il(t,n=e[o-1]),i.selectedMap=((i={})[s]=!0,i),this._selectedDataIndicesMap=((i={})[s]=t.getRawIndex(n),i))},nl.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),0<e.length&&this._innerSelect(t,e))},nl.registerClass=function(t){return aw.registerClass(t)},nl.protoInitialize=((Gx=nl.prototype).type="series.__base__",Gx.seriesIndex=0,Gx.ignoreStyleOnData=!1,Gx.hasSymbolVisual=!1,Gx.defaultSymbol="circle",Gx.visualStyleAccessPath="itemStyle",void(Gx.visualDrawType="fill"));var Tb,Mb=nl;p(Mb,Kw),p(Mb,Mw),pn(Mb,aw),cl.prototype.init=function(t,e){},cl.prototype.render=function(t,e,i,n){},cl.prototype.dispose=function(t,e){},cl.prototype.updateView=function(t,e,i,n){},cl.prototype.updateLayout=function(t,e,i,n){},cl.prototype.updateVisual=function(t,e,i,n){},cl.prototype.toggleBlurSeries=function(t,e,i){},cl.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Cb=cl;cn(Cb),gn(Cb);var Ib=on(),kb=pl(),Ab=(dl.prototype.init=function(t,e){},dl.prototype.render=function(t,e,i,n){},dl.prototype.highlight=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&gl(t,n,"emphasis")},dl.prototype.downplay=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&gl(t,n,"normal")},dl.prototype.remove=function(t,e){this.group.removeAll()},dl.prototype.dispose=function(t,e){},dl.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},dl.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},dl.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},dl.prototype.eachRendered=function(t){Er(this.group,t)},dl.markUpdateMethod=function(t,e){Ib(t).updateMethod=e},dl.protoInitialize=void(dl.prototype.type="chart"),dl);cn(Ab),gn(Ab);var Db={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)}}},Pb="\0__throttleOriginMethod",Ob="\0__throttleRate",Lb="\0__throttleType",Eb=on(),Rb={itemStyle:yn(kx,!0),lineStyle:yn(Mx,!0)},Nb={lineStyle:"stroke",itemStyle:"fill"},Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",o=t.getModel(n),r=wl(t,n)(o),o=o.getShallow("decal"),a=(o&&(i.setVisual("decal",o),o.dirty=!0),bl(t,n)),o=r[a],s=w(o)?o:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount()),r[a]||(r[a]=o,i.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||w(r.fill)?o:r.fill,r.stroke="auto"===r.stroke||w(r.stroke)?o:r.stroke),i.setVisual("style",r),i.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),o=l({},r);o[a]=s(n),e.setItemVisual(i,"style",o)}}}},Bb=new Ox,mm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,n,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=wl(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var r=t.getRawDataItem(e);r&&r[i]&&(Bb.option=r[i],r=n(Bb),l(t.ensureUniqueItemVisual(e,"style"),r),Bb.option.decal&&(t.setItemVisual(e,"decal",Bb.option.decal),Bb.option.decal.dirty=!0),o in r)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Dx={performRawSeries:!0,overallReset:function(t){var e=X();t.eachSeries(function(t){var i,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(i=e.get(n))||e.set(n,i={}),Eb(t).scope=i)}),t.eachSeries(function(e){var i,n,o,r,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(i=e.getRawData(),n={},o=e.getData(),r=Eb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bl(e,a),o.each(function(t){var e=o.getRawIndex(t);n[e]=t}),i.each(function(t){var a,l=n[t];o.getItemVisual(l,"colorFromPalette")&&(l=o.ensureUniqueItemVisual(l,"style"),t=i.getName(t)||t+"",a=i.count(),l[s]=e.getColorFromPalette(t,r,a))}))})}},zb=Math.PI;Sl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},Sl.prototype.getPerformArgs=function(t,e){var i,n;if(t.__pipeline)return n=(i=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,modBy:null!=(t=n&&n.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Sl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Sl.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),e=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),n="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:e,modDataCount:n,large:o}},Sl.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=X();t.eachSeries(function(t){var n=t.getProgressive(),o=t.uid;i.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},Sl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;f(this._allHandlers,function(n){var o=t.get(n.uid)||t.set(n.uid,{});z(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,o,e,i),n.overallReset&&this._createOverallStageTask(n,o,e,i)},this)},Sl.prototype.prepareView=function(t,e,i,n){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=i,r.api=n,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Sl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Sl.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},Sl.prototype._performStageTasks=function(t,e,i,n){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var r=!1,a=this;f(t,function(t,s){var l,h,u,c,p;n.visualType&&n.visualType!==t.visualType||(l=(h=a._stageTaskMap.get(t.uid)).seriesTaskMap,(h=h.overallTask)?((c=h.agentStubMap).each(function(t){o(n,t)&&(t.dirty(),u=!0)}),u&&h.dirty(),a.updatePayload(h,i),p=a.getPerformArgs(h,n.block),c.each(function(t){t.perform(p)}),h.perform(p)&&(r=!0)):l&&l.each(function(s,l){o(n,s)&&s.dirty();var h=a.getPerformArgs(s,n.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),s.perform(h)&&(r=!0)}))}),this.unfinished=r||this.unfinished},Sl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Sl.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())})},Sl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Sl.prototype._createSeriesStageTask=function(t,e,i,n){function o(e){var o=e.uid,o=s.set(o,a&&a.get(o)||_s({plan:kl,reset:Al,count:Pl}));o.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,o)}var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=X(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(o):e?i.eachRawSeriesByType(e,o):l&&l(i,n).each(o)},Sl.prototype._createOverallStageTask=function(t,e,i,n){function o(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,_s({reset:Ml,onDirty:Il})));e.context={model:t,overallProgress:u},e.agent=a,e.__block=u,r._pipe(t,e)}var r=this,a=e.overallTask=e.overallTask||_s({reset:Tl}),s=(a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r},a.agentStubMap),l=a.agentStubMap=X(),e=t.seriesType,h=t.getTargetSeries,u=!0,c=!1;z(!t.createOnAllSeries,""),e?i.eachRawSeriesByType(e,o):h?h(i,n).each(o):(u=!1,f(i.getSeries(),o)),c&&a.dirty()},Sl.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},Sl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){Fb=null;try{t(Hb,Wb)}catch(t){}return Fb}(t)}:t).uid=jr("stageHandler"),e&&(t.visualType=e),t};var Fb,Vb=Sl,Yb=Dl(0),Hb={},Wb={};Ol(Hb,Iw),Ol(Wb,Ba),Hb.eachSeriesByType=Hb.eachRawSeriesByType=function(t){Fb=t},Hb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Fb=t.subType)};var fx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Gx={color:fx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],fx]},Xb="#B9B8CE",kx="#100C2A",Mx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],fx={darkMode:!0,color:Mx,backgroundColor:kx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Xb}},textStyle:{color:Xb},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Xb}},dataZoom:{borderColor:"#71708A",textStyle:{color:Xb},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:Xb}},timeline:{lineStyle:{color:Xb},label:{color:Xb},controlStyle:{color:Xb,borderColor:Xb}},calendar:{itemStyle:{color:kx},dayLabel:{color:Xb},monthLabel:{color:Xb},yearLabel:{color:Xb}},timeAxis:Ll(),logAxis:Ll(),valueAxis:Ll(),categoryAxis:Ll(),line:{symbol:"circle"},graph:{color:Mx},gauge:{title:{color:Xb},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Xb},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Gb=(fx.categoryAxis.splitLine.show=!1,El.prototype.normalizeQuery=function(t){var e,i,n,o={},r={},a={};return b(t)?(e=un(t),o.mainType=e.main||null,o.subType=e.sub||null):(i=["Index","Name","Id"],n={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<i.length;l++){var h=i[l],u=e.lastIndexOf(h);0<u&&u===e.length-h.length&&"data"!==(u=e.slice(0,u))&&(o.mainType=u,o[h.toLowerCase()]=t,s=!0)}n.hasOwnProperty(e)&&(r[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:o,dataQuery:r,otherQuery:a}},El.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n,o,r,a,s,l=this.eventInfo;return!l||(n=l.targetEl,o=l.packedEvent,r=l.model,l=l.view,!r)||!l||(a=e.cptQuery,s=e.dataQuery,i(a,r,"mainType")&&i(a,r,"subType")&&i(a,r,"index","componentIndex")&&i(a,r,"name")&&i(a,r,"id")&&i(s,o,"name")&&i(s,o,"dataIndex")&&i(s,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,n,o)))},El.prototype.afterTrigger=function(){this.eventInfo=null},El),Ub=["symbol","symbolSize","symbolRotate","symbolOffset"],jb=Ub.concat(["symbolKeepAspect"]),kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n,o={},r={},a=!1,s=0;s<Ub.length;s++){var h=Ub[s],u=t.get(h);w(u)?(a=!0,r[h]=u):o[h]=u}if(o.symbol=o.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),!e.isSeriesFiltered(t))return n=v(r),{dataEach:a?function(e,i){for(var o=t.getRawValue(i),a=t.getDataParams(i),s=0;s<n.length;s++){var l=n[s];e.setItemVisual(i,l,r[l](o,a))}}:null}}}},Mx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var i=t.getItemModel(e),n=0;n<jb.length;n++){var o=jb[n],r=i.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}},qb=Math.round(9*Math.random()),Zb="function"==typeof Object.defineProperty,Kb=(zl.prototype.get=function(t){return this._guard(t)[this._id]},zl.prototype.set=function(t,e){return t=this._guard(t),Zb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},zl.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},zl.prototype.has=function(t){return!!this._guard(t)[this._id]},zl.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},zl),Qb=yv.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n+e),t.lineTo(i-o,n+e),t.closePath()}}),$b=yv.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n),t.lineTo(i,n+e),t.lineTo(i-o,n),t.closePath()}}),Jb=yv.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=n-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),h=Math.cos(a),u=.6*o,c=.7*o;t.moveTo(i-s,e+r),t.arc(i,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(i+s-l*u,e+r+h*u,i,n-c,i,n),t.bezierCurveTo(i,n-c,i-s+l*u,e+r+h*u,i-s,e+r),t.closePath()}}),tS=yv.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,o=e.x,e=e.y,n=n/3*2;t.moveTo(o,e),t.lineTo(o+n,e+i),t.lineTo(o,e+i/4*3),t.lineTo(o-n,e+i),t.lineTo(o,e),t.closePath()}}),eS={line:function(t,e,i,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+i,o.y2=e+n/2},rect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n},roundRect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(t,e,i,n,o){i=Math.min(i,n),o.x=t,o.y=e,o.width=i,o.height=i},circle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.r=Math.min(i,n)/2},diamond:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n},pin:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},arrow:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},triangle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n}},iS={},nS=(f({line:H_,rect:Iv,roundRect:Iv,square:Iv,circle:p_,diamond:$b,pin:Jb,arrow:tS,triangle:Qb},function(t,e){iS[e]=new t}),yv.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var t=gi(t,e,i),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===e.position&&(t.y=i.y+.4*i.height),t},buildPath:function(t,e,i){var n,o=e.symbolType;"none"!==o&&(n=(n=iS[o])||iS[o="rect"],eS[o](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,i))}})),oS=new rv(!0),rS=["shadowBlur","shadowOffsetX","shadowOffsetY"],aS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],sS=1,lS=2,hS=3,uS=4,cS=new Kb,pS=new sy(100),dS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],fS=new ug,gS={},$b={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}},yS="__flagInMainProcess",mS="__pendingUpdate",vS="__needsUpdateStatus",_S=/^[a-zA-Z0-9_]+$/,xS="__connectUpdateStatus";i(ch,wS=ug);var wS,bS,SS,TS,MS,CS,IS,kS,AS,DS,PS,OS,LS,ES,RS,NS,BS,zS,FS,VS,YS=ch,Jb=YS.prototype,HS=(Jb.on=hh("on"),Jb.off=hh("off"),i(ph,VS=ug),ph.prototype._onframe=function(){if(!this._disposed){FS(this);var t=this._scheduler;if(this[mS]){var e=this[mS].silent;this[yS]=!0;try{bS(this),MS.update.call(this,null,this[mS].updateParams)}catch(t){throw this[yS]=!1,this[mS]=null,t}this._zr.flush(),this[yS]=!1,this[mS]=null,AS.call(this,e),DS.call(this,e)}else if(t.unfinished){var i=1,n=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(n),t.performDataProcessorTasks(n),IS(this,n),t.performVisualTasks(n),RS(this,this._model,o,"remain",{}),0<(i-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},ph.prototype.getDom=function(){return this._dom},ph.prototype.getId=function(){return this.id},ph.prototype.getZr=function(){return this._zr},ph.prototype.isSSR=function(){return this._ssr},ph.prototype.setOption=function(t,e,i){if(!this[yS])if(this._disposed)this.id;else{M(e)&&(i=e.lazyUpdate,n=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[yS]=!0,this._model&&!e||(e=new Ew(this._api),a=this._theme,(s=this._model=new Iw).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},jS);var n,o,r,a,s={seriesTransition:r,optionChanged:!0};if(i)this[mS]={silent:n,updateParams:s},this[yS]=!1,this.getZr().wakeUp();else{try{bS(this),MS.update.call(this,null,s)}catch(t){throw this[mS]=null,this[yS]=!1,t}this._ssr||this._zr.flush(),this[mS]=null,this[yS]=!1,AS.call(this,n),DS.call(this,n)}}},ph.prototype.setTheme=function(){},ph.prototype.getModel=function(){return this._model},ph.prototype.getOption=function(){return this._model&&this._model.getOption()},ph.prototype.getWidth=function(){return this._zr.getWidth()},ph.prototype.getHeight=function(){return this._zr.getHeight()},ph.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Pf.hasGlobalWindow&&window.devicePixelRatio||1},ph.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},ph.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},ph.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},ph.prototype.getSvgDataURL=function(){var t;if(Pf.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},ph.prototype.getDataURL=function(t){var e,i,n,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,i=[],n=this,f(o,function(t){e.eachComponent({mainType:t},function(t){t=n._componentsMap[t.__viewId],t.group.ignore||(i.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(i,function(t){t.group.ignore=!1}),o;this.id},ph.prototype.getConnectedDataURL=function(t){var e,i,n,o,r,s,l,h,u,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,i=this.group,n=Math.min,o=Math.max,$S[i]?(s=r=1/0,h=l=-1/0,u=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f(QS,function(c,p){var d;c.group===i&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),r=n(c.left,r),s=n(c.top,s),l=o(c.right,l),h=o(c.bottom,h),u.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(r*=c),d=(h*=c)-(s*=c),g=zf.createCanvas(),(y=Ti(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(u,function(t){var e=t.left-r,i=t.top-s;m+='<g transform="translate('+e+","+i+')">'+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 Iv({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(u,function(t){t=new bv({style:{x:t.left*c-r,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},ph.prototype.convertToPixel=function(t,e){return CS(this,"convertToPixel",t,e)},ph.prototype.convertFromPixel=function(t,e){return CS(this,"convertFromPixel",t,e)},ph.prototype.containPixel=function(t,e){var i;if(!this._disposed)return f(rn(this._model,t),function(t,n){0<=n.indexOf("Models")&&f(t,function(t){var o=t.coordinateSystem;o&&o.containPoint?i=i||!!o.containPoint(e):"seriesModels"===n&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(i=i||o.containPoint(e,t))},this)},this),!!i;this.id},ph.prototype.getVisual=function(t,e){var t=rn(this._model,t,{defaultMainType:"series"}),i=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;if(null==t)return Rl(i,e);var n=i,o=t,r=e;switch(r){case"color":return n.getItemVisual(o,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(o,r)}},ph.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},ph.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},ph.prototype._initEvents=function(){var t,e,i,n=this;f(WS,function(t){function e(e){var i,o,r,a=n.getModel(),s=e.target;"globalout"===t?i={}:s&&Bl(s,function(t){var e,t=Rv(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},1):t.eventData&&(i=l({},t.eventData),1)},!0),i&&(o=i.componentType,r=i.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=i.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&n["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:o,view:r},n.trigger(t,i))}e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),f(GS,function(t,e){n._messageCenter.on(e,function(t){this.trigger(e,t)},n)}),f(["selectchanged"],function(t){n._messageCenter.on(t,function(e){this.trigger(t,e)},n)}),t=this._messageCenter,i=(e=this)._api,t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(Nl("map","selectchanged",e,n,t),Nl("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Nl("map","selected",e,n,t),Nl("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Nl("map","unselected",e,n,t),Nl("pie","unselected",e,n,t))})},ph.prototype.isDisposed=function(){return this._disposed},ph.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},ph.prototype.dispose=function(){var t,e,i;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ln(this.getDom(),eT,""),e=(t=this)._api,i=t._model,f(t._componentsViews,function(t){t.dispose(i,e)}),f(t._chartsViews,function(t){t.dispose(i,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 QS[t.id])},ph.prototype.resize=function(t){if(!this[yS])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"),i=t&&t.silent;this[mS]&&(null==i&&(i=this[mS].silent),e=!0,this[mS]=null),this[yS]=!0;try{e&&bS(this),MS.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[yS]=!1,t}this[yS]=!1,AS.call(this,i),DS.call(this,i)}}},ph.prototype.showLoading=function(t,e){this._disposed?this.id:(M(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),KS[t]&&(t=KS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},ph.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ph.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=GS[t.type],e},ph.prototype.dispatchAction=function(t,e){var i;this._disposed?this.id:(M(e)||(e={silent:!!e}),XS[t.type]&&this._model&&(this[yS]?this._pendingActions.push(t):(i=e.silent,kS.call(this,t,i),(t=e.flush)?this._zr.flush():!1!==t&&Pf.browser.weChat&&this._throttledZrFlush(),AS.call(this,i),DS.call(this,i))))},ph.prototype.updateLabelLayout=function(){fS.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},ph.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())},ph.internalField=(bS=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),SS(t,!0),SS(t,!1),e.plan()},SS=function(t,e){function i(t){var i,h=t.__requireNewView,u=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),h=!h&&a[u];h||(i=un(t.type),(h=new(e?Cb.getClass(i.main,i.sub):Ab.getClass(i.sub))).init(n,l),a[u]=h,r.push(h),s.add(h.group)),t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||o.prepareView(h,t,n,l)}for(var n=t._model,o=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,h=0;h<r.length;h++)r[h].__alive=!1;for(e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i),h=0;h<r.length;){var u=r[h];u.__alive?h++:(e||u.renderTask.dispose(),s.remove(u.group),u.dispose(n,l),r.splice(h,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},TS=function(t,e,i,n,o){function r(n){n&&n.__alive&&n[e]&&n[e](n.__model,l,t._api,i)}var a,s,l=t._model;l.setUpdatePayload(i),n?((a={})[n+"Id"]=i[n+"Id"],a[n+"Index"]=i[n+"Index"],a[n+"Name"]=i[n+"Name"],a={mainType:n,query:a},o&&(a.subType=o),null!=(o=i.excludeSeriesId)&&(s=X(),f(Ui(o),function(t){null!=(t=$i(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var n,o,r=s&&null!=s.get(e.id);if(!r)if(Ro(i))if(e instanceof Mb){if(i.type===Gv&&!i.notBlur&&!e.get(["emphasis","disabled"])){var r=e,a=i,l=t._api,h=r.seriesIndex,u=r.getData(a.dataType);if(u){var a=(x(a=nn(u,a))?a[0]:a)||0,c=u.getItemGraphicEl(a);if(!c)for(var p=u.count(),d=0;!c&&d<p;)c=u.getItemGraphicEl(d++);c?Mo(h,(a=Rv(c)).focus,a.blurScope,l):(a=r.get(["emphasis","focus"]),r=r.get(["emphasis","blurScope"]),null!=a&&Mo(h,a,r,l))}}}else h=Io(e.mainType,e.componentIndex,i.name,t._api),a=h.focusSelf,r=h.dispatchers,i.type===Gv&&a&&!i.notBlur&&Co(e.mainType,e.componentIndex,t._api),r&&f(r,function(t){(i.type===Gv?mo:vo)(t)});else Eo(i)&&e instanceof Mb&&(l=e,r=i,t._api,Eo(r)&&(n=r.dataType,x(o=nn(l.getData(n),r))||(o=[o]),l[r.type===Zv?"toggleSelect":r.type===jv?"select":"unselect"](o,n)),ko(e),zS(t))},t),l&&l.eachComponent(a,function(e){s&&null!=s.get(e.id)||r(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),r)},MS={prepareAndUpdate:function(t){bS(this),MS.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;i&&(i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),r.create(i,n),a.performDataProcessorTasks(i,t),IS(this,i),r.update(i,n),dh(i),a.performVisualTasks(i,t),LS(this,i,n,t,e),r=i.get("backgroundColor")||"transparent",a=i.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),fS.trigger("afterupdate",i,n))},updateTransform:function(t){var e,i,n=this,o=this._model,r=this._api;o&&(o.setUpdatePayload(t),e=[],o.eachComponent(function(i,a){"series"!==i&&(i=n.getViewOfComponentModel(a))&&i.__alive&&(!i.updateTransform||(a=i.updateTransform(a,o,r,t))&&a.update)&&e.push(i)}),i=X(),o.eachSeries(function(e){var a=n._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,o,r,t))&&a.update)&&i.set(e.uid,1)}),dh(o),this._scheduler.performVisualTasks(o,t,{setDirty:!0,dirtyMap:i}),RS(this,o,r,t,{},i),fS.trigger("afterupdate",o,r))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Ab.markUpdateMethod(t,"updateView"),dh(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),LS(this,e,this._api,t,{}),fS.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries(function(t){t.getData().clearAllVisual()}),Ab.markUpdateMethod(t,"updateVisual"),dh(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(n,o){"series"!==n&&(n=e.getViewOfComponentModel(o))&&n.__alive&&n.updateVisual(o,i,e._api,t)}),i.eachSeries(function(n){e._chartsMap[n.__viewId].updateVisual(n,i,e._api,t)}),fS.trigger("afterupdate",i,this._api))},updateLayout:function(t){MS.update.call(this,t)}},CS=function(t,e,i,n){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=rn(o,i),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,n)))return l}},IS=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},kS=function(t,e){var i,n,o=this,r=this.getModel(),a=t.type,s=t.escapeConnect,u=XS[a],c=u.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&un(p[0]),p=(this[yS]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=h(l({},e),t)).batch=null,e})),[]),_=Eo(t),x=Ro(t);if(x&&To(this._api),f(p,function(e){var n,r;(i=(i=u.action(e,o._model,o._api))||l({},e)).type=c.event||i.type,v.push(i),x?(n=(r=an(t)).queryOptionMap,r=r.mainTypeSpecified?n.keys()[0]:"series",TS(o,d,e,r),zS(o)):_?(TS(o,d,e,"series"),zS(o)):y&&TS(o,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[mS]?(bS(this),MS.update.call(this,t),this[mS]=null):MS[d].call(this,t)}catch(e){throw this[yS]=!1,e}i=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[yS]=!1,e||((p=this._messageCenter).trigger(i.type,i),_&&(m={type:"selectchanged",escapeConnect:s,selected:(n=[],r.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,i=t.getSelectedDataIndices();0<i.length&&(i={dataIndex:i,seriesIndex:t.seriesIndex},null!=e&&(i.dataType=e),n.push(i))})}),n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},AS=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();kS.call(this,i,t)}},DS=function(t){t||this.trigger("updated")},PS=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[mS]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},OS=function(t,e){t.on("mouseover",function(t){var i,n,o,r,a=Bl(t.target,Lo);a&&(a=a,i=t,t=e._api,n=Rv(a),o=(r=Io(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,o?(r&&Co(n.componentMainType,n.componentIndex,t),f(o,function(t){return go(t,i)})):(Mo(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&Co(n.componentMainType,n.componentIndex,t),go(a,i)),zS(e))}).on("mouseout",function(t){var i,n,o=Bl(t.target,Lo);o&&(o=o,i=t,To(t=e._api),(n=Io((n=Rv(o)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?f(n,function(t){return yo(t,i)}):yo(o,i),zS(e))}).on("click",function(t){var i,t=Bl(t.target,function(t){return null!=Rv(t).dataIndex},!0);t&&(i=t.selected?"unselect":"select",t=Rv(t),e._api.dispatchAction({type:i,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},LS=function(t,e,i,n,o){var r,a,s,l,h,u,c;h=[],c=!(u=[]),(r=e).eachComponent(function(t,e){var i=e.get("zlevel")||0,n=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?u:h).push({zlevel:i,z:n,idx:e.componentIndex,type:t,key:o})}),c&&(Wt(a=h.concat(u),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=r.getComponent(t.type,t.idx),i=t.zlevel,t=t.key;null!=s&&(i=Math.max(s,i)),t?(i===s&&t!==l&&i++,l=t):l&&(i===s&&i++,l=""),s=i,e.setZLevel(i)})),ES(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive=!1}),RS(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},ES=function(t,e,i,n,o,r){f(r||t._componentsViews,function(t){var o=t.__model;yh(0,t),t.render(o,e,i,n),gh(o,t),mh(o,t)})},RS=function(t,e,i,n,o,r){var a,s,h,u,c=t._scheduler,p=(o=l(o||{},{updatedSeries:e.getSeries()}),fS.trigger("series:beforeupdate",e,i,o),!1);e.eachSeries(function(e){var i,o=t._chartsMap[e.__viewId],a=(o.__alive=!0,o.renderTask);c.updatePayload(a,n),yh(0,o),r&&r.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),o.group.silent=!!e.get("silent"),a=o,i=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=i)}),ko(e)}),c.unfinished=p||c.unfinished,fS.trigger("series:layoutlabels",e,i,o),fS.trigger("series:transition",e,i,o),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];gh(e,i),mh(e,i)}),s=e,h=(a=t)._zr.storage,u=0,h.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!Pf.node&&!Pf.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)})}),fS.trigger("series:afterupdate",e,i,o)},zS=function(t){t[vS]=!0,t.getZr().wakeUp()},FS=function(t){t[vS]&&(t.getZr().storage.traverse(function(t){cr(t)||fh(t)}),t[vS]=!1)},NS=function(t){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n=Ba),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},e.prototype.enterEmphasis=function(e,i){mo(e,i),zS(t)},e.prototype.leaveEmphasis=function(e,i){vo(e,i),zS(t)},e.prototype.enterBlur=function(e){_o(e),zS(t)},e.prototype.leaveBlur=function(e){xo(e),zS(t)},e.prototype.enterSelect=function(e){wo(e),zS(t)},e.prototype.leaveSelect=function(e){bo(e),zS(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 n},void(BS=function(t){function e(t,e){for(var i=0;i<t.length;i++)t[i][xS]=e}f(GS,function(i,n){t._messageCenter.on(n,function(i){var n,o;!$S[t.group]||0===t[xS]||i&&i.escapeConnect||(n=t.makeActionFromEvent(i),o=[],f(QS,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),f(o,function(t){1!==t[xS]&&t.dispatchAction(n)}),e(o,2))})})})),ph),tS=HS.prototype,WS=(tS.on=lh("on"),tS.off=lh("off"),tS.one=function(t,e,i){var n=this;this.on.call(this,t,function i(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];e&&e.apply&&e.apply(this,o),n.off(t,i)},i)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),XS={},GS={},US=[],jS=[],qS=[],ZS={},KS={},QS={},$S={},JS=+new Date,tT=+new Date,eT="_echarts_instance_";Qb=vh;var iT=[];Ah(2e3,Ix),Ah(4500,mm),Ah(4500,Dx),Ah(2e3,kx),Ah(4500,Mx),Ah(7e3,function(t,e){t.eachRawSeries(function(i){var n;!t.isSeriesFiltered(i)&&((n=i.getData()).hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");i&&(n.ensureUniqueItemVisual(t,"style").decal=ah(i,e))}),i=n.getVisual("decal"))&&(n.getVisual("style").decal=ah(i,e))})}),wh($a),bh(900,function(t){var e=X();t.eachSeries(function(t){var i,n=t.get("stack");n&&(n=e.get(n)||e.set(n,[]),(t={stackResultDimension:(i=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),e.each(Ja)}),Ph("default",function(t,e){h(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 i,n=new Jy,o=new Iv({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),r=(n.add(o),new Pv({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 Iv({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Z_({shape:{startAngle:-zb/2,endAngle:-zb/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*zb/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*zb/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,n=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),l=t.getHeight()/2;e.showSpinner&&i.setShape({cx:n,cy:l}),a.setShape({x:n-s,y:l-s,width:2*s,height:2*s}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Ch({type:Gv,event:Gv,update:Gv},Z),Ch({type:Uv,event:Uv,update:Uv},Z),Ch({type:jv,event:jv,update:jv},Z),Ch({type:qv,event:qv,update:qv},Z),Ch({type:Zv,event:Zv,update:Zv},Z),xh("light",Gx),xh("dark",fx),Nh.prototype.add=function(t){return this._add=t,this},Nh.prototype.update=function(t){return this._update=t,this},Nh.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Nh.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Nh.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Nh.prototype.remove=function(t){return this._remove=t,this},Nh.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Nh.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=n[r],l=i[s],h=Eh(l);1<h?(a=l.shift(),1===l.length&&(i[s]=l[0]),this._update&&this._update(a,r)):1===h?(i[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,i)},Nh.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},o=[],r=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=i[s],h=n[s],u=Eh(l),c=Eh(h);if(1<u&&1===c)this._updateManyToOne&&this._updateManyToOne(h,l),n[s]=null;else if(1===u&&1<c)this._updateOneToMany&&this._updateOneToMany(h,l),n[s]=null;else if(1===u&&1===c)this._update&&this._update(h,l),n[s]=null;else if(1<u&&1<c)this._updateManyToMany&&this._updateManyToMany(h,l),n[s]=null;else if(1<u)for(var p=0;p<u;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,n)},Nh.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=e[n],r=Eh(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[n]=null}},Nh.prototype._initIndexMap=function(t,e,i,n){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[n](t[r],r);o||(i[r]=l),e&&(0===(s=Eh(a=e[l]))?(e[l]=r,o&&i.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var nT=Nh;Bh.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Bh.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var oT,rT,aT,sT,lT,hT,uT,cT=Bh,pT=function(t){this.otherDims={},null!=t&&l(this,t)},dT=on(),fT={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gT=(Vh.prototype.isDimensionOmitted=function(){return this._dimOmitted},Vh.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Wh(this.source))},Vh.prototype.getSourceDimensionIndex=function(t){return E(this._dimNameMap.get(t),-1)},Vh.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Vh.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=as(this.source),i=!(30<t),n="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,h=void 0,u=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,h=c.type,u=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,h=s.type),o.push({property:l,type:h,ordinalMeta:u}),!e||null==l||c&&c.isCalculationCoord||(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n=n+"$"+(fT[h]||"f"),u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},Vh.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,o=this.dimensions[i];o&&o.storeDimIndex===e?(o.isCalculationCoord||(n=o.name),i++):(o=this.getSourceDimension(e))&&(n=o.name),t.push(n)}return t},Vh.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Vh),yT=M,mT=g,vT="undefined"==typeof Int32Array?Array:Int32Array,_T=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xT=["_approximateExtent"],wT=(Xh.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])},Xh.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},Xh.prototype._recognizeDimIndex=function(t){if(T(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Xh.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Xh.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Xh.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]}},Xh.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Xh.prototype.mapDimension=function(t,e){var i=this._dimSummary;return null==e?i.encodeFirstDimNotExtra[t]:(i=i.encode[t])?i[e]:null},Xh.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Xh.prototype.getStore=function(){return this._store},Xh.prototype.initData=function(t,e,i){var n,o,r=this;(n=t instanceof mb?t:n)||(o=this.dimensions,t=ts(t)||d(t)?new Gw(t,o.length):t,n=new mb,o=mT(o,function(t){return{type:r._dimInfos[t].type,property:t}}),n.initData(t,o,i)),this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=zh(this,this._schema),this.userOutput=this._dimSummary.userOutput},Xh.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Xh.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),i=t.start,n=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=i;r<n;r++)this._nameList[r]=e[r-i],o&&uT(this,r)},Xh.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},Xh.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==mw&&!t.fillStorage},Xh.prototype._doInit=function(t,e){if(!(e<=t)){var i=this._store.getProvider(),n=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(i.getSource().sourceFormat===dw&&!i.pure)for(var r=[],a=t;a<e;a++){var s,l=i.getItem(a,r);this.hasItemOption||!M(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==n[a]&&null!=s&&(n[a]=$i(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=$i(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)uT(this,a);oT(this)}},Xh.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Xh.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Xh.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Xh.prototype.setCalculationInfo=function(t,e){yT(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Xh.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?aT(this,this._nameDimIdx,t):e)?"":e},Xh.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Xh.prototype.getId=function(t){return rT(this,this.getRawIndex(t))},Xh.prototype.count=function(){return this._store.count()},Xh.prototype.get=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.get(t.storeDimIndex,e)},Xh.prototype.getByRawIndex=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.getByRawIndex(t.storeDimIndex,e)},Xh.prototype.getIndices=function(){return this._store.getIndices()},Xh.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Xh.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Xh.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Xh.prototype.getValues=function(t,e){var i=this,n=this._store;return x(t)?n.getValues(mT(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},Xh.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},Xh.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},Xh.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Xh.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Xh.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Xh.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},Xh.prototype.each=function(t,e,i){w(t)&&(i=e,e=t,t=[]),i=i||this,t=mT(sT(t),this._getStoreDimIndex,this),this._store.each(t,i?$f(e,i):e)},Xh.prototype.filterSelf=function(t,e,i){return w(t)&&(i=e,e=t,t=[]),i=i||this,t=mT(sT(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,i?$f(e,i):e),this},Xh.prototype.selectRange=function(t){var e=this,i={};return f(v(t),function(n){var o=e._getStoreDimIndex(n);i[o]=t[n]}),this._store=this._store.selectRange(i),this},Xh.prototype.mapArray=function(t,e,i){w(t)&&(i=e,e=t,t=[]);var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i=i||this),n},Xh.prototype.map=function(t,e,i,n){return i=i||n||this,n=mT(sT(t),this._getStoreDimIndex,this),t=hT(this),t._store=this._store.map(n,i?$f(e,i):e),t},Xh.prototype.modify=function(t,e,i,n){i=i||n||this,n=mT(sT(t),this._getStoreDimIndex,this),this._store.modify(n,i?$f(e,i):e)},Xh.prototype.downSample=function(t,e,i,n){var o=hT(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),o},Xh.prototype.lttbDownSample=function(t,e){var i=hT(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},Xh.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Xh.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Ox(t,e,e&&e.ecModel)},Xh.prototype.diff=function(t){var e=this;return new nT(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return rT(t,e)},function(t){return rT(e,t)})},Xh.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Xh.prototype.setVisual=function(t,e){this._visual=this._visual||{},yT(t)?l(this._visual,t):this._visual[t]=e},Xh.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Xh.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Xh.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t],i=(n=n||(i[t]={}))[e];return null==i&&(x(i=this.getVisual(e))?i=i.slice():yT(i)&&(i=l({},i)),n[e]=i),i},Xh.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,yT(e)?l(n,e):n[e]=i},Xh.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Xh.prototype.setLayout=function(t,e){yT(t)?l(this._layout,t):this._layout[t]=e},Xh.prototype.getLayout=function(t){return this._layout[t]},Xh.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Xh.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?l(this._itemLayouts[t]||{},e):e},Xh.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Xh.prototype.setItemGraphicEl=function(t,e){var i,n,o,r,a=this.hostModel&&this.hostModel.seriesIndex;i=a,n=this.dataType,o=t,(a=e)&&((r=Rv(a)).dataIndex=o,r.dataType=n,r.seriesIndex=i,r.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=Rv(t),t.seriesIndex=i,t.dataIndex=o,t.dataType=n,t.ssrType="chart"}),this._graphicEls[t]=e},Xh.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Xh.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},Xh.prototype.cloneShallow=function(t){return t=t||new Xh(this._schema||mT(this.dimensions,this._getDimInfo,this),this.hostModel),lT(t,this),t._store=this._store,t},Xh.prototype.wrapMethod=function(t,e){var i=this[t];w(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(N(arguments)))})},Xh.internalField=(oT=function(t){var e=t._invertedIndicesMap;f(e,function(i,n){var o=t._dimInfos[n],r=o.ordinalMeta,a=t._store;if(r){i=e[n]=new vT(r.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(s=0;s<a.count();s++)i[a.get(o.storeDimIndex,s)]=s}})},aT=function(t,e,i){return $i(t._getCategory(e,i),null)},rT=function(t,e){var i=t._idList[e];return i=null==(i=null==i&&null!=t._idDimIdx?aT(t,t._idDimIdx,e):i)?"e\0\0"+e:i},sT=function(t){return t=x(t)?t:null!=t?[t]:[]},hT=function(t){var e=new Xh(t._schema||mT(t.dimensions,t._getDimInfo,t),t.hostModel);return lT(e,t),e},lT=function(t,e){f(_T.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(xT,function(i){t[i]=a(e[i])}),t._calculationInfo=l({},e._calculationInfo)},void(uT=function(t,e){var i=t._nameList,n=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=i[e],s=n[e];null==a&&null!=o&&(i[e]=a=aT(t,o,e)),null==s&&null!=r&&(n[e]=s=aT(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(i=t._nameRepeatCount)[a]=(i[a]||0)+1)&&(s+="__ec__"+o),n[e]=s)})),Xh),bT=function(t){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=t},ST={cartesian2d:function(t,e,i,n){var o=t.getReferringComponents("xAxis",cm).models[0],t=t.getReferringComponents("yAxis",cm).models[0];e.coordSysDims=["x","y"],i.set("x",o),i.set("y",t),Uh(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),Uh(t)&&(n.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){t=t.getReferringComponents("singleAxis",cm).models[0],e.coordSysDims=["single"],i.set("single",t),Uh(t)&&(n.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var t=t.getReferringComponents("polar",cm).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",t),Uh(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Uh(t)&&(n.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var o=t.ecModel,t=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=o.getComponent("parallelAxis",t),s=r[a];i.set(s,t),Uh(t)&&(n.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};Qh.prototype.getSetting=function(t){return this._setting[t]},Qh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Qh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Qh.prototype.getExtent=function(){return this._extent.slice()},Qh.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Qh.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Qh.prototype.isBlank=function(){return this._isBlank},Qh.prototype.setBlank=function(t){this._isBlank=t};var TT=Qh;gn(TT);var MT=0,CT=($h.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Jh);return new $h({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},$h.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},$h.prototype.parseAndCollect=function(t){var e,i,n=this._needCollect;return b(t)||n?(n&&!this._deduplication?(i=this.categories.length,this.categories[i]=t):null==(i=(e=this._getOrCreateMap()).get(t))&&(n?(i=this.categories.length,this.categories[i]=t,e.set(t,i)):i=NaN),i):t},$h.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},$h);i(lu,IT=TT),lu.prototype.parse=function(t){return null==t?NaN:b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},lu.prototype.contain=function(t){return ru(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},lu.prototype.normalize=function(t){return au(t=this._getTickNumber(this.parse(t)),this._extent)},lu.prototype.scale=function(t){return t=Math.round(su(t,this._extent)),this.getRawOrdinalNumber(t)},lu.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},lu.prototype.getMinorTicks=function(t){},lu.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];n[i[o]=s]=o}for(var l=0;o<r;++o){for(;null!=n[l];)l++;i.push(l),n[l]=o}}},lu.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},lu.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},lu.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},lu.prototype.count=function(){return this._extent[1]-this._extent[0]+1},lu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},lu.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},lu.prototype.getOrdinalMeta=function(){return this._ordinalMeta},lu.prototype.calcNiceTicks=function(){},lu.prototype.calcNiceExtent=function(){},lu.type="ordinal";var IT,kT=lu;TT.registerClass(kT);var AT,DT=Di,PT=(i(hu,AT=TT),hu.prototype.parse=function(t){return t},hu.prototype.contain=function(t){return ru(t,this._extent)},hu.prototype.normalize=function(t){return au(t,this._extent)},hu.prototype.scale=function(t){return su(t,this._extent)},hu.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},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]),this.setExtent(e[0],e[1])},hu.prototype.getInterval=function(){return this._interval},hu.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=nu(t)},hu.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,r=[];if(e){i[0]<n[0]&&r.push(t?{value:DT(n[0]-e,o)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(r.push({value:a}),(a=DT(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:n[1];i[1]>s&&r.push(t?{value:DT(s+e,o)}:{value:i[1]})}return r},hu.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],h=(r.value-a.value)/t;s<t-1;){var u=DT(a.value+(s+1)*h);u>n[0]&&u<n[1]&&l.push(u),s++}i.push(l)}return i},hu.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Pi(t.value)||0:"auto"===e&&(e=this._intervalPrecision),da(DT(t.value,e,!0)))},hu.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,o=n[1]-n[0];isFinite(o)&&(o<0&&n.reverse(),o=eu(n,t,e,i),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},hu.prototype.calcNiceExtent=function(t){var e=this._extent,i=(e[0]===e[1]&&(0!==e[0]?(i=Math.abs(e[0]),t.fixMax||(e[1]+=i/2),e[0]-=i/2):e[1]=1),e[1]-e[0]),i=(isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=DT(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=DT(Math.ceil(e[1]/i)*i))},hu.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},hu.type="interval",hu);TT.registerClass(PT);var OT="undefined"!=typeof Float32Array,LT=OT?Float32Array:Array;i(gu,ET=PT),gu.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Qr(t.value,Ux[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Kr(this._minLevelUnit))]||Ux.second,e,this.getSetting("locale"))},gu.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(b(i))r=i;else if(w(i))r=i(t.value,e,{level:t.level});else{var a=l({},Xx);if(0<t.level)for(var s=0;s<jx.length;++s)a[jx[s]]="{primary|"+a[jx[s]]+"}";var u=i?!1===i.inherit?i:h(i,a):a,c=$r(t.value,n);if(u[c])r=u[c];else if(u.inherit){for(s=qx.indexOf(c)-1;0<=s;--s)if(u[c]){r=u[c];break}r=r||a.none}x(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return Qr(new Date(t.value),r,n,o)},gu.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];return t&&(i.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,i,n){for(var o=qx,r=0,a=[],s=[],l=0,h=0,u=0;u<o.length&&r++<1e4;++u){var c=Kr(o[u]);if(function(t){return t===Kr(t)}(o[u])){!function(t,o,r){var a=[],s=!o.length;if(!function(t,e,i,n){function o(t){return Jr(c,t,n)===Jr(p,t,n)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function h(){return l()&&o("minute")}function u(){return h()&&o("second")}var c=Ni(e),p=Ni(i);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return h();case"second":return u();case"millisecond":return u()&&o("millisecond")}}(Kr(t),n[0],n[1],i)){s&&(o=[{value:function(t,e,i){var n=new Date(t);switch(Kr(e)){case"year":case"month":n[sa(i)](0);case"day":n[la(i)](1);case"hour":n[ha(i)](0);case"minute":n[ua(i)](0);case"second":n[ca(i)](0),n[pa(i)](0)}return n.getTime()}(new Date(n[0]),t,i)},{value:n[1]}]);for(var l,h,u=0;u<o.length-1;u++){var c=o[u].value,p=o[u+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/Wx/365)),f=ta(i),g=i?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=e,d=6<(h/=30*Wx)?6:3<h?3:2<h?2:1,f=ea(i),g=sa(i);break;case"week":case"half-week":case"day":h=e,d=16<(h/=Wx)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,f=ia(i),g=la(i);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=Hx)?12:6<l?6:3.5<l?4:2<l?2:1,f=na(i),g=ha(i);break;case"minute":d=yu(e,!0),f=oa(i),g=ua(i);break;case"second":d=yu(e,!1),f=ra(i),g=ca(i);break;case"millisecond":d=Fi(e,!0),f=aa(i),g=pa(i)}T=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,T=b[_]();S<v&&S<=n[1];)w.push({value:S}),b[x](T+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<r.length&&0===u&&r.unshift({value:r[0].value-d})}}for(u=0;u<a.length;u++)r.push(a[u])}}(o[u],a[a.length-1]||[],s);if(c!==(o[u+1]?Kr(o[u+1]):null)){if(s.length){h=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>=n[0]&&f<=n[1]&&l++)}if(1.5*(c=(n[1]-n[0])/e)<l&&c/1.5<h)break;if(a.push(p),c<l||t===o[u])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,u=0;u<y.length;++u)for(var x=y[u],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-u});v.sort(function(t,e){return t.value-e.value});for(var b=[],u=0;u<v.length;++u)0!==u&&v[u].value===v[u-1].value||b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,t,e),(i=i.concat(t)).push({value:e[1],level:0})),i},gu.prototype.calcNiceExtent=function(t){var e,i=this._extent;i[0]===i[1]&&(i[0]-=Wx,i[1]+=Wx),i[1]===-1/0&&i[0]===1/0&&(e=new Date,i[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),i[0]=i[1]-Wx),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},gu.prototype.calcNiceTicks=function(t,e,i){var n=this._extent,n=n[1]-n[0],n=(this._approxInterval=n/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i),NT.length),t=Math.min(function(t,e,i,n){for(;i<n;){var o=i+n>>>1;t[o][1]<e?i=1+o:n=o}return i}(NT,this._approxInterval,0,n),n-1);this._interval=NT[t][1],this._minLevelUnit=NT[Math.max(t-1,0)][0]},gu.prototype.parse=function(t){return T(t)?t:+Ni(t)},gu.prototype.contain=function(t){return ru(this.parse(t),this._extent)},gu.prototype.normalize=function(t){return au(this.parse(t),this._extent)},gu.prototype.scale=function(t){return su(t,this._extent)},gu.type="time";var ET,RT=gu,NT=[["second",Vx],["minute",Yx],["hour",Hx],["quarter-day",6*Hx],["half-day",12*Hx],["day",1.2*Wx],["half-week",3.5*Wx],["week",7*Wx],["month",31*Wx],["quarter",95*Wx],["half-year",gm/2],["year",gm]];TT.registerClass(RT);var BT,zT=TT.prototype,FT=PT.prototype,VT=Di,YT=Math.floor,HT=Math.ceil,WT=Math.pow,XT=Math.log,GT=(i(mu,BT=TT),mu.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return g(FT.getTicks.call(this,t),function(t){var t=t.value,e=Di(WT(this.base,t)),e=t===i[0]&&this._fixMin?vu(e,n[0]):e;return{value:t===i[1]&&this._fixMax?vu(e,n[1]):e}},this)},mu.prototype.setExtent=function(t,e){var i=XT(this.base);t=XT(Math.max(0,t))/i,e=XT(Math.max(0,e))/i,FT.setExtent.call(this,t,e)},mu.prototype.getExtent=function(){var t=this.base,e=zT.getExtent.call(this);return e[0]=WT(t,e[0]),e[1]=WT(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=vu(e[0],t[0])),this._fixMax&&(e[1]=vu(e[1],t[1])),e},mu.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=XT(t[0])/XT(e),t[1]=XT(t[1])/XT(e),zT.unionExtent.call(this,t)},mu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},mu.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i==1/0||i<=0)){var n=Bi(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&0<Math.abs(n);)n*=10;t=[Di(HT(e[0]/n)*n),Di(YT(e[1]/n)*n)],this._interval=n,this._niceExtent=t}},mu.prototype.calcNiceExtent=function(t){FT.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},mu.prototype.parse=function(t){return t},mu.prototype.contain=function(t){return ru(t=XT(t)/XT(this.base),this._extent)},mu.prototype.normalize=function(t){return au(t=XT(t)/XT(this.base),this._extent)},mu.prototype.scale=function(t){return t=su(t,this._extent),WT(this.base,t)},mu.type="log",mu);Kb=GT.prototype,Kb.getMinorTicks=FT.getMinorTicks,Kb.getLabel=FT.getLabel,TT.registerClass(GT),_u.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),o=(null==o&&(o=e.get("startValue",!0)),this._modelMinRaw=o),o=(w(o)?this._modelMinNum=xu(t,o({min:i[0],max:i[1]})):"dataMin"!==o&&(this._modelMinNum=xu(t,o)),this._modelMaxRaw=e.get("max",!0));w(o)?this._modelMaxNum=xu(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=xu(t,o)),n?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(i=e.get("boundaryGap"))?i:[i||0,i||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[fi(t[0],1),fi(t[1],1)]},_u.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,o=this._boundaryGapInner,r=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,h=null!=s,e=(null==a&&(a=t?n?0:NaN:e-o[0]*r),null==s&&(s=t?n?n-1:NaN:i+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),O(a)||O(s)||t&&!n),i=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!h&&(s=0),this._determinedMin),o=this._determinedMax;return null!=i&&(a=i,l=!0),null!=o&&(s=o,h=!0),{min:a,max:s,minFixed:l,maxFixed:h,isBlank:e}},_u.prototype.modifyDataMinMax=function(t,e){this[qT[t]]=e},_u.prototype.setDeterminedMinMax=function(t,e){this[jT[t]]=e},_u.prototype.freeze=function(){this.frozen=!0};var UT=_u,jT={min:"_determinedMin",max:"_determinedMax"},qT={min:"_dataMin",max:"_dataMax"};Au.prototype.getNeedCrossZero=function(){return!this.option.scale},Au.prototype.getCoordSysModel=function(){};var ZT=Au,Jb=Object.freeze({__proto__:null,createDimensions:function(t,e){return Gh(t,e).dimensions},createList:function(t){return Kh(null,t)},createScale:function(t,e){var i=e;return(e=Su(i=e instanceof Ox?i:new Ox(e))).setExtent(t[0],t[1]),bu(e,i),e},createSymbol:Vl,createTextStyle:function(t,e){return Fr(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qh,enableDataStack:jh,getStackedDimension:Zh},enableHoverEmphasis:Ao,getECData:Rv,getLayoutRect:ba,mixinAxisModelCommonMethods:function(t){p(t,ZT)}}),KT=[],QT={registerPreprocessor:wh,registerProcessor:bh,registerPostInit:Sh,registerPostUpdate:Th,registerUpdateLifecycle:Mh,registerAction:Ch,registerCoordinateSystem:Ih,registerLayout:kh,registerVisual:Ah,registerTransform:Lh,registerLoading:Ph,registerMap:Oh,registerImpl:function(t,e){gS[t]=e},PRIORITY:$b,ComponentModel:aw,ComponentView:Cb,SeriesModel:Mb,ChartView:Ab,registerComponentModel:function(t){aw.registerClass(t)},registerComponentView:function(t){Cb.registerClass(t)},registerSeriesModel:function(t){Mb.registerClass(t)},registerChartView:function(t){Ab.registerClass(t)},registerSubTypeDefaulter:function(t,e){aw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mi(t,e)}},$T=1e-8,JT=[];Ru.prototype.setCenter=function(t){this._center=t},Ru.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},tS=Ru;var tM,eM,iM=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},nM=function(t){this.type="linestring",this.points=t},oM=(i(Nu,tM=tS),Nu.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var o=e[n],r=o.exterior,r=r&&r.length;i<r&&(t=o,i=r)}if(t){for(var a=t.exterior,s=0,l=0,h=0,u=a.length,c=a[u-1][0],p=a[u-1][1],d=0;d<u;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,h+=(p+g)*y,c=f,p=g}return s?[l/s/3,h/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]},Nu.prototype.getBoundingRect=function(t){var e,i,n=this._rect;return n&&!t||(e=[1/0,1/0],i=[-1/0,-1/0],f(this.geometries,function(n){"polygon"===n.type?Eu(n.exterior,e,i,t):f(n.points,function(n){Eu(n,e,i,t)})}),isFinite(e[0])&&isFinite(e[1])&&isFinite(i[0])&&isFinite(i[1])||(e[0]=e[1]=i[0]=i[1]=0),n=new Og(e[0],e[1],i[0]-e[0],i[1]-e[1]),t)||(this._rect=n),n},Nu.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(e.contain(t[0],t[1]))t:for(var n=0,o=i.length;n<o;n++){var r=i[n];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(Ou(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Ou(s[l],t[0],t[1]))continue t;return!0}}}return!1},Nu.prototype.transformTo=function(t,e,i,n){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(i?n=n||i/r:i=r*n,new Og(t,e,i,n)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var h=s[l];"polygon"===h.type?(Lu(h.exterior,a),f(h.interiors,function(t){Lu(t,a)})):f(h.points,function(t){Lu(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},Nu.prototype.cloneShallow=function(t){return t=new Nu(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Nu);i(Bu,eM=tS),Bu.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],i=Tt(JT),n=t;n&&!n.isGeoSVGGraphicRoot;)Ct(i,n.getLocalTransform(),i),n=n.parent;return Dt(i,i),st(e,e,i),e};var Ix=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,i){return t[e]&&function(t,e){var i=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return[];for(var n=Math.pow(10,e),e=g(t,function(t){return(isNaN(t)?0:t)/i*n*100}),o=100*n,r=g(e,function(t){return Math.floor(t)}),a=y(r,function(t,e){return t+e},0),s=g(e,function(t,e){return t-r[e]});a<o;){for(var l=Number.NEGATIVE_INFINITY,h=null,u=0,c=s.length;u<c;++u)s[u]>l&&(l=s[u],h=u);++r[h],s[h]=0,++a}return g(r,function(t){return t/n})}(t,i)[e]||0},getPixelPrecision:Li,getPrecision:Pi,getPrecisionSafe:Oi,isNumeric:Yi,isRadianAroundZero:Ri,linearMap:ki,nice:Fi,numericToNumber:Vi,parseDate:Ni,quantile:function(t,e){var e=(t.length-1)*e+1,i=Math.floor(e),n=+t[i-1];return(e-=i)?n+e*(t[i]-n):n},quantity:Bi,quantityExponent:zi,reformIntervals:function(t){t.sort(function(t,e){return function t(e,i,n){return e.interval[n]<i.interval[n]||e.interval[n]===i.interval[n]&&(e.close[n]-i.close[n]==(n?-1:1)||!n&&t(e,i,1))}(t,e,0)?-1:1});for(var e=-1/0,i=1,n=0;n<t.length;){for(var o=t[n].interval,r=t[n].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-i),e=o[a],i=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(n,1):n++}return t},remRadian:Ei,round:Di}),mm=Object.freeze({__proto__:null,format:Qr,parse:Ni}),Dx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:U_,BoundingRect:Og,Circle:p_,CompoundPath:Q_,Ellipse:g_,Group:Jy,Image:bv,IncrementalDisplayable:py,Line:H_,LinearGradient:tx,Polygon:R_,Polyline:z_,RadialGradient:$_,Rect:Iv,Ring:O_,Sector:A_,Text:Pv,clipPointsByRect:kr,clipRectByRect:Ar,createIcon:Dr,extendPath:gr,extendShape:fr,getShapeClass:mr,getTransform:Tr,initProps:ur,makeImage:_r,makePath:vr,mergePath:wr,registerShape:yr,resizePath:br,updateProps:hr}),kx=Object.freeze({__proto__:null,addCommas:da,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:yt,formatTime:function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=(e=Ni(e))[(i=i?"getUTC":"get")+"FullYear"](),o=e[i+"Month"]()+1,r=e[i+"Date"](),a=e[i+"Hours"](),s=e[i+"Minutes"](),l=e[i+"Seconds"](),e=e[i+"Milliseconds"]();return t=t.replace("MM",Zr(o,2)).replace("M",o).replace("yyyy",n).replace("yy",Zr(n%100+"",2)).replace("dd",Zr(r,2)).replace("d",r).replace("hh",Zr(a,2)).replace("h",a).replace("mm",Zr(s,2)).replace("m",s).replace("ss",Zr(l,2)).replace("s",l).replace("SSS",Zr(e,3))},formatTpl:ma,getTextRect:function(t,e,i,n,o,r,a,s){return new Pv({style:{text:t,font:e,align:i,verticalAlign:n,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:va,normalizeCssArray:Zx,toCamelCase:fa,truncateText:wn}),Mx=Object.freeze({__proto__:null,bind:$f,clone:a,curry:_,defaults:h,each:f,extend:l,filter:m,indexOf:u,inherits:c,isArray:x,isFunction:w,isObject:M,isString:b,map:g,merge:s,reduce:y}),rM=on(),aM=[0,1],Gx=(Ku.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return i<=t&&t<=e},Ku.prototype.containData=function(t){return this.scale.contain(t)},Ku.prototype.getExtent=function(){return this._extent.slice()},Ku.prototype.getPixelPrecision=function(t){return Li(t||this.scale.getExtent(),this._extent)},Ku.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},Ku.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&Qu(i=i.slice(),n.count()),ki(t,aM,i,e)},Ku.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale,n=(this.onBand&&"ordinal"===n.type&&Qu(i=i.slice(),n.count()),ki(t,i,aM,e));return this.scale.scale(n)},Ku.prototype.pointToData=function(t,e){},Ku.prototype.getTicksCoords=function(t){function e(t,e){return t=Di(t),e=Di(e),s?e<t:t<e}var i,n,o,r,a,s,l,h=(t=t||{}).tickModel||this.getTickModel(),u=g(Wu(this,h).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),h=h.get("alignWithLabel");return i=this,n=u,h=h,t=t.clamp,l=n.length,i.onBand&&!h&&l&&(h=i.getExtent(),1===l?(n[0].coord=h[0],o=n[1]={coord:h[1]}):(a=n[l-1].tickValue-n[0].tickValue,r=(n[l-1].coord-n[0].coord)/a,f(n,function(t){t.coord-=r/2}),i=1+(a=i.scale.getExtent())[1]-n[l-1].tickValue,o={coord:n[l-1].coord+r*i},n.push(o)),s=h[0]>h[1],e(n[0].coord,h[0])&&(t?n[0].coord=h[0]:n.shift()),t&&e(h[0],n[0].coord)&&n.unshift({coord:h[0]}),e(h[1],o.coord)&&(t?o.coord=h[1]:n.pop()),t)&&e(o.coord,h[1])&&n.push({coord:h[1]}),u},Ku.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))},Ku.prototype.getViewLabels=function(){return Hu(this).labels},Ku.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Ku.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Ku.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},Ku.prototype.calculateCategoryInterval=function(){o=(i=d=this).getLabelModel();var t={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=Tu(d),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=(o=d.scale).getExtent(),o=o.count();if(n[1]-n[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),n[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(i)),s=Math.abs(s*Math.sin(i)),h=0,u=0;a<=n[1];a+=r)var c=1.3*(p=ui(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,h=Math.max(h,c,7),u=Math.max(u,p,7);var i=h/l,l=u/s,s=(isNaN(i)&&(i=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(i,l)))),i=rM(d.model),l=d.getExtent(),d=i.lastAutoInterval,f=i.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&i.axisExtent0===l[0]&&i.axisExtent1===l[1]?s=d:(i.lastTickCount=o,i.lastAutoInterval=s,i.axisExtent0=l[0],i.axisExtent1=l[1]),s},Ku),sM=2*Math.PI,lM=rv.CMD,hM=["top","right","bottom","left"],uM=[],cM=new Sg,pM=new Sg,dM=new Sg,fM=new Sg,gM=new Sg,yM=[],mM=new Sg,vM=["align","verticalAlign","width","height","fontSize"],_M=new Xy,xM=on(),wM=on(),bM=["x","y","rotation"],SM=(hc.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},hc.prototype._addLabel=function(t,e,i,n,o){var r,a=n.style,s=n.__hostTarget.textConfig||{},l=n.getComputedTransform(),h=n.getBoundingRect().plain(),l=(Og.applyTransform(h,h,l),l?_M.setLocalTransform(l):(_M.x=_M.y=_M.rotation=_M.originX=_M.originY=0,_M.scaleX=_M.scaleY=1),_M.rotation=On(_M.rotation),n.__hostTarget),u=(l&&(r=l.getBoundingRect().plain(),u=l.getComputedTransform(),Og.applyTransform(r,r,u)),r&&l.getTextGuideLine());this._labelList.push({label:n,labelLine:u,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:h,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:u&&u.ignore,x:_M.x,y:_M.y,scaleX:_M.scaleX,scaleY:_M.scaleY,rotation:_M.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},hc.prototype.addLabelsOfSeries=function(t){var e=this,i=(this._chartViewList.push(t),t.__model),n=i.get("labelLayout");(w(n)||v(n).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var o=t.getTextContent(),t=Rv(t);o&&!o.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,i,o,n)})},hc.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var o=this._labelList[n],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=w(o.layoutOption)?o.layoutOption(sc(o,a)):o.layoutOption,h=(o.computedLayoutOption=l=l||{},Math.PI/180),u=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*h:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=Ai(l.x,e),r.setStyle("x",0),u=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=Ai(l.y,i),r.setStyle("y",0),u=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),u=!1),xM(r).needsUpdateLabelLine=u,r.rotation=null!=l.rotate?l.rotate*h:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<vM.length;p++){var d=vM[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){ec(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},hc.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),i=oc(this._labelList),n=m(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=m(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});rc(n,"x","width",0,e,void 0),rc(o,"y","height",0,t,void 0),ac(m(i,function(t){return t.layoutOption.hideOverlap}))},hc.prototype.processLabelsOverall=function(){var t=this;f(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var r=!n,a=e.getTextContent();(r=!r&&a?xM(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,i),o&&t._animateLabels(e,i)})})},hc.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=Rv(t),o=n.dataIndex;if(i&&null!=o){var i=e.getData(n.dataType),e=i.getItemModel(o),n={},o=i.getItemVisual(o,"style"),o=(o&&(i=i.getVisual("drawType"),n.stroke=o[i]),e.getModel("labelLine")),r=t,a=function(t,e){for(var i={normal:t.getModel(e=e||"labelLine")},n=0;n<Wv.length;n++){var o=Wv[n];i[o]=t.getModel([o,e])}return i}(e),i=n,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),c=l.ignore,p=0;p<Xv.length;p++){var d,f=Xv[p],g=a[f],y="normal"===f;g&&(d=g.get("show"),(y?c:E(l.states[f]&&l.states[f].ignore,c))||!E(d,u)?((d=y?s:s&&s.states[f])&&(d.ignore=!0),s&&ic(s,!0,f,g)):(s||(s=new z_,r.setTextGuideLine(s),y||!c&&u||ic(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),ic(s,!1,f,g)))}s&&(h(s.style,i),s.style.fill=null,i=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=i||!1,s.buildPath=nc)}else s&&r.removeTextGuideLine();ec(t,o)}},hc.prototype._animateLabels=function(t,e){var i,n,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||cr(t))||(r=(o=xM(s)).oldLayout,i=(n=Rv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},n=e.getData(n.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=u(t,"select")&&s.attr(o.oldLayoutSelect),0<=u(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),hr(s,a,e,i)):(s.attr(a),xx(s).valueAnimation||(t=E(s.style.opacity,1),s.style.opacity=0,ur(s,{style:{opacity:t}},e,i))),o.oldLayout=a,s.states.select&&(lc(t=o.oldLayoutSelect={},a,bM),lc(t,s.states.select,bM)),s.states.emphasis&&(lc(t=o.oldLayoutEmphasis={},a,bM),lc(t,s.states.emphasis,bM)),Hr(s,i,n,e,e)),!l||l.ignore||l.invisible||(r=(o=wM(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),hr(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ur(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},hc),TM=on();Du(uc),i(pc,MM=ug),pc.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},pc.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},pc.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},pc.prototype.setUnpainted=function(){this.__firstTimePaint=!0},pc.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=cc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},pc.prototype.createRepaintRects=function(t,e,i,n){function o(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new Og(0,0,0,0)).copy(t),a.push(e);else{for(var e,i=!1,n=1/0,o=0,r=0;r<a.length;++r){var u=a[r];if(u.intersect(t)){var c=new Og(0,0,0,0);c.copy(u),c.union(t),a[r]=c,i=!0;break}l&&(h.copy(t),h.union(u),c=t.width*t.height,u=u.width*u.height,(u=h.width*h.height-c-u)<n)&&(n=u,o=r)}l&&(a[o].union(t),i=!0),i||((e=new Og(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var r,a=[],s=this.maxRepaintRectCount,l=!1,h=new Og(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u)(c=t[u])&&(d=c.shouldBePainted(i,n,!0,!0),(p=c.__isRendered&&(c.__dirty&Wg||!d)?c.getPrevPaintRect():null)&&o(p),r=d&&(c.__dirty&Wg||!c.__isRendered)?c.getPaintRect():null)&&o(r);for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var c,p,d=(c=e[u])&&c.shouldBePainted(i,n,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&o(p)}do{for(var f=!1,u=0;u<a.length;)if(a[u].isZero())a.splice(u,1);else{for(var g=u+1;g<a.length;)a[u].intersect(a[g])?(f=!0,a[u].union(a[g]),a.splice(g,1)):g++;u++}}while(f);return this._paintRects=a},pc.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},pc.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,o=n.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),n.width=t*i,n.height=e*i,r&&(r.width=t*i,r.height=e*i,1!==i)&&this.ctxBack.scale(i,i)},pc.prototype.clear=function(t,e,i){function n(t,i,n,o){var a;r.clearRect(t,i,n,o),e&&"transparent"!==e&&(a=void 0,A(e)?(a=(e.global||e.__width===n&&e.__height===o)&&e.__canvasGradient||Wl(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a,e.__width=n,e.__height=o):D(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=$l(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()),l&&(r.save(),r.globalAlpha=h,r.drawImage(p,t,i,n,o),r.restore())}var o=this.dom,r=this.ctx,a=o.width,s=o.height,l=(e=e||this.clearColor,this.motionBlur&&!t),h=this.lastFrameAlpha,u=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,a/u,s/u)),this.domBack);!i||l?n(0,0,a,s):i.length&&f(i,function(t){n(t.x*u,t.y*u,t.width*u,t.height*u)})};var MM,CM=pc,IM=314159;dc.prototype.getType=function(){return"canvas"},dc.prototype.isSingleCanvas=function(){return this._singleCanvas},dc.prototype.getViewportRoot=function(){return this._domRoot},dc.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},dc.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<n.length;o++){var r,a=n[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},dc.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},dc.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(i=i||(this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),rh(n,a,o,r===e-1))}n&&n.restore()}},dc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},dc.prototype.paintOne=function(t,e){oh(t,e)},dc.prototype._paintList=function(t,e,i,n){var o,r,a;this._redrawId===n&&(i=i||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,i)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,jg(function(){a._paintList(t,e,i,n)})))},dc.prototype._compositeManually=function(){var t=this.getLayer(IM).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},dc.prototype._doPaintList=function(t,e,i){for(var n=this,o=[],r=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||i)&&o.push(s)}for(var l=!0,h=!1,u=this,c=0;c<o.length;c++)!function(a){function s(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(p=y;p<d.__endIndex;p++){var o=t[p];if(o.__inHover&&(h=!0),n._doPaintEl(o,d,r,e,i,p===d.__endIndex-1),m&&15<Date.now()-v)break}i.prevElClipPaths&&f.restore()}var c,p,d=o[a],f=d.ctx,g=r&&d.createRepaintRects(t,e,u._width,u._height),y=i?d.__startIndex:d.__drawIndex,m=!i&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===u._zlevelList[0]?u._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!i)||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 _=u.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 Pf.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:h}},dc.prototype._doPaintEl=function(t,e,i,n,o,r){e=e.ctx,i?(i=t.getPaintRect(),(!n||i&&i.intersect(n))&&(rh(e,t,o,r),t.setPrevPaintRect(i))):rh(e,t,o,r)},dc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=IM);var i=this._layers[t];return i||((i=new CM("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?s(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},dc.prototype.insertLayer=function(t,e){var i,n=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&(i=e)&&(i.__builtin__||"function"==typeof i.resize&&"function"==typeof i.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=n[o[l]]}o.splice(l+1,0,t),(n[t]=e).virtual||(s?(i=s.dom).nextSibling?a.insertBefore(e.dom,i.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},dc.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n];t.call(e,this._layers[o],o)}},dc.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},dc.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},dc.prototype.getLayers=function(){return this._layers},dc.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var n,o=null,a=0,s=0;s<t.length;s++){var l,h=(l=t[s]).zlevel,u=void 0;n!==h&&(n=h,a=0),l.incremental?((u=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(h+(0<a?.01:0),this._needsManuallyCompositing),u.__builtin__||r("ZLevel "+h+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),o=u),l.__dirty&Wg&&!l.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex<0&&(u.__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)})},dc.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},dc.prototype._clearLayer=function(t){t.clear()},dc.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},dc.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?s(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var o=this._zlevelList[n];o!==t&&o!==t+.01||s(this._layers[o],i[t],!0)}}},dc.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(u(i,t),1))},dc.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot,n=(i.style.display="none",this._opts),o=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=Gl(o,0,n),e=Gl(o,1,n),i.style.display="",this._width!==t||e!==this._height){for(var r in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].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(IM).resize(t,e)}return this},dc.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},dc.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},dc.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[IM].dom;var e=new CM("image",this,(t=t||{}).pixelRatio||this.dpr),i=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,o):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var h=a[s];rh(i,h,r,s===l-1)}return e.dom},dc.prototype.getWidth=function(){return this._width},dc.prototype.getHeight=function(){return this._height};var kM=dc;i(fc,AM=aw),fc.prototype.init=function(t,e,i){AM.prototype.init.call(this,t,e,i),this._sourceManager=new vb(this),Ys(this)},fc.prototype.mergeOption=function(t,e){AM.prototype.mergeOption.call(this,t,e),Ys(this)},fc.prototype.optionUpdated=function(){this._sourceManager.dirty()},fc.prototype.getSourceManager=function(){return this._sourceManager},fc.type="dataset",fc.defaultOption={seriesLayoutBy:_w};var AM,DM=fc;i(gc,PM=Cb),gc.type="dataset";var PM,OM=gc;Du([function(t){t.registerPainter("canvas",kM)},yc]),Du(uc),i(mc,LM=Mb),mc.prototype.getInitialData=function(t){return Kh(null,this,{useEncodeDefaulter:!0})},mc.prototype.getLegendIcon=function(t){var e=new Jy,i=Vl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),i=(e.add(i),i.setStyle(t.lineStyle),this.getData().getVisual("symbol")),n=this.getData().getVisual("symbolRotate"),i="none"===i?"circle":i,o=.8*t.itemHeight,o=Vl(i,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),n=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?n:t.iconRotate||0);return o.rotation=n*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<i.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},mc.type="series.line",mc.dependencies=["grid","polar"],mc.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 LM,EM=mc;i(_c,RM=Jy),_c.prototype._createSymbol=function(t,e,i,n,o){this.removeAll(),o=Vl(t,-1,-1,2,2,null,o),o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=xc,this._symbolType=t,this.add(o)},_c.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},_c.prototype.getSymbolType=function(){return this._symbolType},_c.prototype.getSymbolPath=function(){return this.childAt(0)},_c.prototype.highlight=function(){mo(this.childAt(0))},_c.prototype.downplay=function(){vo(this.childAt(0))},_c.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},_c.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},_c.prototype.updateData=function(t,e,i,n){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,h=_c.getSymbolSize(t,e),u=s!==this._symbolType,c=n&&n.disableAnimation;u?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,h,o)):((r=this.childAt(0)).silent=!1,a={scaleX:h[0]/2,scaleY:h[1]/2},c?r.attr(a):hr(r,a,l,e),hx(s=r).oldStyle=s.style),this._updateCommon(t,e,h,i,n),u&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,ur(r,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},_c.prototype._updateCommon=function(t,e,i,n,o){var r,a,s,h,u,c,p,d,f=this.childAt(0),g=t.hostModel,y=(n&&(r=n.emphasisItemStyle,s=n.blurItemStyle,a=n.selectItemStyle,h=n.focus,u=n.blurScope,p=n.labelStatesModels,d=n.hoverScale,m=n.cursorStyle,c=n.emphasisDisabled),n&&!t.hasItemOption||(r=(y=(n=n&&n.itemModel?n.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=n.getModel(["select","itemStyle"]).getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),p=zr(n),d=y.getShallow("scale"),m=n.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),n=(f.attr("rotation",(y||0)*Math.PI/180||0),Yl(t.getItemVisual(e,"symbolOffset"),i)),y=(n&&(f.x=n[0],f.y=n[1]),m&&f.attr("cursor",m),t.getItemVisual(e,"style")),n=y.fill,m=(f instanceof bv?(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(n,o&&o.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),o&&o.useNameLabel);Br(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):vc(t,e)},inheritColor:n,defaultOpacity:y.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2,m=f.ensureState("emphasis"),m.style=r,f.ensureState("select").style=a,f.ensureState("blur").style=s,v=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&0<d?+d:1,m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v,this.setSymbolScale(1),Do(this,h,u,c)},_c.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},_c.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),o=Rv(this).dataIndex,r=i&&i.animation;this.silent=n.silent=!0,i&&i.fadeLabel?(i=n.getTextContent())&&pr(i,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){n.removeTextContent()}}):n.removeTextContent(),pr(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},_c.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var RM,NM=_c;Tc.prototype.updateData=function(t,e){this._progressiveEls=null,e=bc(e);var i=this.group,n=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=Sc(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||i.removeAll(),t.diff(o).add(function(n){var o,a=h(n);wc(t,a,n,e)&&((o=new r(t,n,s,l)).setPosition(a),t.setItemGraphicEl(n,o),i.add(o))}).update(function(u,c){var p,d,c=o.getItemGraphicEl(c),f=h(u);wc(t,f,u,e)?(p=t.getItemVisual(u,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(i.remove(c),(c=new r(t,u,s,l)).setPosition(f)):(c.updateData(t,u,s,l),d={x:f[0],y:f[1]},a?c.attr(d):hr(c,d,n)),i.add(c),t.setItemGraphicEl(u,c)):i.remove(c)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)},n)}).execute(),this._getSymbolPoint=h,this._data=t},Tc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,i){i=t._getSymbolPoint(i),e.setPosition(i),e.markRedraw()})},Tc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sc(t),this._data=null,this.group.removeAll()},Tc.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=bc(i);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);wc(e,a,o,i)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(n),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},Tc.prototype.eachRendered=function(t){Er(this._progressiveEls||this.group,t)},Tc.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},i.hostModel)}):e.removeAll()};var BM,zM=Tc,FM=Math.min,VM=Math.max,YM=function(){this.smooth=0,this.smoothConstraint=!0},HM=(i(Ac,BM=yv),Ac.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ac.prototype.getDefaultShape=function(){return new YM},Ac.prototype.buildPath=function(t,e){var i=e.points,n=0,o=i.length/2;if(e.connectNulls){for(;0<o&&Ic(i[2*o-2],i[2*o-1]);o--);for(;n<o&&Ic(i[2*n],i[2*n+1]);n++);}for(;n<o;)n+=kc(t,i,n,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Ac.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,o=this.path.data,r=rv.CMD,a="x"===e,s=[],l=0;l<o.length;){var h=void 0,u=void 0;switch(o[l++]){case r.M:i=o[l++],n=o[l++];break;case r.L:var c,h=o[l++],u=o[l++];if((c=a?(t-i)/(h-i):(t-n)/(u-n))<=1&&0<=c)return v=a?(u-n)*c+n:(h-i)*c+i,a?[t,v]:[v,t];i=h,n=u;break;case r.C:h=o[l++],u=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Qt(i,h,p,f,t,s):Qt(n,u,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Zt(n,u,d,g,_):Zt(i,h,p,f,_),a?[t,v]:[v,t]}i=f,n=g}}},Ac);i(Dc,WM=YM);var WM,XM=Dc;i(Pc,GM=yv),Pc.prototype.getDefaultShape=function(){return new XM},Pc.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,o=0,r=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&Ic(i[2*r-2],i[2*r-1]);r--);for(;o<r&&Ic(i[2*o],i[2*o+1]);o++);}for(;o<r;){var s=kc(t,i,o,r,r,1,e.smooth,a,e.connectNulls);kc(t,n,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var GM,UM=Pc;i(Wc,jM=Ab),Wc.prototype.init=function(){var t=new Jy,e=new zM;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Wc.prototype.render=function(t,e,i){function n(t){r._changePolyState(t)}var o,r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),p=l.getLayout("points")||[],d="polar"===a.type,f=this._coordSys,g=this._symbolDraw,y=this._polyline,m=this._polygon,v=this._lineGroup,e=!e.ssr&&t.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=Mc(a,l,x),w=_&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),o=uu(2*n),r=0;r<n;r++){var a=Cc(i,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(a,l,w),b=t.get("showSymbol"),S=t.get("connectNulls"),T=b&&!d&&zc(t,l,a),M=this._data,C=(M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),M.setItemGraphicEl(e,null))}),b||g.remove(),s.add(v),!d&&t.get("step")),I=(a&&a.getArea&&t.get("clip",!0)&&(null!=(o=a.getArea()).width?(o.x-=.1,o.y-=.1,o.width+=.2,o.height+=.2):o.r0&&(o.r0-=.5,o.r+=.5)),this._clipShapeForSymbol=o,Bc(l,a,i)||l.getVisual("style")[l.getVisual("drawType")]),f=(y&&f.type===a.type&&C===this._step?(_&&!m?m=this._newPolygon(p,w):m&&!_&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),(f=v.getClipPath())?ur(f,{shape:Hc(this,a,!1,t).shape},t):v.setClipPath(Hc(this,a,!0,t)),b&&g.updateData(l,{isIgnore:T,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),Oc(this._stackedOnPoints,w)&&Oc(this._points,p)||(e?this._doUpdateAnimation(l,w,a,i,C,x,S):(C&&(p=Nc(p,a,C,S),w=w&&Nc(w,a,C,S)),y.setShape({points:p}),m&&m.setShape({points:p,stackedOnPoints:w})))):(b&&g.updateData(l,{isIgnore:T,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,o),C&&(p=Nc(p,a,C,S),w=w&&Nc(w,a,C,S)),y=this._newPolyline(p),_?m=this._newPolygon(p,w):m&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,_a(I)),v.setClipPath(Hc(this,a,!0,t))),t.getModel("emphasis")),i=f.get("focus"),b=f.get("blurScope"),g=f.get("disabled"),T=(y.useStyle(h(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Po(y,t,"lineStyle"),0<y.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(y.getState("emphasis").style.lineWidth=+y.style.lineWidth+1),Rv(y).seriesIndex=t.seriesIndex,Do(y,i,b,g),Rc(t.get("smooth"))),e=t.get("smoothMonotone");y.setShape({smooth:T,smoothMonotone:e,connectNulls:S}),m&&(o=l.getCalculationInfo("stackedOnSeries"),_=0,m.useStyle(h(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),o&&(_=Rc(o.get("smooth"))),m.setShape({smooth:T,stackedOnSmooth:_,smoothMonotone:e,connectNulls:S}),Po(m,t,"areaStyle"),Rv(m).seriesIndex=t.seriesIndex,Do(m,i,b,g)),l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=n)}),this._polyline.onHoverStateChange=n,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=p,this._step=C,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,y),m)&&this.packEventData(t,m)},Wc.prototype.packEventData=function(t,e){Rv(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Wc.prototype.highlight=function(t,e,i,n){var o=t.getData(),r=nn(o,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,h=t.get("zlevel")||0,u=t.get("z")||0,s=((l=new NM(o,r)).x=s,l.y=a,l.setZ(h,u),l.getSymbolPath().getTextContent());s&&(s.zlevel=h,s.z=u,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Ab.prototype.highlight.call(this,t,e,i,n)},Wc.prototype.downplay=function(t,e,i,n){var o,r=t.getData(),a=nn(r,n);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):Ab.prototype.downplay.call(this,t,e,i,n)},Wc.prototype._changePolyState=function(t){var e=this._polygon;uo(this._polyline,t),e&&uo(e,t)},Wc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new HM({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Wc.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new UM({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i},Wc.prototype._initSymbolLabelAnimation=function(t,e,i){var n,o,r=e.getBaseAxis(),a=r.inverse,r=("cartesian2d"===e.type?(n=r.isHorizontal(),o=!1):"polar"===e.type&&(n="angle"===r.dim,o=!0),t.hostModel),s=r.get("animationDuration"),l=(w(s)&&(s=s(null)),r.get("animationDelay")||0),h=w(l)?l(null):l;t.eachItemGraphicEl(function(t,r){var u,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=u=void 0,i&&(f=o?(p=i,d=e.pointToCoord(d),n?(u=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(u=p.r0,c=p.r,d[0])):n?(u=i.x,c=i.x+i.width,t.x):(u=i.y+i.height,c=i.y,t.y)),p=c===u?0:(f-u)/(c-u),a&&(p=1-p),d=w(l)?l(r):s*p+h,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)})},Wc.prototype._initOrUpdateEndLabel=function(t,e,i){var n,o,r,a=t.getModel("endLabel");Yc(t)?(n=t.getData(),o=this._polyline,(r=n.getLayout("points"))?(this._endLabel||((this._endLabel=new Pv({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=Fc(r))&&(Br(o,zr(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,i){if(null==i)return vc(n,t);var o=n,r=i,a=o.mapDimensionsAll("defaultedLabel");if(!x(r))return r+"";for(var s=[],l=0;l<a.length;l++){var h=o.getDimensionIndex(a[l]);0<=h&&s.push(r[h])}return s.join(" ")},enableTextSetter:!0},(i=a,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:i.get("align")||a,verticalAlign:i.get("verticalAlign")||r}})),o.textConfig.position=null)):(o.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Wc.prototype._endLabelOnDuring=function(t,e,i,n,o,r,a){var s,l,h,u,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==n.originalX&&(n.originalX=m.x,n.originalY=m.y),s=i.getLayout("points"),g=(l=i.hostModel).get("connectNulls"),h=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,u=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,i){for(var n,o,r=t.length/2,a="x"===i?0:1,s=0,l=-1,h=0;h<r;h++)if(o=t[2*h+a],!isNaN(o)&&!isNaN(t[2*h+1-a])){if(0!==h){if(n<=e&&e<=o||e<=n&&o<=e){l=h;break}s=h}n=o}return{range:[s,l],t:(e-n)/(o-n)}}(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=Vc(s,p[0]),m.attr({x:y[0]+u,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+u,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=hn(i,h,f,g,c.t))),n.lastFrameIndex=p[0]):(y=Vc(s,v=1===t||0<n.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+u,y:y[1]+r})),o)&&"function"==typeof(a=xx(m)).setLabelText&&a.setLabelText(d)},Wc.prototype._doUpdateAnimation=function(t,e,i,n,o,r,a){var s=this._polyline,l=this._polygon,h=t.hostModel,e=function(t,e,i,n,o,r){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=[],h=[],u=[],c=[],p=[],d=[],f=[],g=Mc(o,e,r),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],T=y[1+b],M=m[w],C=m[w+1];(isNaN(S)||isNaN(T))&&(S=M,T=C),l.push(S,T),h.push(M,C),u.push(i[b],i[1+b]),c.push(n[w],n[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,T=g.dataDimsForPoint,M=o.dataToPoint([e.get(T[0],S),e.get(T[1],S)]),w=2*S,l.push(M[0],M[1]),h.push(m[w],m[w+1]),C=Cc(g,o,e,S),u.push(C[0],C[1]),c.push(n[w],n[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=uu(r=l.length),k=uu(r),A=uu(r),D=uu(r),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,E=2*O;I[L]=l[E],I[1+L]=l[1+E],k[L]=h[E],k[1+L]=h[1+E],A[L]=u[E],A[1+L]=u[1+E],D[L]=c[E],D[1+L]=c[1+E],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:A,stackedOnNext:D,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),u=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(o&&(u=Nc(e.current,i,o,a),c=Nc(e.stackedOnCurrent,i,o,a),p=Nc(e.next,i,o,a),d=Nc(e.stackedOnNext,i,o,a)),3e3<Ec(u,p)||l&&3e3<Ec(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=u;for(var f,i={shape:{points:p}},g=(e.current!==u&&(i.shape.__points=e.next),s.stopAnimation(),hr(s,i,h),l&&(l.setShape({points:u,stackedOnPoints:c}),l.stopAnimation(),hr(l,{shape:{stackedOnPoints:d}},h),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var i=g[e].el,n=2*g[e].ptIdx;i.x=t[n],i.y=t[1+n],i.markRedraw()}})}},Wc.prototype.remove=function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},Wc.type="line";var jM,qM=Wc,ZM={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,i=-1/0,n=0;n<t.length;n++){var o=t[n],r=Math.abs(o);e<r&&(e=r,i=o)}return isFinite(i)?i:NaN},nearest:function(t){return t[0]}},KM=function(t){return Math.round(t.length/2)};Du(function(t){var e;t.registerChartView(qM),t.registerSeriesModel(EM),t.registerLayout((e=!0,{seriesType:"line",plan:pl(),reset:function(t){var i,n,o,r,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,h=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),i=t.length,n=s.getCalculationInfo("stackResultDimension"),qh(s,t[0])&&(t[0]=n),qh(s,t[1])&&(t[1]=n),o=s.getStore(),r=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),i&&{progress:function(t,e){for(var n=t.end-t.start,s=h&&uu(n*i),u=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===i?(f=o.get(r,p),l.dataToPoint(f,null,c)):(u[0]=o.get(r,p),u[1]=o.get(a,p),l.dataToPoint(u,null,c)),h?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}h&&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,i){var n,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(n=a.getBaseAxis(),a=a.getOtherAxis(n),n=n.getExtent(),i=i.getDevicePixelRatio(),n=Math.abs(n[1]-n[0])*(i||1),i=Math.round(s/n),isFinite(i))&&1<i&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/i)),s=void 0,b(r)?s=ZM[r]:w(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/i,s,KM))}})}),i(Xc,QM=aw),Xc.type="grid",Xc.dependencies=["xAxis","yAxis"],Xc.layoutMode="box",Xc.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 QM,$M=Xc;i(Gc,JM=aw),Gc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cm).models[0]},Gc.type="cartesian2dAxis";var JM,tC=Gc;p(tC,ZT);var fx={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)"]}}},gm=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fx),Kb=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}}},fx),eC={category:gm,value:Kb,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Kb),log:h({logBase:10},Kb)},iC={value:1,category:1,time:1,log:1};qc.prototype.getAxis=function(t){return this._axes[t]},qc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},qc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},qc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var nC=["x","y"];i(Kc,oC=qc),Kc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,i,n,o=this.getAxis("x").scale,r=this.getAxis("y").scale;Zc(o)&&Zc(r)&&(o=o.getExtent(),r=r.getExtent(),n=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],i=r[1]-r[0],t)&&i&&(t=(e[0]-n[0])/t,e=(e[1]-n[1])/i,i=n[0]-o[0]*t,o=n[1]-r[0]*e,n=this._transform=[t,0,0,e,i,o],this._invTransform=Dt([],n))},Kc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Kc.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},Kc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Kc.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),i=this.getArea(),e=new Og(t[0],t[1],e[0]-t[0],e[1]-t[1]);return i.intersect(e)},Kc.prototype.dataToPoint=function(t,e,i){i=i||[];var n,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?st(i,t,this._transform):(t=this.getAxis("x"),n=this.getAxis("y"),i[0]=t.toGlobalCoord(t.dataToCoord(o,e)),i[1]=n.toGlobalCoord(n.dataToCoord(r,e)),i)},Kc.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),r=n.getExtent(),i=i.parse(t[0]),n=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e},Kc.prototype.pointToData=function(t,e){var i,n,o=[];return this._invTransform?st(o,t,this._invTransform):(i=this.getAxis("x"),n=this.getAxis("y"),o[0]=i.coordToData(i.toLocalCoord(t[0]),e),o[1]=n.coordToData(n.toLocalCoord(t[1]),e),o)},Kc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Kc.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1])-t,o=Math.min(i[0],i[1])-t,e=Math.max(e[0],e[1])-n+t,i=Math.max(i[0],i[1])-o+t;return new Og(n,o,e,i)};var oC,rC=Kc;i(Qc,aC=Gx),Qc.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Qc.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},Qc.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Qc.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var aC,sC=Qc,lC=Math.log;ep.prototype.getRect=function(){return this._rect},ep.prototype.update=function(t,e){function i(t){var e,i=v(t),n=i.length;if(n){for(var o=[],r=n-1;0<=r;r--){var a=t[+i[r]],s=a.model,l=a.scale;tu(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(bu(l,s),tu(l)&&(e=a))}o.length&&(e||bu((e=o.pop()).scale,e.model),f(o,function(t){var i=t.scale,t=t.model,n=e.scale,o=PT.prototype,r=o.getTicks.call(n),a=o.getTicks.call(n,!0),s=r.length-1,n=o.getInterval.call(n),l=(t=wu(i,t)).extent,h=t.fixMin,t=t.fixMax,u=("log"===i.type&&(u=lC(i.base),l=[lC(l[0])/u,lC(l[1])/u]),i.setExtent(l[0],l[1]),i.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:t}),o.getExtent.call(i)),c=(h&&(l[0]=u[0]),t&&(l[1]=u[1]),o.getInterval.call(i)),p=l[0],d=l[1];if(h&&t)c=(d-p)/s;else if(h)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=iu(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=iu(c),p=l[1]-c*s;else u=(c=s<i.getTicks().length-1?iu(c):c)*s,(p=Di((d=Math.ceil(l[1]/c)*c)-u))<0&&0<=l[0]?(p=0,d=Di(u)):0<d&&l[1]<=0&&(d=0,p=-Di(u));h=(r[0].value-a[0].value)/n,t=(r[s].value-a[s].value)/n,o.setExtent.call(i,p+c*h,d+c*t),o.setInterval.call(i,c),(h||t)&&o.setNiceExtent.call(i,p+c,d-c)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var o={};f(n.x,function(t){np(n,"y",t,o)}),f(n.y,function(t){np(n,"x",t,o)}),this.resize(this.model,e)},ep.prototype.resize=function(t,e,i){function n(){f(a,function(t){var e,i,n=t.isHorizontal(),o=n?[0,r.width]:[0,r.height],a=t.inverse?1:0;t.setExtent(o[a],o[1-a]),o=t,e=n?r.x:r.y,a=o.getExtent(),i=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return i-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return i-t+e}})}var o=t.getBoxLayoutParams(),i=!i&&t.get("containLabel"),r=ba(o,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=r,this._axesList);n(),i&&(f(a,function(t){var e,i,n;t.model.get(["axisLabel","inside"])||(e=Cu(t))&&(i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]),r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n))}),n()),f(this._coordsList,function(t){t.calcAffineTransform()})},ep.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},ep.prototype.getAxes=function(){return this._axesList.slice()},ep.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];M(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===t||n[i].getAxis("y").index===e)return n[i]},ep.prototype.getCartesians=function(){return this._coordsList.slice()},ep.prototype.convertToPixel=function(t,e,i){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(i):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(i)):null},ep.prototype.convertFromPixel=function(t,e,i){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(i):e.axis?e.axis.coordToData(e.axis.toLocalCoord(i)):null},ep.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,o=t.xAxisModel||n&&n.getReferringComponents("xAxis",cm).models[0],r=t.yAxisModel||n&&n.getReferringComponents("yAxis",cm).models[0],t=t.gridModel,a=this._coordsList;return n?u(a,e=n.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?i=this.getAxis("x",o.componentIndex):r?i=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},ep.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},ep.prototype._initCartesian=function(t,e,i){function n(e){return function(i,n){var o,h;ip(i,t)&&(o=i.get("position"),"x"===e?"top"!==o&&"bottom"!==o&&(o=a.bottom?"top":"bottom"):"left"!==o&&"right"!==o&&(o=a.left?"right":"left"),a[o]=!0,h="category"===(o=new sC(e,Su(i),[0,0],i.get("type"),o)).type,o.onBand=h&&i.get("boundaryGap"),o.inverse=i.get("inverse"),(i.axis=o).model=i,o.grid=r,o.index=n,r._axesList.push(o),s[e][n]=o,l[e]++)}}var o=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,i){f(s.y,function(n,r){var r="x"+i+"y"+r,a=new rC(r);a.master=o,a.model=t,o._coordsMap[r]=a,o._coordsList.push(a),a.addAxis(e),a.addAxis(n)})}):(this._axesMap={},this._axesList=[])},ep.prototype._updateScale=function(t,e){function i(t,e){var i,n,o;f((i=t,n=e.dim,o={},f(i.mapDimensionsAll(n),function(t){o[Zh(i,t)]=!0}),v(o)),function(i){e.scale.unionExtentFromData(t,i)})}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 n,o;Jc(t)&&(o=(n=tp(t)).xAxisModel,n=n.yAxisModel,ip(o,e))&&ip(n,e)&&(o=this.getCartesian(o.componentIndex,n.componentIndex),n=t.getData(),t=o.getAxis("x"),o=o.getAxis("y"),i(n,t),i(n,o))},this)},ep.prototype.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),function(n){var o=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),n=n.getOtherAxis(o);u(e,o)<0&&e.push(o),u(i,n)<0&&i.push(n)}),{baseAxes:e,otherAxes:i}},ep.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,o){var r=new ep(n,t,e);r.name="grid_"+o,r.resize(n,e,!0),n.coordinateSystem=r,i.push(r)}),t.eachSeries(function(t){var e,i,n;Jc(t)&&(e=(i=tp(t)).xAxisModel,i=i.yAxisModel,n=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=n.getCartesian(e.componentIndex,i.componentIndex))}),i},ep.dimensions=nC;var hC,uC,cC,pC=ep,dC=Math.PI,fC=(rp.prototype.hasBuilder=function(t){return!!gC[t]},rp.prototype.add=function(t){gC[t](this.opt,this.axisModel,this.group,this._transformGroup)},rp.prototype.getGroup=function(){return this.group},rp.innerTextLayout=function(t,e,i){var n,e=Ei(e-t),t=Ri(e)?(n=0<i?"top":"bottom","center"):Ri(e-dC)?(n=0<i?"bottom":"top","center"):(n="middle",0<e&&e<dC?0<i?"right":"left":0<i?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:n}},rp.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},rp.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},rp),gC={axisLine:function(t,e,i,n){var o,r,a,s,h,u,c,p=e.get(["axisLine","show"]);(p="auto"===p&&t.handleAutoShown?t.handleAutoShown("axisLine"):p)&&(p=e.axis.getExtent(),n=n.transform,o=[p[0],0],r=[p[1],0],a=r[0]<o[0],n&&(st(o,o,n),st(r,r,n)),s=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),Sr((p=new H_({shape:{x1:o[0],y1:o[1],x2:r[0],y2:r[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).shape,p.style.lineWidth),p.anid="line",i.add(p),null!=(h=e.get(["axisLine","symbol"])))&&(n=e.get(["axisLine","symbolSize"]),b(h)&&(h=[h,h]),(b(n)||T(n))&&(n=[n,n]),p=Yl(e.get(["axisLine","symbolOffset"])||0,n),u=n[0],c=n[1],f([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((o[0]-r[0])*(o[0]-r[0])+(o[1]-r[1])*(o[1]-r[1]))}],function(e,n){var l;"none"!==h[n]&&null!=h[n]&&(n=Vl(h[n],-u/2,-c/2,u,c,s.stroke,!0),l=e.r+e.offset,n.attr({rotation:e.rotate,x:(e=a?r:o)[0]+l*Math.cos(t.rotation),y:e[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),i.add(n))}))},axisTickLabel:function(t,e,i,n){var o,r,a,s,l,u=function(t,e,i,n){var o=i.axis,r=i.getModel("axisTick"),a=r.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),n=n.tickDirection*r.get("length"),s=hp(o.getTicksCoords(),e.transform,n,h(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(i,n,e,t),c=function(t,e,i,n){var o,r,a,s,l,h,u,c,p=i.axis,d=L(n.axisLabelShow,i.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return o=i.getModel("axisLabel"),r=o.get("margin"),a=p.getViewLabels(),d=(L(n.labelRotate,o.get("rotate"))||0)*dC/180,s=fC.innerTextLayout(n.rotation,d,n.labelDirection),l=i.getCategories&&i.getCategories(!0),h=[],u=fC.isLabelSilent(i),c=i.get("triggerEvent"),f(a,function(d,f){var g="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,y=d.formattedLabel,m=d.rawLabel,v=o,_=(v=l&&l[g]&&M(_=l[g])&&_.textStyle?new Ox(_.textStyle,o,i.ecModel):v).getTextColor()||i.get(["axisLine","lineStyle","color"]),x=p.dataToCoord(g),b=v.getShallow("align",!0)||s.textAlign,S=E(v.getShallow("alignMinLabel",!0),b),T=E(v.getShallow("alignMaxLabel",!0),b),C=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||s.textVerticalAlign,I=E(v.getShallow("verticalAlignMinLabel",!0),C),k=E(v.getShallow("verticalAlignMaxLabel",!0),C),x=new Pv({x:x,y:n.labelOffset+n.labelDirection*r,rotation:s.rotation,silent:u,z2:10+(d.level||0),style:Fr(v,{text:y,align:0===f?S:f===a.length-1?T:b,verticalAlign:0===f?I:f===a.length-1?k:C,fill:w(_)?_("category"===p.type?m:"value"===p.type?g+"":g,f):_})});x.anid="label_"+g,c&&((d=fC.makeAxisEventDataBase(i)).targetType="axisLabel",d.value=m,d.tickIndex=f,"category"===p.type&&(d.dataIndex=g),Rv(x).eventData=d),e.add(x),x.updateTransform(),h.push(x),t.add(x),x.decomposeTransform()}),h}(i,n,e,t),p=(r=c,u=u,ku((o=e).axis)||(y=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],_=(r=r||[])[0],m=r[1],a=r[r.length-1],r=r[r.length-2],s=u[0],v=u[1],l=u[u.length-1],u=u[u.length-2],!1===y?(ap(_),ap(s)):sp(_,m)&&(y?(ap(m),ap(v)):(ap(_),ap(s))),!1===o?(ap(a),ap(l)):sp(r,a)&&(o?(ap(r),ap(u)):(ap(a),ap(l)))),i),d=n,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=h(v.getLineStyle(),h(y.getModel("axisTick").getLineStyle(),{stroke:y.get(["axisLine","lineStyle","color"])})),T=0;T<x.length;T++)for(var C=hp(x[T],d.transform,b,S,"minorticks_"+T),I=0;I<C.length;I++)p.add(C[I])}e.get(["axisLabel","hideOverlap"])&&ac(oc(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,i,n){var o,r,a,s,l,h,u,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,r=(u=e.axis.getExtent())[0]>u[1]?-1:1,r=["start"===c?u[0]-r*h:"end"===c?u[1]+r*h:(u[0]+u[1])/2,lp(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*dC/180),lp(c)?a=fC.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,i,n){var o,i=Ei(i-t),t=n[0]>n[1],n="start"===e&&!t||"start"!==e&&t;return e=Ri(i-dC/2)?(o=n?"bottom":"top","center"):Ri(i-1.5*dC)?(o=n?"top":"bottom","center"):(o="middle",i<1.5*dC&&dC/2<i?n?"left":"right":n?"right":"left"),{rotation:i,textAlign:e,textVerticalAlign:o}}(t.rotation,c,h||0,u),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),h=(c=e.get("nameTruncate",!0)||{}).ellipsis,u=L(t.nameTruncateMaxWidth,c.maxWidth,s),Or({el:t=new Pv({x:r[0],y:r[1],rotation:a.rotation,silent:fC.isLabelSilent(e),style:Fr(o,{text:p,font:l,overflow:"truncate",width:u,ellipsis:h,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=fC.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,Rv(t).eventData=c),n.add(t),t.updateTransform(),i.add(t),t.decomposeTransform())}},yC={},mC=(i(gp,hC=Cb),gp.prototype.render=function(t,e,i,n){var o,r,a,s,l,h;this.axisPointerClass&&(o=pp(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,h=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=dp(l),null==h&&(a.status=l?"show":"hide"),(h=r.getExtent().slice())[0]>h[1]&&h.reverse(),(s=null==s||s>h[1]?h[1]:s)<h[0]&&(s=h[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),hC.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},gp.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},gp.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},gp.prototype.dispose=function(t,e){this._disposeAxisPointer(e),hC.prototype.dispose.apply(this,arguments)},gp.prototype._doUpdateAxisPointerClass=function(t,e,i){var n,o=gp.getAxisPointerClass(this.axisPointerClass);o&&((n=(n=pp(n=t))&&n.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,n,e,i):this._disposeAxisPointer(e))},gp.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},gp.registerAxisPointerClass=function(t,e){yC[t]=e},gp.getAxisPointerClass=function(t){return t&&yC[t]},gp.type="axis",gp),vC=on(),_C=["axisLine","axisTickLabel","axisName"],xC=["splitArea","splitLine","minorSplitLine"],tS=(i(yp,uC=mC),yp.prototype.render=function(t,e,i,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new Jy,this.group.add(this._axisGroup),t.get("show")&&(r=$c(o=t.getCoordSysModel(),t),r=new fC(t,l({handleAutoShown:function(e){for(var i=o.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(tu(i[n].getOtherAxis(t.axis).scale))return!0;return!1}},r)),f(_C,r.add,r),this._axisGroup.add(r.getGroup()),f(xC,function(e){t.get([e,"show"])&&wC[e](this,this._axisGroup,t,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||Ir(a,this._axisGroup,t),uC.prototype.render.call(this,t,e,i,n))},yp.prototype.remove=function(){vC(this).splitAreaColors=null},yp.type="cartesianAxis",yp),wC={splitLine:function(t,e,i,n){var o=i.axis;if(!o.scale.isBlank())for(var i=i.getModel("splitLine"),r=i.getModel("lineStyle"),a=x(a=r.get("color"))?a:[a],s=n.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,c=o.getTicksCoords({tickModel:i}),p=[],d=[],f=r.getLineStyle(),g=0;g<c.length;g++){var y=o.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),u++%a.length),m=c[g].tickValue,m=new H_({anid:null!=m?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:h({stroke:a[y]},f),silent:!0});Sr(m.shape,f.lineWidth),e.add(m)}},minorSplitLine:function(t,e,i,n){var o=i.axis,i=i.getModel("minorSplitLine").getModel("lineStyle"),r=n.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],h=[],u=i.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=r.y,h[0]=d,h[1]=r.y+r.height):(l[0]=r.x,l[1]=d,h[0]=r.x+r.width,h[1]=d),new H_({anid:"minor_line_"+s[c][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:u,silent:!0}));Sr(d.shape,u.lineWidth),e.add(d)}},splitArea:function(t,e,i,n){var o=e,e=n,r=(n=i).axis;if(!r.scale.isBlank()){var n=n.getModel("splitArea"),i=n.getModel("areaStyle"),a=i.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,c=vC(t).splitAreaColors,p=X(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(u-1)*f)%u;break}}for(var y=r.toGlobalCoord(l[0].coord),m=i.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=r.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=r.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),o.add(new Iv({anid:null!=v?"area_"+v:null,shape:{x:_,y:w,width:b,height:S},style:h({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%u}vC(t).splitAreaColors=p}}}},bC=(i(mp,cC=tS),mp.type="xAxis",mp);i(vp,SC=tS),vp.type="yAxis";var SC,TC=vp;i(_p,MC=Cb),_p.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Iv({shape:t.coordinateSystem.getRect(),style:h({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},_p.type="grid";var MC,CC=_p,IC={offset:0};Du(function(t){t.registerComponentView(CC),t.registerComponentModel($M),t.registerCoordinateSystem("cartesian2d",pC),Uc(t,"x",tC,IC),Uc(t,"y",tC,IC),t.registerComponentView(bC),t.registerComponentView(TC),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),i(xp,kC=aw),xp.type="title",xp.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 kC,AC=xp;i(wp,DC=Cb),wp.prototype.render=function(t,e,i){var n,o,r,a,s,l,h,u,c;this.group.removeAll(),t.get("show")&&(n=this.group,h=t.getModel("textStyle"),o=t.getModel("subtextStyle"),u=t.get("textAlign"),c=E(t.get("textBaseline"),t.get("textVerticalAlign")),s=(h=new Pv({style:Fr(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new Pv({style:Fr(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),h.silent=!r&&!s,o.silent=!a&&!s,r&&h.on("click",function(){xa(r,"_"+t.get("target"))}),a&&o.on("click",function(){xa(a,"_"+t.get("subtarget"))}),Rv(h).eventData=Rv(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),l&&n.add(o),s=n.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=ba(l,{width:i.getWidth(),height:i.getHeight()},t.get("padding")),u||("right"===(u="middle"===(u=t.get("left")||t.get("right"))?"center":u)?l.x+=l.width:"center"===u&&(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"),n.x=l.x,n.y=l.y,n.markRedraw(),h.setStyle(i={align:u,verticalAlign:c}),o.setStyle(i),s=n.getBoundingRect(),h=l.margin,(u=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new Iv({shape:{x:s.x-h[3],y:s.y-h[0],width:s.width+h[1]+h[3],height:s.height+h[0]+h[2],r:t.get("borderRadius")},style:u,subPixelOptimize:!0,silent:!0}),n.add(c))},wp.type="title";var DC,PC=wp;Du(function(t){t.registerComponentModel(AC),t.registerComponentView(PC)}),i(bp,OC=aw),bp.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},bp.prototype.mergeOption=function(t,e){OC.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},bp.prototype._updateSelector=function(t){var e=t.selector,i=this.ecModel;x(e=!0===e?t.selector=["all","inverse"]:e)&&f(e,function(t,n){b(t)&&(t={type:t}),e[n]=s(t,(n=i,"all"===(t=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},bp.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}e||this.select(t[0].get("name"))}},bp.prototype._updateData=function(t){var e=[],i=[],n=(t.eachRawSeries(function(n){var o,r=n.name;i.push(r),n.legendVisualProvider&&(r=n.legendVisualProvider.getAllNames(),t.isSeriesFiltered(n)||(i=i.concat(r)),r.length)?e=e.concat(r):o=!0,o&&Ji(n)&&e.push(n.name)}),this._availableNames=i,this.get("data")||e),o=X(),n=g(n,function(t){return(b(t)||T(t))&&(t={name:t}),o.get(t.name)?null:(o.set(t.name,!0),new Ox(t,this,this.ecModel))},this);this._data=m(n,function(t){return!!t})},bp.prototype.getData=function(){return this._data},bp.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},bp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},bp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},bp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},bp.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]})},bp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=u(this._availableNames,t)},bp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},bp.type="legend.plain",bp.dependencies=["series"],bp.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 OC,LC,EC=bp,RC=_,NC=f,BC=Jy,zC=(i(Sp,LC=Cb),Sp.prototype.init=function(){this.group.add(this._contentGroup=new BC),this.group.add(this._selectorGroup=new BC),this._isFirstRender=!0},Sp.prototype.getContentGroup=function(){return this._contentGroup},Sp.prototype.getSelectorGroup=function(){return this._selectorGroup},Sp.prototype.render=function(t,e,i){var n,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),n=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===n?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,i,a,n,s=!a||s&&"auto"!==s?s:"horizontal"===n?"end":"start"),r=ba(e=t.getBoxLayoutParams(),n={width:i.getWidth(),height:i.getHeight()},i=t.get("padding")),r=ba(h({width:(o=this.layoutInner(t,o,r,l,a,s)).width,height:o.height},e),n,i),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=o,s=Zx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new Iv({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}))))},Sp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Sp.prototype.renderInner=function(t,e,i,n,o,r,a){var s=this.getContentGroup(),h=X(),u=e.get("selectedMode"),c=[];i.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),NC(e.getData(),function(o,r){var a,p,d,f,g=o.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=i.getSeriesByName(g)[0],h.get(g)||(a?(f=(d=a.getData()).getVisual("legendLineStyle")||{},p=d.getVisual("legendIcon"),d=d.getVisual("style"),(f=this._createItem(a,g,r,o,e,t,f,d,p,u,n)).on("click",RC(Tp,g,null,n,c)).on("mouseover",RC(Cp,a.name,null,n,c)).on("mouseout",RC(Ip,a.name,null,n,c)),i.ssr&&f.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),h.set(g,!0)):i.eachRawSeries(function(a){var s,p,d;h.get(g)||a.legendVisualProvider&&(p=a.legendVisualProvider).containName(g)&&(d=p.indexOfName(g),s=p.getItemVisual(d,"style"),p=p.getItemVisual(d,"legendIcon"),(d=_e(s.fill))&&0===d[3]&&(d[3]=.2,s=l(l({},s),{fill:Te(d,"rgba")})),(d=this._createItem(a,g,r,o,e,t,{},s,p,u,n)).on("click",RC(Tp,null,g,n,c)).on("mouseover",RC(Cp,null,g,n,c)).on("mouseout",RC(Ip,null,g,n,c)),i.ssr&&d.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),h.set(g,!0))},this))):((d=new BC).newline=!0,s.add(d))},this),o&&this._createSelector(o,e,n,r,a)},Sp.prototype._createSelector=function(t,e,i,n,o){var r=this.getSelectorGroup();NC(t,function(t){var n=t.type,o=new Pv({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(o),Br(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Ao(o)})},Sp.prototype._createItem=function(t,e,i,n,o,r,a,s,l,h,u){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),m=n.get("icon"),a=function(t,e,i,n,o,r,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),NC(t,function(i,n){"inherit"===t[n]&&(t[n]=e[n])})}var l=e.getModel("itemStyle"),h=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");return h.decal=l&&"inherit"!==l?ah(l,a):n.decal,"inherit"===h.fill&&(h.fill=n[o]),"inherit"===h.stroke&&(h.stroke=n[t]),"inherit"===h.opacity&&(h.opacity=("fill"===o?n:i).opacity),s(h,n),l=e.getModel("lineStyle"),a=l.getLineStyle(),s(a,i),"auto"===h.fill&&(h.fill=n.fill),"auto"===h.stroke&&(h.stroke=n.fill),"auto"===a.stroke&&(a.stroke=n.fill),r||(o=e.get("inactiveBorderWidth"),i=h[t],h.lineWidth="auto"===o?0<n.lineWidth&&i?2:0:h.lineWidth,h.fill=e.get("inactiveColor"),h.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth")),{itemStyle:h,lineStyle:a}}(l=m||l||"roundRect",n,a,s,c,f,u),s=new BC,c=n.getModel("textStyle"),m=(!w(t.getLegendIcon)||m&&"inherit"!==m?(u="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",i=Vl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}({itemWidth:p,itemHeight:d,icon:l,iconRotate:u,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===r?p+5:-5),u=r,t=o.get("formatter"),l=e,g=(b(t)&&t?l=t.replace("{name}",null!=e?e:""):w(t)&&(l=t(e)),f?c.getTextColor():n.get("inactiveColor")),a=(s.add(new Pv({style:Fr(c,{text:l,x:m,y:d/2,fill:g,align:u,verticalAlign:"middle"},{inheritColor:g})})),new Iv({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=n.getModel("tooltip");return y.get("show")&&Or({el:a,componentModel:o,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!h,this.getContentGroup().add(s),Ao(s),s.__legendDataIndex=i,s},Sp.prototype.layoutInner=function(t,e,i,n,o,r){var a,s,l,h,u,c=this.getContentGroup(),p=this.getSelectorGroup(),i=(tw(t.get("orient"),c,t.get("itemGap"),i.width,i.height),c.getBoundingRect()),d=[-i.x,-i.y];return p.markRedraw(),c.markRedraw(),o?(tw("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",h=0===t?"height":"width",u=0===t?"y":"x","end"===r?a[t]+=i[l]+s:d[t]+=o[l]+s,a[1-t]+=i[h]/2-o[h]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=i[l]+s+o[l],r[h]=Math.max(i[h],o[h]),r[u]=Math.min(0,o[u]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},Sp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Sp.type="legend.plain",Sp);i(Pp,FC=EC),Pp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Pp.prototype.init=function(t,e,i){var n=Ma(t);FC.prototype.init.call(this,t,e,i),Op(this,t,n)},Pp.prototype.mergeOption=function(t,e){FC.prototype.mergeOption.call(this,t,e),Op(this,this.option,t)},Pp.type="legend.scroll",Pp.defaultOption=(U_=EC.defaultOption,p_={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({},U_,!0),p_,!0));var FC,VC,YC=Pp,HC=Jy,WC=["width","height"],XC=["x","y"],GC=(i(Lp,VC=zC),Lp.prototype.init=function(){VC.prototype.init.call(this),this.group.add(this._containerGroup=new HC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new HC)},Lp.prototype.resetInner=function(){VC.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Lp.prototype.renderInner=function(t,e,i,n,o,r,a){function s(t,i){var o=t+"DataIndex",i=Dr(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:$f(l._pageGo,l,o,e,n)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});i.name=t,h.add(i)}var l=this,h=(VC.prototype.renderInner.call(this,t,e,i,n,o,r,a),this._controllerGroup),t=e.get("pageIconSize",!0),u=x(t)?t:[t,t],i=(s("pagePrev",0),e.getModel("pageTextStyle"));h.add(new Pv({name:"pageText",style:{text:"xx/xx",fill:i.getTextColor(),font:i.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},Lp.prototype.layoutInner=function(t,e,i,n,o,r){var s=this.getSelectorGroup(),l=t.getOrient().index,h=WC[l],u=XC[l],c=WC[1-l],p=XC[1-l],d=(o&&tw("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(i),i=(o&&(y[h]=i[h]-f[h]-d),this._layoutContentAndController(t,n,y,l,h,c,p,u));return o&&("end"===r?g[l]+=i[h]+d:(t=f[h]+d,g[l]-=t,i[u]-=t),i[h]+=f[h]+d,g[1-l]+=i[p]+i[c]/2-f[c]/2,i[c]=Math.max(i[c],f[c]),i[p]=Math.min(i[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),i},Lp.prototype._layoutContentAndController=function(t,e,i,n,o,r,a,s){var l=this.getContentGroup(),h=this._containerGroup,u=this._controllerGroup,c=(tw(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),tw("horizontal",u,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=u.getBoundingRect(),d=this._showController=c[o]>i[o],f=[-c.x,-c.y],e=(e||(f[n]=l[s]),[0,0]),s=[-p.x,-p.y],g=E(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[n]+=i[o]-p[o]:e[n]+=p[o]+g),s[1-n]+=c[r]/2-p[r]/2,l.setPosition(f),h.setPosition(e),u.setPosition(s),{x:0,y:0}),c=(f[o]=(d?i:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-n]),h.__rectSize=i[o],d?((e={x:0,y:0})[o]=Math.max(i[o]-p[o]-g,0),e[r]=f[r],h.setClipPath(new Iv({shape:e})),h.__rectSize=e[o]):u.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&hr(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},Lp.prototype._pageGo=function(t,e,i){null!=(t=this._getPageInfo(e)[t])&&i.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Lp.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup,n=(f(["pagePrev","pageNext"],function(n){var o=null!=e[n+"DataIndex"],n=i.childOfName(n);n&&(n.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),n.cursor=o?"pointer":"default")}),i.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,r=null!=r?r+1:0,a=e.pageCount;n&&o&&n.setStyle("text",b(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},Lp.prototype._getPageInfo=function(t){function e(t){var e,i;if(t)return{s:i=(e=t.getBoundingRect())[s]+t[s],e:i+e[a],i:t.__legendDataIndex}}function i(t,e){return t.e>=e&&t.s<=e+r}var n=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,t=t.getOrient().index,a=WC[t],s=XC[t],n=this._findTargetItemIndex(n),l=o.children(),h=l[n],u=l.length,c=u?1:0,p={contentPosition:[o.x,o.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(h){o=e(h),p.contentPosition[t]=-o.s;for(var d=n+1,f=o,g=o,y=null;d<=u;++d)(!(y=e(l[d]))&&g.e>f.s+r||y&&!i(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=n-1,f=o,g=o,y=null;-1<=d;--d)(y=e(l[d]))&&i(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},Lp.prototype._findTargetItemIndex=function(t){var e,i;return this._showController?(this.getContentGroup().eachChild(function(n,o){n=n.__legendDataIndex,null==i&&null!=n&&(i=o),n===t&&(e=o)}),null!=e?e:i):0},Lp.type="legend.scroll",Lp);Du(function(t){Du(Dp),t.registerComponentModel(YC),t.registerComponentView(GC),t.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})})});var UC=on(),jC=a,qC=$f;Ep.prototype.render=function(t,e,i,n){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=i,!n&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,n=this._group,o=this._handle,s&&"hide"!==s?(n&&n.show(),o&&o.show(),this.makeElOption(s={},a,t,e,i),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),n?(r=_(Rp,e,r),this.updatePointerEl(n,s,r),this.updateLabelEl(n,s,r,e)):(n=this._group=new Jy,this.createPointerEl(n,s,t,e),this.createLabelEl(n,s,t,e),i.getZr().add(n)),zp(n,e,!0),this._renderHandle(a)):(n&&n.hide(),o&&o.hide()))},Ep.prototype.remove=function(t){this.clear(t)},Ep.prototype.dispose=function(t){this.clear(t)},Ep.prototype.determineAnimation=function(t,e){var i,n=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===n||null==n?(i=this.animationThreshold,r&&o.getBandWidth()>i||!!e&&(r=pp(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>i)):!0===n)},Ep.prototype.makeElOption=function(t,e,i,n,o){},Ep.prototype.createPointerEl=function(t,e,i,n){var o=e.pointer;o&&(o=UC(t).pointerEl=new gx[o.type](jC(e.pointer)),t.add(o))},Ep.prototype.createLabelEl=function(t,e,i,n){e.label&&(e=UC(t).labelEl=new Pv(jC(e.label)),t.add(e),Np(e,n))},Ep.prototype.updatePointerEl=function(t,e,i){(t=UC(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),i(t,{shape:e.pointer.shape}))},Ep.prototype.updateLabelEl=function(t,e,i,n){(t=UC(t).labelEl)&&(t.setStyle(e.label.style),i(t,{x:e.label.x,y:e.label.y}),Np(t,n))},Ep.prototype._renderHandle=function(t){var e,i,n,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,n=this._handle=Dr(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_g(t.event)},onmousedown:qC(this._onHandleDragMove,this,0,0),drift:qC(this._onHandleDragMove,this),ondragend:qC(this._onHandleDragEnd,this)}),i.add(n)),zp(n,e,!1),n.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=o.get("size"))||(a=[a,a]),n.scaleX=a[0]/2,n.scaleY=a[1]/2,_l(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(n&&i.remove(n),this._handle=null))},Ep.prototype._moveHandleToValue=function(t,e){Rp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Bp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Ep.prototype._onHandleDragMove=function(t,e){var i=this._handle;i&&(this._dragging=!0,t=this.updateHandleTransform(Bp(i),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,i.stopAnimation(),i.attr(Bp(t)),UC(i).lastProp=null,this._doDispatchAxisPointer())},Ep.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}]}))},Ep.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Ep.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,i=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xl(this,"_doDispatchAxisPointer")},Ep.prototype.doClear=function(){},Ep.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},i(Hp,ZC=Ep),Hp.prototype.makeElOption=function(t,e,i,n,o){var r,a,s=i.axis,l=s.grid,h=n.get("type"),u=Wp(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(h&&"none"!==h&&(r=(a=n).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=QC[h](s,c,u)).style=r,t.graphicKey=a.type,t.pointer=a),$c(l.model,i));h=e,s=t,c=p,u=i,r=n,a=o,l=fC.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),Fp(s,u,r,a,{position:Yp(u.axis,h,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Hp.prototype.getHandleTransform=function(t,e,i){var n=$c(e.axis.grid.model,e,{labelInside:!1}),i=(n.labelMargin=i.get(["handle","margin"]),Yp(e.axis,t,n));return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},Hp.prototype.updateHandleTransform=function(t,e,i,n){var i=i.axis,o=i.grid,r=i.getGlobalExtent(!0),o=Wp(o,i).getOtherAxis(i).getGlobalExtent(),i="x"===i.dim?0:1,a=[t.x,t.y],e=(a[i]+=e[i],a[i]=Math.min(r[1],a[i]),a[i]=Math.max(r[0],a[i]),(o[1]+o[0])/2),r=[e,e];return r[i]=a[i],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][i]}};var ZC,KC=Hp,QC={line:function(t,e,i){var n;return n=[e,i[0]],e=[e,i[1]],i=Xp(t),{type:"Line",subPixelOptimize:!0,shape:{x1:n[i=i||0],y1:n[1-i],x2:e[i],y2:e[1-i]}}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:(e=[e-n/2,i[0]],i=[n,o],n=Xp(t),{x:e[n=n||0],y:e[1-n],width:i[n],height:i[1-n]})}}};i(Gp,$C=aw),Gp.type="axisPointer",Gp.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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 $C,JC=Gp,tI=on(),eI=f;i(Kp,iI=Cb),Kp.prototype.render=function(t,e,i){var e=e.getComponent("tooltip"),n=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Up("axisPointer",i,function(t,e,i){"none"!==n&&("leave"===t||0<=n.indexOf(t))&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Kp.prototype.remove=function(t,e){Zp("axisPointer",e)},Kp.prototype.dispose=function(t,e){Zp("axisPointer",e)},Kp.type="axisPointer";var iI,nI=Kp,oI=on();i(rd,rI=aw),rd.type="tooltip",rd.dependencies=["axisPointer"],rd.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 rI,aI=rd,sI=sd(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),lI=ld(sd(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),hI=ld(sI,"transform"),uI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Pf.transform3dSupported?"will-change:transform;":"");pd.prototype.update=function(t){this._container||(n=this._api.getDom(),i="position",i=(e=(e=n).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?i?e[i]:e:null,"absolute"!==(e=n.style).position&&"absolute"!==i&&(e.position="relative"));var e,i,n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},pd.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,o=this._styleCoord;i.innerHTML?n.cssText=uI+ud(t,!this._firstShow,this._longHide)+hd(o[0],o[1],!0)+"border-color:"+_a(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},pd.prototype.setContent=function(t,e,i,n,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,h,c,p="";if(b(o)&&"item"===i.get("trigger")&&!ad(i)&&(i=i,n=n,p=b(o=o)&&"inside"!==o?(a=i.get("backgroundColor"),i=i.get("borderWidth"),n=_a(n),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",d=Math.max(1.5*Math.round(i),6),s="",l=hI+":",-1<u(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==o?225:45)+"deg)"),c=c*Math.PI/180,c=(h=d+i)*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),n=n+" solid "+i+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;z-index:-1;",(s+=";"+o+":-"+Math.round(100*((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2))/100+"px")+";"+l+";","border-bottom:"+n,"border-right:"+n,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))r.innerHTML=t+p;else if(t){r.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==r&&r.appendChild(t[f]);p&&r.childNodes.length&&((d=document.createElement("div")).innerHTML=p,r.appendChild(d))}}},pd.prototype.setEnterable=function(t){this._enterable=t},pd.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},pd.prototype.moveTo=function(t,e){var i,n=this._styleCoord;cd(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]&&(i=this.el.style,f(hd(n[0],n[1]),function(t){i[t[0]]=t[1]}))},pd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},pd.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Pf.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},pd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($f(this.hide,this),t)):this.hide())},pd.prototype.isShow=function(){return this._show},pd.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var cI=pd;dd.prototype.update=function(t){t=t.get("alwaysShowContent"),t&&this._moveIfResized(),this._alwaysShowContent=t},dd.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},dd.prototype.setContent=function(t,e,i,n,o){var r=this,a=(M(t)&&Xi(""),this.el&&this._zr.remove(this.el),i.getModel("textStyle")),s=(this.el=new Pv({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Js(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=i.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.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})},dd.prototype.setEnterable=function(t){this._enterable=t},dd.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=gd(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},dd.prototype.moveTo=function(t,e){var i,n,o=this.el;o&&(yd(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],i=fd((n=o.style).borderWidth||0),n=gd(n),o.x=t+i+n.left,o.y=e+i+n.top,o.markRedraw())},dd.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},dd.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},dd.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout($f(this.hide,this),t)):this.hide())},dd.prototype.isShow=function(){return this._show},dd.prototype.dispose=function(){this._zr.remove(this.el)};var pI,dI=dd,fI=new Iv({shape:{x:-1,y:-1,width:2,height:2}}),gI=(i(md,pI=Cb),md.prototype.init=function(t,e){var i;!Pf.node&&e.getDom()&&(t=t.getComponent("tooltip"),i=this._renderMode="auto"===(i=t.get("renderMode"))?Pf.domSupported?"html":"richText":i||"html",this._tooltipContent="richText"===i?new dI(e):new cI(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},md.prototype.render=function(t,e,i){!Pf.node&&i.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?_l(this,"_updatePosition",50,"fixRate"):xl(this,"_updatePosition"))},md.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Up("itemTooltip",this._api,$f(function(e,i,n){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},md.prototype._keepShow=function(){var t,e=this._tooltipModel,i=this._ecModel,n=this._api,o=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||t.manuallyShowTip(e,i,n,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},md.prototype.manuallyShowTip=function(t,e,i,n){var o,r,a,s;n.from!==this.uid&&!Pf.node&&i.getDom()&&(o=_d(n,i),this._ticket="",s=n.dataByCoordSys,(r=function(t,e,i){var n=an(t).queryOptionMap,o=n.keys()[0];if(o&&"series"!==o){var r,e=sn(e,o,n.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(i.getViewOfComponentModel(e).group.traverse(function(e){var i=Rv(e).tooltipConfig;if(i&&i.name===t.name)return r=e,!0}),r))return{componentMainType:o,componentIndex:e.componentIndex,el:r}}}(n,e,i))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:n.position,positionDefault:"bottom"},o)):n.tooltip&&null!=n.x&&null!=n.y?((a=fI).x=n.x,a.y=n.y,a.update(),Rv(a).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:a},o)):s?this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o):null!=n.seriesIndex?this._manuallyAxisShowTip(t,e,i,n)||(a=(r=Qp(n,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:n.position,positionDefault:"bottom"},o)):null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o)))},md.prototype.manuallyHideTip=function(t,e,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(_d(n,i))},md.prototype._manuallyAxisShowTip=function(t,e,i,n){var o=n.seriesIndex,r=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a&&(a=e.getSeriesByIndex(o))&&(e=vd([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:n.position}),!0},md.prototype._tryShow=function(t,e){var i,n,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(i=t.dataByCoordSys)&&i.length?this._showAxisTooltip(i,t):r?"legend"!==Rv(r).ssrType&&(Bl(r,function(t){return null!=Rv(t).dataIndex?(n=t,1):null!=Rv(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),n?this._showSeriesItemTooltip(t,n,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},md.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=$f(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},md.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,o=[e.offsetX,e.offsetY],r=vd([e.tooltipOption],n),a=this._renderMode,s=[],h=Gs("section",{blocks:[],noHeader:!0}),u=[],c=new bb,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,o,r=i.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;r&&null!=p&&(e=Vp(p,r.axis,i,t.seriesDataIndices,t.valueLabelOpt),o=Gs("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),h.blocks.push(o),f(t.seriesDataIndices,function(h){var d,f=i.getSeriesByIndex(h.seriesIndex),h=h.dataIndexInside,g=f.getDataParams(h);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Mu(r.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",_a(g.color),a),(d=(h=vs(f.formatTooltip(h,!0,null))).frag)&&(f=vd([f],n).get("valueFormatter"),o.blocks.push(f?l({valueFormatter:f},d):d)),h.text&&u.push(h.text),s.push(g))}))})}),h.blocks.reverse(),u.reverse(),e.position),e=r.get("order"),e=Ks(h,c,a,e,i.get("useUTC"),r.get("textStyle")),e=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),d=u.join(e);this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,d,s,Math.random()+"",o[0],o[1],p,null,c)})},md.prototype._showSeriesItemTooltip=function(t,e,i){var n,o,r,a,s,h=this._ecModel,e=Rv(e),u=e.seriesIndex,c=h.getSeriesByIndex(u),p=e.dataModel||c,d=e.dataIndex,e=e.dataType,f=p.getData(e),g=this._renderMode,y=t.positionDefault,m=vd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(n=p.getDataParams(d,e),o=new bb,n.marker=o.makeTooltipMarker("item",_a(n.color),g),y=vs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?Ks(e?l({valueFormatter:e},r):r,o,g,c,h.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,n,s,t.offsetX,t.offsetY,t.position,t.target,o)}),i({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:u,from:this.uid}))},md.prototype._showComponentItemTooltip=function(t,e,i){var n="html"===this._renderMode,o=Rv(e),r=o.tooltipConfig.option||{},s=r.encodeHTMLContent,s=(b(r)&&(r={content:r,formatter:r},s=!0),s&&n&&r.content&&((r=a(r)).content=yt(r.content)),[r]),n=this._ecModel.getComponent(o.componentMainType,o.componentIndex),o=(n&&s.push(n),s.push({formatter:r.content}),t.positionDefault),l=vd(s,this._tooltipModel,o?{position:o}:null),h=l.get("content"),u=Math.random()+"",c=new bb;this._showOrMove(l,function(){var i=a(l.get("formatterParams")||{});this._showTooltipContent(l,h,i,u,t.offsetX,t.offsetY,t.position,e,c)}),i({type:"showTip",from:this.uid})},md.prototype._showTooltipContent=function(t,e,i,n,o,r,a,s,l){var h,u,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&((h=this._tooltipContent).setEnterable(t.get("enterable")),u=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([o,r],i,t.get("trigger"),t.get("borderColor")).color,u&&(e=b(u)?(p=t.ecModel.get("useUTC"),e=u,ma(e=(d=x(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Qr(d.axisValue,e,p):e,i,!0)):w(u)?(d=$f(function(e,n){e===this._ticket&&(h.setContent(n,l,t,c,a),this._updatePosition(t,a,o,r,h,i,s))},this),this._ticket=n,u(i,n,d)):u),h.setContent(e,l,t,c,a),h.show(t,c),this._updatePosition(t,a,o,r,h,i,s))},md.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||x(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:x(e)?void 0:{color:n||e.color||e.borderColor}},md.prototype._updatePosition=function(t,e,i,n,o,r,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([i,n],r,o.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(i=Ai(e[0],l),n=Ai(e[1],h)):M(e)?((r=e).width=u[0],r.height=u[1],i=(r=ba(r,{width:l,height:h})).x,n=r.y,p=c=null):(i=(s=b(e)&&a?function(t,e,i,n){var o=i[0],r=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,h=e.width,u=e.height;switch(t){case"inside":s=e.x+h/2-o/2,l=e.y+u/2-r/2;break;case"top":s=e.x+h/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+h/2-o/2,l=e.y+u+a;break;case"left":s=e.x-o-a,l=e.y+u/2-r/2;break;case"right":s=e.x+h+a,l=e.y+u/2-r/2}return[s,l]}(e,d,u,t.get("borderWidth")):function(t,e,i,n,o,r,a){var i=i.getSize(),s=i[0],i=i[1];return null!=r&&(n<t+s+r+2?t-=s+r:t+=r),null!=a&&(o<e+i+a?e-=i+a:e+=a),[t,e]}(i,n,o,l,h,c?null:20,p?null:20))[0],n=s[1]),c&&(i-=xd(c)?u[0]/2:"right"===c?u[0]:0),p&&(n-=xd(p)?u[1]/2:"bottom"===p?u[1]:0),ad(t)&&(r=i,a=n,e=l,d=h,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),i=(s=[r,a])[0],n=s[1]),o.moveTo(i,n)},md.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&f(i,function(i,r){var i=i.dataByAxis||[],a=(t[r]||{}).dataByAxis||[];(o=o&&i.length===a.length)&&f(i,function(t,i){var i=a[i]||{},r=t.seriesDataIndices||[],s=i.seriesDataIndices||[];(o=o&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===s.length)&&f(r,function(t,e){e=s[e],o=o&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),n&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,i=e[t],t=n[t];i&&t&&t.data!==i.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},md.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},md.prototype.dispose=function(t,e){!Pf.node&&e.getDom()&&(xl(this,"_updatePosition"),this._tooltipContent.dispose(),Zp("itemTooltip",e))},md.type="tooltip",md);Du(function(t){Du(od),t.registerComponentModel(aI),t.registerComponentView(gI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Z),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Z)});var yI,mI=on(),vI=(i(bd,yI=aw),bd.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},bd.prototype.isAnimationEnabled=function(){var t;return!Pf.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},bd.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},bd.prototype._mergeOption=function(t,e,i,n){var o=this.mainType;i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),r=mI(t)[o];i&&i.data?(r?r._mergeOption(i,e,!0):(n&&wd(i),f(i.data,function(t){t instanceof Array?(wd(t[0]),wd(t[1])):wd(t)}),l(r=this.createMarkerModelFromSeries(i,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),r.__hostSeries=t),mI(t)[o]=r):mI(t)[o]=null},this)},bd.prototype.formatTooltip=function(t,e,i){var n=this.getData(),o=this.getRawValue(t),n=n.getName(t);return Gs("section",{header:this.name,blocks:[Gs("nameValue",{name:n,value:o,noName:!n,noValue:null==o})]})},bd.prototype.getData=function(){return this._data},bd.prototype.setData=function(t){this._data=t},bd.prototype.getDataParams=function(t,e){return t=Kw.prototype.getDataParams.call(this,t,e),e=this.__hostSeries,e&&(t.seriesId=e.id,t.seriesName=e.name,t.seriesType=e.subType),t},bd.getMarkerModelFromSeries=function(t,e){return mI(t)[e]},bd.type="marker",bd.dependencies=["series","grid","polar","geo"],bd);p(vI,Kw.prototype),i(Sd,_I=vI),Sd.prototype.createMarkerModelFromSeries=function(t,e,i){return new Sd(t,e,i)},Sd.type="markPoint",Sd.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var _I,xI,wI=Sd,bI={min:_(Td,"min"),max:_(Td,"max"),average:_(Td,"average"),median:_(Td,"median")},SI=on(),g_=(i(kd,xI=Cb),kd.prototype.init=function(){this.markerGroupMap=X()},kd.prototype.render=function(t,e,i){var n=this,o=this.markerGroupMap;o.each(function(t){SI(t).keep=!1}),e.eachSeries(function(t){var o=vI.getMarkerModelFromSeries(t,n.type);o&&n.renderSeries(t,o,e,i)}),o.each(function(t){SI(t).keep||n.group.remove(t.group)})},kd.prototype.markKeep=function(t){SI(t).keep=!0},kd.prototype.toggleBlurSeries=function(t,e){var i=this;f(t,function(t){(t=vI.getMarkerModelFromSeries(t,i.type))&&t.getData().eachItemGraphicEl(function(t){t&&(e?_o:xo)(t)})})},kd.type="marker",kd);i(Dd,TI=g_),Dd.prototype.updateTransform=function(t,e,i){e.eachSeries(function(t){var e=vI.getMarkerModelFromSeries(t,"markPoint");e&&(Ad(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())},this)},Dd.prototype.renderSeries=function(t,e,i,n){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,s=s.get(r)||s.set(r,new zM),h=function(t,e,i){var n;n=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new wT(n,i),i=g(i.get("data"),_(Md,e));return t&&(i=m(i,_(Cd,t))),t=function(t,e){return t?function(t,i,n,o){return Ss(o<2?t.coord&&t.coord[o]:t.value,e[o])}:function(t,i,n,o){return Ss(t.value,e[o])}}(!!t,n),o.initData(i,null,t),o}(o,t,e);e.setData(h),Ad(e.getData(),t,n),h.each(function(t){var i=h.getItemModel(t),n=i.getShallow("symbol"),o=i.getShallow("symbolSize"),r=i.getShallow("symbolRotate"),s=i.getShallow("symbolOffset"),l=i.getShallow("symbolKeepAspect"),u=((w(n)||w(o)||w(r)||w(s))&&(u=e.getRawValue(t),c=e.getDataParams(t),w(n)&&(n=n(u,c)),w(o)&&(o=o(u,c)),w(r)&&(r=r(u,c)),w(s))&&(s=s(u,c)),i.getModel("itemStyle").getItemStyle()),c=Rl(a,"color");u.fill||(u.fill=c),h.setItemVisual(t,{symbol:n,symbolSize:o,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:u})}),s.updateData(h),this.group.add(s.group),h.eachItemGraphicEl(function(t){t.traverse(function(t){Rv(t).dataModel=e})}),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},Dd.type="markPoint";var TI,MI=Dd;Du(function(t){t.registerComponentModel(wI),t.registerComponentView(MI),t.registerPreprocessor(function(t){!function(t,e){if(t)for(var i=x(t)?t:[t],n=0;n<i.length;n++)if(i[n]&&i[n].markPoint)return 1}(t.series)||(t.markPoint=t.markPoint||{})})}),Du(yc);var CI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},II=(Pd.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!T(e)&&this._condVal.test(t+"")},Pd);Od.prototype.evaluate=function(){return this.value};var kI=Od;Ld.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var AI=Ld;Ed.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var DI=Ed;Rd.prototype.evaluate=function(){return!this.child.evaluate()};var PI=Rd;Nd.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),i=t?this.valueParser(e):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(t?i:e))return!1;return!0};var OI=Nd;Vd.prototype.evaluate=function(){return this._cond.evaluate()};var LI=Vd,EI={type:"echarts:filter",transform:function(t){for(var e,i,n=t.upstream,o=(t=t.config,i={valueGetterAttrMap:X({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(q(t,"dimension")||Xi(""),n.getDimensionInfo(e));return t||Xi(""),{dimIdx:t.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}},new LI(t,i)),r=[],a=0,s=n.count();a<s;a++)e=n.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},RI={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Ui(t),i=(t.length||Xi(""),[]),t=(f(t,function(t){var n=t.dimension,o=t.order,r=t.parser,t=t.incomparable,n=(null==n&&Xi(""),"asc"!==o&&"desc"!==o&&Xi(""),t&&"min"!==t&&"max"!==t&&Xi(""),"asc"!==o&&"desc"!==o&&Xi(""),e.getDimensionInfo(n)),a=(n||Xi(""),r?Ts(r):null);r&&!a&&Xi(""),i.push({dimIdx:n.index,parser:a,comparator:new lb(o,t)})}),e.sourceFormat),n=(t!==fw&&t!==gw&&Xi(""),[]),o=0,r=e.count();o<r;o++)n.push(e.getRawDataItem(o));return n.sort(function(t,n){for(var o=0;o<i.length;o++){var r=i[o],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx),r=(r.parser&&(a=r.parser(a),s=r.parser(s)),r.comparator.evaluate(a,s));if(0!==r)return r}return 0}),{data:n}}};Du(function(t){t.registerTransform(EI),t.registerTransform(RI)});var NI,BI=Math.sin,zI=Math.cos,FI=Math.PI,VI=2*Math.PI,YI=180/FI,HI=(Yd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},Yd.prototype.moveTo=function(t,e){this._add("M",t,e)},Yd.prototype.lineTo=function(t,e){this._add("L",t,e)},Yd.prototype.bezierCurveTo=function(t,e,i,n,o,r){this._add("C",t,e,i,n,o,r)},Yd.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},Yd.prototype.arc=function(t,e,i,n,o,r){this.ellipse(t,e,i,i,0,n,o,r)},Yd.prototype.ellipse=function(t,e,i,n,o,r,a,s){var l,h=a-r,s=!s,u=Math.abs(h),c=ke(u-VI)||(s?VI<=h:VI<=-h),p=!1,p=!!c||!ke(u)&&FI<=(0<h?h%VI:h%VI+VI)==!!s,u=t+i*zI(r),h=e+n*BI(r),o=(this._start&&this._add("M",u,h),Math.round(o*YI));c?(c=1/this._p,this._add("A",i,n,o,1,+s,t+i*zI(r+(l=(s?1:-1)*(VI-c))),e+n*BI(r+l)),.01<c&&this._add("A",i,n,o,0,+s,u,h)):(r=t+i*zI(a),l=e+n*BI(a),this._add("A",i,n,o,+p,+s,r,l))},Yd.prototype.rect=function(t,e,i,n){this._add("M",t,e),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},Yd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},Yd.prototype._add=function(t,e,i,n,o,r,a,s,l){for(var h=[],u=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);h.push(Math.round(p*u)/u)}this._d.push(t+h.join(" ")),this._start="Z"===t},Yd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},Yd.prototype.getStr=function(){return this._str},Yd),WI="none",XI=Math.round,GI=["lineCap","miterLimit","lineJoin"],UI=g(GI,function(t){return"stroke-"+t.toLowerCase()}),jI="http://www.w3.org/2000/svg",qI="http://www.w3.org/1999/xlink",ZI="http://www.w3.org/2000/xmlns/",KI="http://www.w3.org/XML/1998/namespace",QI="ecmeta_",$I=0,JI={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"},tk="transform-origin",ek={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},ik=Math.round,nk={circle:[(NI=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,i){for(var n=0;n<NI.length;n++){var o=NI[n],r=t[o[0]];null!=r&&(e[o[1]]=ik(r*i)/i)}})],polyline:[rf,af],polygon:[rf,af]},ok=58,rk=120,ak=Xd("",""),sk=0;If.prototype.getType=function(){return this.type},If.prototype.getViewportRoot=function(){return this._viewport},If.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},If.prototype.getSvgDom=function(){return this._svgDom},If.prototype.refresh=function(){var t,e,i,n,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",xf(e=this._oldVNode,i=t)?Cf(e,i):(o=gf(n=e.elm),wf(i),null!==o&&(pf(o,i.elm,yf(n)),Sf(o,[e],0,0))),this._oldVNode=t)},If.prototype.renderOneToVNode=function(t){return lf(t,Ud(this._id))},If.prototype.renderToVNode=function(t){t=t||{};var e,i,n,o,r,a=this.storage.getDisplayList(!0),s=this._width,l=this._height,h=Ud(this._id),u=(h.animation=t.animation,h.willUpdate=t.willUpdate,h.compress=t.compress,h.emphasis=t.emphasis,[]),c=this._bgVNode=function(t,e,i,n){var o;return i&&"none"!==i&&(o=Xd("rect","bg",{width:t,height:e,x:"0",y:"0"}),Re(i)?hf({fill:i},o.attrs,"fill",n):Oe(i)?uf({style:{fill:i},dirty:Z,getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",n):(n=Ie(i),i=n.color,n=n.opacity,o.attrs.fill=i,n<1&&(o.attrs["fill-opacity"]=n))),o}(s,l,this._backgroundColor,h),c=(c&&u.push(c),t.compress?null:this._mainVNode=Xd("g","main",{},[])),a=(this._paintList(a,h,c?c.children:u),c&&u.push(c),g(v(h.defs),function(t){return h.defs[t]}));return a.length&&u.push(Xd("defs","defs",{},a)),t.animation&&(e=h.cssNodes,i=h.cssAnims,n=(c=(c={newline:!0})||{}).newline?"\n":"",o=" {"+n,r=n+"}",c=g(v(e),function(t){return t+o+g(v(e[t]),function(i){return i+":"+e[t][i]+";"}).join(n)+r}).join(n),a=g(v(i),function(t){return"@keyframes "+t+o+g(v(i[t]),function(e){return e+o+g(v(i[t][e]),function(n){var o=i[t][e][n];return n+":"+(o="d"===n?'path("'+o+'")':o)+";"}).join(n)+r}).join(n)+r}).join(n),c=c||a?["<![CDATA[",c,a,"]]>"].join(n):"")&&(a=Xd("style","stl",{},[],c),u.push(a)),jd(s,l,u,t.useViewBox)},If.prototype.renderToString=function(t){return Gd(this.renderToVNode({animation:E((t=t||{}).cssAnimation,!0),emphasis:E(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:E(t.useViewBox,!0)}),{newline:!0})},If.prototype.setBackgroundColor=function(t){this._backgroundColor=t},If.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},If.prototype._paintList=function(t,e,i){for(var n,o,r,a,s,l,h,u=t.length,c=[],p=0,d=0,f=0;f<u;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=T&&T.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!T||y[_]!==T[_]);_--);for(var x=v-1;_<x;x--)n=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(o=y[w],r=b,h=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(h=l[o.id])||(s={id:h=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=h]=Xd("clipPath",h,s,[sf(o,a)])),r["clip-path"]=Ne(h),Xd("g","clip-g-"+d++,b,[]));(n?n.children:i).push(S),n=c[p++]=S}var T=y,v=lf(g,e);v&&(n?n.children:i).push(v)}}},If.prototype.resize=function(t,e){var i=this._opts,n=this.root,o=this._viewport;null!=t&&(i.width=t),null!=e&&(i.height=e),n&&o&&(o.style.display="none",t=Gl(n,0,i),e=Gl(n,1,i),o.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,o&&((n=o.style).width=t+"px",n.height=e+"px"),Oe(this._backgroundColor)?this.refresh():((i=this._svgDom)&&(i.setAttribute("width",t),i.setAttribute("height",e)),(o=this._bgVNode&&this._bgVNode.elm)&&(o.setAttribute("width",t),o.setAttribute("height",e))))},If.prototype.getWidth=function(){return this._width},If.prototype.getHeight=function(){return this._height},If.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},If.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},If.prototype.toDataURL=function(t){var e=this.renderToString(),i="data:image/svg+xml;";return t?(e=yy(e))&&i+"base64,"+e:i+"charset=UTF-8,"+encodeURIComponent(e)},Mi("svg",If),e.Axis=Gx,e.ChartView=Ab,e.ComponentModel=aw,e.ComponentView=Cb,e.List=wT,e.Model=Ox,e.PRIORITY=$b,e.SeriesModel=Mb,e.color=cy,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_"+tT++,f(e,function(e){e.group=t})),$S[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.6.0"},e.disConnect=Qb,e.disconnect=vh,e.dispose=function(t){b(t)?t=QS[t]:t instanceof HS||(t=_h(t)),t instanceof HS&&!t.isDisposed()&&t.dispose()},e.env=Pf,e.extendChartView=function(t){return t=Ab.extend(t),Ab.registerClass(t),t},e.extendComponentModel=function(t){return t=aw.extend(t),aw.registerClass(t),t},e.extendComponentView=function(t){return t=Cb.extend(t),Cb.registerClass(t),t},e.extendSeriesModel=function(t){return t=Mb.extend(t),Mb.registerClass(t),t},e.format=kx,e.getCoordinateSystemDimensions=function(t){if(t=Ow.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=_h,e.getInstanceById=function(t){return QS[t]},e.getMap=function(t){var e=gS.getMap;return e&&e(t)},e.graphic=Dx,e.helper=Jb,e.init=function(t,e,i){var n=!(i&&i.ssr);if(n){var o=_h(t);if(o)return o}return(o=new HS(t,e,i)).id="ec_"+JS++,QS[o.id]=o,n&&ln(t,eT,o.id),BS(o),fS.trigger("afterinit",o),o},e.innerDrawElementOnCanvas=oh,e.matrix=bg,e.number=Ix,e.parseGeoJSON=Vu,e.parseGeoJson=Vu,e.registerAction=Ch,e.registerCoordinateSystem=Ih,e.registerLayout=kh,e.registerLoading=Ph,e.registerLocale=qr,e.registerMap=Oh,e.registerPostInit=Sh,e.registerPostUpdate=Th,e.registerPreprocessor=wh,e.registerProcessor=bh,e.registerTheme=xh,e.registerTransform=Lh,e.registerUpdateLifecycle=Mh,e.registerVisual=Ah,e.setCanvasCreator=function(t){n({createCanvas:t})},e.setPlatformAPI=n,e.throttle=vl,e.time=mm,e.use=Du,e.util=Mx,e.vector=sg,e.version="5.5.1",e.zrUtil=og,e.zrender=rm})}).call(e,i(305).Buffer)},2130:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},o=[];n._withStripped=!0},2131:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.benefitBtnShow,expression:"benefitBtnShow"}],class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"specialShowBox"},[i("div",{staticClass:"numShow"},[i("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][n])/100)+"\n ")]),t._v(" "),i("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),i("div",{staticClass:"titleShow"},[i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?i("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?i("span",[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()])]):t._e()]})]:[i("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"textShowBox"},[i("div",{staticClass:"iconblock"},[i("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),i("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"moneyShowBox"},[i("div",{staticClass:"numShow"},[i("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.getNum(t.selectIndex,n,e))+"\n ")]),t._v(" "),i("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?i("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?i("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()]):t._e()]})],2)]],2),t._v(" "),i("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),i("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?i("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e(),t._v(" "),t.tip?i("div",{staticClass:"tipContent"},[i("div",{staticClass:"tip",domProps:{innerHTML:t._s(t.tip)}})]):t._e()],1)},o=[];n._withStripped=!0},2132:function(t,e,i){"use strict";function n(t){s||i(2133)}var o=i(1588),r=i(2134),a=i(1),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-4eebaa8b",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=h.exports},2133:function(t,e){},2134:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[i("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr"},[t._l(e,function(e,o){return[t.showCol(o)?i("td",{key:"td-"+n+"-"+o,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},o=[];n._withStripped=!0},2135:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=this,i=e.$createElement,n=e._self._c||i;return e.isShowChart?n("div",[n("benefit",{attrs:{renderData:e.renderData,benefitBtnShow:e.benefitBtnShow,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,tip:e.tip,percentageTypes:e.percentageTypes,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(" "),n("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),n("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},o=[];n._withStripped=!0},22:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},23:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},24:function(t,e,i){var n=i(29);t.exports=function(t){return Object(n(t))}},25:function(t,e){e.f={}.propertyIsEnumerable},26:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},27:function(t,e,i){var n=i(7).f,o=i(6),r=i(3)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},279:function(t,e,i){"use strict";e.a={props:{title:{type:String},subtitle:{type:String},cancelTxt:{type:String,default:""},confirmTxt:{type:String,default:""},swipeTime:{type:Number,default:2500},maskClosable:{type:Boolean,default:!0},confirmColor:{type:String,default:""},cancelColor:{type:String,default:""}},computed:{_cancelTxt:function(){return this.cancelTxt||"取消"},_confirmTxt:function(){return this.confirmTxt||"确定"}}}},28:function(t,e,i){t.exports={default:i(83),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,i){var n=i(32)("wks"),o=i(23),r=i(2).Symbol,a="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=a&&r[t]||(a?r:o)("Symbol."+t))}).store=n},30:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},304:function(t,e,i){"use strict";var n={value:"value",text:"text",order:"order",children:"children"};e.a={props:{data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},alias:{type:Object,default:function(){return{}}}},computed:{valueKey:function(){return this.alias.value||n.value},textKey:function(){return this.alias.text||n.text},orderKey:function(){return n.order},childrenKey:function(){return this.alias.children||n.children},merge:function(){return[this.data,this.selectedIndex]}},watch:{merge:function(t){this.setData(t[0],t[1])}}}},305:function(t,e,i){"use strict";(function(t){function n(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=r.prototype):(null===t&&(t=new r(e)),t.length=e),t}function r(t,e,i){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return a(this,t,e,i)}function a(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,i,n):"string"==typeof e?u(t,e,i):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,i,n){return s(e),e<=0?o(t,e):void 0!==i?"string"==typeof n?o(t,e).fill(i,n):o(t,e).fill(i):o(t,e)}function h(t,e){if(s(e),t=o(t,e<0?0:0|f(e)),!r.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function u(t,e,i){if("string"==typeof i&&""!==i||(i="utf8"),!r.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,i);t=o(t,n);var a=t.write(e,i);return a!==n&&(t=t.slice(0,a)),t}function c(t,e){var i=e.length<0?0:0|f(e.length);t=o(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function p(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),r.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=r.prototype):t=c(t,e),t}function d(t,e){if(r.isBuffer(e)){var i=0|f(e.length);return t=o(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?o(t,0):c(t,e);if("Buffer"===e.type&&$(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>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),r.alloc(+t)}function y(t,e){if(r.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 i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return j(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return D(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return I(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function _(t,e,i,n,o){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(o)return-1;i=t.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof e&&(e=r.from(e,n)),r.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,o);if("number"==typeof e)return e&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,o){function r(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}var h;if(o){var u=-1;for(h=i;h<s;h++)if(r(t,h)===r(e,-1===u?0:h-u)){if(-1===u&&(u=h),h-u+1===l)return u*a}else-1!==u&&(h-=h-u),u=-1}else for(i+l>s&&(i=s-l),h=i;h>=0;h--){for(var c=!0,p=0;p<l;p++)if(r(t,h+p)!==r(e,p)){c=!1;break}if(c)return h}return-1}function w(t,e,i,n){i=Number(i)||0;var o=t.length-i;n?(n=Number(n))>o&&(n=o):n=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function b(t,e,i,n){return q(X(e,t.length-i),t,i,n)}function S(t,e,i,n){return q(G(e),t,i,n)}function T(t,e,i,n){return S(t,e,i,n)}function M(t,e,i,n){return q(j(e),t,i,n)}function C(t,e,i,n){return q(U(e,t.length-i),t,i,n)}function I(t,e,i){return 0===e&&i===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,i))}function k(t,e,i){i=Math.min(t.length,i);for(var n=[],o=e;o<i;){var r=t[o],a=null,s=r>239?4:r>223?3:r>191?2:1;if(o+s<=i){var l,h,u,c;switch(s){case 1:r<128&&(a=r);break;case 2:l=t[o+1],128==(192&l)&&(c=(31&r)<<6|63&l)>127&&(a=c);break;case 3:l=t[o+1],h=t[o+2],128==(192&l)&&128==(192&h)&&(c=(15&r)<<12|(63&l)<<6|63&h)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[o+1],h=t[o+2],u=t[o+3],128==(192&l)&&128==(192&h)&&128==(192&u)&&(c=(15&r)<<18|(63&l)<<12|(63&h)<<6|63&u)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return A(n)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=J));return i}function D(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(127&t[o]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var o="",r=e;r<i;++r)o+=W(t[r]);return o}function L(t,e,i){for(var n=t.slice(e,i),o="",r=0;r<n.length;r+=2)o+=String.fromCharCode(n[r]+256*n[r+1]);return o}function E(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,i,n,o,a){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function N(t,e,i,n){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-i,2);o<r;++o)t[i+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function B(t,e,i,n){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-i,4);o<r;++o)t[i+o]=e>>>8*(n?o:3-o)&255}function z(t,e,i,n,o,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,o){return o||z(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,i,n,23,4),i+4}function V(t,e,i,n,o){return o||z(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,i,n,52,8),i+8}function Y(t){if(t=H(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function H(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 X(t,e){e=e||1/0;for(var i,n=t.length,o=null,r=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!o){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),o=i;continue}i=65536+(o-55296<<10|i-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function G(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function U(t,e){for(var i,n,o,r=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,o=i%256,r.push(o),r.push(n);return r}function j(t){return K.toByteArray(Y(t))}function q(t,e,i,n){for(var o=0;o<n&&!(o+i>=e.length||o>=t.length);++o)e[o+i]=t[o];return o}function Z(t){return t!==t}var K=i(306),Q=i(307),$=i(308);e.Buffer=r,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,r.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=n(),r.poolSize=8192,r._augment=function(t){return t.__proto__=r.prototype,t},r.from=function(t,e,i){return a(null,t,e,i)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(t,e,i){return l(null,t,e,i)},r.allocUnsafe=function(t){return h(null,t)},r.allocUnsafeSlow=function(t){return h(null,t)},r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,o=0,a=Math.min(i,n);o<a;++o)if(t[o]!==e[o]){i=t[o],n=e[o];break}return i<n?-1:n<i?1:0},r.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}},r.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return r.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=r.allocUnsafe(e),o=0;for(i=0;i<t.length;++i){var a=t[i];if(!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},r.byteLength=y,r.prototype._isBuffer=!0,r.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},r.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},r.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},r.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===r.compare(this,t)},r.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t,e,i,n,o){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||i>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,s=i-e,l=Math.min(a,s),h=this.slice(n,o),u=t.slice(e,i),c=0;c<l;++c)if(h[c]!==u[c]){a=h[c],s=u[c];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},r.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},r.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},r.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var o=this.length-e;if((void 0===i||i>o)&&(i=o),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return T(this,t,e,i);case"base64":return M(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;r.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n;if(r.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=r.prototype;else{var o=e-t;n=new r(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},r.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return n},r.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},r.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},r.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,o=1,r=this[t+--n];n>0&&(o*=256);)r+=this[t+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},r.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},r.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=1,r=0;for(this[e]=255&t;++r<i&&(o*=256);)this[e+r]=t/o&255;return e+i},r.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=i-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+i},r.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},r.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.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},r.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.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},r.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=0,a=1,s=0;for(this[e]=255&t;++r<i&&(a*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=i-1,a=1,s=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},r.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),r.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},r.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),r.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},r.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},r.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},r.prototype.writeDoubleLE=function(t,e,i){return V(this,t,e,!0,i)},r.prototype.writeDoubleBE=function(t,e,i){return V(this,t,e,!1,i)},r.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var o,a=n-i;if(this===t&&i<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+i];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},r.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<i;++a)this[a]=t;else{var s=r.isBuffer(t)?t:X(new r(t,n).toString()),l=s.length;for(a=0;a<i-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,i(117))},306:function(t,e,i){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function o(t){var e=n(t),i=e[0],o=e[1];return 3*(i+o)/4-o}function r(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,o=n(t),a=o[0],s=o[1],l=new p(r(t,a,s)),h=0,u=s>0?a-4:a;for(i=0;i<u;i+=4)e=c[t.charCodeAt(i)]<<18|c[t.charCodeAt(i+1)]<<12|c[t.charCodeAt(i+2)]<<6|c[t.charCodeAt(i+3)],l[h++]=e>>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=c[t.charCodeAt(i)]<<2|c[t.charCodeAt(i+1)]>>4,l[h++]=255&e),1===s&&(e=c[t.charCodeAt(i)]<<10|c[t.charCodeAt(i+1)]<<4|c[t.charCodeAt(i+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function s(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function l(t,e,i){for(var n,o=[],r=e;r<i;r+=3)n=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),o.push(s(n));return o.join("")}function h(t){for(var e,i=t.length,n=i%3,o=[],r=0,a=i-n;r<a;r+=16383)o.push(l(t,r,r+16383>a?a:r+16383));return 1===n?(e=t[i-1],o.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],o.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),o.join("")}e.byteLength=o,e.toByteArray=a,e.fromByteArray=h;for(var u=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)u[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},307:function(t,e){e.read=function(t,e,i,n,o){var r,a,s=8*o-n-1,l=(1<<s)-1,h=l>>1,u=-7,c=i?o-1:0,p=i?-1:1,d=t[e+c];for(c+=p,r=d&(1<<-u)-1,d>>=-u,u+=s;u>0;r=256*r+t[e+c],c+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=n;u>0;a=256*a+t[e+c],c+=p,u-=8);if(0===r)r=1-h;else{if(r===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),r-=h}return(d?-1:1)*a*Math.pow(2,r-n)},e.write=function(t,e,i,n,o,r){var a,s,l,h=8*r-o-1,u=(1<<h)-1,c=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:r-1,f=n?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=u):(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>=u?(s=0,a=u):a+c>=1?(s=(e*l-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[i+d]=255&s,d+=f,s/=256,o-=8);for(a=a<<o|s,h+=o;h>0;t[i+d]=255&a,d+=f,a/=256,h-=8);t[i+d-f]|=128*g}},308:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},31:function(t,e,i){var n=i(32)("keys"),o=i(23);t.exports=function(t){return n[t]||(n[t]=o(t))}},32:function(t,e,i){var n=i(0),o=i(2),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(2),o=i(0),r=i(16),a=i(36),s=i(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(39);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,o){var r=e.call(this,t,n,o);if(r)return i=n,r}),i}function o(t){return t?JSON.parse(V()(t)):t}function r(t,e){for(var i in e)t[i]&&"object"===z()(t[i])?r(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function d(t){return void 0===t}function f(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function y(t){return"[object Promise]"===Object.prototype.toString.call(t)||h(t)&&g(t.then)}function m(t,e,i){function n(e){var i=y,n=m;return y=m=void 0,b=e,_=t.apply(n,i)}function o(t,e){return C?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function r(t){if(C)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=o(u,e),S?n(t):_}function s(t){var i=t-w,n=t-b,o=e-i;return T?Math.min(o,v-n):o}function l(t){var i=t-w,n=t-b;return void 0===w||i>=e||i<0||T&&n>=v}function u(){var t=Date.now();if(l(t))return c(t);x=o(u,s(t))}function c(t){return x=void 0,M&&y?n(t):(y=m=void 0,_)}function p(){void 0!==x&&r(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(),i=l(t),r=arguments.length,s=Array(r),h=0;h<r;h++)s[h]=arguments[h];if(y=s,m=this,w=t,i){if(void 0===x)return a(w);if(T)return x=o(u,e),n(w)}return void 0===x&&(x=o(u,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,T=!1,M=!0,C=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,h(i)&&(S=!!i.leading,T="maxWait"in i,v=T?Math.max(+i.maxWait||0,e):v,M="trailing"in i?!!i.trailing:M),g.cancel=p,g.flush=d,g.pending=f,g}function v(t,e,i){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return h(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),m(t,e,{leading:n,trailing:o,maxWait:e})}function _(t){return!!/^1\d{10}$/.test(t)}function x(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,i){return e+" "+i.replace(/(.{4})(?=.)/g,"$1 ")})),t}function w(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function b(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function S(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("&emsp;&emsp;"):3===e?t.split("").join("&ensp;"):t}function T(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);i+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return i}function M(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),o=null;return i?o={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(o={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),o?void 0!==e?"rgba("+o.r+", "+o.g+", "+o.b+", "+e+")":"rgb("+o.r+", "+o.g+", "+o.b+")":""}function C(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var o=0;o<t;o++)n+=e.charAt(Math.floor(Math.random()*i));return n}function I(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),o=i.match(n);return o&&o[2]}function k(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function A(t,e,i){return Math.min(Math.max(t,e),i)}function D(t){var e=/os (\d\d?_\d(_\d)?)/,i=e.exec(t);if(!i)return null;var n=i[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var i=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(i);return decodeURIComponent(n?n[2]:"")}function O(t){return t?f(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function L(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var o=t[n];if(!i.test(o))return;e.push(o.split("?")[0])}return e}function E(t){var e=JSON.parse(V()(t)),i=e.attrModules,n=void 0===i?{}:i,o=e.plan,r=n.applicant,s=n.insureds,l=n.hcpics,h=n.hctext,u=n.makeup,c=n.apphctext,p=n.apphcpics,d={},f=function(t){var e=null,i=null,n=null,o=null,r={},s={},l={};for(var h in t){var u=t[h].defaultValue,c=t[h].required,p=t[h].display;if(a(u)){var d=L(u);d&&(u=d)}1!==Number(c)&&1!==Number(p)||("idType"===h||"id"===h||"idValidType"===h||"idValidEndTime"===h||"idValidStartTime"===h?(e=e||{},e[h]=u):"socialInsAddr"===h||"socialInsDetail"===h||"socialInsPost"===h||"socialInsTel"===h?(i=i||{},i[h]=u):"residentAddr"===h||"residentDetail"===h||"residentPost"===h||"residentTel"===h?(n=n||{},n[h]=u):"officeAddr"===h||"officeDetail"===h||"officePost"===h||"officeTel"===h?(o=o||{},o[h]=u):"companyIdType"===h||"companyId"===h?(s=s||{},s[h]=u):"detail"===h?(l=l||{},l[h]=u):r[h]=u)}return e&&(r.certificate=e),i&&(r.socialIns=i),n&&(r.resident=n),o&&(r.office=o),s&&(r.companyCertificate=s),l&&(r.companyAddress=l),r};if(n.plan&&(o=f(n.plan)),r&&(d.applicant={},r&&(d.applicant=f(r))),s||o){d.insureds=[];for(var g=s||[""],y=0;y<g.length;y++){var m=g[y],v=null,_={};m&&(v=f(m)),v&&(_.insured=v),o&&(_.plan=o),d.insureds.push(_)}}if(h&&(d.hctext=f(h)),c&&(d.apphctext=f(c)),l&&(d.hcpics=f(l)),p&&(d.apphcpics=f(p)),u){d.makeup={};for(var x=u||[""],w=0;w<x.length;w++){var b=x[w],S=null;b&&(S=f(b)),S&&(d.makeup=N()(d.makeup,S))}}return d}i.d(e,"H",function(){return nt}),i.d(e,"w",function(){return ot}),e.d=n,e.c=o,e.b=r,e.o=a,e.B=s,e.y=l,e.z=h,e.p=u,e.x=c,e.q=p,e.C=d,e.r=f,e.s=g,e.A=y,e.a=m,e.G=v,e.v=_,e.g=x,e.e=w,e.f=b,e.h=S,e.D=T,e.n=M,e.E=C,e.l=I,e.t=k,e.F=A,e.k=D,e.m=P,e.j=O,e.i=E,i.d(e,"u",function(){return rt});var R=i(28),N=i.n(R),B=i(80),z=i.n(B),F=i(58),V=i.n(F),Y="undefined"!=typeof window,H=Y&&window.navigator.userAgent.toLowerCase(),W=H&&/msie|trident/.test(H),X=H&&H.indexOf("msie 9.0")>0,G=H&&H.indexOf("edge/")>0,U=H&&H.indexOf("android")>0,j=H&&/iphone|ipad|ipod|ios/.test(H),q=H&&/arkweb|harmony/.test(H),Z=H&&/chrome\/\d+/.test(H)&&!G,K=H&&/MicroMessenger/i.test(H),Q=H&&/wxwork/i.test(H),$=H&&/mucxiaoyusan/i.test(H),J=H&&/muckacabao/i.test(H),tt=H&&/mucyanxuan/i.test(H),et=$||J,it=H&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(H),nt={isIE:W,isMobile:it,isIE9:X,isEdge:G,isAndroid:U,isIOS:j,isHarmonyOS:q,isChrome:Z,isWx:K,isWxWork:Q,isApp:et,isXysApp:$,isKcbApp:J,isYxApp:tt},ot=/MucWebAutoTester/.test(window.navigator.userAgent),rt=function(){return!("undefined"==typeof window||!window)&&(/iphone/gi.test(window.navigator.userAgent)&&window.screen.height>=812)}},40:function(t,e,i){var n=i(10),o=i(2).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},44:function(t,e,i){"use strict";var n=i(16),o=i(13),r=i(50),a=i(8),s=i(18),l=i(72),h=i(27),u=i(76),c=i(3)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,i,f,g,y,m){l(i,e,f);var v,_,x,w=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},b=e+" Iterator",S="values"==g,T=!1,M=t.prototype,C=M[c]||M["@@iterator"]||g&&M[g],I=C||w(g),k=g?S?w("entries"):I:void 0,A="Array"==e?M.entries||C:C;if(A&&(x=u(A.call(new t)))!==Object.prototype&&x.next&&(h(x,b,!0),n||"function"==typeof x[c]||a(x,c,d)),S&&C&&"values"!==C.name&&(T=!0,I=function(){return C.call(this)}),n&&!m||!p&&!T&&M[c]||a(M,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 M||r(M,_,v[_]);else o(o.P+o.F*(p||T),e,v);return v}},46:function(t,e,i){var n=i(9),o=i(73),r=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(40)("iframe"),n=r.length;for(e.style.display="none",i(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:o(i,e)}},47:function(t,e,i){var n=i(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},49:function(t,e,i){t.exports=!i(5)&&!i(12)(function(){return 7!=Object.defineProperty(i(40)("div"),"a",{get:function(){return 7}}).a})},5:function(t,e,i){t.exports=!i(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},50:function(t,e,i){t.exports=i(8)},51:function(t,e,i){var n=i(6),o=i(11),r=i(74)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=o(t),l=0,h=[];for(i in s)i!=a&&n(s,i)&&h.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~r(h,i)||h.push(i));return h}},52:function(t,e,i){"use strict";var n=i(71)(!0);i(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},53:function(t,e,i){var n=i(51),o=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},54:function(t,e,i){i(77);for(var n=i(2),o=i(8),r=i(18),a=i(3)("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 h=s[l],u=n[h],c=u&&u.prototype;c&&!c[a]&&o(c,a,h),r[h]=r.Array}},55:function(t,e,i){var n=i(11),o=i(53).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==r.call(t)?s(t):o(n(t))}},56:function(t,e,i){"use strict";var n=i(2),o=i(6),r=i(5),a=i(13),s=i(50),l=i(79).KEY,h=i(12),u=i(32),c=i(27),p=i(23),d=i(3),f=i(36),g=i(37),y=i(86),m=i(81),v=i(9),_=i(10),x=i(24),w=i(11),b=i(34),S=i(22),T=i(46),M=i(55),C=i(87),I=i(35),k=i(7),A=i(15),D=C.f,P=k.f,O=M.f,L=n.Symbol,E=n.JSON,R=E&&E.stringify,N=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=u("symbol-registry"),V=u("symbols"),Y=u("op-symbols"),H=Object.prototype,W="function"==typeof L&&!!I.f,X=n.QObject,G=!X||!X.prototype||!X.prototype.findChild,U=r&&h(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(H,e);n&&delete H[e],P(t,e,i),n&&t!==H&&P(H,e,n)}:P,j=function(t){var e=V[t]=T(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,i){return t===H&&Z(Y,e,i),v(t),e=b(e,!0),v(i),o(V,e)?(i.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(o(t,N)||P(t,N,S(1,{})),t[N][e]=!0),U(t,e,i)):P(t,e,i)},K=function(t,e){v(t);for(var i,n=y(e=w(e)),o=0,r=n.length;r>o;)Z(t,i=n[o++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},$=function(t){var e=z.call(this,t=b(t,!0));return!(this===H&&o(V,t)&&!o(Y,t))&&(!(e||!o(this,t)||!o(V,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==H||!o(V,e)||o(Y,e)){var i=D(t,e);return!i||!o(V,e)||o(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],r=0;i.length>r;)o(V,e=i[r++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===H,n=O(i?Y:w(t)),r=[],a=0;n.length>a;)!o(V,e=n[a++])||i&&!o(H,e)||r.push(V[e]);return r};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(i){this===H&&e.call(Y,i),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),U(this,t,S(1,i))};return r&&G&&U(H,t,{configurable:!0,set:e}),j(t)},s(L.prototype,"toString",function(){return this._k}),C.f=J,k.f=Z,i(53).f=M.f=tt,i(25).f=$,I.f=et,r&&!i(16)&&s(H,"propertyIsEnumerable",$,!0),f.f=function(t){return j(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)d(it[nt++]);for(var ot=A(d.store),rt=0;ot.length>rt;)g(ot[rt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(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(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!W,"Object",{create:Q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=h(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),E&&a(a.S+a.F*(!W||h(function(){var t=L();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[B]||i(8)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},57:function(t,e,i){var n=i(13),o=i(0),r=i(12);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",a)}},58:function(t,e,i){t.exports={default:i(82),__esModule:!0}},59:function(t,e,i){var n=i(30),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},6:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},60:function(t,e,i){var n=i(2).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=i(66),r=i.n(o),a=i(96),s=i.n(a),l=i(28),h=i.n(l),u=i(99),c=i.n(u),p=c.a,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=function(){try{if(!h.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===r()(h()({},n)).join("")}catch(t){return!1}}()?h.a:function(t,e){for(var i,o,r=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)d.call(i,s)&&(r[s]=i[s]);if(p){o=p(i);for(var l=0;l<o.length;l++)f.call(i,o[l])&&(r[o[l]]=i[o[l]])}}return r};e.a=g},65:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},66:function(t,e,i){t.exports={default:i(94),__esModule:!0}},7:function(t,e,i){var n=i(9),o=i(49),r=i(34),a=Object.defineProperty;e.f=i(5)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},70:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},71:function(t,e,i){var n=i(30),o=i(29);t.exports=function(t){return function(e,i){var r,a,s=String(o(e)),l=n(i),h=s.length;return l<0||l>=h?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===h||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):r:t?s.slice(l,l+2):a-56320+(r-55296<<10)+65536)}}},72:function(t,e,i){"use strict";var n=i(46),o=i(22),r=i(27),a={};i(8)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:o(1,i)}),r(t,e+" Iterator")}},73:function(t,e,i){var n=i(7),o=i(9),r=i(15);t.exports=i(5)?Object.defineProperties:function(t,e){o(t);for(var i,a=r(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},74:function(t,e,i){var n=i(11),o=i(59),r=i(75);t.exports=function(t){return function(e,i,a){var s,l=n(e),h=o(l.length),u=r(a,h);if(t&&i!=i){for(;h>u;)if((s=l[u++])!=s)return!0}else for(;h>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},75:function(t,e,i){var n=i(30),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},76:function(t,e,i){var n=i(6),o=i(24),r=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},77:function(t,e,i){"use strict";var n=i(78),o=i(70),r=i(18),a=i(11);t.exports=i(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},78:function(t,e){t.exports=function(){}},79:function(t,e,i){var n=i(23)("meta"),o=i(10),r=i(6),a=i(7).f,s=0,l=Object.isExtensible||function(){return!0},h=!i(12)(function(){return l(Object.preventExtensions({}))}),u=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},p=function(t,e){if(!r(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},d=function(t){return h&&f.NEED&&l(t)&&!r(t,n)&&u(t),t},f=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},8:function(t,e,i){var n=i(7),o=i(22);t.exports=i(5)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},80:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=i(88),r=n(o),a=i(90),s=n(a),l="function"==typeof s.default&&"symbol"==typeof r.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(r.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)}},81:function(t,e,i){var n=i(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},82:function(t,e,i){var n=i(0),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},83:function(t,e,i){i(84),t.exports=i(0).Object.assign},84:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(85)})},85:function(t,e,i){"use strict";var n=i(5),o=i(15),r=i(35),a=i(25),s=i(24),l=i(47),h=Object.assign;t.exports=!h||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=n})?function(t,e){for(var i=s(t),h=arguments.length,u=1,c=r.f,p=a.f;h>u;)for(var d,f=l(arguments[u++]),g=c?o(f).concat(c(f)):o(f),y=g.length,m=0;y>m;)d=g[m++],n&&!p.call(f,d)||(i[d]=f[d]);return i}:h},86:function(t,e,i){var n=i(15),o=i(35),r=i(25);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var a,s=i(t),l=r.f,h=0;s.length>h;)l.call(t,a=s[h++])&&e.push(a);return e}},87:function(t,e,i){var n=i(25),o=i(22),r=i(11),a=i(34),s=i(6),l=i(49),h=Object.getOwnPropertyDescriptor;e.f=i(5)?h:function(t,e){if(t=r(t),e=a(e,!0),l)try{return h(t,e)}catch(t){}if(s(t,e))return o(!n.f.call(t,e),t[e])}},88:function(t,e,i){t.exports={default:i(89),__esModule:!0}},89:function(t,e,i){i(52),i(54),t.exports=i(36).f("iterator")},9:function(t,e,i){var n=i(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,i){t.exports={default:i(91),__esModule:!0}},91:function(t,e,i){i(56),i(61),i(92),i(93),t.exports=i(0).Symbol},92:function(t,e,i){i(37)("asyncIterator")},93:function(t,e,i){i(37)("observable")},94:function(t,e,i){i(95),t.exports=i(0).Object.keys},95:function(t,e,i){var n=i(24),o=i(15);i(57)("keys",function(){return function(t){return o(n(t))}})},96:function(t,e,i){t.exports={default:i(97),__esModule:!0}},97:function(t,e,i){i(98);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},98:function(t,e,i){i(57)("getOwnPropertyNames",function(){return i(55).f})},99:function(t,e,i){t.exports={default:i(100),__esModule:!0}}})});