@xysfe/actui 1.11.50 → 1.11.51

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 r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.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=2161)}({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,r,o,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),o&&(h._scopeId=o);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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),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){t.exports={default:i(101),__esModule:!0}},101:function(t,e,i){i(55),t.exports=i(0).Object.getOwnPropertySymbols},102: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(o.a)(h),n[h]=t[l]}else i[l]=t[l];return e.on=Object(r.a)(n,e.on),e.props=Object(r.a)(i,e.props),e}e.a=n;var r=i(62),o=i(103),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},103: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 r=i(28),o=i.n(r),a=i(4),s=function(t){for(var e=!1,i=!1,n=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,n=i,i=!0,r++):i&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),n=i,i=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=i,i=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({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))}},104:function(t,e,i){"use strict";function n(t,e,i,n){var o=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(r.p)(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var r=i(4)},105:function(t,e,i){"use strict";var n=i(19),r=i(64);e.a={name:"ActPopup",mixins:[n.a,r.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)}}}},1051:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),r=i(1052);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createPicker=Object(n.a)(r.a,t)},e.default=r.a},1052:function(t,e,i){"use strict";function n(t){s||i(1053)}var r=i(945),o=i(1054),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-65cf9f1c",null);h.options.__file="src\\components\\Picker\\src\\index.vue",e.a=h.exports},1053:function(t,e){},1054:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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)},r=[];n._withStripped=!0},106:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.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}},107:function(t,e,i){var n=i(26),r=i(3)("toStringTag"),o="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),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},108:function(t,e,i){"use strict";function n(t){s||i(120)}var r=i(105),o=i(121),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.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),r=i(29);t.exports=function(t){return n(r(t))}},115:function(t,e,i){var n=i(107),r=i(3)("iterator"),o=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},116:function(t,e,i){"use strict";function n(t){t.preventDefault()}var r={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=r},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},119:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(154);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e){},121:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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)}})])])},r=[];n._withStripped=!0},123:function(t,e,i){t.exports={default:i(186),__esModule:!0}},13:function(t,e,i){var n=i(2),r=i(0),o=i(38),a=i(7),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?r:r[e]||(r[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?o(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?o(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(r.a)(i),l=Object(o.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 r=i(102),o=i(104)},15:function(t,e,i){var n=i(50),r=i(33);t.exports=Object.keys||function(t){return n(t,r)}},152:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(4),r=function(){var t=!0;if(n.K.isIOS){var e=Object(n.l)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},154:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(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 r=0;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}function o(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),r(a,o)}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 o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,r({bubbles:s,cancelable:l},o))}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,r,o,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=o?Math.max(n-o/4,n-o/g*l):n,f=c):y>r&&(y=o?Math.min(r+o/4,r+o/g*l):r,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 C(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 M(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,r=!1,o=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){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}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},U={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},G={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;C.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)}},C.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},C.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)}},C.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 r=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=r+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}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"}},C.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[H.transitionDuration]=t+"ms"},C.prototype.transitionTimingFunction=function(t){this.indicatorStyle[H.transitionTimingFunction]=t},C.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},C.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")},C.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 r=this.x+i,o=this.y+n;this._pos(r,o)},C.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,r=void 0===n?G.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,r))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},C.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})},C.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)},C.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}},C.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},C.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t),this._handleMoveEvents(t)},C.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},C.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,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),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 r=this.items[n].node,o=this.items[n].data;r&&!M(r)||o||(t||(t=n),r&&this.scrollerEl.removeChild(r))}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&&(M(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,r=this.items[i].data;if(n){if(!M(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var o=r?this.options.render(r,t.pop()):this._getTombStone();o.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(o),this.items[i].node=o}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 r=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+r[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,r[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].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=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=r({},U,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],r=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=r}})}},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,r=!1,o=0;o<i.length;o++){var a=i[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){r=!0;break}}n?t.refresh():r&&(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,o=i.height;n===t&&r===o||this.refresh(),n=t,r=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,r=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,r=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=r;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+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);r=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,r=this.hasVerticalScroll?r:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=r>0?K:r<0?Z:0;var l=this.x+i,h=this.y+r,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+r/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),r=e-this.absStartX,o=i-this.absStartY;if(this.directionX=r>0?$:r<0?Q:0,this.directionY=o>0?K:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,G.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=G.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||G.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(w=G.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)),r=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+r]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,G.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.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,G.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(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(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,r=void 0===n?25:n,a=0;a<this.items.length;a++){var s=r*(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,r){function o(){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=r(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(o)),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),o()},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]:G.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]:G.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,G.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,r){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=u(t);o.left-=this.wrapperOffset.left,o.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)),o.left-=i||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,r)}},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]:G.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var r=this.y,o=Math.round(r);return!this.hasVerticalScroll||o>this.minScrollY?r=this.minScrollY:o<this.maxScrollY&&(r=this.maxScrollY),(i!==this.x||r!==this.y)&&(this.scrollTo(i,r,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)),r=0;r<i;r++){var o=n[r],a=A(o,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,r=e.stepY||t.wrapperHeight,o=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]=[]),o=Math.max(-f.left,t.maxScrollX),a=Math.max(-f.top,t.maxScrollY),s=o-Math.round(f.width/2),l=a-Math.round(f.height/2),t.pages[c][d]={x:o,y:a,width:f.width,height:f.height,cx:s,cy:l},o>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(r/2);o>-t.scrollerWidth;){for(t.pages[h]=[],u=0,a=0;a>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:r,cx:o-s,cy:a-l},a-=r,u++;o-=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 r=0;r<n;r++)if(e>=this.pages[0][r].cy){e=this.pages[0][r].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),r===this.currentPage.pageY&&(r+=this.directionY,r<0?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),e=this.pages[0][r].y),{x:t,y:e,pageX:i,pageY:r}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],r=this.options.snap;if(r&&this.pages&&this.pages.length&&(n=n||r.easing||G.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 o=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?r.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var r=this.options.snap;if(r&&this.pages&&this.pages.length){if(r.loop){var o=void 0;r._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-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?r({},this.currentPage,{pageX:this.currentPage.pageX-1}):r({},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,r=e.interactive,o=void 0!==r&&r;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new C(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new C(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,r=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,r,this.options.bounceTime,G.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,G.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,r=void 0===n?20:n,o=i.invert,a=void 0!==o&&o,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*r,u=-t.deltaY*r):(h=-t.deltaX,u=-t.deltaY);break;case"wheelDeltaX"in t:h=t.wheelDeltaX/120*r,u=t.wheelDeltaY/120*r;break;case"wheelDelta"in t:h=u=t.wheelDelta/120*r;break;case"detail"in t:h=u=-t.detail/3*r;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,G.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,r=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(i,r),a),this.setScale(this.scale),this.scrollerStyle[H.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var r=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(r-1)),a=Math.round(this.startY-(i-this.relativeY)*(r-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),r=n.left,o=n.top,a=e+r-this.x,s=i+o-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),r=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,r),this.startScale=this.scale;var o=c(this.wrapper),s=o.left,l=o.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),r=Math.abs(e.pageY-i.pageY),o=a(n,r),s=o/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,r=e.max,o=void 0===r?4:r,a=this.scale>o?o: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},16:function(t,e){t.exports=!0},1612:function(t,e,i){"use strict";var n=i(65),r=i.n(n),o=i(123),a=i.n(o),s=i(4),l=i(2163),h=i(2170),u=i(2177),c=i(1051);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.p)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var r=this.chartConfig[n];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.p)(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,r,o,a){e=r,i=a,n=o}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),r=n.firstParamColsType,o=n.secondParamColsType,a=n.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,h=[];if(s=this.findTablesIndex(r,i.colsType),l=this.findTablesIndex(o,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=[],r=[],o=[],h=this.isCps?Object(s.d)(l.b):Object(s.d)(l.a),u=Object(s.d)(h.showType2),c=Object(s.d)(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(r){var a=void 0,p=r.colsType,d=i.findTablesIndex(p,e.colsType);if(!d)return"continue";var f=Number(r.showType),g=r.name||l.c[p],y=r.titleName||r.name||l.c[p],m=i.getExpressionData(r.tipsExpression,t,e),v=r.lineStyle,_=r.boxConfig;if(!(2!==f||v&&_)){u.length||(u=Object(s.d)(h.showType2));var x=u.shift();v=x.lineStyle,_=x.boxConfig}if(3===f&&!v){c.length||(c=Object(s.d)(h.showType3));v=c.shift().lineStyle}o.push(g);var w=[],b=r.multcolType||0;if(31===b){var S=r.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 C=!0;i.notShowLineTypes.includes(p)&&(C=!1),a={showType:f,colsType:p,name:g,titleName:y,problemText:r.problemText,tableRowIndex:d,lineStyle:v,boxConfig:_,tipsText:r.tipsText,markPoint:w,displayLine:C,negativeText:r.negativeText||""},m&&(a.expressionData=m),n.push(a)})(y)}var m=e.rows.map(function(t){for(var e=[],i=n,o=Array.isArray(i),s=0,i=o?i:a()(i);;){var l;if(o){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&&r.push(t[h.tableRowIndex]),e.push(t[h.tableRowIndex])}return e});return m.unshift(o),{chartConfig:n,dataSource:m,xAxisData:r}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){var e=this.validateData();this.selectIndex=this.selectDefaultVal,e?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1613:function(t,e,i){"use strict";var n=i(65),r=i.n(n),o=i(2172),a=i(4);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.b)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},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 r=parseInt(getComputedStyle(i).fontSize);if(r<=12)break;i.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(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()}}}}},1614:function(t,e,i){"use strict";var n=i(65),r=i.n(n),o=i(123),a=i.n(o),s=i(106),l=i.n(s),h=i(4),u=i(2174);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,r=n/375*10;return n?t*r:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=this,e=[],i=[],n=this.getXAxisName(),r=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var s=this.chartConfig[o];if([2,3].includes(s.showType)&&s.displayLine){var c={};Object(h.p)(s.lineStyle.areaStyleColor)?c.color=new u.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(h.D)(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,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,i=Array.isArray(e),n=0,e=i?e:a()(e);;){var o;if(i){if(n>=e.length)break;o=e[n++]}else{if(n=e.next(),n.done)break;o=n.value}var s=o;if(s.seriesName===r){var l=s.encode.y[0],h=s.value[l];return r+"<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;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1615:function(t,e,i){"use strict";var n=i(119);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,{})})}}}}},18:function(t,e){t.exports={}},186:function(t,e,i){i(56),i(53),t.exports=i(187)},187:function(t,e,i){var n=i(9),r=i(115);t.exports=i(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},19:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{preOverflowValue:"",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}},beforeDestroy:function(){this.hide()}};e.a=n},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)},2161:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),r=i(2162);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChart=Object(n.a)(r.a,t)},e.default=r.a},2162:function(t,e,i){"use strict";var n=i(1612),r=i(2180),o=i(1),a=Object(o.a)(n.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2163:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2164),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2165),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2166),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2167),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2168),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2169),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2164: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=="},2165: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="},2166: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"},2167: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="},2168: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="},2169: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"},2170:function(t,e,i){"use strict";function n(t){s||i(2171)}var r=i(1613),o=i(2176),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=h.exports},2171:function(t,e){},2172:function(t,e,i){"use strict";function n(t){s||i(2173)}var r=i(1614),o=i(2175),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=h.exports},2173:function(t,e){},2174: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 r(){return Kf++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Yf.call(t);if("[object Array]"===i){if(!Y(t))for(var e=[],n=0,r=t.length;n<r;n++)e[n]=a(t[n])}else if(Vf[i]){if(!Y(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),n=0,r=t.length;n<r;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(!C(e)||!C(t))return i?a(e):t;for(var n in e){var r,o;e.hasOwnProperty(n)&&n!==Zf&&(r=t[n],!C(o=e[n])||!C(r)||x(o)||x(r)||k(o)||k(r)||M(o)||M(r)||Y(o)||Y(r)?!i&&n in t||(t[n]=a(e[n])):s(r,o,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),r=0;r<n.length;r++){var o=n[r];(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}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,r=t.prototype;for(n in i.prototype=e.prototype,t.prototype=new i,r)r.hasOwnProperty(n)&&(t.prototype[n]=r[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),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}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,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function g(t,e,i){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===Gf)return t.map(e,i);for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.call(i,t[r],r,t));return n}function y(t,e,i,n){if(t&&e){for(var r=0,o=t.length;r<o;r++)i=e.call(n,i,t[r],r,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=[],r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t)&&n.push(t[r]);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(Uf.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 C(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function M(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 Uf.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 U(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}function G(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 rt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ot(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,r,o){var a,s=n+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/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&r||(c+=(d%2?-1:1)*t[i][p]*pt(t,e-1,u,h,r|f,o),d++)}return o[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={},r=pt(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*pt(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function ft(t,e,i,n,r){if(e.getBoundingClientRect&&Pf.domSupported&&!gt(e)){var o=e[pg]||(e[pg]={}),e=function(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=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&&o&&p===o[c]&&u===o[1+c],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&r?r:(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"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,h=(o>>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",r[h]+":0",n[1-l]+":auto",r[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}}return i}(e,o),o,r);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,r=e.clientX,e=e.clientY;if(gt(t))return n=t.getBoundingClientRect(),i.zrX=r-n.left,void(i.zrY=e-n.top);if(ft(mg,t,r,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 Ct(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 Mt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=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]=r,t[2]=o,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 r=e[0],o=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]=r*i+s*h,t[1]=-r*h+s*i,t[2]=o*i+l*h,t[3]=-o*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],r=e[4],o=e[1],a=e[3],e=e[5],s=i*a-o*n;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-n*s,t[3]=i*s,t[4]=(n*e-a*r)*s,t[5]=(o*r-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,r){var o=Rg.call(this)||this;return o._hovered=new Bg(0,0),o.storage=t,o.painter=e,o.painterRoot=n,o._pointerSize=r,i=i||new Ng,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new hg(o),o}function Nt(t,e,i,n,r){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(!(o=!!n.ignoreClip||o)){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(r=!0),a=n.__hostTarget,n=a||n.parent}return!r||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 r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;r<i&&n(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<i&&0<=n(t[r],t[r-1]);)r++;return r-e}function Ft(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var o,a=t[n],s=e,l=n;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;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,r,o){var a=0,s=0,l=1;if(0<o(t,e[i+r])){for(s=n-r;l<s&&0<o(t,e[i+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[i+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);n=a,a=r-(l=s<l?s:l),l=r-n}for(a++;a<l;){var h=a+(l-a>>>1);0<o(t,e[i+h])?a=h+1:l=h}return l}function Yt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;l<s&&o(t,e[i+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var h=a,a=r-(l=s<l?s:l),l=r-h}else{for(s=n-r;l<s&&0<=o(t,e[i+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var u=a+(l-a>>>1);o(t,e[i+u])<0?l=u:a=u+1}return l}function Ht(t,e){function i(i){var l=n[i],h=r[i],u=n[i+1],c=r[i+1],i=(r[i]=h+c,i===a-3&&(n[i+1]=n[i+2],r[i+1]=r[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=o;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=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((o=b)<1&&(o=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,T=h,C=u,M=c,I=0;for(I=0;I<M;I++)s[I]=t[C+I];var k=S+T-1,A=M-1,D=C+M-1,P=0,O=0;if(t[D--]=t[k--],0==--T)for(P=D-(M-1),I=0;I<M;I++)t[P+I]=s[I];else if(1===M){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=o;;){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==--M){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==--M){N=!0;break}if(0!=(R=M-Vt(t[k],s,0,M,M-1,e))){for(M-=R,O=1+(D-=R),P=1+(A-=R),I=0;I<R;I++)t[O+I]=s[P+I];if(M<=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((o=L)<1&&(o=1),1===M){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===M)throw new Error;for(P=D-(M-1),I=0;I<M;I++)t[P+I]=s[I]}}}}var n,r,o=Hg,a=0,s=[];return n=[],r=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&r[t-1]<=r[t]+r[t+1]||2<=t&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;i(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&r[t-1]<r[t+1]&&t--,i(t)}},pushRun:function(t,e){n[a]=t,r[a]=e,a+=1}}}function Wt(t,e,i,n){var r=(n=n||t.length)-(i=i||0);if(!(r<2)){var o=0;if(r<Yg)Ft(t,i,n,i+(o=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}(r);do{}while((o=zt(t,i,n,e))<l&&(Ft(t,i,i+(a=l<(a=r)?l:r),i+o,e),o=a),s.pushRun(i,o),s.mergeRuns(),i+=o,0!=(r-=o));s.forceMergeRuns()}}}function Xt(){Ug||(Ug=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ut(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Gt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ut}function jt(t){return-Qg<t&&t<Qg}function qt(t){return Qg<t||t<-Qg}function Zt(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Kt(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function Qt(t,e,i,n,r,o){var a,s,n=n+3*(e-i)-t,i=3*(i-2*e+t),e=3*(e-t),t=t-r,r=i*i-3*n*e,l=i*e-9*n*t,t=e*e-3*i*t,h=0;return jt(r)&&jt(l)?jt(i)?o[0]=0:0<=(a=-e/i)&&a<=1&&(o[h++]=a):jt(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-i/n+t)&&a<=1&&(o[h++]=a),0<=s&&s<=1&&(o[h++]=s)):0<e?(e=r*i+1.5*n*(-l-(t=Kg(e))),0<=(a=(-i-((t=(t=r*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&&(o[h++]=a)):(t=(2*r*i-3*n*l)/(2*Kg(r*r*r)),e=Math.acos(t)/3,a=(-i-2*(l=Kg(r))*(t=Math.cos(e)))/(3*n),s=(-i+l*(t+$g*Math.sin(e)))/(3*n),r=(-i+l*(t-$g*Math.sin(e)))/(3*n),0<=a&&a<=1&&(o[h++]=a),0<=s&&s<=1&&(o[h++]=s),0<=r&&r<=1&&(o[h++]=r)),h}function $t(t,e,i,n,r){var o,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<=(o=-i/a)&&o<=1&&(r[e++]=o):jt(t=a*a-4*n*i)?r[0]=-a/(2*n):0<t&&(t=(-a-(i=Kg(t)))/(2*n),0<=(o=(-a+i)/(2*n))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Jt(t,e,i,n,r,o){var a=(e-t)*r+t,e=(i-e)*r+e,i=(n-i)*r+i,s=(e-a)*r+a,e=(i-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=i,o[7]=n}function te(t,e,i,n,r,o,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,r,a,m),ey[1]=Zt(e,n,o,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,r,a,f=c-g),ey[1]=Zt(e,n,o,s,f),d=ag(ey,ty),0<=f&&d<y?(c=f,y=d):(iy[0]=Zt(t,i,r,a,p),iy[1]=Zt(e,n,o,s,p),f=ag(iy,ty),p<=1&&f<y?(c=p,y=f):g*=.5);return u&&(u[0]=Zt(t,i,r,a,c),u[1]=Zt(e,n,o,s,c)),Kg(y)}function ee(t,e,i,n){var r=1-n;return r*(r*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 re(t,e,i,n,r){var o=(e-t)*n+t,e=(i-e)*n+e,n=(e-o)*n+o;r[0]=t,r[1]=o,r[2]=n,r[3]=n,r[4]=e,r[5]=i}function oe(t,e,i,n,r,o,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,r,p),ey[1]=ee(e,n,o,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,r,f),ey[1]=ee(e,n,o,f),ag(ey,ty));0<=f&&y<c?(h=f,c=y):(iy[0]=ee(t,i,r,g),iy[1]=ee(e,n,o,g),f=ag(iy,ty),g<=1&&f<c?(h=g,c=f):u*=.5)}return l&&(l[0]=ee(t,i,r,h),l[1]=ee(e,n,o,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]),r=+F(t[2]),o=+F(t[3]);if(!isNaN(i+n+r+o))return e=[],function(t){return t<=0?0:1<=t?1:Qt(0,i,r,1,t,e)&&Zt(0,n,o,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,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,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<=(r=parseInt(i.slice(1,4),16))&&r<=4095?(ye(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<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<=(r=parseInt(i.slice(1,7),16))&&r<=16777215?(ye(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===n?parseInt(i.slice(7),16)/255:1),ve(t,e),e):void ye(e,0,0,0,1):void 0;var r=i.indexOf("("),o=i.indexOf(")");if(-1!==r&&o+1===n){var n=i.substr(0,r),a=i.substr(r+1,o-(r+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]),r=de(t[2]),n=r<=.5?r*(n+1):r+n-r*n,r=2*r-n;return ye(e=e||[],ue(255*fe(r,n,i+1/3)),ue(255*fe(r,n,i)),ue(255*fe(r,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,r,o;if(e&&e.length&&0<=t&&t<=1)return i=i||[],t*=e.length-1,n=Math.floor(t),o=Math.ceil(t),r=e[n],e=e[o],i[0]=ue(ge(r[0],e[0],o=t-n)),i[1]=ue(ge(r[1],e[1],o)),i[2]=ue(ge(r[2],e[2],o)),i[3]=ce(ge(r[3],e[3],o)),i}function Se(t,e,i){var n,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,n=Math.floor(t),r=Math.ceil(t),a=_e(e[n]),e=_e(e[r]),a=Te([ue(ge(a[0],e[0],o=t-n)),ue(ge(a[1],e[1],o)),ue(ge(a[2],e[2],o)),ce(ge(a[3],e[3],o))],"rgba"),i?{color:a,leftIndex:n,rightIndex:r,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 Ce(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 Me(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,r=E(t.scaleX,1),o=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===r&&1===o||s.push("scale("+r+","+o+")"),(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 r=e.length,o=0;o<r;o++)t[o]=Fe(e[o],i[o],n);return t}function Ye(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+i[o]*n;return t}function He(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+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 Ue(t){return 4===t||5===t}function Ge(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?o("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(r){var o;i[n].call(t,r),(o=e).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)})}),f(Iy.mouse,function(n){ii(e,n,function(r){r=_t(r),e.touching||i[n].call(t,r)})}))}function ei(t,e){function i(i){ii(e,i,function(n){var r;n=_t(n),Je(t,n.target)||(r=n,n=xt(t.dom,new Py(t,r),!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,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(i=t.domTarget,r=a[n=e],o=t.listenerOpts[e],i.removeEventListener(n,r,o));t.mounted={}}function ri(t,e){var i=Sy.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=e,i._localHandlerScope=new Ey(t,Oy),My&&(i._globalHandlerScope=new Ey(document,Ly)),ti(i,i._localHandlerScope),i}function oi(t){return 5e-5<t||t<-5e-5}function ai(){}function si(t,e){for(var i=0;i<Uy.length;i++){var n=Uy[i];t[n]=e[n]}}function li(t,e){var i=Gy[e=e||Nf],n=(i=i||(Gy[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 r=((t||"")+"").split("\n");if(1===r.length)return hi(r[0],e,i,n);for(var o=new Og(0,0,0,0),a=0;a<r.length;a++){var s=hi(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}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",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/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-=r,h+=s,u="right",c="middle";break;case"right":l+=r+a,h+=s,c="middle";break;case"top":l+=a/2,h-=r,u="center",c="bottom";break;case"bottom":l+=a/2,h+=o+r,u="center";break;case"inside":l+=a/2,h+=s,u="center",c="middle";break;case"insideLeft":l+=r,h+=s,c="middle";break;case"insideRight":l+=a-r,h+=s,u="right",c="middle";break;case"insideTop":l+=a/2,h+=r,u="center";break;case"insideBottom":l+=a/2,h+=o-r,u="center",c="bottom";break;case"insideTopLeft":l+=r,h+=r;break;case"insideTopRight":l+=a-r,h+=r,u="right";break;case"insideBottomLeft":l+=r,h+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,h+=o-r,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 r(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]=[],r(this,t)),this[e]},set:function(t){this[i]=t[0],this[n]=t[1],this[e]=t,r(this,t)}})}function vi(t,e,i,n,r){function o(){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,r,o,a,s,l){for(var h=v(r),c=o.duration,p=o.delay,f=o.additive,g=o.setToFinal,y=!C(a),_=e.animators,x=[],w=0;w<h.length;w++){var b=h[w],S=r[b];null!=S&&null!=n[b]&&(y||a[b])?!C(S)||d(S)||A(S)?x.push(b):i?l||(n[b]=S,e.updateDuringAnimation(i)):t(e,b,n[b],S,o,a&&a[b],s,l):l||(n[b]=S,e.updateDuringAnimation(i),x.push(b))}var T=x.length;if(!f&&T)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===i&&k.stopTracks(x)&&(M=u(_,k),_.splice(M,1));if(o.force||(x=m(x,function(t){return!wi(r[t],n[t])}),T=x.length),0<T||o.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]=r[b]:n[b]=r[b];else if(g)for(O={},I=0;I<T;I++)b=x[I],O[b]=We(n[b]),xi(n,r,b);(k=new xy(n,!1,!1,f?m(_,function(t){return t.targetName===i}):null)).targetName=i,o.scope&&(k.scope=o.scope),g&&D&&k.whenWithKeys(0,D,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:r,x).delay(p||0),e.addAnimator(k,i),s.push(k)}}(t,"",t,e,i=i||{},n,s,r),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(o),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 r=e[i],o=t[i],a=r.length;if(d(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?_i(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else _i(o,r,a);o.length=r.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,r=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t,new Gg),a=i.renderer||"canvas",a=(tm[a]||(a=v(tm)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect,new tm[a](e,o,i,t)),e=i.ssr||a.ssrOnly,t=(this.storage=o,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(o,a,t,a.root,n),this.animation=new Cy({stage:{update:e?null:function(){return r._flush(!0)}}}),e||this.animation.start()}function Ti(t,e){return t=new rm(Kf++,t,e),em[t.id]=t}function Ci(t,e){tm[t]=e}function Mi(t){if("function"==typeof im)return im(t)}function Ii(t){im=t}function ki(t,e,i,n){var r=e[0],e=e[1],o=i[0],i=i[1],a=e-r,s=i-o;if(0==a)return 0==s?o:(o+i)/2;if(n)if(0<a){if(t<=r)return o;if(e<=t)return i}else{if(r<=t)return o;if(t<=e)return i}else{if(t===r)return o;if(t===e)return i}return(t-r)/a*s+o}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),r=t/n,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*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 Ui(t,e,i){return(e-t)*i+t}function Gi(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,r=i.length;n<r;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function qi(t){return!C(t)||x(t)||t instanceof Date?t:t.value}function Zi(t,e,i){var n,r,o,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){C(t)||(e[i]=null)}),function(t,e,i){var n=[];if("replaceAll"!==i)for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||tn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}(t,m,i));return(d||g)&&(n=i,r=t,o=m,f(a=e,function(t,e){var i,s,l;t&&null!=t.id&&(i=Qi(t.id),null!=(s=o.get(i)))&&(z(!(l=n[s]).newOption,'Duplicated option on id "'+i+'".'),l.newOption=t,l.existing=r[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,r=t.keyInfo;if(C(n)){if(r.name=null!=n.name?Qi(n.name):i?i.name:lm+e,i)r.id=Qi(i.id);else if(null!=n.id)r.id=Qi(n.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.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,r,o=t.newOption;C(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,o=o,t=t.existing,r=i,o.type||(t?t.subType:r.determineSubType(n,o))))})}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 rn(){var t="__ec_inner_"+um++;return function(e){return e[t]||(e[t]={})}}function on(t,e,i){var e=an(e,i),n=e.mainTypeSpecified,r=e.queryOptionMap,o=e.others,a=i?i.defaultMainType:null;return!n&&a&&r.set(a,{}),r.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}),o[n+"Models"]=e.models,o[n+"Model"]=e.models[0]}),o}function an(t,e){var i=b(t)?((i={})[t+"Index"]=0,i):t,n=X(),r={},o=!1;return f(i,function(t,i){var a;"dataIndex"===i||"dataIndexInside"===i?r[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||(o=o||!!a,(n.get(a)||n.set(a,{}))[i]=t))}),{mainTypeSpecified:o,queryOptionMap:n,others:r}}function sn(t,e,i,n){n=n||cm;var r=i.index,o=i.id,i=i.name,a={models:null,specified:null!=r||null!=o||null!=i};return a.specified?"none"===r||!1===r?(z(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===r&&(z(n.enableAll,'`"all"` is not a valid value on index option.'),r=o=i=null),a.models=t.queryComponents({mainType:e,index:r,id:o,name:i})):(r=void 0,a.models=n.useDefault&&(r=t.getComponent(e))?[r]:[]),a}function ln(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(T(n))return Di(p=Ui(i||0,n,r),o?Math.max(Pi(i||0),Pi(n)):e);if(b(n))return r<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]=(r<1&&s?s:l)[u]:(p=Ui(d=s&&s[u]?s[u]:0,c=l[u],r),a[u]=Di(p,o?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 r.apply(this,arguments)||this}var n,r,o,a=this;return w(o=a)&&/^class\s/.test(Function.prototype.toString.call(o))?(i(e,r=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 r=e[t];if(r&&r[dm]&&(r=i?r[i]:null),n&&!r)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return r},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,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];n&&0<=u(n,s)||r&&u(r,s)<0||null!=(s=i.getShallow(s,e))&&(o[t[a][0]]=s)}return o}}function mn(){}function vn(t,e,i,n,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!i||(i={hostEl:i,cb:n,cbPayload:r},(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,r){if(!e)return"";var o=(t+"").split("\n");r=bn(e,i,n,r);for(var a=0,s=o.length;a<s;a++)o[a]=Sn(o[a],r);return o.join("\n")}function bn(t,e,i,n){for(var r=l({},n=n||{}),o=(r.font=e,i=E(i,"..."),r.maxIterations=E(n.maxIterations,2),r.minChar=E(n.minChar,0)),a=(r.cnCharWidth=li("国",e),r.ascCharWidth=li("a",e)),s=(r.placeholder=E(n.placeholder,""),t=Math.max(0,t-1)),h=0;h<o&&a<=s;h++)s-=a;return n=li(i,e),s<n&&(i="",n=0),s=t-n,r.ellipsis=i,r.ellipsisWidth=n,r.contentWidth=s,r.containerWidth=t,r}function Sn(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=li(t,n);if(!(o<=i)){for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,i,n){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?i:n}return o}(t,r,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*r/o):0,o=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 r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},h=_m.lastIndex=0;null!=(r=_m.exec(t));){var u=r.index;h<u&&Cn(n,t.substring(h,u),e,l),Cn(n,r[2],e,l,r[1]),h=_m.lastIndex}h<t.length&&Cn(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,C=T?T[1]+T[3]:0,M=D.font=S.font||e.font,I=(D.contentHeight=di(M),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,M)):(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!=o?o-w:null)&&k<D.width?!A||k<C?(D.text="",D.width=D.contentWidth=0):(D.text=wn(D.text,k-C,M,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=li(D.text,M)):D.contentWidth=li(D.text,M)),D.width+=C,w+=D.width,S&&(x=Math.max(x,D.lineHeight))}i(_,w,x)}for(n.outerWidth=n.width=E(o,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 Cn(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},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&&(o=e.split("\n"),c=!0),n.accumWidth=t):(t=Mn(e,u,n.width,n.breakAll,n.accumWidth),n.accumWidth=t.accumWidth+i,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var d,f,g=o[p],y=new xm;y.styleName=r,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 Mn(t,e,i,n,r){for(var o,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=o=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||Sm[o]),(a.length?i<c+d:i<r+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+=r),{accumWidth:c,lines:a,linesWidths:s}}function In(t){return nm.call(this,t)||this}function kn(t,e,i,n,r,o){r[0]=Pm(t,i),r[1]=Pm(e,n),o[0]=Om(t,i),o[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,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&n+r<a||a<e-r&&a<n-r||t+r<o&&i+r<o||o<t-r&&o<i-r)&&(t===i?Math.abs(o-t)<=r/2:(o=(s=(e-n)/(t-i))*o-a+(t*n-i*e)/(t-i))*o/(s*s+1)<=r/2*r/2)}function On(t){return(t%=av)<0&&(t+=av),t}function Ln(t,e,i,n,r,o){return e<o&&n<o||o<e&&o<n||n===e?0:(i=(o=(o-e)/(n-e))*(i-t)+t)===r?1/0:r<i?1!=o&&0!=o?n<e?1:-1:n<e?.5:-.5:0}function En(t,e,i,n,r,o,a,s,l,h){if(e<h&&n<h&&o<h&&s<h||h<e&&h<n&&h<o&&h<s)return 0;var u=Qt(e,n,o,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,r,a,m)<l||(d<0&&(d=$t(e,n,o,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,o,s,pv[0]),1<d)&&(g=Zt(e,n,o,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,r,o,a,s){if(e<s&&n<s&&o<s||s<e&&s<n&&s<o)return 0;c=cv,u=(l=e)-2*(h=n)+(u=o),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,o);if(0<=g&&g<=1){for(var y=0,m=ee(e,n,o,g),v=0;v<f;v++){var _=0===cv[v]||1===cv[v]?.5:1;ee(t,i,r,cv[v])<a||(cv[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===cv[0]||1===cv[0]?.5:1,ee(t,i,r,cv[0])<a?0:o<e?_:-_}function Nn(t,e,i,n,r){for(var o,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,r))),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,r))return!0}else l+=Ln(h,u,a[d],a[d+1],n,r)||0;h=a[d++],u=a[d++];break;case lv.C:if(i){if(function(t,e,i,n,r,o,a,s,l,h,u){if(0!==l)return!(e+(l=l)<u&&n+l<u&&o+l<u&&s+l<u||u<e-l&&u<n-l&&u<o-l&&u<s-l||t+l<h&&i+l<h&&r+l<h&&a+l<h||h<t-l&&h<i-l&&h<r-l&&h<a-l)&&te(t,e,i,n,r,o,a,s,h,u,null)<=l/2}(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,r))return!0}else l+=En(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,r)||0;h=a[d++],u=a[d++];break;case lv.Q:if(i){if(function(t,e,i,n,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&n+a<l&&o+a<l||l<e-a&&l<n-a&&l<o-a||t+a<s&&i+a<s&&r+a<s||s<t-a&&s<i-a&&s<r-a)&&oe(t,e,i,n,r,o,s,l,null)<=a/2}(h,u,a[d++],a[d++],a[d],a[d+1],e,n,r))return!0}else l+=Rn(h,u,a[d++],a[d++],a[d],a[d+1],n,r)||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,C=(g?(c=S,p=T):l+=Ln(h,u,S,T,n,r),(n-y)*_/v+y);if(i){if(function(t,e,i,n,r,o,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-r)%sv<1e-4||((r=o?(e=n,n=On(r),On(e)):(n=On(n),On(r)))<n&&(r+=sv),(t=Math.atan2(l,s))<0&&(t+=sv),n<=t&&t<=r)||n<=t+sv&&t+sv<=r)}(y,m,_,x,x+w,b,e,C,r))return!0}else l+=function(t,e,i,n,r,o,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-r))<1e-4)return 0;if(hv-1e-4<=i)return r=hv,u=o?1:-1,a>=cv[n=0]+t&&a<=cv[1]+t?u:0;r<n&&(e=n,n=r,r=e),n<0&&(n+=hv,r+=hv);for(var l=0,h=0;h<2;h++){var u,c=cv[h];a<c+t&&(u=o?1:-1,n<=(c=(c=Math.atan2(s,c))<0?hv+c:c)&&c<=r||n<=c+hv&&c+hv<=r)&&(l+=u=c>Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,C,r);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,r)||Pn(S,p,S,T,e,n,r)||Pn(S,T,c,T,e,n,r)||Pn(c,T,c,p,e,n,r))return!0}else l=(l+=Ln(S,p,S,T,n,r))+Ln(c,T,c,p,n,r);break;case lv.Z:if(i){if(Pn(h,u,c,p,e,n,r))return!0}else l+=Ln(h,u,c,p,n,r);h=c,u=p}}return i||(t=u,o=p,Math.abs(t-o)<uv)||(l+=Ln(h,u,c,p,n,r)||0),0!==l}function Bn(t){return nv.call(this,t)||this}function zn(){return null!==rv&&rv.apply(this,arguments)||this}function Fn(){return null!==wv&&wv.apply(this,arguments)||this}function Vn(t,e,i){var n,r,o;if(e)return n=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=n,t.x2=r,t.y1=o,t.y2=e,(i=i&&i.lineWidth)&&(Tv(2*n)===Tv(2*r)&&(t.x1=t.x2=Hn(n,i,!0)),Tv(2*o)===Tv(2*e))&&(t.y1=t.y2=Hn(o,i,!0)),t}function Yn(t,e,i){var n,r,o;if(e)return n=e.x,r=e.y,o=e.width,e=e.height,t.x=n,t.y=r,t.width=o,t.height=e,(i=i&&i.lineWidth)&&(t.x=Hn(n,i,!0),t.y=Hn(r,i,!0),t.width=Math.max(Hn(n+o,i,!1)-t.x,0===o?0:1),t.height=Math.max(Hn(r+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 Un(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 Gn(t,e){for(var i=0;i<Ev.length;i++){var n=Ev[i],r=e[n];null!=r&&(t[n]=r)}}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 tr(t){return null!=t&&"none"!==t}function er(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function ir(t){er(t,"emphasis",Hv)}function nr(t){t.hoverState===Hv&&er(t,"normal",Vv)}function rr(t){er(t,"blur",Yv)}function or(t){t.hoverState===Yv&&er(t,"normal",Vv)}function ar(t){t.selected=!0}function sr(t){t.selected=!1}function lr(t,e,i){e(t,i)}function hr(t,e,i){lr(t,e,i),t.isGroup&&t.traverse(function(t){lr(t,e,i)})}function ur(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 cr(t,e,i){var n=0<=u(t.currentStates,e),r=t.style.opacity,t=n?null:function(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[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(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(i=i||{}).style||{};return null==e.opacity&&(i=l({},i),e=l({opacity:n?r:.1*t.opacity},e),i.style=e),i}function pr(t,e){var i,n,r,o,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&&(r=zv(i),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,tr(o)||tr(e))&&("inherit"===(r=(n=n||{}).style||{}).fill?(a=!0,n=l({},n),(r=l({},r)).fill=o):!tr(r.fill)&&tr(o)?(a=!0,n=l({},n),(r=l({},r)).fill=Me(o)):!tr(r.stroke)&&tr(e)&&(a||(n=l({},n),r=l({},r)),r.stroke=Me(e)),n.style=r),n&&null==n.z2&&(a||(n=l({},n)),o=i.z2EmphasisLift,n.z2=i.z2+(null!=o?o:10)),n;if("blur"===t)return cr(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=l({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function dr(t){t.stateProxy=pr;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=pr),t&&(t.stateProxy=pr)}function fr(t,e){br(t,e)||t.__highByOuter||hr(t,ir)}function gr(t,e){br(t,e)||t.__highByOuter||hr(t,nr)}function yr(t,e){t.__highByOuter|=1<<(e||0),hr(t,ir)}function mr(t,e){(t.__highByOuter&=~(1<<(e||0)))||hr(t,nr)}function vr(t){hr(t,rr)}function _r(t){hr(t,or)}function xr(t){hr(t,ar)}function wr(t){hr(t,sr)}function br(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Sr(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,r){var o=Fv(r),e="series"===e,a=e?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);e||n.push(a),o.isBlured&&(a.group.traverse(function(t){or(t)}),e)&&i.push(r),o.isBlured=!1}),f(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function Tr(t,e,i,n){function r(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&_r(n)}}var o,a,s,l=n.getModel();i=i||"coordinateSystem",null!=t&&e&&"none"!==e&&(o=l.getSeriesByIndex(t),(a=o.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=o===t,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||rr(t)}),d(e))r(t.getData(),e);else if(C(e))for(var u=v(e),c=0;c<u.length;c++)r(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 Cr(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){rr(t)})}function Mr(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;if(!(t=n.getModel().getComponent(t,e)))return r;if(!(e=n.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(i),s=0;s<a.length;s++)if("self"===Rv(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function Ir(t){f(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){(t.isSelected(i,n)?xr:wr)(e)})})}function kr(t,e,i){Pr(t,!0),hr(t,dr),t=Rv(t),null!=e?(t.focus=e,t.blurScope=i):t.focus&&(t.focus=null)}function Ar(t,e,i,n){n?Pr(t,!1):kr(t,e,i)}function Dr(t,e,i,n){i=i||"itemStyle";for(var r=0;r<Kv.length;r++){var o=Kv[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[Qv[i]]()}}function Pr(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 Or(t){return!(!t||!t.__highDownDispatcher)}function Lr(t){return(t=t.type)===jv||t===qv||t===Zv}function Er(t){return(t=t.type)===Uv||t===Gv}function Rr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Nr(t,e){return(t[0]*e[0]+t[1]*e[1])/(Rr(t)*Rr(e))}function Br(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Nr(t,e))}function zr(t,e,i,n,r,o,a,s,l,h,u){var l=l*(o_/180),c=r_(l)*(t-i)/2+n_(l)*(e-n)/2,p=-1*n_(l)*(t-i)/2+r_(l)*(e-n)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=i_(d),s*=i_(d)),(r===o?-1:1)*i_((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+i)/2+r_(l)*r-n_(l)*d,i=(e+n)/2+n_(l)*r+r_(l)*d,e=Br([1,0],[(c-r)/a,(p-d)/s]),n=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Br(n,c);Nr(n,c)<=-1&&(r=o_),(r=1<=Nr(n,c)?0:r)<0&&(p=Math.round(r/o_*1e6)/1e6,r=2*o_+p%2*o_),u.addData(h,t,i,a,s,e,r,l,o)}function Fr(){return null!==l_&&l_.apply(this,arguments)||this}function Vr(t){return null!=t.setData}function Yr(t,e){var i=function(t){var e=new ov;if(t){var i,n=0,r=0,o=n,a=r,s=ov.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,C=r,M=void 0,I=void 0;switch(c){case"l":n+=d[y++],r+=d[y++],p=s.L,e.addData(p,n,r);break;case"L":n=d[y++],r=d[y++],p=s.L,e.addData(p,n,r);break;case"m":n+=d[y++],r+=d[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="l";break;case"M":n=d[y++],r=d[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="L";break;case"h":n+=d[y++],p=s.L,e.addData(p,n,r);break;case"H":n=d[y++],p=s.L,e.addData(p,n,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,n,r);break;case"V":r=d[y++],p=s.L,e.addData(p,n,r);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],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r),n+=d[y-2],r+=d[y-1];break;case"S":m=n,v=r,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=r-I[M-3]),p=s.C,T=d[y++],C=d[y++],n=d[y++],r=d[y++],e.addData(p,m,v,T,C,n,r);break;case"s":m=n,v=r,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=r-I[M-3]),p=s.C,T=n+d[y++],C=r+d[y++],n+=d[y++],r+=d[y++],e.addData(p,m,v,T,C,n,r);break;case"Q":T=d[y++],C=d[y++],n=d[y++],r=d[y++],p=s.Q,e.addData(p,T,C,n,r);break;case"q":T=d[y++]+n,C=d[y++]+r,n+=d[y++],r+=d[y++],p=s.Q,e.addData(p,T,C,n,r);break;case"T":m=n,v=r,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=r-I[M-3]),n=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,n,r);break;case"t":m=n,v=r,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=r-I[M-3]),n+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,n,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(T=n,C=r,n=d[y++],r=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(T=n,C=r,n+=d[y++],r+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),n=o,r=a),i=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Vr(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 r,o,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(r=l[y++],m=y,o=0,r){case u:case p:o=1;break;case c:o=3;break;case g:o=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<o;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 Hr(t){return h_.call(this,t)||this}function Wr(t){return d_.call(this,t)||this}function Xr(t,e,i,n,r,o,a){var s=t-i,l=e-n,a=(a?o:-o)/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,o=r-o,s=s*i-e*t,i=(c<0?-1:1)*T_(C_(0,o*o*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*(r/o-1),y1:t*(r/o-1)}}function Ur(t,e){var i,n,r,o,a,s,l,h,u,c,p,d,f,g,y,m,v,_,w,b,S,T,C,M,I,k,A,D,P,O,L=C_(e.r,0),E=C_(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,r=e.cy,o=!!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),r+L*__(R)),t.arc(n,r,L,R,i,!o),I_<E&&(t.moveTo(n+E*x_(i),r+E*__(i)),t.arc(n,r,E,i,R,o))):(T=S=b=w=_=v=c=u=k=I=M=C=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,C=M_(e,l),M=M_(e,h),I=M_(e,a),k=M_(e,s),v=u=C_(C,M),_=c=C_(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,r,o,a,s){var l=(s-=o)*(i-=t)-(a-=r)*(n-=e);if(!(l*l<I_))return[t+(l=(a*(e-o)-s*(t-r))/l)*i,e+l*n]}(p,d,S,T,w,b,f,g))&&(C=p-e[0],M=d-e[1],I=w-e[0],k=b-e[1],m=1/__(w_((C*I+M*k)/(T_(C*C+M*M)*T_(I*I+k*k)))/2),C=T_(e[0]*e[0]+e[1]*e[1]),v=M_(u,(L-C)/(1+m)),_=M_(c,(E-C)/(m-1))),y?I_<v?(A=M_(l,v),D=M_(h,v),P=Xr(S,T,p,d,L,A,o),O=Xr(w,b,f,g,L,D,o),t.moveTo(n+P.cx+P.x0,r+P.cy+P.y0),v<u&&A===D?t.arc(n+P.cx,r+P.cy,v,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<A&&t.arc(n+P.cx,r+P.cy,A,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(n,r,L,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),!o),0<D&&t.arc(n+O.cx,r+O.cy,D,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.moveTo(n+p,r+d),t.arc(n,r,L,R,i,!o)):t.moveTo(n+p,r+d),I_<E&&y?I_<_?(A=M_(a,_),P=Xr(f,g,w,b,E,-(D=M_(s,_)),o),O=Xr(p,d,S,T,E,-A,o),t.lineTo(n+P.cx+P.x0,r+P.cy+P.y0),_<c&&A===D?t.arc(n+P.cx,r+P.cy,_,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<D&&t.arc(n+P.cx,r+P.cy,D,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(n,r,E,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),o),0<A&&t.arc(n+O.cx,r+O.cy,A,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.lineTo(n+f,r+g),t.arc(n,r,E,i,R,o)):t.lineTo(n+f,r+g)):t.moveTo(n,r),t.closePath()))}function Gr(t){return y_.call(this,t)||this}function jr(t){return D_.call(this,t)||this}function qr(t,e,i){var n=e.smooth,r=e.points;if(r&&2<=r.length){if(n)for(var o=function(t,e,i,n){var r,o,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)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Q(t[p]));continue}r=t[p-1],o=t[p+1]}J(s,o,r),it(s,s,e);var g=rt(f,r),y=rt(f,o),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}(r,n,i,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(i?a:a-1);s++){var l=o[2*s],h=o[2*s+1],u=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}function Zr(t){return L_.call(this,t)||this}function Kr(t){return N_.call(this,t)||this}function Qr(t){return F_.call(this,t)||this}function $r(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(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 Jr(t){return U_.call(this,t)||this}function to(t){return j_.call(this,t)||this}function eo(){var t=null!==K_&&K_.apply(this,arguments)||this;return t.type="compound",t}function io(t){this.colorStops=t||[]}function no(t,e,i,n,r,o){return r=J_.call(this,r)||this,r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==i?1:i,r.y2=null==n?0:n,r.type="linear",r.global=o||!1,r}function ro(t,e,i,n,r){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=r||!1,n}function oo(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 ao(){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 so(t,e,i,n,r,o,a){var s,l,h,u,c,p,d=!1,f=(w(r)?(a=o,o=r,r=null):C(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,n=(g=n)&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(h=(h=g.ecModel.getUpdatePayload())&&h.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=u=r=void 0,c=l?(r=E(l.duration,200),u=E(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),u=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=h&&(null!=h.duration&&(r=h.duration),null!=h.easing&&(u=h.easing),null!=h.delay)?h.delay:c)&&(c=c(s,n)),{duration:(r=w(r)?r(s):r)||0,delay:c,easing:u}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(i,p):e.animateTo(i,p)):(e.stopAnimation(),d||e.attr(i),a&&a(1),o&&o())}function lo(t,e,i,n,r,o){so("update",t,e,i,n,r,o)}function ho(t,e,i,n,r,o){so("enter",t,e,i,n,r,o)}function uo(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 co(t,e,i,n,r,o){uo(t)||so("leave",t,e,i,n,r,o)}function po(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),co(t,{style:{opacity:0}},e,i,n)}function fo(t){return yv.extend(t)}function go(t,e){return dx(t,e)}function yo(t,e){px[t]=e}function mo(t){if(px.hasOwnProperty(t))return px[t]}function vo(t,e,i,n){return t=new u_(Yr(t,e)),i&&("center"===n&&(i=xo(i,t.getBoundingRect())),bo(t,i)),t}function _o(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(xo(e,t)))}});return n}function xo(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 wo(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}return(e=new yv(e)).createPathProxy(),e.buildPath=function(t){var e;Vr(t)&&(t.appendPath(i),e=t.getContext())&&t.rebuildPath(e,1)},e}function bo(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function So(t,e){return Vn(t,t,{lineWidth:e}),t}function To(t,e){for(var i=Tt([]);t&&t!==e;)Mt(i,t.getLocalTransform(),i),t=t.parent;return i}function Co(t,e,i){return e&&!d(e)&&(e=Xy.getLocalTransform(e)),st([],t,e=i?Dt([],e):e)}function Mo(t){return!t.isGroup}function Io(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 r,o;t&&e&&(o={},t.traverse(function(t){Mo(t)&&t.anid&&(o[t.anid]=t)}),r=o,e.traverse(function(t){var e,o;Mo(t)&&t.anid&&(e=r[t.anid])&&(o=n(t),t.attr(n(e)),lo(t,o,i,Rv(t).dataIndex))}))}function ko(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 Ao(t,e){var i=ux(t.x,e.x),n=cx(t.x+t.width,e.x+e.width),r=ux(t.y,e.y),t=cx(t.y+t.height,e.y+e.height);if(i<=n&&r<=t)return{x:i,y:r,width:n-i,height:t-r}}function Do(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)):vo(t.replace("path://",""),e,i,"center")}function Po(t,e,i,n,r,o,a,s){var l,i=i-t,n=n-e,a=a-r,s=s-o,h=a*n-i*s;return!((l=h)<=1e-6&&-1e-6<=l||(r=((l=t-r)*n-i*(t=e-o))/h)<0||1<r||(n=(l*s-a*t)/h)<0||1<n)}function Oo(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,e=b(e)?{formatter:e}:e,r=i.mainType,i=i.componentIndex,o={componentType:r,name:n,$vars:["name"]},a=(o[r+"Index"]=i,t.formatterParamsExtra),t=(a&&f(v(a),function(t){q(o,t)||(o[t]=a[t],o.$vars.push(t))}),Rv(t.el));t.componentMainType=r,t.componentIndex=i,t.tooltipConfig={name:n,option:h({content:n,encodeHTMLContent:!0,formatterParams:o},e)}}function Lo(t,e){var i;(i=t.isGroup?e(t):i)||t.traverse(e)}function Eo(t,e){if(t)if(x(t))for(var i=0;i<t.length;i++)Lo(t[i],e);else Lo(t,e)}function Ro(t,e){for(var i=0;i<Wv.length;i++){var n=Wv[i],r=e[n],n=t.ensureState(n);n.style=n.style||{},n.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function No(t,e,i){for(var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:n=null==(n=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null):n)?w(t.defaultText)?t.defaultText(o,t,i):t.defaultText:n},h=0;h<Wv.length;h++){var u=Wv[h],c=e[u];l[u]=E(r?r.getFormattedLabel(o,u,null,a,c&&c.get("formatter")):null,n)}return l}function Bo(t,e,i,n){i=i||yx;for(var r=t instanceof Pv,o=!1,a=0;a<Xv.length;a++)if((p=e[Xv[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Pv,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=No(i,e),h=e.normal,u=!!h.getShallow("show"),c=Fo(h,n&&n.normal,i,!1,!r);for(c.text=l.normal,r||t.setTextConfig(Vo(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=Fo(p,n&&n[g],i,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=Vo(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=No(i,e,t),Ro(s,t)})}else s&&(s.ignore=!0);t.dirty()}function zo(t,e){for(var i={normal:t.getModel(e=e||"label")},n=0;n<Wv.length;n++){var r=Wv[n];i[r]=t.getModel([r,e])}return i}function Fo(t,e,i,n,r){var o,a={},s=a,h=t,u=i,c=n,p=r;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),r=0;r<n.length;r++){e[n[r]]=1}}t=t.parentModel}return e}(h);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(o=h.getModel(["rich",y]),Yo(d[y]={},o,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),Yo(s,h,f,u,c,p,!0,!1),e&&l(a,e),a}function Vo(t,e,i){e=e||{};var n={},r=t.getShallow("rotate"),o=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!=r&&(r*=Math.PI/180,n.rotation=r),null!=o&&(n.distance=o),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",n}function Yo(t,e,i,n,r,o,a,s){i=!r&&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),o||(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=r||null!=c||s?c:n&&n.defaultOpacity)&&(t.opacity=c),r||o||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 Ho(t,e,i,n,r){var o,a,s,l=xx(t);l.valueAnimation&&l.prevValue!==l.value&&(o=l.defaultInterpolatedText,a=E(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?ho:lo)(t,{percent:1},n,e,null,function(n){var h=hn(i,l.precision,a,s,n),n=(l.interpolatedValue=1===n?null:h,No({labelDataIndex:e,labelFetcher:r,defaultText:o?o(h):h+""},l.statesModels,h));Ro(t,n)}))}function Wo(){}function Xo(){}function Uo(){}function Go(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function jo(t){return[t||"",Lx++].join("_")}function qo(t,e){t=t.toUpperCase(),zx[t]=new Ox(e),Bx[t]=e}function Zo(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ko(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 Qo(t,e,i,n){var t=Ni(t),r=t[ta(i)](),o=t[ea(i)]()+1,a=Math.floor((o-1)/3)+1,s=t[ia(i)](),l=t["get"+(i?"UTC":"")+"Day"](),h=t[na(i)](),u=(h-1)%12+1,c=t[ra(i)](),p=t[oa(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,r+"").replace(/{yy}/g,Zo(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,Zo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Zo(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Zo(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Zo(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Zo(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Zo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Zo(t,3)).replace(/{S}/g,t+"")}function $o(t,e){var t=Ni(t),i=t[ea(e)]()+1,n=t[ia(e)](),r=t[na(e)](),o=t[ra(e)](),a=t[oa(e)](),t=0===t[aa(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===n;return r&&1===i?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Jo(t,e,i){var n=T(t)?Ni(t):t;switch(e=e||$o(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[ra(i)]();case"second":return n[oa(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 ra(t){return t?"getUTCMinutes":"getMinutes"}function oa(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 r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?Ni(t):t;if(!isNaN(+o))return Qo(o,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}return"ordinal"===e?S(t)?n(t):T(t)&&r(t)?t+"":"-":r(o=Vi(t))?da(o):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 r=e[0].$vars||[],o=0;o<r.length;o++){var a=Kx[o];t=t.replace(ya(a),ya(a,0))}for(var s=0;s<n;s++)for(var l=0;l<r.length;l++){var h=e[s][r[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,r=(e=t.extraCssText,t.renderMode||"html");return i?"html"===r?"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:r,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:C(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,r){var o=0,a=0,s=(null==n&&(n=1/0),null==r&&(r=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=o+c)||l.newline?(o=0,u=c,a+=s+i,d.height):Math.max(s,d.height)):(c=d.height+(h?-h.y+d.y:0),r<(p=a+c)||l.newline?(o+=s+i,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+i:a=p+i)})}function ba(t,e,i){i=Zx(i||0);var n=e.width,r=e.height,o=Ai(t.left,n),a=Ai(t.top,r),e=Ai(t.right,n),s=Ai(t.bottom,r),l=Ai(t.width,n),h=Ai(t.height,r),u=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(l)&&(l=n-e-c-o),isNaN(h)&&(h=r-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(n/r<p?l=.8*n:h=.8*r),isNaN(l)&&(l=p*h),isNaN(h))&&(h=l/p),isNaN(o)&&(o=n-e-l-c),isNaN(a)&&(a=r-s-h-u),t.left||t.right){case"center":o=n/2-l/2-i[3];break;case"right":o=n-l-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-i[0];break;case"bottom":a=r-h-u}return o=o||0,a=a||0,isNaN(l)&&(l=n-c-o-(e||0)),isNaN(h)&&(h=r-u-a-(s||0)),p=new Og(o+i[3],a+i[0],l,h),p.margin=i,p}function Sa(t){return t=t.layoutMode||t.constructor.layoutMode,C(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){r(e,t)&&(a[t]=h[t]=e[t]),o(a,t)&&l++,o(h,t)&&u++}),s[n])o(e,i[1])?h[i[2]]=null:o(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(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return h}function r(t,e){return t.hasOwnProperty(e)}function o(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 Ca(t){return e={},(i=t)&&e&&Qx($x,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e;var e,i}function Ma(t,e,i){return t=ew.call(this,t,e,i)||this,t.uid=jo("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 r(t){return t=t.dimsDef,t?t.length:1}var o,a,s,l,h,u={},c=Aa(e);return c&&t&&(o=[],a=[],e=e.ecModel,e=bw(e).datasetMap,c=c.uid+"_"+i.seriesLayoutBy,f(t=t.slice(),function(e,i){e=C(e)?e:t[i]={name:e},"ordinal"===e.type&&null==s&&(s=i,l=r(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=r(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(o,0,t)):(i=h.categoryWayDim,n(u[l],i,t),n(a,i,t),h.categoryWayDim+=t)}),o.length&&(u.itemName=o),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,r,o,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,h=t.dimensionsDefine,u=t.startIndex,c=e;if(!I(a)){if(h&&(C(h=h[c])?(r=h.name,o=h.type):b(h)&&(r=h)),null!=o)return"ordinal"===o?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(!r)return ww.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(n=i(v[r])))return n}else if(s===yw){if(h=a,!r)return ww.Not;if(!(d=h[r])||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,r;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])})):(r=$i(e,null),m(i,function(e){return e&&null!=r&&e[t]===r}))}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(Gi(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 r=Bw[i],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Ya(t,e,i){var n,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(n=t[e].normal,r=t[e].emphasis,n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),r)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=r).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.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 r=0,o=hm.length;r<o;r++){var a=hm[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Xa(t){t&&(Ha(t),Wa(t,"label"),t.emphasis)&&Wa(t.emphasis,"label")}function Ua(t){return x(t)?t:t?[t]:[]}function Ga(t){return(x(t)?t[0]:t)||{}}function ja(t,e){Rw(Ua(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),r=(n&&Xa(n),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!I(o))for(var a=0;a<o.length;a++)Xa(o[a]);f(t.categories,function(t){Ha(t)})}if(r&&!I(r))for(a=0;a<r.length;a++)Xa(r[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(Ua(t[e]),function(t){t&&(Wa(t,"axisLabel"),Wa(t.axisPointer,"label"))})}),Rw(Ua(t.parallel),function(t){t=t&&t.parallelAxisDefault,Wa(t,"axisLabel"),Wa(t&&t.axisPointer,"label")}),Rw(Ua(t.calendar),function(t){Ya(t,"itemStyle"),Wa(t,"dayLabel"),Wa(t,"monthLabel"),Wa(t,"yearLabel")}),Rw(Ua(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(Ua(t.geo),function(t){Nw(t)&&(Xa(t),Rw(Ua(t.regions),function(t){Xa(t)}))}),Rw(Ua(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){C(t)&&(Ya(t,"label"),Ya(t,"itemStyle"))})}),Rw(Ua(t.toolbox),function(t){Ya(t,"iconStyle"),Rw(t.feature,function(t){Ya(t,"iconStyle")})}),Wa(Ga(t.axisPointer),"label"),Wa(Ga(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],r=Vw[i][0];null!=e[n]&&(e[r]=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=Gi(t.series),f(t.series,function(t){if(C(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 r=function(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}(t,"pointer.color");if(null!=r){for(var o,a=t,s="itemStyle.color",l=s.split(","),u=a,c=0;c<l.length-1;c++)null==u[o=l[c]]&&(u[o]={}),u=u[o];null!=u[l[c]]||(u[l[c]]=r)}}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=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,h,u){var c,p,d=a.get(e.stackedDimension,u);if(isNaN(d))return r;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,r=function(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:rs(r),startIndex:a,dimensionsDetectedCount:o};var s;return e===fw?(s=t,"auto"===n||null==n?os(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,s,10):a=T(n)?n:n?1:0,r||1!==a||(r=[],os(function(t,e){r[e]=null!=t?t+"":""},i,s,1/0)),o=r?r.length:i===xw?s.length:s[0]?s[0].length:null):e===gw?r=r||function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e)return v(e)}(t):e===yw?r||(r=[],f(t,function(t,e){r.push(e)})):e===dw&&(n=qi(t[0]),o=x(n)&&n.length||1),{startIndex:a,dimensionsDefine:rs(r),dimensionsDetectedCount:o}}(t,i,n,e.sourceHeader,e.dimensions);return new Yw({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.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 r=t[i];if(null!=r){if(x(r)||I(r)){e=fw;break}if(C(r)){e=gw;break}}}}else if(C(t))for(var o in t)if(q(t,o)&&d(t[o])){e=yw;break}return e}function rs(t){var e;if(t)return e=X(),g(t,function(t,i){var n,t={name:(t=C(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 os(t,e,i,n){if(e===xw)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&r<n;r++)t(o[r],r)}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 Gw[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,r,e=t.getRawDataItem(e);if(null!=e)return n=(r=t.getStore()).getSource().sourceFormat,null!=i?(t=t.getDimensionIndex(i),i=r.getDimensionProperty(t),fs(n)(e,t,i)):(r=e,n===dw?qi(e):r)}}function ms(){}function vs(t){var e,i;return C(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 ob.get(t)}function Cs(t,e){T(e)||Xi(""),this._opFn=ab[t],this._rvalFloat=Vi(e)}function Ms(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=[],r=0,o=i.length;r<o;r++)n.push(i[r].slice());return n}if(e===gw){for(n=[],r=0,o=i.length;r<o;r++)n.push(l({},i[r]));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=Gi(t),t=i.length;t||Xi("");for(var n=0,r=t;n<r;n++)e=function(t,e){e.length||Xi(""),C(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,r=e.data,o=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(o,_w),c=(t.__isBuiltIn&&(i.getRawDataItem=function(t){return u(r,a,s,t)},i.getRawData=$f(As,null,e)),i.cloneRawData=$f(Ds,null,e),ps(o,_w)),p=(i.count=$f(c,null,r,a,s),fs(o)),d=(i.retrieveValue=function(t,e){return t=u(r,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(Gi(n.transform({upstream:i[0],upstreamList:i,config:a(t.config)})),function(t,i){C(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!==r-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,r){if(i=yb[i||"float"],r){var o=t[e],a=o&&o.length;if(a!==n){for(var s=new i(n),l=0;l<a;l++)s[l]=o[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,r=t.fontWeight||"400",o=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(r+""),valueStyle:"font-size:"+yt(a+"")+"px;color:"+yt(o)+";font-weight:"+yt(t+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}function Us(t,e){return e.type=t,e}function Gs(t){return"section"===t.type}function js(t){return Gs(t)?qs:Zs}function qs(t,e,i,n){var r,o=e.noHeader,a=(h=function t(e){var i,n,r;return Gs(e)?(i=0,n=e.blocks.length,r=1<n||0<n&&!e.noHeader,f(e.blocks,function(e){var n=t(e);i<=n&&(i=n+ +(r&&(!n||Gs(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)?(r=new lb(c[u],null),h.sort(function(t,e){return r.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&h.reverse()),f(h,function(i,r){var o=e.valueFormatter,o=js(i)(o?l(l({},t),{valueFormatter:o}):t,i,0<r?a.html:0,n);null!=o&&s.push(o)}),"richText"===t.renderMode?s.join(a.richText):Qs(s.join(""),o?i:a.html));return o?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 r,o,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(o)?o[e]:o,d)})};if(!h||!u)return r=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":ga(p,"ordinal",d),o=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?"":r)+(h?"":$s(t,p,s))+(u?"":function(t,e,i,n,r){return r=[r],n=n?10:20,i&&r.push({padding:[0,0,0,n],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,r)}(t,f,e,a,n)):Qs((c?"":r)+(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,r,o){if(t)return js(t)({useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}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(Us("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(u.push(t),c.push(e.type)))}var i,n,r,o,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,o=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,o,t),t)}):f(T,e),i=(a={inlineValues:u,inlineValueTypes:c,blocks:p}).inlineValueTypes,n=a.blocks,r=(a=a.inlineValues)[0]):_?(T=m.getDimensionInfo(v[0]),r=a=ys(m,g,v[0]),i=T.type):r=a=b?w[0]:w;var _=Ji(d),v=_&&d.name||"",T=m.getName(g),b=t?v:T;return Us("section",{header:v,noHeader:t||!_,sortParam:r,blocks:[Us("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 rl(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 ol(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(U(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=jo("viewComponent")}function pl(){var t=rn();return function(e){var i=t(e),e=e.pipelineContext,n=!!i.large,r=!!i.progressiveRender,o=i.large=!(!e||!e.large),i=i.progressiveRender=!(!e||!e.progressiveRender);return!(n==o&&r==i)&&"reset"}}function dl(){this.group=new Jy,this.uid=jo("viewChart"),this.renderTask=_s({plan:yl,reset:ml}),this.renderTask.context={view:this}}function fl(t,e,i){t&&Or(t)&&("emphasis"===e?yr:mr)(t,i)}function gl(t,e,i){var n,r=nn(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,n=null==(n=Bv[e])&&Nv<=32?Bv[e]=Nv++:n):null;null!=r?f(Gi(r),function(e){fl(t.getItemGraphicEl(e),i,o)}):t.eachItemGraphicEl(function(t){fl(t,i,o)})}function yl(t){return kb(t.model)}function ml(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&Ib(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,i,n,r),Db[o]}function vl(t,e,i){function n(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o=(new Date).getTime(),s=this,l=t;var d=h||e,f=h||i;h=null,a=o-(f?u:c)-d,clearTimeout(p),f?p=setTimeout(n,d):0<=a?n():p=setTimeout(n,-a),u=o}var o,a,s,l,h,u=0,c=0,p=null;return e=e||0,r.clear=function(){p&&(clearTimeout(p),p=null)},r.debounceNextCall=function(t){h=t},r}function _l(t,e,i,n){var r=t[e];if(r){var o=r[Pb]||r,a=r[Lb];if(r[Ob]!==i||a!==n){if(null==i||!n)return t[e]=o;(r=t[e]=vl(o,i,"debounce"===n))[Pb]=o,r[Lb]=n,r[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 Cl(t){return t.overallProgress&&Ml}function Ml(){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=Gi(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,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.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,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,a=t.seriesIndex,s=t.option.selectedMap,h=r.selected,u=0;u<h.length;u++)h[u].seriesIndex===a&&(n=nn(e=t.getData(),r.fromActionPayload),i.trigger(o,{type:o,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,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?_o(t.slice(8),new Og(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?vo(t.slice(7),{},new Og(e,i,n,r),a?"center":"cover"):new nS({shape:{symbolType:t,x:e,y:i,width:n,height:r}})).__isEmptyBrush=s,a.setColor=Fl,o&&a.setColor(o),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,r,o,a,s,l,h,u,c,p="radial"===e.type?(n=t,r=e,a=(o=i).width,s=o.height,l=Math.min(a,s),h=null==r.x?.5:r.x,u=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(h=h*a+o.x,u=u*s+o.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)):(r=t,a=i,o=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||(o=o*a.width+a.x,l=l*a.width+a.x,n=n*a.height+a.y,h=h*a.height+a.y),o=Hl(o)?o:0,l=Hl(l)?l:1,n=Hl(n)?n:0,h=Hl(h)?h:0,r.createLinearGradient(o,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 Ul(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=i[n]&&"auto"!==i[n]?parseFloat(i[n]):(i=document.defaultView.getComputedStyle(t),(t[r]||Xl(i[n])||Xl(t.style[n]))-(Xl(i[o])||0)-(Xl(i[e])||0)|0)}function Gl(t){var e,i=t.style,n=i.lineDash&&0<i.lineWidth&&(r=i.lineDash,n=i.lineWidth,r&&"solid"!==r&&0<n?"dashed"===r?[4*n,2*n]:"dotted"===r?[n]:T(r)?[r]:x(r)?r:null:null),r=i.lineDashOffset;return n&&(e=i.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(n=g(n,function(t){return t/e}),r/=e),[n,r]}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,r){var o,a=!1;if(!n&&e===(i=i||{}))return!1;!n&&e.opacity===i.opacity||(ih(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Cm.opacity:o),!n&&e.blend===i.blend||(a||(ih(t,r),a=!0),t.globalCompositeOperation=e.blend||Cm.blend);for(var s=0;s<oS.length;s++){var l=oS[s];!n&&e[l]===i[l]||(a||(ih(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!n&&e.shadowColor===i.shadowColor||(a||(ih(t,r),a=!0),t.shadowColor=e.shadowColor||Cm.shadowColor),a}function th(t,e,i,n,r){var o=nh(e,r.inHover),a=n?null:i&&nh(i,r.inHover)||{};if(o!==a){var s=Jl(t,o,a,n,r);(n||o.fill!==a.fill)&&(s||(ih(t,r),s=!0),ql(o.fill))&&(t.fillStyle=o.fill),(n||o.stroke!==a.stroke)&&(s||(ih(t,r),s=!0),ql(o.stroke))&&(t.strokeStyle=o.stroke),!n&&o.opacity===a.opacity||(s||(ih(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(i=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==i)&&(s||(ih(t,r),s=!0),t.lineWidth=i);for(var l=0;l<aS.length;l++){var h=aS[l],u=h[0];!n&&o[u]===a[u]||(s||(ih(t,r),s=!0),t[u]=o[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 rh(t,e){oh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function oh(t,e,i,n){var r=e.transform;if(e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){var o=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}}(o,a)){if(a&&a.length&&(ih(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length){ih(t,i),t.save();for(var h=o,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=o}if(i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,T,C,M,I,k,A,D,P,O,L,E,R,N,a=i.prevEl,B=(a||(l=s=!0),e instanceof yv&&e.autoBatch&&(o=e.style,B=Zl(o),f=jl(o),!(o.lineDash||!(+B^+f)||B&&"string"!=typeof o.fill||f&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),s=(s||(f=r,o=a.transform,f&&o?f[0]!==o[0]||f[1]!==o[1]||f[2]!==o[2]||f[3]!==o[3]||f[4]!==o[4]||f[5]!==o[5]:f||o)?(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(),r=t,o=e,H=B,k=jl(m=s),A=Zl(m),D=m.strokePercent,P=D<1,O=!o.path,o.silent&&!P||!O||o.createPathProxy(),L=o.path||rS,E=o.__dirty,H||(v=m.fill,N=m.stroke,_=A&&!!v.colorStops,x=k&&!!N.colorStops,w=A&&!!v.image,b=k&&!!N.image,R=M=C=T=S=void 0,(_||x)&&(R=o.getBoundingRect()),_&&(S=E?Wl(r,v,R):o.__canvasFillGradient,o.__canvasFillGradient=S),x&&(T=E?Wl(r,N,R):o.__canvasStrokeGradient,o.__canvasStrokeGradient=T),w&&(C=E||!o.__canvasFillPattern?$l(r,v,o):o.__canvasFillPattern,o.__canvasFillPattern=C),b&&(M=E||!o.__canvasStrokePattern?$l(r,N,o):o.__canvasStrokePattern,o.__canvasStrokePattern=C),_?r.fillStyle=S:w&&(C?r.fillStyle=C:A=!1),x?r.strokeStyle=T:b&&(M?r.strokeStyle=M:k=!1)),R=o.getGlobalScale(),L.setScale(R[0],R[1],o.segmentIgnoreThreshold),r.setLineDash&&m.lineDash&&(I=(v=Gl(o))[0],Y=v[1]),N=!0,(O||E&Xg)&&(L.setDPR(r.dpr),P?L.setContext(null):(L.setContext(r),N=!1),L.reset(),o.buildPath(L,o.shape,H),L.toStatic(),o.pathUpdated()),N&&L.rebuildPath(r,P?D:1),I&&(r.setLineDash(I),r.lineDashOffset=Y),H||(m.strokeFirst?(k&&Ql(r,m),A&&Kl(r,m)):(A&&Kl(r,m),k&&Ql(r,m))),I&&r.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!=(C=(w=s).text)&&(C+=""),C&&(_.font=w.font||Nf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,T=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Gl(S))[0],T=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=T),w.strokeFirst?(jl(w)&&_.strokeText(C,w.x,w.y),Zl(w)&&_.fillText(C,w.x,w.y)):(Zl(w)&&_.fillText(C,w.x,w.y),jl(w)&&_.strokeText(C,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof bv)i.lastDrawType!==lS&&(l=!0,i.lastDrawType=lS),b=a,M=l,Jl(t,nh(e,(R=i).inHover),b&&nh(b,R.inHover),M,R),v=t,O=s,(o=(E=e).__image=vn(O.image,E.__image,E,E.onload))&&xn(o)&&(N=O.x||0,L=O.y||0,P=E.getWidth(),E=E.getHeight(),D=o.width/o.height,null==P&&null!=E?P=E*D:null==E&&null!=P?E=P/D:null==P&&null==E&&(P=o.width,E=o.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(o,g,y,O.sWidth,O.sHeight,N,L,P,E)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(o,g,y,P-g,E-y,N,L,P,E)):v.drawImage(o,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(),U=(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++)(G=W[z]).beforeBrush&&G.beforeBrush(),G.innerBeforeBrush(),oh(V,G,U,z===F-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),U.prevEl=G;for(var G,j=0,q=X.length;j<q;j++)(G=X[j]).beforeBrush&&G.beforeBrush(),G.innerBeforeBrush(),oh(V,G,U,j===q-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),U.prevEl=G;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(),r="svg"===n.painter.type,e=(t.dirty&&cS.delete(t),cS.get(t));if(e)return e;for(var o,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&&(o=l.join(",")+(r?"-svg":""),w=pS.get(o))&&(r?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(T(e))return[[o=Math.ceil(e),o]];for(var i=!0,n=0;n<e.length;++n)if(!T(e[n])){i=!1;break}if(i)return t([e]);var r=[];for(n=0;n<e.length;++n){var o;T(e[n])?(o=Math.ceil(e[n]),r.push([o,o])):(o=g(e[n],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(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 r=[];for(n=0;n<e.length;++n)b(e[n])?r.push([e[n]]):r.push(e[n]);return r}(a.symbol),v=function(t){return g(t,sh)}(f),_=sh(y),w=!r&&zf.createCanvas(),S=r&&{tag:"g",attrs:{},key:"dcl",children:[]},C=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 r=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();w&&(w.width=C.width*i,w.height=C.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 M=0,I=0;I<y.length;++I)M+=y[I];if(!(M<=0))for(var k=-_,A=0,D=0,P=0;k<C.height;){if(A%2==0){for(var O=D/2%m.length,L=0,E=0,R=0;L<2*C.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,o,s,l){var h=r?1:i,l=Vl(l,t*h,e*h,o*h,s*h,a.color,a.symbolKeepAspect);r?(t=n.painter.renderOneToVNode(l))&&S.children.push(t):rh(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(o,w||S),s.image=w,s.svgElement=S,s.svgWidth=C.width,s.svgHeight=C.height,e.rotation=a.rotation,e.scaleX=e.scaleY=r?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 r=VS.call(this,new Ub)||this,t=(r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},b(e)&&(e=ZS[e]),r._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}),r._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=(r._ssr=i.ssr,r._throttledZrFlush=vl($f(t.flush,t),17),(e=a(e))&&$a(e,!0),r._theme=e,r._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),r._coordSysMgr=new Ow,r._api=NS(r));return Wt(qS,n),Wt(GS,n),r._scheduler=new Vb(r,i,GS,qS),r._messageCenter=new YS,r._initEvents(),r.resize=$f(r.resize,r),t.animation.on("frame",r._onframe,r),PS(t,r),OS(t,r),V(r),r}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 r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}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,r){var o=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),h=0;h<l.length;h++)r=Math.max(t(l[h],i,n,r),r);else e.z=i,e.zlevel=n,r=Math.max(e.z2,r);return o&&(o.z=i,o.zlevel=n,isFinite(r))&&(o.z2=r+2),a&&(s=e.textGuideLineConfig,a.z=i,a.zlevel=n,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1)),r}(t,i,n,-1/0),!0}))}function yh(t,e){e.eachRendered(function(t){var e,i;uo(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"),r=0<t?{duration:t,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){var e,i,o;t.states&&t.states.emphasis&&(uo(t)||(t instanceof yv&&((o=zv(i=t)).normalFill=i.style.fill,o.normalStroke=i.style.stroke,i=i.states.select||{},o.selectFill=i.style&&i.style.fill||null,o.selectStroke=i.style&&i.style.stroke||null),t.__dirty&&(o=t.prevStates)&&t.useStates(o),n&&(t.stateTransition=r,i=t.getTextContent(),e=t.getTextGuideLine(),i&&(i.stateTransition=r),e)&&(e.stateTransition=r),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(GS,t,e,2e3)}function Sh(t){Ch("afterinit",t)}function Th(t){Ch("afterupdate",t)}function Ch(t,e){fS.on(t,e)}function Mh(t,e,i){w(e)&&(i=e,e="");var n=C(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,US[e]||(z(_S.test(n)&&_S.test(e)),XS[n]||(XS[n]={action:i,actionInfo:t}),US[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,r){(w(e)||C(e))&&(i=e,e=n),0<=u(iT,i)||(iT.push(i),(n=Vb.wrapStageHandler(i,r)).__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,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||Rh,this._newKeyGetter=n||Rh,this.context=r,this._diffModeMultiple="multiple"===o}function Bh(t,e){this._encode=t,this._schema=e}function zh(t,e){var i={},n=i.encode={},r=X(),o=[],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||(r.set(u,1),"ordinal"!==(l=h.type)&&"time"!==l&&(o[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=(r.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&&(o=u.slice()),n.tooltip);return u&&u.length?a=u.slice():a.length||(a=o.slice()),n.defaultedLabel=o,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=C(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,r=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(Yh(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!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),(o[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),r&&(c.storeDimIndex=u)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(n=this._dimIdxToName=X(),f(a,function(t){n.set(o[t].storeDimIndex,t)}))}function Uh(t,e){function i(t){var e,i,n,r=x[t];return r<0?(e=C(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[r]}function n(t,e,i){null!=pw.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,c.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}ts(t)||(t=is(t));for(var o,a,s=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],c=X(),p=[],d=(g=t,o=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,o.length,u.length,v||0),f(o,function(t){C(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 r,t=Gi(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(r=_.set(e,[]),f(t,function(t,o){null!=(t=b(t)?m.get(t):t)&&t<d&&n(i(r[o]=t),e,o)}))});var S=0;f(s,function(t){b(t)?(a=t,o={}):(a=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=l({},o)).ordinalMeta=t,e=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var e,r,o,a,s=_.get(a);if(!1!==s){if(!(s=Gi(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!=o.type&&(t.type=o.type),n(h(t,o),a,s),null==t.name&&e&&(C(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),r&&h(t.otherDims,r)})}});var T=e.generateCoord,M=null!=(I=e.generateCoordCount),I=T?I||1:0,k=T||"value";if(g)f(p,function(t){r(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,M),D.coordDimIndex=0,(!T||I<=0)&&(D.isExtraCoord=!0),I--),r(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 Gh(t){return"category"===t.get("type")}function jh(t,e,i){var n,r,o,a,s,l,h,u,c,p=(i=i||{}).byIndex,d=i.stackedCoordDimension,g=(Yh(e.schema)?(r=e.schema,n=r.dimensions,o=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},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(h,i),t.storeDimIndex=o.ensureCalculationDimension(l,i)),r.appendCalculationDimension(e),r.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,r,o,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=(r=t,c=(c=e).get("coordinateSystem"),c=Ow.get(c),p=(p=r&&r.coordSysDims?g(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=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=Uh(n,c),d=(c=p.dimensions,o=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(),o)&&(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=++CT}function Jh(t){return C(t)&&null!=t.value?t.value:t+""}function tu(t){return"interval"===t.type||"log"===t.type}function eu(t,e,i,n){var r={},o=t[1]-t[0],o=r.interval=Fi(o/e,!0),e=(null!=i&&o<i&&(o=r.interval=i),null!=n&&n<o&&(o=r.interval=n),r.intervalPrecision=nu(o)),i=r.niceTickExtent=[Di(Math.ceil(t[0]/o)*o,e),Di(Math.floor(t[1]/o)*o,e)];return n=i,o=t,isFinite(n[0])||(n[0]=o[0]),isFinite(n[1])||(n[1]=o[1]),ru(n,0,o),ru(n,1,o),n[0]>n[1]&&(n[0]=n[1]),r}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 ru(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function ou(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 MT({}))&&(e=new MT({categories:g(e,function(t){return C(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,r=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a<s;++a){var l=o.get(r,a);i[n]?i[n].push(l):i[n]=[l]}}),{});for(e in i)if(i.hasOwnProperty(e)){var r=i[e];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];0<s&&(o=null===o?s:Math.min(o,s))}n[e]=o}}return n}(t),r=[];return f(t,function(t){var e,i,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent(),s=(e="category"===o.type?o.getBandWidth():"value"===o.type||"time"===o.type?(e=o.dim+"_"+o.index,e=n[e],s=Math.abs(a[1]-a[0]),i=o.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");r.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:h,barCategoryGap:u,axisKey:pu(o),stackId:cu(t)})}),e={},f(r,function(t,i){var n=t.axisKey,r=t.bandWidth,r=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks,n=(e[n]=r,t.stackId),a=(o[n]||r.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),a=(a&&!o[n].width&&(o[n].width=a,a=Math.min(r.remainedWidth,a),r.remainedWidth-=a),t.barMaxWidth),a=(a&&(o[n].maxWidth=a),t.barMinWidth),o=(a&&(o[n].minWidth=a),t.barGap),n=(null!=o&&(r.gap=o),t.barCategoryGap);null!=n&&(r.categoryGap=n)}),i={},f(e,function(t,e){i[e]={};var n,r=t.stacks,o=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(r).length,a=Math.max(35-4*s,15)+"%"),Ai(a,o)),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(r,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(r,function(t,e){t.width||(t.width=c),p+=(n=t).width*(1+l)}),n&&(p-=n.width*l),-p/2);f(r,function(t,n){i[e][n]=i[e][n]||{bandWidth:o,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,r,o,a,s=t.type,l=(l=e,h=(u=t).getExtent(),(c=u.rawExtentInfo)||(c=new GT(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))&&(r=1/0,f(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,f(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(n=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/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,r=e.get("splitNumber"),o=(t instanceof UT&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setExtent(n[0],n[1]),t.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?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,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):b(r)?(i=r,function(e){return e=t.scale.getLabel(e),i.replace("{value}",null!=e?e:"")}):w(r)?(e=r,function(i,n){return null!=o&&(n=i.value-o),e(Cu(t,i),n,null!=i.level?{level:i.level}:null)}):function(e){return t.scale.getLabel(e)}}function Cu(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Mu(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=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:o[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));r?r.union(g):r=g}return r}}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,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];n+=Ln(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return Pu(r[0],s[0])&&Pu(r[1],s[1])||(n+=Ln(r[0],r[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 r=0;r<t.length;r++){var o=t[r];(o=n?n.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(lt(e,e,o),ht(i,i,o))}}function Ru(t){this.name=t}function Nu(t,e,i){return t=tC.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=i&&[i[0],i[1]],t}function Bu(t,e){return t=eC.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=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);n.push([(r=s+=r)/i,(o=l+=o)/i])}return n}function Vu(t,e){var i,n,r;return g(m((t=(i=t).UTF8Encoding?(null==(r=(n=i).UTF8Scale)&&(r=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,r);break;case"Polygon":case"MultiLineString":zu(n,i,r);break;case"MultiPolygon":f(n,function(t,e){return zu(t,i[e],r)})}}),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,r=[];switch(n.type){case"Polygon":var o=n.coordinates;r.push(new iC(o[0],o.slice(1)));break;case"MultiPolygon":f(n.coordinates,function(t){t[0]&&r.push(new iC(t[0],t.slice(1)))});break;case"LineString":r.push(new nC([n.coordinates]));break;case"MultiLineString":r.push(new nC(n.coordinates))}return t=new rC(i[e||"name"],r,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,r,o,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?(r=(a=t).getLabelModel(),o=Xu(a,r),!r.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(i=t).scale.getTicks(),n=Tu(i),{labels:g(r,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,r,o,a,s=t.getTickModel().get("customValues");return s?{ticks:Yu(t,s)}:"category"===t.type?(s=e,r=Uu(e=t,"ticks"),o=Iu(s),(a=Gu(r,o))||(s.get("show")&&!e.scale.isBlank()||(i=[]),i=w(o)?Zu(e,o,!0):"auto"===o?(a=Xu(e,e.getLabelModel()),n=a.labelCategoryInterval,g(a.labels,function(t){return t.tickValue})):qu(e,n=o,!0),ju(r,o,{ticks:i,tickCategoryInterval:n}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Xu(t,e){var i,n=Uu(t,"labels"),e=Iu(e),r=Gu(n,e);return r||ju(n,e,{labels:w(e)?Zu(t,e):qu(t,i="auto"===e?null!=(n=oC(r=t).autoInterval)?n:oC(r).autoInterval=r.calculateCategoryInterval():e),labelCategoryInterval:i})}function Uu(t,e){return oC(t)[e]||(oC(t)[e]=[])}function Gu(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:r(e),rawLabel:o.getLabel(e),tickValue:t})}for(var r=Tu(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),e=a[0],u=o.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,r=Tu(t),o=[];return f(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}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,r,o,a,s){var l=r-t,h=o-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-r)*(h-r)+(s-o)*(s-o))}function Ju(t,e,i,n,r,o,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(r,t),i),i=a[1]=Math.min(Math.max(o,e),n),Math.sqrt((t-r)*(t-r)+(i-o)*(i-o))}function tc(t,e,i){for(var n,r,o,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 lC.M:p=f=m[x++],d=g=m[x++];break;case lC.L:b=$u(p,d,m[x],m[x+1],v,_,uC,!0),p=m[x++],d=m[x++];break;case lC.C:b=te(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,uC),p=m[x++],d=m[x++];break;case lC.Q:b=oe(p,d,m[x++],m[x++],m[x],m[x+1],v,_,uC),p=m[x++],d=m[x++];break;case lC.A:var S=m[x++],T=m[x++],C=m[x++],M=m[x++],I=m[x++],k=m[x++],A=(x+=1,!!(1-m[x++])),D=Math.cos(I)*C+S,P=Math.sin(I)*M+T;x<=1&&(f=D,g=P),P=(D=I)+k,A=A,a=(v-S)*(o=M)/C+S,s=_,l=uC,c=u=h=void 0,a-=n=S,s-=r=T,h=Math.sqrt(a*a+s*s),u=(a/=h)*o+n,c=(s/=h)*o+r,b=Math.abs(D-P)%sC<1e-4||((P=A?(A=D,D=On(P),On(A)):(D=On(D),On(P)))<D&&(P+=sC),(A=Math.atan2(s,a))<0&&(A+=sC),D<=A&&A<=P)||D<=A+sC&&A+sC<=P?(l[0]=u,l[1]=c,h-o):(c=((A=o*Math.cos(D)+n)-a)*(A-a)+((u=o*Math.sin(D)+r)-s)*(u-s))<(n=((h=o*Math.cos(P)+n)-a)*(h-a)+((D=o*Math.sin(P)+r)-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)*C+S,d=Math.sin(I+k)*M+T;break;case lC.R:b=Ju(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,uC);break;case lC.Z:b=$u(p,d,f,g,v,_,uC,!0),p=f,d=g}b<y&&(y=b,i.set(uC[0],uC[1]))}return y}function ec(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||hC,s=n.getBoundingRect().clone(),l=(s.applyTransform(n.getComputedTransform()),1/0),h=r.anchor,u=t.getComputedTransform(),c=u&&Dt([],u),p=e.get("length2")||0;h&&dC.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=cC,w=fC,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(pC,cC,fC,p),pC.transform(c),y=t.getBoundingRect(),y=h?h.distance(pC):t instanceof yv?tc(pC,t.path,dC):(m=dC,d=Ju((d=y).x,y.y,y.width,y.height,pC.x,pC.y,uC),m.set(uC[0],uC[1]),d),y<l&&(l=y,pC.transform(u),dC.transform(u),dC.toArray(o[0]),pC.toArray(o[1]),cC.toArray(o[2]))}n=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,cC.fromArray(n[0]),pC.fromArray(n[1]),dC.fromArray(n[2]),Sg.sub(fC,cC,pC),Sg.sub(gC,dC,pC),e=fC.len(),f=gC.len(),e<.001||f<.001||(fC.scale(1/e),gC.scale(1/f),e=fC.dot(gC),Math.cos(r)<e&&(f=$u(pC.x,pC.y,dC.x,dC.y,cC.x,cC.y,yC,!1),mC.fromArray(yC),mC.scaleAndAdd(gC,f/Math.tan(Math.PI-r)),e=dC.x!==pC.x?(mC.x-pC.x)/(dC.x-pC.x):(mC.y-pC.y)/(dC.y-pC.y),isNaN(e)||(e<0?Sg.copy(mC,pC):1<e&&Sg.copy(mC,dC),mC.toArray(n[1]))))),i.setShape({points:o})}}}function ic(t,e,i,n){var r="normal"===i,i=r?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());r?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=og(n[0],n[1]),r=og(n[1],n[2]);e&&r?(i=Math.min(e,r)*i,e=at([],n[1],n[0],i/e),i=at([],n[1],n[2],i/r),r=at([],e,i,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[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 o=1;o<n.length;o++)t.lineTo(n[o][0],n[o][1])}function rc(t){for(var e=[],i=0;i<t.length;i++){var n,r,o,a,s,l,h=t[i];h.defaultAttr.ignore||(r=(n=h.label).getComputedTransform(),o=n.getBoundingRect(),a=!r||r[1]<1e-5&&r[2]<1e-5,l=n.style.margin||0,(s=o.clone()).applyTransform(r),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new sx(o,r):null,e.push({label:n,labelLine:h.labelLine,rect:s,localRect:o,obb:l,priority:h.priority,defaultAttr:h.defaultAttr,layoutOption:h.computedLayoutOption,axisAligned:a,transform:r}))}return e}function oc(t,e,i,n,r,o){function a(){_=w.rect[e]-n,x=r-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,r){0!==i&&(d=!0);for(var o=n;o<r;o++){var a=t[o];a.rect[e]+=i,a.label[e]+=i}}function h(n,r){for(var o=[],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);o.push(h),a+=h}if(a){var u=Math.min(Math.abs(n)/a,r);if(0<n)for(s=0;s<c-1;s++)l(o[s]*u,0,s+1);else for(s=c-1;0<s;s--)l(-o[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&&o&&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)),r=0;r<t.length;r++){for(var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,h=o.label,u=o.labelLine,c=(n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,o.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",o.defaultAttr.ignore),u&&u.attr("ignore",o.defaultAttr.labelGuideIgnore),i.push(o))}}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 r=i[n];null!=e[r]&&(t[r]=e[r])}}function hc(){this._labelList=[],this._chartViewList=[]}function uc(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){(TC(e).labelManager||(TC(e).labelManager=new SC)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=TC(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(),r=e.getWidth(),e=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=e*i,n}function pc(t,e,i){var n,r=CC.call(this)||this,t=(r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,i=i||Ny,"string"==typeof t?n=cc(t,e,i):C(t)&&(t=(n=t).id),r.id=t,(r.dom=n).style);return t&&(j(n),n.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=i,r}function dc(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Ny,this._singleCanvas=r,(this.root=t).style&&(j(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=i.width&&(o=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new MC(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[IC]=o).zlevel=IC,e.push(IC),this._domRoot=t):(this._width=Ul(t,0,i),this._height=Ul(t,1,i),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}function fc(){var t=null!==AC&&AC.apply(this,arguments)||this;return t.type="dataset",t}function gc(){var t=null!==PC&&PC.apply(this,arguments)||this;return t.type="dataset",t}function yc(t){t.registerComponentModel(DC),t.registerComponentView(OC)}function mc(){var t=null!==LC&&LC.apply(this,arguments)||this;return t.type=mc.type,t.hasSymbolVisual=!0,t}function vc(t,e){var i,n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r)return null!=(i=ys(t,e,n[0]))?i+"":null;if(r){for(var o=[],a=0;a<n.length;a++)o.push(ys(t,e,n[a]));return o.join(" ")}}function _c(t,e,i,n){var r=RC.call(this)||this;return r.updateData(t,e,i,n),r}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||C(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:zo(t),cursorStyle:t.get("cursor")}}function Tc(t){this.group=new Jy,this._SymbolCtor=t||NC}function Cc(t,e,i){var n=t.getBaseAxis(),r=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}(r,i),n=n.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(n),s="x"===r||"radius"===r?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:r,baseAxisDim:n,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mc(t,e,i,n){var r=NaN,o=(t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function Ic(t,e){return isNaN(t)||isNaN(e)}function kc(t,e,i,n,r,o,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(r<=d||d<0)break;if(Ic(g,y)){if(l){d+=o;continue}break}if(d===i)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-h,v=y-u;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<n;)f++,d+=o,x=e[2*(_+=o)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;Ic(x,w)&&b<n;)b++,x=e[2*(_+=o)],w=e[2*_+1];var S,T,C,M,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,C=y-u,M=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(C))*a,O=A=g,y+P*(k=Math.abs(M))*a):(I=Math.sqrt(S*S+C*C),A=g-m*a*(1-(S=(k=Math.sqrt(T*T+M*M))/(k+I))),D=y-v*a*(1-S),L=y+v*a*S,O=FC(O=g+m*a*S,VC(x,g)),L=FC(L,VC(w,y)),O=VC(O,FC(x,g)),D=y-(v=(L=VC(L,FC(w,y)))-y)*I/k,A=FC(A=g-(m=O-g)*I/k,VC(h,g)),D=FC(D,VC(u,y)),O=g+(m=g-(A=VC(A,FC(h,g))))*k/I,y+(v=y-(D=VC(D,FC(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+=o}return f}function Ac(t){return t=BC.call(this,t)||this,t.type="ec-polyline",t}function Dc(){return null!==WC&&WC.apply(this,arguments)||this}function Pc(t){return t=UC.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,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}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(),r="x"===e.dim||"radius"===e.dim?0:1,o=[],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],o.push(l[0],l[1]),i){case"end":s[r]=h[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=[];s[r]=c[r]=(l[r]+h[r])/2,s[1-r]=l[1-r],c[1-r]=h[1-r],o.push(s[0],s[1]),o.push(c[0],c[1]);break;default:s[r]=l[r],s[1-r]=h[1-r],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function Bc(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=n.length-1;0<=o;o--){var a,s=t.getDimensionInfo(n[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=n[o];break}}if(r){var l=e.getAxis(a),e=g(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=e.length,u=r.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,r,o=[],a=t.length,s=0;s<a;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(e<h){r?o.push(i(r,l,e)):n&&o.push(i(n,l,0),i(n,l,e));break}n&&(o.push(i(n,l,0)),n=null),o.push(l),r=l}}return o}(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 r,o,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(),r=(isNaN(n)&&(n=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*NC.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return;return 1}(a,e)))return r=e.mapDimension(a.dim),o={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function 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 r,o,a,s,l,h,u,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},x=Yc(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,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,ho(_,{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,ho(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Wc(){return null!==jC&&jC.apply(this,arguments)||this}function Xc(){return null!==QC&&QC.apply(this,arguments)||this}function Uc(){return null!==JC&&JC.apply(this,arguments)||this}function Gc(t,e,n,r){f(iM,function(o,a){function l(){var t=null!==h&&h.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var h,u=s(s({},eM[a],!0),r,!0),u=(i(l,h=n),l.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ca(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=MT.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!==rM&&rM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=nM,t}function Qc(t,e,i,n,r){return t=aM.call(this,t,e,i)||this,t.index=0,t.type=n||"value",t.position=r||"bottom",t}function $c(t,e,i){i=i||{};var t=t.coordinateSystem,n=e.axis,r={},o=n.getAxesOnZeroOf()[0],a=n.position,s=o?"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=(o&&(u=o.toGlobalCoord(o.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),r.position=["y"===n?h[l[s]]:t[0],"x"===n?h[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===n?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),L(i.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-u:u,r.z2=1,r}function Jc(t){return"cartesian2d"===t.get("coordinateSystem")}function tp(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(i,n){var r=n.replace(/Model$/,""),r=t.getReferringComponents(r,cm).models[0];e[n]=r}),e}function ep(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nM,this._initCartesian(t,e,i),this.model=t}function ip(t,e){return t.getCoordSysModel()===e}function np(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],t=i.model,e=t.get(["axisLine","onZero"]),i=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=i)rp(a[i])&&(o=a[i]);else for(var s in a)if(a.hasOwnProperty(s)&&rp(a[s])&&!n[r(a[s])]){o=a[s];break}o&&(n[r(o)]=!0)}}function rp(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 op(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(),r=e&&e.getBoundingRect().clone();if(n&&r)return kt(i=Tt([]),i,-t.rotation),n.applyTransform(Mt([],i,t.getLocalTransform())),r.applyTransform(Mt([],i,e.getLocalTransform())),n.intersect(r)}function lp(t){return"middle"===t||"center"===t}function hp(t,e,i,n,r){for(var o=[],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}));So(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function up(t,e){var i,n,r,o,s,l,u,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i=c,e=e,r=(n=t).getComponent("tooltip"),o=n.getComponent("axisPointer"),s=o.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,r,p){var d,g,y=p.model.getModel("axisPointer",o),m=y.get("show");m&&("auto"!==m||e||dp(y))&&(null==r&&(r=y.get("triggerTooltip")),m=(y=e?function(t,e,i,n,r,o){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!o,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===r&&(r=s.get(["label","show"]),e.show=null==r||r,o||(r=l.lineStyle=s.get("crossStyle"))&&h(e,r.textStyle)),t.model.getModel("axisPointer",new Ox(l,i,n))}(p,c,o,n,e,r):y).get("snap"),e=y.get("triggerEmphasis"),d=fp(p.model),g=r||m||"category"===p.type,r=i.axesInfo[d]={key:d,axis:p,coordSys:t,axisPointerModel:y,triggerTooltip:r,triggerEmphasis:e,involveSeries:g,snap:m,useHandle:dp(y),seriesModels:[],linkGroup:null},u[d]=r,i.seriesInvolved=i.seriesInvolved||g,null!=(e=function(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(cp(o[n+"AxisId"],i.id)||cp(o[n+"AxisIndex"],i.componentIndex)||cp(o[n+"AxisName"],i.name))return r}}(s,p)))&&((m=l[e]||(l[e]={axesInfo:{}})).axesInfo[d]=r,m.mapper=s[e].mapper,r.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",r),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&r&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(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!==hM&&hM.apply(this,arguments)||this;return t.type=gp.type,t}function yp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=yp.type,t.axisPointerClass="CartesianAxisPointer",t}function mp(){var t=null!==cM&&cM.apply(this,arguments)||this;return t.type=mp.type,t}function vp(){var t=null!==SM&&SM.apply(this,arguments)||this;return t.type=bM.type,t}function _p(){var t=null!==CM&&CM.apply(this,arguments)||this;return t.type="grid",t}function xp(){var t=null!==kM&&kM.apply(this,arguments)||this;return t.type=xp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function wp(){var t=null!==DM&&DM.apply(this,arguments)||this;return t.type=wp.type,t}function bp(){var t=null!==OM&&OM.apply(this,arguments)||this;return t.type=bp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Sp(){var t=null!==LM&&LM.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}),Mp(t,e,i,n)}function Cp(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;n<r&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function Mp(t,e,i,n){Cp(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Ip(t,e,i,n){Cp(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,r={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&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),r.hasOwnProperty(t)?r[t]=r[t]&&e:r[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Dp(t){t.registerComponentModel(EM),t.registerComponentView(zM),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!==FM&&FM.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!==VM&&VM.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 C(e)&&C(i)?(n=!0,f(i,function(i,r){n=n&&t(e[r],i)}),!!n):e===i}(GM(i).lastProp,n)&&(GM(i).lastProp=n,e?lo(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"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function Fp(t,e,i,n,r){var o=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(o,s),h=r.position,u=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(h[0]-=u),"center"===c&&(h[0]-=u/2),r.verticalAlign),n=("bottom"===c&&(h[1]-=l),"middle"===c&&(h[1]-=l/2),r=h,c=u,u=l,n=(l=n).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,n)-c,r[1]=Math.min(r[1]+u,l)-u,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),i.get("backgroundColor"));n&&"auto"!==n||(n=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Fo(i,{text:o,font:s,fill:i.getTextColor(),padding:a,backgroundColor:n}),z2:10}}function Vp(t,e,i,n,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:Cu(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&&o.seriesData.push(e)}),b(r)?a=r.replace("{value}",a):w(r)&&(a=r(o))),a}function Yp(t,e,i){var n=St();return kt(n,n,i.rotation),It(n,n,i.position),Co([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Hp(){return null!==ZM&&ZM.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 Up(){var t=null!==$M&&$M.apply(this,arguments)||this;return t.type=Up.type,t}function Gp(t,e,i){function n(t,e){o.on(t,function(t){function i(t){var e=r[t.type];e?e.push(t):(t.dispatchAction=i,n.dispatchAction(t))}n=a;var n,r,s={dispatchAction:i,pendings:r={showTip:[],hideTip:[]}};eI(tI(o).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 r,o,a;Pf.node||(r=e.getZr(),tI(r).records||(tI(r).records={}),a=e,tI(o=r).initialized||(tI(o).initialized=!0,n("click",_(qp,"click")),n("mousemove",_(qp,"mousemove")),n("globalout",jp)),(tI(r).records[t]||(tI(r).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,r,o,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),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=i.mapDimension(e),(o=[])[t]=i.get(e,s),o[1-t]=i.get(i.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(i.getValues(g(r.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,r,o,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),r=w.axesInfo,o=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 o=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}}(r,t);a||!i||r&&!l||null!=(l=null!=(l=l&&l.value)||n?l:o.pointToData(x))&&Jp(t,l,h,!1,s)})}),u={},f(o,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(o[e],t,h,!0,s)}),c=l,w=o,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=o,w=(t=i).getZr(),b="axisPointerLastHighlights",d=rI(w)[b]||{},g=rI(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,r){var o,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 r=t.getAxisTooltipData(n,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=t.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;r=t.getData().get(n[0],o[0])}null!=r&&isFinite(r)&&(n=a-r,(i=Math.abs(n))<=p)&&((i<p||0<=n&&d<0)&&(p=i,d=n,u=r,c.length=0),f(o,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(o={payloadBatch:c,snapToValue:u}).snapToValue,(g=o.payloadBatch)[0]&&null==r.seriesIndex&&l(r,g[0]),!n&&t.snap&&m.containData(y)&&null!=y&&(e=y),i.showPointer(t,e,g),i.showTooltip(t,o,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 r,o,i=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&i.length&&(r=fp(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value: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 rd(t){mM.registerAxisPointerClass("CartesianAxisPointer",KM),t.registerComponentModel(JM),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 od(){var t=null!==oI&&oI.apply(this,arguments)||this;return t.type=od.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,r,o=[],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 o.push("box-shadow:"+u+"px "+c+"px "+l+"px "+h),e&&a&&o.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&&o.push("background-color:"+s),f(["width","color","radius"],function(e){var i="border-"+e,n=fa(i),n=t.get(n);null!=n&&o.push(i+":"+n+("color"===e?"":"px"))}),o.push((r=[],e=(n=p).get("fontSize"),(a=n.getTextColor())&&r.push("color:"+a),r.push("font:"+n.getFont()),e&&r.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&&r.push("text-shadow:"+i+"px "+u+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=n.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=d&&o.push("padding:"+Zx(d).join("px ")+"px"),o.join(";")+";"}function cd(t,e,i,n,r){var o,a,s=e&&e.painter;i?(o=s&&s.getViewportRoot())&&(a=t,i=i,ft(dg,o,n,r,!0))&&ft(a,i,dg[0],dg[1]):(t[0]=n,t[1]=r,(o=s&&s.getViewportRootOffset())&&(t[0]+=o.offsetLeft,t[1]+=o.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())),r=(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(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=n.handler,xt(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._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,r=i?(r=new Ox(i,n,n),new Ox(e.option,r,n)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(b(a=a instanceof Ox?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new Ox(a,r,n))}return r}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,r,o){var a=[],s=qh(e,n)?e.getCalculationInfo("stackResultDimension"):n,t=Id(e,s,t),t=e.indicesOfNearest(s,t)[0],r=(a[r]=e.get(i,t),a[o]=e.get(s,t),e.get(n,t)),i=Pi(e.get(n,t));return 0<=(i=Math.min(i,20))&&(a[o]=+a[o].toFixed(i)),[a,r]}function Cd(t,e){if(e){var i,n=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(i=e,(isNaN(parseFloat(i.x))||isNaN(parseFloat(i.y)))&&!x(e.coord)&&x(o)&&(i=function(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(function(t,e){return(t=t.getData().getDimensionInfo(e))&&t.coordDim}(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}(e,n,r,t),(e=a(e)).type&&bI[e.type]&&i.baseAxis&&i.valueAxis?(r=u(o,i.baseAxis.dim),t=u(o,i.valueAxis.dim),i=bI[e.type](n,i.baseDataDim,i.valueDataDim,r,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(o))for(var s=e.coord,l=0;l<2;l++)bI[s[l]]&&(s[l]=Id(n,n.mapDimension(o[l]),s[l]));else e.coord=[];return e}}function Md(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,r;return"average"===i?(r=n=0,t.each(e,function(t,e){isNaN(t)||(n+=t,r++)}),n/r):"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(r){var o,a,s,l=t.getItemModel(r),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,r)):n&&(o=t.get(n.dimensions[0],r),a=t.get(n.dimensions[1],r),s=n.dataToPoint([o,a])):s=[h,l],isNaN(h)||(s[0]=h),isNaN(l)||(s[1]=l),t.setItemLayout(r,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(o=(o=t).not)||Xi(""),(l=new PI).child=Bd(o,i),l.child||Xi(""),l;for(var n=t,r=e,o=r.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||r.valueGetterAttrMap.get(p)||(c=q(MI,p)?MI[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=o,l.valueParser=h,l.getValue=r.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 C(t)&&!d(t)}function Vd(t,e){this._cond=Bd(t,e)}function Yd(){}function Hd(t,e,i,n){var r=null==e.opacity?1:e.opacity;if(i instanceof bv)t("opacity",r);else if(null!=(o=(o=e).fill)&&o!==WI?(t("fill",(o=Ie(e.fill)).color),o=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r,(n||o<1)&&t("fill-opacity",o)):t("fill",WI),null!=(o=(o=e).stroke)&&o!==WI){var o=Ie(e.stroke),a=(t("stroke",o.color),e.strokeNoScale?i.getLineScale():1),a=a?(e.lineWidth||0)/a:0,o=null!=e.strokeOpacity?e.strokeOpacity*o.opacity*r:o.opacity*r,r=e.strokeFirst;!n&&1==a||t("stroke-width",a),(n||r)&&t("paint-order",r?"stroke":"fill"),(n||o<1)&&t("stroke-opacity",o),e.lineDash?(r=(a=Gl(i))[0],o=a[1],r&&(o=XI(o||0),t("stroke-dasharray",r.join(",")),o||n)&&t("stroke-dashoffset",o)):n&&t("stroke-dasharray",WI);for(var s=0;s<UI.length;s++){var l=UI[s];(n||e[l]!==dv[l])&&(l=e[l]||dv[l])&&t(GI[s],l)}}else n&&t("stroke",WI)}function Wd(t){return document.createElementNS(jI,t)}function Xd(t,e,i,n,r){return{tag:t,attrs:i||{},children:n,text:r,key:e}}function Ud(t,e){var i=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,r=e.tag,o=e.attrs,e=e.text;return function(t,e){var i=[];if(e)for(var n in e){var r=e[n];!1!==r&&(!0!==r&&null!=r&&(n+='="'+r+'"'),i.push(n))}return"<"+t+" "+i.join(" ")+">"}(r,o)+("style"!==r?yt(e):e||"")+(n?i+g(n,t).join(i)+i:"")+"</"+r+">"}(t)}function Gd(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 r=t.animators,o=r.length,a=[];if(t instanceof Q_){if(h=function(t,e,i){var n,r,t=t.shape.paths,o={};if(f(t,function(t){var e=Gd(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[r=e[s-1]];for(l in u){var c=u[l];o[l]=o[l]||{d:""},o[l].d+=c.d||""}for(h in a){var p=a[h].animation;0<=p.indexOf(r)&&(n=p)}}}),n)return e.d=!1,t=qd(o,i),n.replace(r,t)}(t,e,i))a.push(h);else if(!o)return}else if(!o)return;for(var s,h,u,c={},p=0;p<o;p++){var d=r[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(r){function o(t,e,i){for(var n=t.getTracks(),r=t.getMaxTime(),o=0;o<n.length;o++){var a=n[o];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/r*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=r[1],u=h.length,c={},p={},d={},f="animation-timing-function",g=0;g<u;g++)(O=(P=h[g]).targetName)?"shape"===O&&o(P,p):n||o(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,C,M=!0;for(D in p){d[D]=d[D]||{};var I=!s,x=p[D][f],k=(s=I?new ov:s).len(),A=(s.reset(),d[D].d=(S=p[D],C=s,A=void 0,A=l({},(w=t).shape),l(A,S),w.buildPath(C,A),(S=new HI).reset(Be(w)),C.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==A){M=!1;break}x&&(d[D][f]=x)}if(!M)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)&&o(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)+" "+r[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 r=JSON.stringify(t),o=i.cssStyleCache[r];o||(o=i.zrId+"-cls-"+$I++,i.cssStyleCache[r]=o,i.cssNodes["."+o+(n?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}function $d(t){return t&&b(t.src)}function Jd(t){return t&&w(t.toDataURL)}function tf(t,e,i,n){Hd(function(r,o){var a="fill"===r||"stroke"===r;a&&Re(o)?hf(e,t,r,n):a&&Oe(o)?uf(i,t,r,n):t[r]=a&&"none"===o?"transparent":o},e,i,!1);var r=t,o=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=o.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=o.zrId+"-s"+o.shadowIdx++,o.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}r.filter=Ne(l)}}function ef(t,e){var i=Mi(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 rf(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 of(t,e,i){for(var n=t.points,r=[],o=0;o<n.length;o++)r.push(ik(n[o][0]*i)/i),r.push(ik(n[o][1]*i)/i);e.points=r.join(" ")}function af(t){return!t.smooth}function sf(t,e){var i,n,r,o,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(),r=(n=t).__svgPathBuilder,n.__svgPathVersion===c&&r&&d===n.__svgPathStrokePercent||((r=r||(n.__svgPathBuilder=new HI)).reset(f),i.rebuildPath(r,d),r.generateStr(),n.__svgPathVersion=c,n.__svgPathStrokePercent=d),u.d=r.getStr()):(p=t.type,i=Math.pow(10,f),h[0](l,u,i)),rf(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=(r=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(o=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||o)&&(f=Me(h)),(o=r.lineWidth)&&(o/=!r.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),r.stroke&&(a.stroke=r.stroke),o&&(a["stroke-width"]=o),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,r=i.style,o=r.image;if(o&&!b(o)&&($d(o)?o=o.src:Jd(o)&&(o=o.toDataURL())),o)return a=r.x||0,s=r.y||0,o={href:o,width:r.width,height:r.height},a&&(o.x=a),s&&(o.y=s),rf(o,i.transform),tf(o,r,i,n),ef(o,i),n.animation&&Kd(i,o,n),Xd("image",i.id+"",o)}else if(t instanceof vv){var a=t,s=e,r=a.style,n=r.text;if(null!=n&&(n+=""),n&&!isNaN(r.x)&&!isNaN(r.y)){var i=r.font||Nf,o=r.x||0,l=(t=r.y||0,e=di(i),"top"===(l=r.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":gy[r.textAlign]||r.textAlign};if(jn(r)){var t="",h=r.fontStyle,u=Un(r.fontSize);if(!parseFloat(u))return;var c=r.fontFamily||Rf,p=r.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"),o&&(e.x=o),l&&(e.y=l),rf(e,a.transform),tf(e,r,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 r,t=t[i],o={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Le(t))r="linearGradient",o.x1=t.x,o.y1=t.y,o.x2=t.x2,o.y2=t.y2;else{if(!Ee(t))return;r="radialGradient",o.cx=E(t.x,.5),o.cy=E(t.y,.5),o.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=Ud(Xd(r,"",o,s)),d=n.gradientCache,f=d[t];f||(f=n.zrId+"-g"+n.gradientIdx++,d[t]=f,o.id=f,n.defs[f]=Xd(r,f,o,s)),e[i]=Ne(f)}function uf(t,e,i,n){var r,o,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)?(o=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(o,c="Image width/height must been given explictly in svg-ssr renderer."),z(s,c)):null!=o&&null!=s||(l=function(t,e){var i,n;t&&(i=t.elm,n=o||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(r,t)}))&&c.width&&c.height&&(o=o||c.width,s=s||c.height)),r=Xd("image","img",{href:y,width:o,height:s}),g.width=o,g.height=s):d.svgElement&&(r=a(d.svgElement),g.width=d.svgWidth,g.height=d.svgHeight),r&&(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=Ud(u=Xd("pattern","",g,[r])),(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,[r])),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 r=t.elm=Wd(n);if(Tf(ak,t),x(i))for(e=0;e<i.length;++e){var o=i[e];null!=o&&ff(r,wf(o))}else _f(t.text)&&!C(t.text)&&ff(r,cf(t.text))}else t.elm=cf(t.text);return t.elm}function bf(t,e,i,n,r){for(;n<=r;++n){var o=i[n];null!=o&&pf(t,wf(o),e)}}function Sf(t,e,i,n){for(;i<=n;++i){var r=e[i];null!=r&&(_f(r.tag)?df(gf(r.elm),r.elm):df(t,r.elm))}}function Tf(t,e){var i,n=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(i in o){var a=o[i];r[i]!==a&&(!0===a?n.setAttribute(i,""):!1===a?n.removeAttribute(i):"style"===i?n.style.cssText=a:i.charCodeAt(0)!==ok?n.setAttribute(i,a):"xmlns:xlink"===i||"xmlns"===i?n.setAttributeNS(ZI,i,a):i.charCodeAt(3)===rk?n.setAttributeNS(KI,i,a):i.charCodeAt(5)===rk?n.setAttributeNS(qI,i,a):n.setAttribute(i,a))}for(i in r)i in o||n.removeAttribute(i)}}function Cf(t,e,i){for(var n,r,o,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)?(Mf(h,p),h=e[++a],p=i[++s]):xf(u,d)?(Mf(u,d),u=e[--l],d=i[--c]):xf(h,d)?(Mf(h,d),pf(t,h.elm,yf(u.elm)),h=e[++a],d=i[--c]):(xf(u,p)?(Mf(u,p),pf(t,u.elm,h.elm),u=e[--l]):(vf(n)&&(n=function(t,e,i){for(var n={},r=e;r<=i;++r){var o=t[r].key;void 0!==o&&(n[o]=r)}return n}(e,a,l)),vf(r=n[p.key])||(o=e[r]).tag!==p.tag?pf(t,wf(p),h.elm):(Mf(o,p),e[r]=void 0,pf(t,o.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 Mf(t,e){var i=e.elm=t.elm,n=t.children,r=e.children;t!==e&&(Tf(t,e),vf(e.text)?_f(n)&&_f(r)?n!==r&&Cf(i,n,r):_f(r)?(_f(t.text)&&mf(i,""),bf(i,null,r,0,r.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=(rg=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),rg.svgSupported="undefined"!=typeof SVGRect,rg.touchEventsSupported="ontouchstart"in window&&!sg.ie&&!sg.edge,rg.pointerEventsSupported="onpointerdown"in window&&(sg.edge||sg.ie&&11<=+sg.version),rg.domSupported="undefined"!=typeof document,Qf=document.documentElement.style,rg.transform3dSupported=(sg.ie&&"transition"in Qf||sg.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Qf)&&!("OTransition"in Qf),rg.transformSupported=rg.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),r=(t.charCodeAt(i)-20)/100;e[n]=r}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,r=0;if(0<=e.indexOf("mono"))r=n*t.length;else for(var o=0;o<t.length;o++){var a=Bf[t[o]];r+=null==a?n:a*n}return{width:r}},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,Uf=Hf.slice,Gf=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(Uf.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,rg=Object.freeze({__proto__:null,HashMap:ig,RADIAN_TO_DEGREE:ng,assert:z,bind:$f,clone:a,concatArray:U,createCanvas:Qf,createHashMap:X,createObject:G,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,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return t[n]},guid:r,hasOwn:q,indexOf:u,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:M,isDom:k,isFunction:w,isGradientObject:A,isImagePatternObject:D,isNumber:T,isObject:C,isPrimitive:Y,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:o,map:g,merge:s,mergeAll:function(t,e){for(var i=t[0],n=1,r=t.length;n<r;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}),og=rt,ag=ot,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:og,distSquare:ag,distance:rt,distanceSquare:ot,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,r,o=this._draggingTarget;o&&(e=t.offsetX,i=t.offsetY,n=e-this._x,r=i-this._y,this._x=e,this._y=i,o.drift(n,r,t),this.handler.dispatchToElement(new lg(o,t),"drag",t.event),n=this.handler.findHover(e,i,o).target,r=this._dropTarget,o!==(this._dropTarget=n))&&(r&&n!==r&&this.handler.dispatchToElement(new lg(r,t),"dragleave",t.event),n)&&n!==r&&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 r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),i&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;o={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},e=r[t].length-1,n=r[t][e],n&&n.callAtLast?r[t].splice(e,0,o):r[t].push(o)}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=[],r=0,o=i[t].length;r<o;r++)i[t][r].h!==e&&n.push(i[t][r]);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],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},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],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!r||!r.filter||null==h.query||r.filter(t,h.query))switch(o){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,o-1))}}r&&r.afterTrigger&&r.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 r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o<a;o++){var s=n[o],l=mt(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},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 Ct(e,t),e},copy:Ct,create:St,identity:Tt,invert:Dt,mul:Mt,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 r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},Pt),Tg=Math.min,Cg=Math.max,Mg=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=Cg(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Cg(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,r,o,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,r=Math.abs(p-f),o=Math.abs(g-c),a=Math.abs(u-y),s=Math.abs(t-d),l=Math.min(r,o),h=Math.min(a,s),p<f||g<c?n<l&&(n=l,r<o?Sg.set(Pg,-r,0):Sg.set(Pg,o,0)):l<i&&(i=l,r<o?Sg.set(Dg,r,0):Sg.set(Dg,-o,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,r,o,a;i?i[1]<1e-5&&-1e-5<i[1]&&i[2]<1e-5&&-1e-5<i[2]?(n=i[0],r=i[3],o=i[4],a=i[5],t.x=e.x*n+o,t.y=e.y*r+a,t.width=e.width*n,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Mg.x=kg.x=e.x,Mg.y=Ag.y=e.y,Ig.x=Ag.x=e.x+e.width,Ig.y=kg.y=e.y+e.height,Mg.transform(i),Ag.transform(i),Ig.transform(i),kg.transform(i),t.x=Tg(Mg.x,Ig.x,kg.x,Ag.x),t.y=Tg(Mg.y,Ig.y,kg.y,Ag.y),o=Cg(Mg.x,Ig.x,kg.x,Ag.x),a=Cg(Mg.y,Ig.y,kg.y,Ag.y),t.width=o-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),r=this._hovered,o=r.target,n=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.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"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(n,"mousemove",t),e&&e!==o&&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 r="on"+e,o={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[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget||n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},Rt.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new Bg(t,e);if(Nt(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],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)&&o.push(u))}if(o.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(o,r,t+d*Math.cos(f),e+d*Math.sin(f),i),r.target)return r}return r},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,r=e.zrX,o=e.zrY,a=Bt(this,r,o);if("mouseup"===t&&a||(n=(i=this.findHover(r,o)).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<og(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Yg=32,Hg=7,Wg=1,Xg=4,Ug=!1;Gt.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},Gt.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},Gt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;n<r;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Wt(i,Ut)},Gt.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 r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),r=(o=r).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=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)}},Gt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Gt.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)}},Gt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Gt.prototype.getRoots=function(){return this._roots},Gt.prototype.dispose=function(){this._displayList=null,this._roots=null};var Gg=Gt,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,r=n/i,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-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 ry=se,oy=function(t){this.value=t},ay=(le.prototype.insert=function(t){return t=new oy(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,r=this._list,o=this._map,a=null;return null==o[t]&&(n=r.len(),i=this._lastRemovedEntry,n>=this._maxSize&&0<n&&(n=r.head,r.remove(n),delete o[n.key],a=n.value,this._lastRemovedEntry=n),i?i.value=e:i=new oy(e),i.key=t,r.insertEntry(i),o[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:Me,lum:Ce,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 r=_e(t);if(t)return r=function(t){var e,i,n,r,o,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),r=((n=Math.max(u,e,i))+s)/2,0==(h=n-s)?a=o=0:(a=r<.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?o=h-l:e===n?o=1/3+s-h:i===n&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),u=[360*o,a,r],null!=t[3]&&u.push(t[3]),u}(r),null!=e&&(r[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=i&&(r[1]=de(i)),null!=n&&(r[2]=de(n)),Te(xe(r),"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,r=this.keyframes,o=r.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===o?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)),r.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),r=i.length,o=i[r-1],a=this.discrete,s=Ge(n),l=Ue(n),h=0;h<r;h++){var u=i[h],c=u.value,p=o.value;if(u.percent=u.time/t,!a)if(s&&h!==r-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){C=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},C=u;C<Math.max(w,b);C++)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 M=i[0].value,h=0;h<r;h++)0===n?i[h].additiveValue=i[h].value-M:3===n?i[h].additiveValue=Ye([],i[h].value,M,-1):Ge(n)&&(i[h].additiveValue=(1===n?Ye:He)([],i[h].value,M,-1))}},je.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o,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,r=0==d?1:f((e-i.percent)/d,1),n.easingFunc&&(r=n.easingFunc(r)),f=a?this._additiveValue:p?vy:t[c],(Ge(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?i:n).rawValue:Ge(l)?(1===l?Ve:function(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Fe(e[a][s],i[a][s],n)}})(f,i[s],n[s],r):Ue(l)?(d=i[s],o=n[s],t[c]={type:(l=4===l)?"linear":"radial",x:Fe(d.x,o.x,r),y:Fe(d.y,o.y,r),colorStops:g(d.colorStops,function(t,e){return e=o.colorStops[e],{offset:Fe(t.offset,e.offset,r),color:Xe(Ve([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Fe(d.x2,o.x2,r),t[c].y2=Fe(d.y2,o.y2,r)):t[c].r=Fe(d.r,o.r,r)):p?(Ve(f,i[s],n[s],r),a||(t[c]=Xe(f))):(l=Fe(i[s],n[s],r),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 r=this._tracks,o=0;o<i.length;o++){var a=i[o];if(!(l=r[a])){var s,l=r[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 r=i[n].getTrack(t);r&&(e=r)}return e},qe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,i=this,n=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,h=l.length;s.prepare(r,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 ry({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(i._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(i._target,t);var a=i._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](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,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<n.length;r++)if(!i[n[r]].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 r=e[n],o=this._tracks[r];o&&!o.isFinished()&&(o=(o=o.keyframes)[i?0:o.length-1])&&(t[r]=We(o.rawValue))}}},qe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var i=0;i<e.length;i++){var n,r=e[i],o=this._tracks[r];o&&1<(n=o.keyframes).length&&(n=n.pop(),o.addKeyframe(n.time,t[r]),o.prepare(this._maxTime,o.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 r=n.next,n=(n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),r);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,Cy=Ke,My=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(ri,Sy=ug),ri.prototype.dispose=function(){ni(this._localHandlerScope),My&&ni(this._globalHandlerScope)},ri.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},ri.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,My&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?ei(this,e):ni(e))},ri),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 oi(this.rotation)||oi(this.x)||oi(this.y)||oi(this.scaleX-1)||oi(this.scaleY-1)||oi(this.skewX)||oi(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?Mt(i,t,i):Ct(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,r;t&&(r=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),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,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(),Mt(Yy,e.invTransform,t),t=Yy),e=this.originX,i=this.originY,(e||i)&&(Hy[4]=e,Hy[5]=i,Mt(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,r=t.scaleX,o=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)*r-c*(s=n+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&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),Uy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Gy={},jy="__zr_normal__",qy=Uy.concat(["ignore"]),Zy=y(Uy,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,r,o,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,r=!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,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*h.width,.5*h.height):(a=fi(o[0],h.width),fi(o[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),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],u||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),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||(r=!0,s.fill=l,s.stroke=h,s.autoStroke=u,s.align=i,s.verticalAlign=n,c.setDefaultTextStyle(s)),c.__dirty|=Wg,r&&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],r=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(r?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(C(t))for(var i=v(t),n=0;n<i.length;n++){var r=i[n];this.attrKV(r,t[r])}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],r=n.__fromStateTransition;n.getLoop()||r&&r!==jy||(r=(r=n.targetName)?e[r]:e,n.saveTo(r))}},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 r=i[n];null==t[r]||r in e||(e[r]=this[r])}},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 r=t===jy,a=this.hasState();if(a||!r){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=u(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!r?this.stateProxy(t):s)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||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),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg),s;o("State "+t+" not exists.")}}},yi.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],h=void 0;(h=(h=this.stateProxy?this.stateProxy(l,t):h)||this.states[l])&&n.push(h)}var u=n[o-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),r=0<=u(n,e);0<=t?r?n.splice(t,1):n[t]=e:i&&!r&&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 r=t[n];l(i,r),r.textConfig&&l(e=e||{},r.textConfig)}return e&&(i.textConfig=e),i},yi.prototype._applyStateObj=function(t,e,i,n,r,o){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=r&&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(!r)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,o)},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,r=[],o=0;o<n;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,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 r=vi(this,e,i,n),o=0;o<r.length;o++)r[o].__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 r=i[n];t.call(e,r,n)}return this},bi.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&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=[],r=null,o=0;o<i.length;o++){var a,s=i[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(n))?(Og.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||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 Ce(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;r<n;r++)i+=Ce(e[r].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,rm=Si,om=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in em)em.hasOwnProperty(t)&&em[t].dispose();em={}},getElementSSRData:Mi,getInstance:function(t){return em[t]},init:Ti,registerPainter:Ci,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()),Cm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Im=(Cm[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 r=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)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].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,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(n=this.style).shadowBlur||0,i=n.shadowOffsetX||0,n=n.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new Og(0,0,0,0)),r?Og.applyTransform(o,t,r):o.copy(t),(e||i||n)&&(o.width+=2*e+Math.abs(i),o.height+=2*e+Math.abs(n),o.x=Math.min(o.x,o.x+i-e),o.y=Math.min(o.y,o.y+n-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},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 G(Cm,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,r,o){nm.prototype._applyStateObj.call(this,t,e,i,n,r,o);var a,s=!(e&&n);if(e&&e.style?r?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(r){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},o,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 r=t[n];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(i.style=e),i},In.prototype._mergeStyle=function(t,e){return l(t,e),t},In.prototype.getAnimationStyleProps=function(){return Mm},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=[],Um=[],Gm=[],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),r=i>this._ux||n>this._uy;return this.addData(Ym.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=i*i+n*n)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},Dn.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(Ym.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,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,r,o){this._drawPendingPt(),iv[0]=n,iv[1]=r,s=o,(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=(r=iv[1])-(n=iv[0]);return this.addData(Ym.A,t,e,i,i,n,u,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=Km(r)*i+t,this._yi=Qm(r)*i+e,this},Dn.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),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,r=0;r<e;r++)i+=t[r].len();for(ev&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},Dn.prototype.addData=function(t,e,i,n,r,o,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]=Gm[0]=Gm[1]=Number.MAX_VALUE,Um[0]=Um[1]=jm[0]=jm[1]=-Number.MAX_VALUE;for(var t,e=this.data,i=0,n=0,r=0,o=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(r=i=e[a],o=n=e[a+1]),s){case Ym.M:i=r=e[a++],n=o=e[a++],Gm[0]=r,Gm[1]=o,jm[0]=r,jm[1]=o;break;case Ym.L:kn(i,n,e[a],e[a+1],Gm,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=Gm,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],C=e[a+1],A=Gm,O=jm,t=k=t=M=void 0,M=ee,t=Om(Pm((k=ne)(_,P,D),1),0),k=Om(Pm(k(F,I,C),1),0),P=M(_,P,D,t),t=M(F,I,C,k),A[0]=Pm(_,D,P),A[1]=Pm(F,C,t),O[0]=Om(_,D,P),O[1]=Om(F,C,t),i=e[a++],n=e[a++];break;case Ym.A:var C,M=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&&(r=Km(D)*k+M,o=Qm(D)*A+I),X=C=W=H=Y=V=F=z=B=N=R=E=L=void 0,M),E=I,R=k,N=A,B=D,z=P,F=O,V=Gm,Y=jm,H=lt,W=ht;if((C=Math.abs(B-z))%Rm<1e-4&&1e-4<C)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&&(C=z,z=B,B=C);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+M,n=Qm(P)*A+I;break;case Ym.R:kn(r=i=e[a++],o=n=e[a++],r+e[a++],o+e[a++],Gm,jm);break;case Ym.Z:i=r,n=o}lt(Xm,Xm,Gm),ht(Um,Um,jm)}return 0===a&&(Xm[0]=Xm[1]=Um[0]=Um[1]=0),new Og(Xm[0],Xm[1],Um[0]-Xm[0],Um[1]-Xm[1])},Dn.prototype._calculateLength=function(){for(var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=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=r=t[c],s=o=t[c+1]),-1);switch(p){case Ym.M:r=a=t[c++],o=s=t[c++];break;case Ym.L:var g=t[c++],y=(_=t[c++])-o;($m(I=g-r)>i||$m(y)>n||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);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,r,o,a,s,l){for(var h=t,u=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Zt(t,i,r,a,d),d=Zt(e,n,o,s,d),g=f-h,y=d-u;c+=Math.sqrt(g*g+y*y),h=f,u=d}return c}(r,o,m,v,g,_,x,w),r=x,o=w;break;case Ym.Q:f=function(t,e,i,n,r,o,a){for(var s=t,l=e,h=0,u=1;u<=10;u++){var c=.1*u,p=ee(t,i,r,c),c=ee(e,n,o,c),d=p-s,f=c-l;h+=Math.sqrt(d*d+f*f),s=p,l=c}return h}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),r=g,o=_;break;case Ym.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],T=t[c++],C=t[c++],M=C+T;c+=1,d&&(a=Km(T)*b+x,s=Qm(T)*S+w),f=Zm(b,S)*qm(tv,Math.abs(C)),r=Km(M)*b+x,o=Qm(M)*S+w;break;case Ym.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Ym.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},Dn.prototype.rebuildPath=function(t,e){var i,n,r,o,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=r=u[v],n=o=u[v+1]),_!==Ym.L&&0<m&&(t.lineTo(l,h),m=0),_){case Ym.M:i=r=u[v++],n=o=u[v++],t.moveTo(r,o);break;case Ym.L:var w=u[v++],b=u[v++],S=$m(w-r),T=$m(b-o);if(c<S||p<T){if(f){if(s<g+(H=a[y++])){var C=(s-g)/H;t.lineTo(r*(1-C)+w*C,o*(1-C)+b*C);break t}g+=H}t.lineTo(w,b),r=w,o=b,m=0}else S=S*S+T*T,m<S&&(l=w,h=b,m=S);break;case Ym.C:var M=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(r,M,k,T,C=(s-g)/H,Hm),Jt(o,I,A,S,C,Wm),t.bezierCurveTo(Hm[1],Wm[1],Hm[2],Wm[2],Hm[3],Wm[3]);break t}g+=H}t.bezierCurveTo(M,I,k,A,T,S),r=T,o=S;break;case Ym.Q:if(M=u[v++],I=u[v++],k=u[v++],A=u[v++],f){if(s<g+(H=a[y++])){re(r,M,k,C=(s-g)/H,Hm),re(o,I,A,C,Wm),t.quadraticCurveTo(Hm[1],Wm[1],Hm[2],Wm[2]);break t}g+=H}t.quadraticCurveTo(M,I,k,A),r=k,o=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),r=Km(V)*O+D,o=Qm(V)*L+P;break;case Ym.R:i=r=u[v],n=o=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++])){C=(s-g)/H,t.lineTo(r*(1-C)+i*C,o*(1-C)+n*C);break t}g+=H}t.closePath(),r=i,o=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,rv,ov=Dn,av=2*Math.PI,sv=2*Math.PI,lv=ov.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},Cm),fv={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mm.style)},gv=Uy.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,r=(n.buildPath===Bn.prototype.buildPath&&(n.buildPath=function(e){t.buildPath(e,t.shape)}),n.silent=!0,n.style);for(i in e)r[i]!==e[i]&&(r[i]=e[i]);r.fill=e.fill?e.decal:null,r.decal=null,r.shadowColor=null,e.strokeFirst&&(r.stroke=null);for(var o=0;o<gv.length;++o)n[gv[o]]=this[gv[o]];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 r=e[n],o=t[r];"style"===r?this.style?l(this.style,o):this.useStyle(o):"shape"===r?l(this.shape,o):nv.prototype.attrKV.call(this,r,o)}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=Ce(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())==Ce(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 ov(!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,r=!i;return r&&(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||r)&&(t.copy(i),e=n.strokeNoScale?this.getLineScale():1,r=n.lineWidth,this.hasFill()||(n=this.strokeContainThreshold,r=Math.max(r,null==n?4:n)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):i},Bn.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){if(i=this.path,this.hasStroke()&&(n=r.lineWidth,1e-10<(r=r.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),Nn(i,n/r,!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 G(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,r,o){nv.prototype._applyStateObj.call(this,t,e,i,n,r,o);var a,s=!(e&&n);if(e&&e.shape?r?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(r){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},o)}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 r=t[n];r.shape&&this._mergeStyle(e=e||{},r.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,r,o=e;for(r in t)"function"==typeof t[r]&&(o.prototype[r]=t[r]);return o},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,rv=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 G(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},Cm),xv={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mm.style)};i(Fn,wv=py),Fn.prototype.createStyle=function(t){return G(_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,Cv=function(){this.x=0,this.y=0,this.width=0,this.height=0},Mv={},Iv=(i(Wn,Sv=yv),Wn.prototype.getDefaultShape=function(){return new Cv},Wn.prototype.buildPath=function(t,e){var i,n,r,o,a,s,l,h,u,c,p,d,f,g;this.subPixelOptimize?(i=(a=Yn(Mv,e,this.style)).x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(i=e.x,n=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=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,r,o)},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},Mm.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,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(i);o?(t.copy(a),t.applyTransform(o),(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 r=i[n];t[r]=t[r]||{},l(t[r],e[r])}},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,r=function(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=di(o),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?Mn(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,o,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],o),g);return null==c&&(c=g),t=g,r&&(u+=r[0]+r[2],t+=r[1]+r[3],c+=r[1]+r[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),o=Jn(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,h=r.contentWidth,u=r.lines,c=r.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=pi(f,r.contentHeight,y),_=((o||n)&&(t=ci(d,l,g),f=pi(f,s,y),o)&&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),o=!1,x=(Kn(("fill"in e?e:(o=!0,p)).fill)),w=(Zn("stroke"in e?e.stroke:a||p.autoStroke&&!o?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=r.calculatedLineHeight,C=0;C<u.length;C++){var M=this._getOrCreateChild(vv),I=M.createStyle();M.useStyle(I),I.text=u[C],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,Gn(I,e),v+=c,S&&M.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,r=e.outerHeight,o=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,r,l),u=a,c=h,p=(o&&(u+=o[3],c+=o[0]),u+i),d=(Jn(t)&&this._renderBackground(t,t,a,h,n,r),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=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,r,o,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"===o?r-t.width:"center"===o?r-t.width/2:r,h-t.height/2,t.width,t.height);var l=!!s.backgroundColor,n=t.textPadding,i=(n&&(r=Qn(r,o,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=r,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=o,n.textBaseline="middle",n.font=t.font||Nf,n.opacity=R(s.opacity,e.opacity,1),Gn(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,r,o){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=r,l.height=o,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=r,l.height=o),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,Un(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=rn(),Nv=1,Bv={},zv=rn(),Fv=rn(),Vv=0,Yv=1,Hv=2,Wv=["emphasis","blur","select"],Xv=["normal","emphasis","blur","select"],Uv="highlight",Gv="downplay",jv="select",qv="unselect",Zv="toggleSelect",Kv=["emphasis","blur","select"],Qv={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},$v=ov.CMD,Jv=[[],[],[]],t_=Math.sqrt,e_=Math.atan2,i_=Math.sqrt,n_=Math.sin,r_=Math.cos,o_=Math.PI,a_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,s_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;i(Fr,l_=yv),Fr.prototype.applyTransform=function(t){};var l_,h_,u_=Fr,c_=function(){this.cx=0,this.cy=0,this.r=0},p_=(i(Hr,h_=yv),Hr.prototype.getDefaultShape=function(){return new c_},Hr.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)},Hr);p_.prototype.type="circle";var d_,f_=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},g_=(i(Wr,d_=yv),Wr.prototype.getDefaultShape=function(){return new f_},Wr.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(i-r,n),t.bezierCurveTo(i-r,n-a,i-o,n-e,i,n-e),t.bezierCurveTo(i+o,n-e,i+r,n-a,i+r,n),t.bezierCurveTo(i+r,n+a,i+o,n+e,i,n+e),t.bezierCurveTo(i-o,n+e,i-r,n+a,i-r,n),t.closePath()},Wr);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,C_=Math.max,M_=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(Gr,y_=yv),Gr.prototype.getDefaultShape=function(){return new k_},Gr.prototype.buildPath=function(t,e){Ur(t,e)},Gr.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Gr);A_.prototype.type="sector";var D_,P_=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},O_=(i(jr,D_=yv),jr.prototype.getDefaultShape=function(){return new P_},jr.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},jr);O_.prototype.type="ring";var L_,E_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},R_=(i(Zr,L_=yv),Zr.prototype.getDefaultShape=function(){return new E_},Zr.prototype.buildPath=function(t,e){qr(t,e,!0)},Zr);R_.prototype.type="polygon";var N_,B_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},z_=(i(Kr,N_=yv),Kr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Kr.prototype.getDefaultShape=function(){return new B_},Kr.prototype.buildPath=function(t,e){qr(t,e,!1)},Kr);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(Qr,F_=yv),Qr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Qr.prototype.getDefaultShape=function(){return new Y_},Qr.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(i=(o=Vn(V_,e,this.style)).x1,n=o.y1,r=o.x2,o):(i=e.x1,n=e.y1,r=e.x2,e)).y2;var i,n,r,o,e=e.percent;0!==e&&(t.moveTo(i,n),e<1&&(r=i*(1-e)+r*e,o=n*(1-e)+o*e),t.lineTo(r,o))},Qr.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Qr);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(Jr,U_=yv),Jr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Jr.prototype.getDefaultShape=function(){return new X_},Jr.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=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&&(re(i,a,r,e,W_),a=W_[1],r=W_[2],re(n,s,o,e,W_),s=W_[1],o=W_[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Jt(i,a,l,r,e,W_),a=W_[1],l=W_[2],r=W_[3],Jt(n,s,h,o,e,W_),s=W_[1],h=W_[2],o=W_[3]),t.bezierCurveTo(a,s,l,h,r,o)))},Jr.prototype.pointAt=function(t){return $r(this.shape,t,!1)},Jr.prototype.tangentAt=function(t){return t=$r(this.shape,t,!0),nt(t,t)};var U_,G_=Jr;G_.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(to,j_=yv),to.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},to.prototype.getDefaultShape=function(){return new q_},to.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+i,l*r+n),t.arc(i,n,r,o,a,!e)},to);Z_.prototype.type="arc",i(eo,K_=yv),eo.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()},eo.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)},eo.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},eo.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},eo.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yv.prototype.getBoundingRect.call(this)};var K_,Q_=eo;io.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var $_=io;i(no,J_=$_);var J_,tx=no;i(ro,ex=$_);var ex,ix,$_=ro,nx=[0,0],rx=[0,0],ox=new Sg,ax=new Sg,sx=(oo.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,t),i[3].set(r,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])},oo.prototype.intersect=function(t,e){var i=!0,n=!e;return ox.set(1/0,1/0),ax.set(0,0),!this._intersectCheckOneSide(this,t,ox,ax,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,ox,ax,n,-1)&&(i=!1,n)||n||Sg.copy(e,i?ox:ax),i},oo.prototype._intersectCheckOneSide=function(t,e,i,n,r,o){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,rx),nx[1]<rx[0]||rx[1]<nx[0]){if(a=!1,r)return a;var h=Math.abs(rx[0]-nx[1]),u=Math.abs(nx[0]-rx[1]);Math.min(h,u)>n.len()&&(h<u?Sg.scale(n,l,-h*o):Sg.scale(n,l,u*o))}else i&&(h=Math.abs(rx[0]-nx[1]),u=Math.abs(nx[0]-rx[1]),Math.min(h,u)<i.len())&&(h<u?Sg.scale(i,l,h*o):Sg.scale(i,l,-u*o))}return a},oo.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++)var h=e[l].dot(n)+r[t],a=Math.min(h,a),s=Math.max(h,s);i[0]=a,i[1]=s},oo),lx=[],py=(i(ao,ix=py),ao.prototype.traverse=function(t,e){t.call(e,this)},ao.prototype.useStyle=function(){this.style={}},ao.prototype.getCursor=function(){return this._cursor},ao.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ao.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ao.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ao.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ao.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},ao.prototype.getDisplayables=function(){return this._displayables},ao.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ao.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])},ao.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},ao.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},ao.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},ao),hx=rn(),ux=Math.max,cx=Math.min,px={},dx=function(t,e){function n(t){return t=r.call(this,t)||this,t.applyTransform=o.applyTransform,t.buildPath=o.buildPath,t}var r,o=Yr(t,e);return i(n,r=u_),n},fx=Hn;yo("circle",p_),yo("ellipse",g_),yo("sector",A_),yo("ring",O_),yo("polygon",R_),yo("polyline",z_),yo("rect",Iv),yo("line",H_),yo("bezierCurve",G_),yo("arc",Z_);var gx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:G_,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:Co,clipPointsByRect:ko,clipRectByRect:Ao,createIcon:Do,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:To,groupTransition:Io,initProps:ho,isElementRemoved:uo,lineLineIntersect:Po,linePolygonIntersect:function(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Po(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,removeElement:co,removeElementWithFadeOut:function(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||po(t,e,i,n)}):po(t,e,i,n)},resizePath:bo,setTooltipConfig:Oo,subPixelOptimize:fx,subPixelOptimizeLine:So,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]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),n=Co(["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0],e,i);return Math.abs(n[0])>Math.abs(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"},traverseElements:Eo,updateProps:lo}),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=rn(),bx=["textStyle","color"],Sx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Tx=new Pv,fx=(Wo.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(bx):null)},Wo.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},Wo.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()},Wo),Cx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mx=yn(Cx),Ix=(Xo.prototype.getLineStyle=function(t){return Mx(this,t)},Xo),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=(Uo.prototype.getItemStyle=function(t,e){return Ax(this,t,e)},Uo);Go.prototype.init=function(t,e,i){},Go.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Go.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Go.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},Go.prototype.getModel=function(t,e){var i=null!=t,t=i?this.parsePath(t):null;return new Go(i?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Go.prototype.isEmpty=function(){return null==this.option},Go.prototype.restoreData=function(){},Go.prototype.clone=function(){return new this.constructor(a(this.option))},Go.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Go.prototype.resolveParentPath=function(t){return t},Go.prototype.isAnimationEnabled=function(){if(!Pf.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Go.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=Go;cn(Ox),Ux=Ox,Px=["__\0is_clz",gm++].join("_"),Ux.prototype[Px]=!0,Ux.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;qo(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:". "}}}}),qo(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}"},Ux="{yyyy}-{MM}-{dd}",Gx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ux,hour:Ux+" "+Xx.hour,minute:Ux+" "+Xx.minute,second:Ux+" "+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,rw,ow=rn(),aw=(i(Ma,ew=Ox),Ma.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},Ma.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ca(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&Ta(t,n,i)},Ma.prototype.mergeOption=function(t,e){s(this.option,t,!0);var i=Sa(this);i&&Ta(this.option,t,i)},Ma.prototype.optionUpdated=function(t,e){},Ma.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[fm])return t.defaultOption;var e=ow(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;0<=a;a--)o=s(o,i[a],!0);e.defaultOption=o}return e.defaultOption},Ma.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)},Ma.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")}},Ma.prototype.getZLevelKey=function(){return""},Ma.prototype.setZLevel=function(t){this.option.zlevel=t},Ma.protoInitialize=((Ix=Ma.prototype).type="component",Ix.id="",Ix.name="",Ix.mainType="",Ix.subType="",void(Ix.componentIndex=0)),Ma);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},rw=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 r(t){0===--h[t].entryCount&&c.push(t)}function o(t){p[t]=!0,r(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,i,n=Ia(s,t),r=n.originalDeps=rw(t),r=(e=a,i=[],f(r,function(t){0<=u(e,t)&&i.push(t)}),i);n.entryCount=r.length,0===n.entryCount&&l.push(t),f(r,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?o:r)}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=rn(),Sw=X(),Tw=rn(),Cw=(rn(),Pa.prototype.getColorFromPalette=function(t,e,i){var n=Gi(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=Tw;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=null!=i&&r?Oa(r,i):n)||n)&&r.length?(i=r[o],t&&(e[t]=i),a.paletteIdx=(o+1)%r.length,i):void 0},Pa.prototype.clearColorPalette=function(){var t,e;(e=Tw)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Pa),Mw="\0_ec_inner",Iw=(i(La,uw=Ox),La.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new Ox(n),this._locale=new Ox(r),this._optionManager=o},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,r=this._optionManager;return t&&"recreate"!==t||(i=r.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=r.getTimelineOption(this))&&(n=!0,this._mergeOption(i,e)),t&&"recreate"!==t&&"media"!==t||(i=r.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,r=this._componentsCount,o=[],h=X(),u=e&&e.replaceMergeMainTypeMap;bw(this).datasetMap=X(),f(t,function(t,e){null!=t&&(aw.hasClass(e)?e&&(o.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)&&(o.push(e),h.set(e,!0))}),aw.topologicalTravel(o,aw.getAllClassMainTypes(),function(e){var o,a=function(t,e,i){return(e=(e=Sw.get(e))&&e(t))?i.concat(e):i}(this,e,Gi(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),r.set(e,0),[]),p=[],d=0;f(s,function(t,i){var n=t.existing,r=t.newOption;if(r){var a=aw.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(o)return;o=!0}n&&n.constructor===a?(n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1)):(i=l({componentIndex:i},t.keyInfo),l(n=new a(r,this,this,i),i),t.brandNew&&(n.__requireNewView=!0),n.init(r,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),r.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=Gi(e),r=n.length,o=!1,a=r-1;0<=a;a--)n[a]&&!tn(n[a])?o=!0:(n[a]=null,o||r--);n.length=r,t[i]=n}}),delete t[Mw],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,r,o,a=t.mainType;return a&&(e=t.index,i=t.id,n=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],f(Gi(e),function(t){r[t]&&o.push(r[t])})):o=null!=i?Ea("id",i,r):null!=n?Ea("name",n,r):m(r,function(t){return!!t}),Ra(o,t)):[]},La.prototype.findComponents=function(t){var e,i=t.query,n=t.mainType,r=(r=n+"Index",o=n+"Id",e=n+"Name",!(i=i)||null==i[r]&&null==i[o]&&null==i[e]?null:{mainType:n,index:i[r],id:i[o],name:i[e]}),o=r?this.queryComponents(r):m(this._componentsMap.get(n),function(t){return!!t});return i=Ra(o,t),t.filter?m(i,t.filter):i},La.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(w(t)){var r=e,o=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}})}else for(var a=b(t)?n.get(t):C(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 r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,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 r=this._componentsMap.get("series")[n];t.call(e,r,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[Mw]=1,t._componentsMap=X({series:[]}),t._componentsCount=X();var i,n,r=e.aria;C(r)&&null==r.enabled&&(r.enabled=!0),i=e,r=t._theme.option,n=i.color&&!i.colorLayer,f(r,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,Cw);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,r){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(Gi(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Gi(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 r,o,a=[],s=t.baseOption,l=t.timeline,h=t.options,u=t.media,c=!!t.media,p=!!(h||l||s&&s.timeline);return s?(o=s).timeline||(o.timeline=l):((p||c)&&(t.options=t.media=null),o=t),c&&x(u)&&f(u,function(t){t&&t.option&&(t.query?a.push(t):r=r||t)}),n(o),f(h,n),f(a,function(t){return n(t.option)}),{baseOption:o,timelineOptions:h||[],mediaDefault:r,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,r=this._mediaDefault,o=[],s=[];if(n.length||r){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},r=!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)||(r=!1))}),r}(n[u].query,e,i)||o.push(u);(o=!o.length&&r?[-1]:o).length&&(l=o,h=this._currentMediaIndices,l.join(",")!==h.join(","))&&(s=g(o,function(t){return a((-1===t?r:n[t]).option)})),this._currentMediaIndices=o}return s},Fa),Rw=f,Nw=C,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,r=i.sourceFormat,o=i.seriesLayoutBy,a=i.startIndex,i=i.dimensionsDefine;l(t,kw[gs(r,o)]),r===mw?(t.getItem=Hw,t.count=Xw,t.fillStorage=Ww):(n=us(r,o),t.getItem=$f(n,null,e,a,i),n=ps(r,o),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,r=n*t,o=0;o<n;o++)e[o]=i[r+o];return e},Ww=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;a<o;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=r[p*o+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]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},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,Uw=ss;(Ux={})[fw+"_"+_w]=function(t,e,i,n){return t[n+e]},Ux[fw+"_"+xw]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},Ux[gw]=hs,Ux[yw]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=t[i[a].name];o[a]=s?s[n]:null}return o},Ux[dw]=hs;var Gw=Ux;(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),r=i.getRawIndex(t),o=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:o,dataIndex:r,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,r,o){e=e||"normal";var a=this.getData(i),i=this.getDataParams(t,i);return o&&(i.value=o.interpolatedValue),null!=n&&x(i.value)&&(i.value=i.value[n]),w(r=r||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(i.status=e,i.dimensionIndex=n,r(i)):b(r)?ma(r,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=o&&x(o.interpolatedValue)&&0<=(i=a.getDimensionIndex(i))?o.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,r=this._upstream,o=t&&t.skip,a=(this._dirty&&r&&((a=this.context).data=a.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(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(o)),this._modBy=l,this._modDataCount=h,a=t&&t.step,this._dueEnd=r?r._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(!o&&(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,r){rb.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:rb.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,rb=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}},ob=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=(Cs.prototype.evaluate=function(t){return T(t)?this._opFn(t,this._rvalFloat):this._opFn(Vi(t),this._rvalFloat)},Cs);Ms.prototype.evaluate=function(t,e){var i=T(t)?t:Vi(t),n=T(e)?e:Vi(e),r=isNaN(i),o=isNaN(n);return r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o&&(r=b(t),o=b(e),r&&(i=o?t:0),o)&&(n=r?e:0),i<n?this._resultLT:n<i?-this._resultLT:0};var lb=Ms;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(),r=this.defaultDimValueGetter=ub[n.sourceFormat];this._dimValueGetter=i||r,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,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new yb[e||"float"](this._rawCount),this._rawExtent[r]=Ns(),r},zs.prototype.collectOrdinalMeta=function(t,e){for(var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length,s=(0===o&&(r[t]=Ns()),r[t]),l=o;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,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;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<r;p++){var d=n[p],f=ub.arrayRows.call(this,t[c]||h,d.property,c,p),g=(i[p][u]=f,o[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,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),h=0;h<a;h++){var u=o[h];s[h]||(s[h]=Ns()),Bs(r,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=n.getItem(p,c),d=0;d<a;d++){var f=r[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!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 r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;r<o;r++)i.push(this.get(n[r],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 r=this.get(t,i);isNaN(r)||(e+=r)}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,r=this._count-1;n<=r;){var o=(n+r)/2|0;if(e[o]<t)n=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},zs.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],r=[];if(n){null==i&&(i=1/0);for(var o=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<o||c===o&&0<=u&&a<0)&&(o=c,a=u,s=0),u===a)&&(r[s++]=l)}r.length=s}return r},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),r=0;r<i;r++)n[r]=t[r];else n=new e(t.buffer,0,i)}else for(n=new(e=Rs(this._rawCount))(this.count()),r=0;r<n.length;r++)n[r]=r;return n},zs.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=new(Rs(i._rawCount))(n),o=[],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++)o[d]=h[t[d]][p];o[d]=u,c=e.apply(null,o)}c&&(r[s++]=p)}return s<n&&(i._indices=r),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),r=n.length;if(!r)return this;var o=e.count(),a=new(Rs(e._rawCount))(o),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===r){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===r){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===r)for(f=0;f<o;f++){var w=e.getRawIndex(f);(h<=(_=c[n[0]][w])&&_<=u||isNaN(_))&&(a[s++]=w)}else for(f=0;f<o;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<r;S++){var T=n[S];((_=c[T][w])<t[T][0]||_>t[T][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(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,r=[],o=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<o;p++)s[p]=n[e[p]][c];s[o]=u;var d=i&&i.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),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),r=n._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),h=new(Rs(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));h[a++]=l;for(var u=1;u<o-1;u+=s){for(var c=Math.min(u+s,o-1),p=Math.min(u+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[T=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=u,m=Math.min(u+s,o),v=u-1,_=r[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var T,y=r[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(o-1),n._count=a,n._indices=h,n.getRawIndex=this._getRawIdx,n},zs.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],h=this.count(),u=r._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 r._count=p,r._indices=c,r._updateGetRawIdx(),r},zs.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=r,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(r=this._extent[t])return r.slice();for(var r,o=(r=i)[0],a=r[1],s=0;s<n;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,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,r=0;r<n.length;r++)i.push(n[r][e]);return i},zs.prototype.clone=function(t,e){var i,n,r=new zs,o=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(i=o[s],n=void 0,(n=i.constructor)===Array?i.slice():new n(i)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},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,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),h=!!l.length;Hs(s)?(n=s,r=t=o=void 0,e=h?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=I(o=n.get("data",!0))?mw:dw,[]),n=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=E(n.seriesLayoutBy,r.seriesLayoutBy)||null,i=E(n.sourceHeader,r.sourceHeader),n=E(n.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!i!=!!r.sourceHeader||n?[es(o,{seriesLayoutBy:a,sourceHeader:i,dimensions:n},t)]:[]):(o=s,e=h?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[es(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Vs.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),r=i.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&Ws(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Ws(""),o.push(e),s.push(t._getVersionSign())}),n?e=Ls(n,o,i.componentIndex):null!=r&&(e=[new Yw({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},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,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[i];return r||(n=this._getUpstreamSourceManagers()[0],Hs(this._sourceHost)&&n?r=n._innerGetDataStore(t,e,i):(r=new mb).initData(new Uw(e,t.length),t),o[i]=r),r},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=rn();i(nl,Tb=aw),nl.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=_s({count:ol,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,rl(this),this._initSelectedMapFromData(t)},nl.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ca(t):{},r=this.subType;aw.hasClass(r),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,rl(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 Cw.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,r=this.getData(e);if("series"===n||"all"===i)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=il(r,t[o]);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 r=t[e[n]];0<=r&&i.push(r)}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,r=e.length;if(n&&r)if("series"===n)i.selectedMap="all";else if("multiple"===n){C(i.selectedMap)||(i.selectedMap={});for(var o=i.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=il(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==n&&!0!==n||(s=il(t,n=e[r-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=((Ux=nl.prototype).type="series.__base__",Ux.seriesIndex=0,Ux.ignoreStyleOnData=!1,Ux.hasSymbolVisual=!1,Ux.defaultSymbol="circle",Ux.visualStyleAccessPath="itemStyle",void(Ux.visualDrawType="fill"));var Tb,Cb=nl;p(Cb,Kw),p(Cb,Cw),pn(Cb,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 Mb=cl;cn(Mb),gn(Mb);var Ib=rn(),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){Eo(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=rn(),Rb={itemStyle:yn(kx,!0),lineStyle:yn(Cx,!0)},Nb={lineStyle:"stroke",itemStyle:"fill"},Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=wl(t,n)(r),r=r.getShallow("decal"),a=(r&&(i.setVisual("decal",r),r.dirty=!0),bl(t,n)),r=o[a],s=w(r)?r:null,n="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!n||(r=t.getColorFromPalette(t.name,null,e.getSeriesCount()),o[a]||(o[a]=r,i.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||w(o.fill)?r:o.fill,o.stroke="auto"===o.stroke||w(o.stroke)?r:o.stroke),i.setVisual("style",o),i.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=l({},o);r[a]=s(n),e.setItemVisual(i,"style",r)}}}},Bb=new Ox,mm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,n,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=wl(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var o=t.getRawDataItem(e);o&&o[i]&&(Bb.option=o[i],o=n(Bb),l(t.ensureUniqueItemVisual(e,"style"),o),Bb.option.decal&&(t.setItemVisual(e,"decal",Bb.option.decal),Bb.option.decal.dirty=!0),r in o)&&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,r,o,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(i=e.getRawData(),n={},r=e.getData(),o=Eb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bl(e,a),r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(t){var a,l=n[t];r.getItemVisual(l,"colorFromPalette")&&(l=r.ensureUniqueItemVisual(l,"style"),t=i.getName(t)||t+"",a=i.count(),l[s]=e.getColorFromPalette(t,o,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,r=t.get("large")&&n>=t.get("largeThreshold"),n="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:e,modDataCount:n,large:r}},Sl.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=X();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,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 r=t.get(n.uid)||t.set(n.uid,{});z(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},Sl.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},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 r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var o=!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){r(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)&&(o=!0)):l&&l.each(function(s,l){r(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)&&(o=!0)}))}),this.unfinished=o||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 r(e){var r=e.uid,r=s.set(r,a&&a.get(r)||_s({plan:kl,reset:Al,count:Pl}));r.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,r)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=X(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(r):e?i.eachRawSeriesByType(e,r):l&&l(i,n).each(r)},Sl.prototype._createOverallStageTask=function(t,e,i,n){function r(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,_s({reset:Cl,onDirty:Il})));e.context={model:t,overallProgress:u},e.agent=a,e.__block=u,o._pipe(t,e)}var o=this,a=e.overallTask=e.overallTask||_s({reset:Tl}),s=(a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o},a.agentStubMap),l=a.agentStubMap=X(),e=t.seriesType,h=t.getTargetSeries,u=!0,c=!1;z(!t.createOnAllSeries,""),e?i.eachRawSeriesByType(e,r):h?h(i,n).each(r):(u=!1,f(i.getSeries(),r)),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=jo("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"],Ux={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",Cx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],fx={darkMode:!0,color:Cx,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:Cx},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"}}},Ub=(fx.categoryAxis.splitLine.show=!1,El.prototype.normalizeQuery=function(t){var e,i,n,r={},o={},a={};return b(t)?(e=un(t),r.mainType=e.main||null,r.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))&&(r.mainType=u,r[h.toLowerCase()]=t,s=!0)}n.hasOwnProperty(e)&&(o[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:r,dataQuery:o,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,r,o,a,s,l=this.eventInfo;return!l||(n=l.targetEl,r=l.packedEvent,o=l.model,l=l.view,!o)||!l||(a=e.cptQuery,s=e.dataQuery,i(a,o,"mainType")&&i(a,o,"subType")&&i(a,o,"index","componentIndex")&&i(a,o,"name")&&i(a,o,"id")&&i(s,r,"name")&&i(s,r,"dataIndex")&&i(s,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,n,r)))},El.prototype.afterTrigger=function(){this.eventInfo=null},El),Gb=["symbol","symbolSize","symbolRotate","symbolOffset"],jb=Gb.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,r={},o={},a=!1,s=0;s<Gb.length;s++){var h=Gb[s],u=t.get(h);w(u)?(a=!0,o[h]=u):r[h]=u}if(r.symbol=r.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t))return n=v(o),{dataEach:a?function(e,i){for(var r=t.getRawValue(i),a=t.getDataParams(i),s=0;s<n.length;s++){var l=n[s];e.setItemVisual(i,l,o[l](r,a))}}:null}}}},Cx={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 r=jb[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}: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,r=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+r,n+e),t.lineTo(i-r,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,r=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+r,n),t.lineTo(i,n+e),t.lineTo(i-r,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,r=e.width/5*3,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=n-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),h=Math.cos(a),u=.6*r,c=.7*r;t.moveTo(i-s,e+o),t.arc(i,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(i+s-l*u,e+o+h*u,i,n-c,i,n),t.bezierCurveTo(i,n-c,i-s+l*u,e+o+h*u,i-s,e+o),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,r=e.x,e=e.y,n=n/3*2;t.moveTo(r,e),t.lineTo(r+n,e+i),t.lineTo(r,e+i/4*3),t.lineTo(r-n,e+i),t.lineTo(r,e),t.closePath()}}),eS={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){i=Math.min(i,n),r.x=t,r.y=e,r.width=i,r.height=i},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.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,r=e.symbolType;"none"!==r&&(n=(n=iS[r])||iS[r="rect"],eS[r](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,i))}})),rS=new ov(!0),oS=["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,CS,MS,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),CS.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,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(n),t.performDataProcessorTasks(n),IS(this,n),t.performVisualTasks(n),RS(this,this._model,r,"remain",{}),0<(i-=+new Date-o)&&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{C(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=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:r},jS);var n,r,o,a,s={seriesTransition:o,optionChanged:!0};if(i)this[mS]={silent:n,updateParams:s},this[yS]=!1,this.getZr().wakeUp();else{try{bS(this),CS.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,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,i=[],n=this,f(r,function(t){e.eachComponent({mainType:t},function(t){t=n._componentsMap[t.__viewId],t.group.ignore||(i.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(i,function(t){t.group.ignore=!1}),r;this.id},ph.prototype.getConnectedDataURL=function(t){var e,i,n,r,o,s,l,h,u,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,$S[i]?(s=o=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(),o=n(c.left,o),s=n(c.top,s),l=r(c.right,l),h=r(c.bottom,h),u.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(o*=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-o,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-o,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},ph.prototype.convertToPixel=function(t,e){return MS(this,"convertToPixel",t,e)},ph.prototype.convertFromPixel=function(t,e){return MS(this,"convertFromPixel",t,e)},ph.prototype.containPixel=function(t,e){var i;if(!this._disposed)return f(on(this._model,t),function(t,n){0<=n.indexOf("Models")&&f(t,function(t){var r=t.coordinateSystem;r&&r.containPoint?i=i||!!r.containPoint(e):"seriesModels"===n&&(r=this._chartsMap[t.__viewId])&&r.containPoint&&(i=i||r.containPoint(e,t))},this)},this),!!i;this.id},ph.prototype.getVisual=function(t,e){var t=on(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,r=t,o=e;switch(o){case"color":return n.getItemVisual(r,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(r,o)}},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,r,o,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&&(r=i.componentType,o=i.componentIndex,"markLine"!==r&&"markPoint"!==r&&"markArea"!==r||(r="series",o=i.seriesIndex),o=(r=r&&null!=o&&a.getComponent(r,o))&&n["series"===r.mainType?"_chartsMap":"_componentsMap"][r.__viewId],i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:r,view:o},n.trigger(t,i))}e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),f(US,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),CS.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:(C(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=US[t.type],e},ph.prototype.dispatchAction=function(t,e){var i;this._disposed?this.id:(C(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?Mb.getClass(i.main,i.sub):Ab.getClass(i.sub))).init(n,l),a[u]=h,o.push(h),s.add(h.group)),t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(h,t,n,l)}for(var n=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,h=0;h<o.length;h++)o[h].__alive=!1;for(e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i),h=0;h<o.length;){var u=o[h];u.__alive?h++:(e||u.renderTask.dispose(),s.remove(u.group),u.dispose(n,l),o.splice(h,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},TS=function(t,e,i,n,r){function o(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},r&&(a.subType=r),null!=(r=i.excludeSeriesId)&&(s=X(),f(Gi(r),function(t){null!=(t=$i(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var n,r,o=s&&null!=s.get(e.id);if(!o)if(Er(i))if(e instanceof Cb){if(i.type===Uv&&!i.notBlur&&!e.get(["emphasis","disabled"])){var o=e,a=i,l=t._api,h=o.seriesIndex,u=o.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?Tr(h,(a=Rv(c)).focus,a.blurScope,l):(a=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=a&&Tr(h,a,o,l))}}}else h=Mr(e.mainType,e.componentIndex,i.name,t._api),a=h.focusSelf,o=h.dispatchers,i.type===Uv&&a&&!i.notBlur&&Cr(e.mainType,e.componentIndex,t._api),o&&f(o,function(t){(i.type===Uv?yr:mr)(t)});else Lr(i)&&e instanceof Cb&&(l=e,o=i,t._api,Lr(o)&&(n=o.dataType,x(r=nn(l.getData(n),o))||(r=[r]),l[o.type===Zv?"toggleSelect":o.type===jv?"select":"unselect"](r,n)),Ir(e),zS(t))},t),l&&l.eachComponent(a,function(e){s&&null!=s.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),o)},CS={prepareAndUpdate:function(t){bS(this),CS.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;i&&(i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),o.create(i,n),a.performDataProcessorTasks(i,t),IS(this,i),o.update(i,n),dh(i),a.performVisualTasks(i,t),LS(this,i,n,t,e),o=i.get("backgroundColor")||"transparent",a=i.get("darkMode"),r.setBackgroundColor(o),null!=a&&"auto"!==a&&r.setDarkMode(a),fS.trigger("afterupdate",i,n))},updateTransform:function(t){var e,i,n=this,r=this._model,o=this._api;r&&(r.setUpdatePayload(t),e=[],r.eachComponent(function(i,a){"series"!==i&&(i=n.getViewOfComponentModel(a))&&i.__alive&&(!i.updateTransform||(a=i.updateTransform(a,r,o,t))&&a.update)&&e.push(i)}),i=X(),r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,r,o,t))&&a.update)&&i.set(e.uid,1)}),dh(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:i}),RS(this,r,o,t,{},i),fS.trigger("afterupdate",r,o))},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,r){"series"!==n&&(n=e.getViewOfComponentModel(r))&&n.__alive&&n.updateVisual(r,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){CS.update.call(this,t)}},MS=function(t,e,i,n){if(t._disposed)t.id;else for(var r=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=on(r,i),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](r,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,r=this,o=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})),[]),_=Lr(t),x=Er(t);if(x&&Sr(this._api),f(p,function(e){var n,o;(i=(i=u.action(e,r._model,r._api))||l({},e)).type=c.event||i.type,v.push(i),x?(n=(o=an(t)).queryOptionMap,o=o.mainTypeSpecified?n.keys()[0]:"series",TS(r,d,e,o),zS(r)):_?(TS(r,d,e,"series"),zS(r)):y&&TS(r,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[mS]?(bS(this),CS.update.call(this,t),this[mS]=null):CS[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=[],o.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,r,o,a=Bl(t.target,Or);a&&(a=a,i=t,t=e._api,n=Rv(a),r=(o=Mr(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,r?(o&&Cr(n.componentMainType,n.componentIndex,t),f(r,function(t){return fr(t,i)})):(Tr(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&Cr(n.componentMainType,n.componentIndex,t),fr(a,i)),zS(e))}).on("mouseout",function(t){var i,n,r=Bl(t.target,Or);r&&(r=r,i=t,Sr(t=e._api),(n=Mr((n=Rv(r)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?f(n,function(t){return gr(t,i)}):gr(r,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,r){var o,a,s,l,h,u,c;h=[],c=!(u=[]),(o=e).eachComponent(function(t,e){var i=e.get("zlevel")||0,n=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?u:h).push({zlevel:i,z:n,idx:e.componentIndex,type:t,key:r})}),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=o.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,r),f(t._chartsViews,function(t){t.__alive=!1}),RS(t,e,i,n,r),f(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},ES=function(t,e,i,n,r,o){f(o||t._componentsViews,function(t){var r=t.__model;yh(0,t),t.render(r,e,i,n),gh(r,t),mh(r,t)})},RS=function(t,e,i,n,r,o){var a,s,h,u,c=t._scheduler,p=(r=l(r||{},{updatedSeries:e.getSeries()}),fS.trigger("series:beforeupdate",e,i,r),!1);e.eachSeries(function(e){var i,r=t._chartsMap[e.__viewId],a=(r.__alive=!0,r.renderTask);c.updatePayload(a,n),yh(0,r),o&&o.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),r.group.silent=!!e.get("silent"),a=r,i=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=i)}),Ir(e)}),c.unfinished=p||c.unfinished,fS.trigger("series:layoutlabels",e,i,r),fS.trigger("series:transition",e,i,r),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,r)},zS=function(t){t[vS]=!0,t.getZr().wakeUp()},FS=function(t){t[vS]&&(t.getZr().storage.traverse(function(t){uo(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){yr(e,i),zS(t)},e.prototype.leaveEmphasis=function(e,i){mr(e,i),zS(t)},e.prototype.enterBlur=function(e){vr(e),zS(t)},e.prototype.leaveBlur=function(e){_r(e),zS(t)},e.prototype.enterSelect=function(e){xr(e),zS(t)},e.prototype.leaveSelect=function(e){wr(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(US,function(i,n){t._messageCenter.on(n,function(i){var n,r;!$S[t.group]||0===t[xS]||i&&i.escapeConnect||(n=t.makeActionFromEvent(i),r=[],f(QS,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),f(r,function(t){1!==t[xS]&&t.dispatchAction(n)}),e(r,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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),n.off(t,i)},i)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),XS={},US={},GS=[],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,Cx),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,r=new Iv({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=(n.add(r),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:o,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=o.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}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Mh({type:Uv,event:Uv,update:Uv},Z),Mh({type:Gv,event:Gv,update:Gv},Z),Mh({type:jv,event:jv,update:jv},Z),Mh({type:qv,event:qv,update:qv},Z),Mh({type:Zv,event:Zv,update:Zv},Z),xh("light",Ux),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),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=n[o],l=i[s],h=Eh(l);1<h?(a=l.shift(),1===l.length&&(i[s]=l[0]),this._update&&this._update(a,o)):1===h?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},Nh.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[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(o,n)},Nh.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=Eh(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},Nh.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[n](t[o],o);r||(i[o]=l),e&&(0===(s=Eh(a=e[l]))?(e[l]=o,r&&i.push(l)):1===s?e[l]=[a,o]:a.push(o))}};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 rT,oT,aT,sT,lT,hT,uT,cT=Bh,pT=function(t){this.otherDims={},null!=t&&l(this,t)},dT=rn(),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="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,h=void 0,u=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,h=c.type,u=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,h=s.type),r.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:r,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,r=this.dimensions[i];r&&r.storeDimIndex===e?(r.isCalculationCoord||(n=r.name),i++):(r=this.getSourceDimension(e))&&(n=r.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=C,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,r,o=this;(n=t instanceof mb?t:n)||(r=this.dimensions,t=ts(t)||d(t)?new Uw(t,r.length):t,n=new mb,r=mT(r,function(t){return{type:o._dimInfos[t].type,property:t}}),n.initData(t,r,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,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=i;o<n;o++)this._nameList[o]=e[o-i],r&&uT(this,o)},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),r=this._idList;if(i.getSource().sourceFormat===dw&&!i.pure)for(var o=[],a=t;a<e;a++){var s,l=i.getItem(a,o);this.hasItemOption||!C(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==r[a])&&null!=l&&(r[a]=$i(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)uT(this,a);rT(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 oT(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 r=e._getStoreDimIndex(n);i[r]=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 r=hT(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},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 oT(t,e)},function(t){return oT(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,r,o,a=this.hostModel&&this.hostModel.seriesIndex;i=a,n=this.dataType,r=t,(a=e)&&((o=Rv(a)).dataIndex=r,o.dataType=n,o.seriesIndex=i,o.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=Rv(t),t.seriesIndex=i,t.dataIndex=r,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=(rT=function(t){var e=t._invertedIndicesMap;f(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new vT(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},aT=function(t,e,i){return $i(t._getCategory(e,i),null)},oT=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,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];null==a&&null!=r&&(i[e]=a=aT(t,r,e)),null==s&&null!=o&&(n[e]=s=aT(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(i=t._nameRepeatCount)[a]=(i[a]||0)+1)&&(s+="__ec__"+r),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 r=t.getReferringComponents("xAxis",cm).models[0],t=t.getReferringComponents("yAxis",cm).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",t),Gh(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),Gh(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),Gh(t)&&(n.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var t=t.getReferringComponents("polar",cm).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",t),Gh(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),Gh(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 r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=r.getComponent("parallelAxis",t),s=o[a];i.set(s,t),Gh(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 CT=0,MT=($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 ou(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=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[i[r]=s]=r}for(var l=0;r<o;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}}},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 ou(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,r=this._intervalPrecision,o=[];if(e){i[0]<n[0]&&o.push(t?{value:DT(n[0]-e,r)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(o.push({value:a}),(a=DT(a+e,r))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:n[1];i[1]>s&&o.push(t?{value:DT(s+e,r)}:{value:i[1]})}return o},hu.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],h=(o.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,r=n[1]-n[0];isFinite(r)&&(r<0&&n.reverse(),r=eu(n,t,e,i),this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.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 Qo(t.value,Gx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ko(this._minLevelUnit))]||Gx.second,e,this.getSetting("locale"))},gu.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),r=this.getSetting("locale"),o=null;if(b(i))o=i;else if(w(i))o=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=$o(t.value,n);if(u[c])o=u[c];else if(u.inherit){for(s=qx.indexOf(c)-1;0<=s;--s)if(u[c]){o=u[c];break}o=o||a.none}x(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return Qo(new Date(t.value),o,n,r)},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 r=qx,o=0,a=[],s=[],l=0,h=0,u=0;u<r.length&&o++<1e4;++u){var c=Ko(r[u]);if(function(t){return t===Ko(t)}(r[u])){!function(t,r,o){var a=[],s=!r.length;if(!function(t,e,i,n){function r(t){return Jo(c,t,n)===Jo(p,t,n)}function o(){return r("year")}function a(){return o()&&r("month")}function s(){return a()&&r("day")}function l(){return s()&&r("hour")}function h(){return l()&&r("minute")}function u(){return h()&&r("second")}var c=Ni(e),p=Ni(i);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return h();case"second":return u();case"millisecond":return u()&&r("millisecond")}}(Ko(t),n[0],n[1],i)){s&&(r=[{value:function(t,e,i){var n=new Date(t);switch(Ko(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<r.length-1;u++){var c=r[u].value,p=r[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=ra(i),g=ua(i);break;case"second":d=yu(e,!1),f=oa(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<o.length&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u])}}(r[u],a[a.length-1]||[],s);if(c!==(r[u+1]?Ko(r[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===r[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 r=i+n>>>1;t[r][1]<e?i=1+r:n=r}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 ou(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,UT=(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 ou(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=UT.prototype,Kb.getMinorTicks=FT.getMinorTicks,Kb.getLabel=FT.getLabel,TT.registerClass(UT),_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,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),r=(null==r&&(r=e.get("startValue",!0)),this._modelMinRaw=r),r=(w(r)?this._modelMinNum=xu(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=xu(t,r)),this._modelMaxRaw=e.get("max",!0));w(r)?this._modelMaxNum=xu(t,r({min:i[0],max:i[1]})):"dataMax"!==r&&(this._modelMaxNum=xu(t,r)),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,r=this._boundaryGapInner,o=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-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),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),r=this._determinedMax;return null!=i&&(a=i,l=!0),null!=r&&(s=r,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 GT=_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 Uh(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 Fo(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qh,enableDataStack:jh,getStackedDimension:Zh},enableHoverEmphasis:kr,getECData:Rv,getLayoutRect:ba,mixinAxisModelCommonMethods:function(t){p(t,ZT)}}),KT=[],QT={registerPreprocessor:wh,registerProcessor:bh,registerPostInit:Sh,registerPostUpdate:Th,registerUpdateLifecycle:Ch,registerAction:Mh,registerCoordinateSystem:Ih,registerLayout:kh,registerVisual:Ah,registerTransform:Lh,registerLoading:Ph,registerMap:Oh,registerImpl:function(t,e){gS[t]=e},PRIORITY:$b,ComponentModel:aw,ComponentView:Mb,SeriesModel:Cb,ChartView:Ab,registerComponentModel:function(t){aw.registerClass(t)},registerComponentView:function(t){Mb.registerClass(t)},registerSeriesModel:function(t){Cb.registerClass(t)},registerChartView:function(t){Ab.registerClass(t)},registerSubTypeDefaulter:function(t,e){aw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ci(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 tC,eC,iC=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},nC=function(t){this.type="linestring",this.points=t},rC=(i(Nu,tC=tS),Nu.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var r=e[n],o=r.exterior,o=o&&o.length;i<o&&(t=r,i=o)}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,r=i.length;n<r;n++){var o=i[n];if("polygon"===o.type){var a=o.exterior,s=o.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 r=this.getBoundingRect(),o=r.width/r.height,o=(i?n=n||i/o:i=o*n,new Og(t,e,i,n)),a=r.calculateTransform(o),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)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.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,eC=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;)Mt(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}),r=100*n,o=g(e,function(t){return Math.floor(t)}),a=y(o,function(t,e){return t+e},0),s=g(e,function(t,e){return t-o[e]});a<r;){for(var l=Number.NEGATIVE_INFINITY,h=null,u=0,c=s.length;u<c;++u)s[u]>l&&(l=s[u],h=u);++o[h],s[h]=0,++a}return g(o,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 r=t[n].interval,o=t[n].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-i),e=r[a],i=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(n,1):n++}return t},remRadian:Ei,round:Di}),mm=Object.freeze({__proto__:null,format:Qo,parse:Ni}),Dx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:G_,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:ko,clipRectByRect:Ao,createIcon:Do,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:To,initProps:ho,makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,resizePath:bo,updateProps:lo}),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"](),r=e[i+"Month"]()+1,o=e[i+"Date"](),a=e[i+"Hours"](),s=e[i+"Minutes"](),l=e[i+"Seconds"](),e=e[i+"Milliseconds"]();return t=t.replace("MM",Zo(r,2)).replace("M",r).replace("yyyy",n).replace("yy",Zo(n%100+"",2)).replace("dd",Zo(o,2)).replace("d",o).replace("hh",Zo(a,2)).replace("h",a).replace("mm",Zo(s,2)).replace("m",s).replace("ss",Zo(l,2)).replace("s",l).replace("SSS",Zo(e,3))},formatTpl:ma,getTextRect:function(t,e,i,n,r,o,a,s){return new Pv({style:{text:t,font:e,align:i,verticalAlign:n,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:va,normalizeCssArray:Zx,toCamelCase:fa,truncateText:wn}),Cx=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:C,isString:b,map:g,merge:s,reduce:y}),oC=rn(),aC=[0,1],Ux=(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,aC,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,aC,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,r,o,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],r=n[1]={coord:h[1]}):(a=n[l-1].tickValue-n[0].tickValue,o=(n[l-1].coord-n[0].coord)/a,f(n,function(t){t.coord-=o/2}),i=1+(a=i.scale.getExtent())[1]-n[l-1].tickValue,r={coord:n[l-1].coord+o*i},n.push(r)),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],r.coord)&&(t?r.coord=h[1]:n.pop()),t)&&e(r.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(){r=(i=d=this).getLabelModel();var t={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()},e=Tu(d),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=(r=d.scale).getExtent(),r=r.count();if(n[1]-n[0]<1)return 0;for(var o=1,a=(40<r&&(o=Math.max(1,Math.floor(r/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+=o)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=oC(d.model),l=d.getExtent(),d=i.lastAutoInterval,f=i.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-r)<=1&&s<d&&i.axisExtent0===l[0]&&i.axisExtent1===l[1]?s=d:(i.lastTickCount=r,i.lastAutoInterval=s,i.axisExtent0=l[0],i.axisExtent1=l[1]),s},Ku),sC=2*Math.PI,lC=ov.CMD,hC=["top","right","bottom","left"],uC=[],cC=new Sg,pC=new Sg,dC=new Sg,fC=new Sg,gC=new Sg,yC=[],mC=new Sg,vC=["align","verticalAlign","width","height","fontSize"],_C=new Xy,xC=rn(),wC=rn(),bC=["x","y","rotation"],SC=(hc.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},hc.prototype._addLabel=function(t,e,i,n,r){var o,a=n.style,s=n.__hostTarget.textConfig||{},l=n.getComputedTransform(),h=n.getBoundingRect().plain(),l=(Og.applyTransform(h,h,l),l?_C.setLocalTransform(l):(_C.x=_C.y=_C.rotation=_C.originX=_C.originY=0,_C.scaleX=_C.scaleY=1),_C.rotation=On(_C.rotation),n.__hostTarget),u=(l&&(o=l.getBoundingRect().plain(),u=l.getComputedTransform(),Og.applyTransform(o,o,u)),o&&l.getTextGuideLine());this._labelList.push({label:n,labelLine:u,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:h,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:u&&u.ignore,x:_C.x,y:_C.y,scaleX:_C.scaleX,scaleY:_C.scaleY,rotation:_C.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 r=t.getTextContent(),t=Rv(t);r&&!r.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,i,r,n)})},hc.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var r=this._labelList[n],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0,l=w(r.layoutOption)?r.layoutOption(sc(r,a)):r.layoutOption,h=(r.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?(o.x=Ai(l.x,e),o.setStyle("x",0),u=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Ai(l.y,i),o.setStyle("y",0),u=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),u=!1),xC(o).needsUpdateLabelLine=u,o.rotation=null!=l.rotate?l.rotate*h:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<vC.length;p++){var d=vC[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){ec(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},hc.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),i=rc(this._labelList),n=m(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=m(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});oc(n,"x","width",0,e,void 0),oc(r,"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,r=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!n,a=e.getTextContent();(o=!o&&a?xC(a).needsUpdateLabelLine:o)&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)})})},hc.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=Rv(t),r=n.dataIndex;if(i&&null!=r){var i=e.getData(n.dataType),e=i.getItemModel(r),n={},r=i.getItemVisual(r,"style"),r=(r&&(i=i.getVisual("drawType"),n.stroke=r[i]),e.getModel("labelLine")),o=t,a=function(t,e){for(var i={normal:t.getModel(e=e||"labelLine")},n=0;n<Wv.length;n++){var r=Wv[n];i[r]=t.getModel([r,e])}return i}(e),i=n,s=o.getTextGuideLine(),l=o.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_,o.setTextGuideLine(s),y||!c&&u||ic(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),ic(s,!1,f,g)))}s&&(h(s.style,i),s.style.fill=null,i=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=i||!1,s.buildPath=nc)}else s&&o.removeTextGuideLine();ec(t,r)}},hc.prototype._animateLabels=function(t,e){var i,n,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||uo(t))||(o=(r=xC(s)).oldLayout,i=(n=Rv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},n=e.getData(n.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=u(t,"select")&&s.attr(r.oldLayoutSelect),0<=u(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),lo(s,a,e,i)):(s.attr(a),xx(s).valueAnimation||(t=E(s.style.opacity,1),s.style.opacity=0,ho(s,{style:{opacity:t}},e,i))),r.oldLayout=a,s.states.select&&(lc(t=r.oldLayoutSelect={},a,bC),lc(t,s.states.select,bC)),s.states.emphasis&&(lc(t=r.oldLayoutEmphasis={},a,bC),lc(t,s.states.emphasis,bC)),Ho(s,i,n,e,e)),!l||l.ignore||l.invisible||(o=(r=wC(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),lo(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ho(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},hc),TC=rn();Du(uc),i(pc,CC=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 r(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,r=0,o=0;o<a.length;++o){var u=a[o];if(u.intersect(t)){var c=new Og(0,0,0,0);c.copy(u),c.union(t),a[o]=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,r=o)}l&&(a[r].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 o,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)&&r(p),o=d&&(c.__dirty&Wg||!c.__isRendered)?c.getPaintRect():null)&&r(o);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())&&r(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,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i)&&this.ctxBack.scale(i,i)},pc.prototype.clear=function(t,e,i){function n(t,i,n,r){var a;o.clearRect(t,i,n,r),e&&"transparent"!==e&&(a=void 0,A(e)?(a=(e.global||e.__width===n&&e.__height===r)&&e.__canvasGradient||Wl(o,e,{x:0,y:0,width:n,height:r}),e.__canvasGradient=a,e.__width=n,e.__height=r):D(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=$l(o,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,i,n,r),o.restore()),l&&(o.save(),o.globalAlpha=h,o.drawImage(p,t,i,n,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.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(r,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 CC,MC=pc,IC=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 r=0;r<n.length;r++){var o,a=n[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},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,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(i=i||(this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),oh(n,a,r,o===e-1))}n&&n.restore()}},dc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},dc.prototype.paintOne=function(t,e){rh(t,e)},dc.prototype._paintList=function(t,e,i,n){var r,o,a;this._redrawId===n&&(i=i||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,i)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?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(IC).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,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||i)&&r.push(s)}for(var l=!0,h=!1,u=this,c=0;c<r.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 r=t[p];if(r.__inHover&&(h=!0),n._doPaintEl(r,d,o,e,i,p===d.__endIndex-1),m&&15<Date.now()-v)break}i.prevElClipPaths&&f.restore()}var c,p,d=r[a],f=d.ctx,g=o&&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,r,o){e=e.ctx,i?(i=t.getPaintRect(),(!n||i&&i.intersect(n))&&(oh(e,t,r,o),t.setPrevPaintRect(i))):oh(e,t,r,o)},dc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=IC);var i=this._layers[t];return i||((i=new MC("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,r=this._zlevelList,o=r.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<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=n[r[l]]}r.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 r=i[n];t.call(e,this._layers[r],r)}},dc.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},dc.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},dc.prototype.getLayers=function(){return this._layers},dc.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var n,r=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__||o("ZLevel "+h+" has been used by unkown layer "+u.id),u!==r&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),r=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 r=this._zlevelList[n];r!==t&&r!==t+.01||s(this._layers[r],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),r=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=Ul(r,0,n),e=Ul(r,1,n),i.style.display="",this._width!==t||e!==this._height){for(var o in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(IC).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[IC].dom;var e=new MC("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,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var h=a[s];oh(i,h,o,s===l-1)}return e.dom},dc.prototype.getWidth=function(){return this._width},dc.prototype.getHeight=function(){return this._height};var kC=dc;i(fc,AC=aw),fc.prototype.init=function(t,e,i){AC.prototype.init.call(this,t,e,i),this._sourceManager=new vb(this),Ys(this)},fc.prototype.mergeOption=function(t,e){AC.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 AC,DC=fc;i(gc,PC=Mb),gc.type="dataset";var PC,OC=gc;Du([function(t){t.registerPainter("canvas",kC)},yc]),Du(uc),i(mc,LC=Cb),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,r=.8*t.itemHeight,r=Vl(i,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),n=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?n:t.iconRotate||0);return r.rotation=n*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<i.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.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 LC,EC=mc;i(_c,RC=Jy),_c.prototype._createSymbol=function(t,e,i,n,r){this.removeAll(),r=Vl(t,-1,-1,2,2,null,r),r.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),r.drift=xc,this._symbolType=t,this.add(r)},_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(){yr(this.childAt(0))},_c.prototype.downplay=function(){mr(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 r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,h=_c.getSymbolSize(t,e),u=s!==this._symbolType,c=n&&n.disableAnimation;u?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,h,r)):((o=this.childAt(0)).silent=!1,a={scaleX:h[0]/2,scaleY:h[1]/2},c?o.attr(a):lo(o,a,l,e),hx(s=o).oldStyle=s.style),this._updateCommon(t,e,h,i,n),u&&(o=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,ho(o,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},_c.prototype._updateCommon=function(t,e,i,n,r){var o,a,s,h,u,c,p,d,f=this.childAt(0),g=t.hostModel,y=(n&&(o=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||(o=(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=zo(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,r&&r.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),r&&r.useNameLabel);Bo(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=o,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),Ar(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),r=Rv(this).dataIndex,o=i&&i.animation;this.silent=n.silent=!0,i&&i.fadeLabel?(i=n.getTextContent())&&co(i,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}}):n.removeTextContent(),co(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},_c.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var RC,NC=_c;Tc.prototype.updateData=function(t,e){this._progressiveEls=null,e=bc(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Sc(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add(function(n){var r,a=h(n);wc(t,a,n,e)&&((r=new o(t,n,s,l)).setPosition(a),t.setItemGraphicEl(n,r),i.add(r))}).update(function(u,c){var p,d,c=r.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 o(t,u,s,l)).setPosition(f)):(c.updateData(t,u,s,l),d={x:f[0],y:f[1]},a?c.attr(d):lo(c,d,n)),i.add(c),t.setItemGraphicEl(u,c)):i.remove(c)}).remove(function(t){var e=r.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 r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);wc(e,a,r,i)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(n),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},Tc.prototype.eachRendered=function(t){Eo(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 BC,zC=Tc,FC=Math.min,VC=Math.max,YC=function(){this.smooth=0,this.smoothConstraint=!0},HC=(i(Ac,BC=yv),Ac.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ac.prototype.getDefaultShape=function(){return new YC},Ac.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;0<r&&Ic(i[2*r-2],i[2*r-1]);r--);for(;n<r&&Ic(i[2*n],i[2*n+1]);n++);}for(;n<r;)n+=kc(t,i,n,r,r,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,r=this.path.data,o=ov.CMD,a="x"===e,s=[],l=0;l<r.length;){var h=void 0,u=void 0;switch(r[l++]){case o.M:i=r[l++],n=r[l++];break;case o.L:var c,h=r[l++],u=r[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 o.C:h=r[l++],u=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[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,WC=YC);var WC,XC=Dc;i(Pc,UC=yv),Pc.prototype.getDefaultShape=function(){return new XC},Pc.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<o&&Ic(i[2*o-2],i[2*o-1]);o--);for(;r<o&&Ic(i[2*r],i[2*r+1]);r++);}for(;r<o;){var s=kc(t,i,r,o,o,1,e.smooth,a,e.connectNulls);kc(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var UC,GC=Pc;i(Wc,jC=Ab),Wc.prototype.init=function(){var t=new Jy,e=new zC;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Wc.prototype.render=function(t,e,i){function n(t){o._changePolyState(t)}var r,o=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=Cc(a,l,x),w=_&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),r=uu(2*n),o=0;o<n;o++){var a=Mc(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(a,l,w),b=t.get("showSymbol"),S=t.get("connectNulls"),T=b&&!d&&zc(t,l,a),C=this._data,M=(C&&C.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),C.setItemGraphicEl(e,null))}),b||g.remove(),s.add(v),!d&&t.get("step")),I=(a&&a.getArea&&t.get("clip",!0)&&(null!=(r=a.getArea()).width?(r.x-=.1,r.y-=.1,r.width+=.2,r.height+=.2):r.r0&&(r.r0-=.5,r.r+=.5)),this._clipShapeForSymbol=r,Bc(l,a,i)||l.getVisual("style")[l.getVisual("drawType")]),f=(y&&f.type===a.type&&M===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())?ho(f,{shape:Hc(this,a,!1,t).shape},t):v.setClipPath(Hc(this,a,!0,t)),b&&g.updateData(l,{isIgnore:T,clipShape:r,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,M,x,S):(M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,S)),y.setShape({points:p}),m&&m.setShape({points:p,stackedOnPoints:w})))):(b&&g.updateData(l,{isIgnore:T,clipShape:r,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,r),M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,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"})),Dr(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,Ar(y,i,b,g),Rc(t.get("smooth"))),e=t.get("smoothMonotone");y.setShape({smooth:T,smoothMonotone:e,connectNulls:S}),m&&(r=l.getCalculationInfo("stackedOnSeries"),_=0,m.useStyle(h(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),r&&(_=Rc(r.get("smooth"))),m.setShape({smooth:T,stackedOnSmooth:_,smoothMonotone:e,connectNulls:S}),Dr(m,t,"areaStyle"),Rv(m).seriesIndex=t.seriesIndex,Ar(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=M,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 r=t.getData(),o=nn(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,h=t.get("zlevel")||0,u=t.get("z")||0,s=((l=new NC(r,o)).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,r.setItemGraphicEl(o,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 r,o=t.getData(),a=nn(o,n);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):Ab.prototype.downplay.call(this,t,e,i,n)},Wc.prototype._changePolyState=function(t){var e=this._polygon;ur(this._polyline,t),e&&ur(e,t)},Wc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new HC({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 GC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i},Wc.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse,o=("cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0),t.hostModel),s=o.get("animationDuration"),l=(w(s)&&(s=s(null)),o.get("animationDelay")||0),h=w(l)?l(null):l;t.eachItemGraphicEl(function(t,o){var u,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=u=void 0,i&&(f=r?(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(o):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,r,o,a=t.getModel("endLabel");Yc(t)?(n=t.getData(),r=this._polyline,(o=n.getLayout("points"))?(this._endLabel||((this._endLabel=new Pv({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),0<=(o=Fc(o))&&(Bo(r,zo(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,i){if(null==i)return vc(n,t);var r=n,o=i,a=r.mapDimensionsAll("defaultedLabel");if(!x(o))return o+"";for(var s=[],l=0;l<a.length;l++){var h=r.getDimensionIndex(a[l]);0<=h&&s.push(o[h])}return s.join(" ")},enableTextSetter:!0},(i=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:i.get("align")||a,verticalAlign:i.get("verticalAlign")||o}})),r.textConfig.position=null)):(r.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Wc.prototype._endLabelOnDuring=function(t,e,i,n,r,o,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=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,u=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,h=0;h<o;h++)if(r=t[2*h+a],!isNaN(r)&&!isNaN(t[2*h+1-a])){if(0!==h){if(n<=e&&e<=r||e<=n&&r<=e){l=h;break}s=h}n=r}return{range:[s,l],t:(e-n)/(r-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]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+u,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=hn(i,h,f,g,c.t))),n.lastFrameIndex=p[0]):(y=Vc(s,v=1===t||0<n.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+u,y:y[1]+o})),r)&&"function"==typeof(a=xx(m)).setLabelText&&a.setLabelText(d)},Wc.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,h=t.hostModel,e=function(t,e,i,n,r,o){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],h=[],u=[],c=[],p=[],d=[],f=[],g=Cc(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],T=y[1+b],C=m[w],M=m[w+1];(isNaN(S)||isNaN(T))&&(S=C,T=M),l.push(S,T),h.push(C,M),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,C=r.dataToPoint([e.get(T[0],S),e.get(T[1],S)]),w=2*S,l.push(C[0],C[1]),h.push(m[w],m[w+1]),M=Mc(g,r,e,S),u.push(M[0],M[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(o=l.length),k=uu(o),A=uu(o),D=uu(o),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(r&&(u=Nc(e.current,i,r,a),c=Nc(e.stackedOnCurrent,i,r,a),p=Nc(e.next,i,r,a),d=Nc(e.stackedOnNext,i,r,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(),lo(s,i,h),l&&(l.setShape({points:u,stackedOnPoints:c}),l.stopAnimation(),lo(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 jC,qC=Wc,ZC={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 r=t[n],o=Math.abs(r);e<o&&(e=o,i=r)}return isFinite(i)?i:NaN},nearest:function(t){return t[0]}},KC=function(t){return Math.round(t.length/2)};Du(function(t){var e;t.registerChartView(qC),t.registerSeriesModel(EC),t.registerLayout((e=!0,{seriesType:"line",plan:pl(),reset:function(t){var i,n,r,o,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),r=s.getStore(),o=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=r.get(o,p),l.dataToPoint(f,null,c)):(u[0]=r.get(o,p),u[1]=r.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,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(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"===o&&t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/i)),s=void 0,b(o)?s=ZC[o]:w(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/i,s,KC))}})}),i(Xc,QC=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 QC,$C=Xc;i(Uc,JC=aw),Uc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cm).models[0]},Uc.type="cartesian2dAxis";var JC,tM=Uc;p(tM,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),eM={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)},iM={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 nM=["x","y"];i(Kc,rM=qc),Kc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,i,n,r=this.getAxis("x").scale,o=this.getAxis("y").scale;Zc(r)&&Zc(o)&&(r=r.getExtent(),o=o.getExtent(),n=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],i=o[1]-o[0],t)&&i&&(t=(e[0]-n[0])/t,e=(e[1]-n[1])/i,i=n[0]-r[0]*t,r=n[1]-o[0]*e,n=this._transform=[t,0,0,e,i,r],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,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?st(i,t,this._transform):(t=this.getAxis("x"),n=this.getAxis("y"),i[0]=t.toGlobalCoord(t.dataToCoord(r,e)),i[1]=n.toGlobalCoord(n.dataToCoord(o,e)),i)},Kc.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),i=i.parse(t[0]),n=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e},Kc.prototype.pointToData=function(t,e){var i,n,r=[];return this._invTransform?st(r,t,this._invTransform):(i=this.getAxis("x"),n=this.getAxis("y"),r[0]=i.coordToData(i.toLocalCoord(t[0]),e),r[1]=n.coordToData(n.toLocalCoord(t[1]),e),r)},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,r=Math.min(i[0],i[1])-t,e=Math.max(e[0],e[1])-n+t,i=Math.max(i[0],i[1])-r+t;return new Og(n,r,e,i)};var rM,oM=Kc;i(Qc,aM=Ux),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 aM,sM=Qc,lM=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 r=[],o=n-1;0<=o;o--){var a=t[+i[o]],s=a.model,l=a.scale;tu(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(bu(l,s),tu(l)&&(e=a))}r.length&&(e||bu((e=r.pop()).scale,e.model),f(r,function(t){var i=t.scale,t=t.model,n=e.scale,r=PT.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,n=r.getInterval.call(n),l=(t=wu(i,t)).extent,h=t.fixMin,t=t.fixMax,u=("log"===i.type&&(u=lM(i.base),l=[lM(l[0])/u,lM(l[1])/u]),i.setExtent(l[0],l[1]),i.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:t}),r.getExtent.call(i)),c=(h&&(l[0]=u[0]),t&&(l[1]=u[1]),r.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=(o[0].value-a[0].value)/n,t=(o[s].value-a[s].value)/n,r.setExtent.call(i,p+c*h,d+c*t),r.setInterval.call(i,c),(h||t)&&r.setNiceExtent.call(i,p+c,d-c)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var r={};f(n.x,function(t){np(n,"y",t,r)}),f(n.y,function(t){np(n,"x",t,r)}),this.resize(this.model,e)},ep.prototype.resize=function(t,e,i){function n(){f(a,function(t){var e,i,n=t.isHorizontal(),r=n?[0,o.width]:[0,o.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),r=t,e=n?o.x:o.y,a=r.getExtent(),i=a[0]+a[1],r.toGlobalCoord="x"===r.dim?function(t){return t+e}:function(t){return i-t+e},r.toLocalCoord="x"===r.dim?function(t){return t-e}:function(t){return i-t+e}})}var r=t.getBoxLayoutParams(),i=!i&&t.get("containLabel"),o=ba(r,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=o,this._axesList);n(),i&&(f(a,function(t){var e,i,n;t.model.get(["axisLabel","inside"])||(e=Mu(t))&&(i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]),o[i]-=e[i]+n,"top"===t.position?o.y+=e.height+n:"left"===t.position&&(o.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];C(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,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",cm).models[0],o=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):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?i=this.getAxis("x",r.componentIndex):o?i=this.getAxis("y",o.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 r,h;ip(i,t)&&(r=i.get("position"),"x"===e?"top"!==r&&"bottom"!==r&&(r=a.bottom?"top":"bottom"):"left"!==r&&"right"!==r&&(r=a.left?"right":"left"),a[r]=!0,h="category"===(r=new sM(e,Su(i),[0,0],i.get("type"),r)).type,r.onBand=h&&i.get("boundaryGap"),r.inverse=i.get("inverse"),(i.axis=r).model=i,r.grid=o,r.index=n,o._axesList.push(r),s[e][n]=r,l[e]++)}}var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",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,o){var o="x"+i+"y"+o,a=new oM(o);a.master=r,a.model=t,r._coordsMap[o]=a,r._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,r;f((i=t,n=e.dim,r={},f(i.mapDimensionsAll(n),function(t){r[Zh(i,t)]=!0}),v(r)),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,r;Jc(t)&&(r=(n=tp(t)).xAxisModel,n=n.yAxisModel,ip(r,e))&&ip(n,e)&&(r=this.getCartesian(r.componentIndex,n.componentIndex),n=t.getData(),t=r.getAxis("x"),r=r.getAxis("y"),i(n,t),i(n,r))},this)},ep.prototype.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),n=n.getOtherAxis(r);u(e,r)<0&&e.push(r),u(i,n)<0&&i.push(n)}),{baseAxes:e,otherAxes:i}},ep.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,r){var o=new ep(n,t,e);o.name="grid_"+r,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),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=nM;var hM,uM,cM,pM=ep,dM=Math.PI,fM=(op.prototype.hasBuilder=function(t){return!!gM[t]},op.prototype.add=function(t){gM[t](this.opt,this.axisModel,this.group,this._transformGroup)},op.prototype.getGroup=function(){return this.group},op.innerTextLayout=function(t,e,i){var n,e=Ei(e-t),t=Ri(e)?(n=0<i?"top":"bottom","center"):Ri(e-dM)?(n=0<i?"bottom":"top","center"):(n="middle",0<e&&e<dM?0<i?"right":"left":0<i?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:n}},op.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},op.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},op),gM={axisLine:function(t,e,i,n){var r,o,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,r=[p[0],0],o=[p[1],0],a=o[0]<r[0],n&&(st(r,r,n),st(o,o,n)),s=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),So((p=new H_({shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[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((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[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?o:r)[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 r,o,a,s,l,u=function(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var a=o.getModel("lineStyle"),n=n.tickDirection*o.get("length"),s=hp(r.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 r,o,a,s,l,h,u,c,p=i.axis,d=L(n.axisLabelShow,i.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return r=i.getModel("axisLabel"),o=r.get("margin"),a=p.getViewLabels(),d=(L(n.labelRotate,r.get("rotate"))||0)*dM/180,s=fM.innerTextLayout(n.rotation,d,n.labelDirection),l=i.getCategories&&i.getCategories(!0),h=[],u=fM.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=r,_=(v=l&&l[g]&&C(_=l[g])&&_.textStyle?new Ox(_.textStyle,r,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),M=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||s.textVerticalAlign,I=E(v.getShallow("verticalAlignMinLabel",!0),M),k=E(v.getShallow("verticalAlignMaxLabel",!0),M),x=new Pv({x:x,y:n.labelOffset+n.labelDirection*o,rotation:s.rotation,silent:u,z2:10+(d.level||0),style:Fo(v,{text:y,align:0===f?S:f===a.length-1?T:b,verticalAlign:0===f?I:f===a.length-1?k:M,fill:w(_)?_("category"===p.type?m:"value"===p.type?g+"":g,f):_})});x.anid="label_"+g,c&&((d=fM.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=(o=c,u=u,ku((r=e).axis)||(y=r.get(["axisLabel","showMinLabel"]),r=r.get(["axisLabel","showMaxLabel"]),u=u||[],_=(o=o||[])[0],m=o[1],a=o[o.length-1],o=o[o.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===r?(ap(a),ap(l)):sp(o,a)&&(r?(ap(o),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 M=hp(x[T],d.transform,b,S,"minorticks_"+T),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&ac(rc(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,i,n){var r,o,a,s,l,h,u,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,r=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,o=(u=e.axis.getExtent())[0]>u[1]?-1:1,o=["start"===c?u[0]-o*h:"end"===c?u[1]+o*h:(u[0]+u[1])/2,lp(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*dM/180),lp(c)?a=fM.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,i,n){var r,i=Ei(i-t),t=n[0]>n[1],n="start"===e&&!t||"start"!==e&&t;return e=Ri(i-dM/2)?(r=n?"bottom":"top","center"):Ri(i-1.5*dM)?(r=n?"top":"bottom","center"):(r="middle",i<1.5*dM&&dM/2<i?n?"left":"right":n?"right":"left"),{rotation:i,textAlign:e,textVerticalAlign:r}}(t.rotation,c,h||0,u),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=r.getFont(),h=(c=e.get("nameTruncate",!0)||{}).ellipsis,u=L(t.nameTruncateMaxWidth,c.maxWidth,s),Oo({el:t=new Pv({x:o[0],y:o[1],rotation:a.rotation,silent:fM.isLabelSilent(e),style:Fo(r,{text:p,font:l,overflow:"truncate",width:u,ellipsis:h,fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:r.get("align")||a.textAlign,verticalAlign:r.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=fM.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,Rv(t).eventData=c),n.add(t),t.updateTransform(),i.add(t),t.decomposeTransform())}},yM={},mM=(i(gp,hM=Mb),gp.prototype.render=function(t,e,i,n){var r,o,a,s,l,h;this.axisPointerClass&&(r=pp(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,h=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=dp(l),null==h&&(a.status=l?"show":"hide"),(h=o.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=r.axis.scale.isBlank()?"hide":"show"),hM.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),hM.prototype.dispose.apply(this,arguments)},gp.prototype._doUpdateAxisPointerClass=function(t,e,i){var n,r=gp.getAxisPointerClass(this.axisPointerClass);r&&((n=(n=pp(n=t))&&n.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).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){yM[t]=e},gp.getAxisPointerClass=function(t){return t&&yM[t]},gp.type="axis",gp),vM=rn(),_M=["axisLine","axisTickLabel","axisName"],xM=["splitArea","splitLine","minorSplitLine"],tS=(i(yp,uM=mM),yp.prototype.render=function(t,e,i,n){this.group.removeAll();var r,o,a=this._axisGroup;this._axisGroup=new Jy,this.group.add(this._axisGroup),t.get("show")&&(o=$c(r=t.getCoordSysModel(),t),o=new fM(t,l({handleAutoShown:function(e){for(var i=r.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(tu(i[n].getOtherAxis(t.axis).scale))return!0;return!1}},o)),f(_M,o.add,o),this._axisGroup.add(o.getGroup()),f(xM,function(e){t.get([e,"show"])&&wM[e](this,this._axisGroup,t,r)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||Io(a,this._axisGroup,t),uM.prototype.render.call(this,t,e,i,n))},yp.prototype.remove=function(){vM(this).splitAreaColors=null},yp.type="cartesianAxis",yp),wM={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank())for(var i=i.getModel("splitLine"),o=i.getModel("lineStyle"),a=x(a=o.get("color"))?a:[a],s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=0,c=r.getTicksCoords({tickModel:i}),p=[],d=[],f=o.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),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});So(m.shape,f.lineWidth),e.add(m)}},minorSplitLine:function(t,e,i,n){var r=i.axis,i=i.getModel("minorSplitLine").getModel("lineStyle"),o=n.coordinateSystem.getRect(),a=r.isHorizontal(),s=r.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=r.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=o.y,h[0]=d,h[1]=o.y+o.height):(l[0]=o.x,l[1]=d,h[0]=o.x+o.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}));So(d.shape,u.lineWidth),e.add(d)}},splitArea:function(t,e,i,n){var r=e,e=n,o=(n=i).axis;if(!o.scale.isBlank()){var n=n.getModel("splitArea"),i=n.getModel("areaStyle"),a=i.get("color"),s=e.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,c=vM(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=o.toGlobalCoord(l[0].coord),m=i.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=o.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=o.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),r.add(new 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}vM(t).splitAreaColors=p}}}},bM=(i(mp,cM=tS),mp.type="xAxis",mp);i(vp,SM=tS),vp.type="yAxis";var SM,TM=vp;i(_p,CM=Mb),_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 CM,MM=_p,IM={offset:0};Du(function(t){t.registerComponentView(MM),t.registerComponentModel($C),t.registerCoordinateSystem("cartesian2d",pM),Gc(t,"x",tM,IM),Gc(t,"y",tM,IM),t.registerComponentView(bM),t.registerComponentView(TM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),i(xp,kM=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 kM,AM=xp;i(wp,DM=Mb),wp.prototype.render=function(t,e,i){var n,r,o,a,s,l,h,u,c;this.group.removeAll(),t.get("show")&&(n=this.group,h=t.getModel("textStyle"),r=t.getModel("subtextStyle"),u=t.get("textAlign"),c=E(t.get("textBaseline"),t.get("textVerticalAlign")),s=(h=new Pv({style:Fo(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new Pv({style:Fo(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),h.silent=!o&&!s,r.silent=!a&&!s,o&&h.on("click",function(){xa(o,"_"+t.get("target"))}),a&&r.on("click",function(){xa(a,"_"+t.get("subtarget"))}),Rv(h).eventData=Rv(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),l&&n.add(r),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}),r.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 DM,PM=wp;Du(function(t){t.registerComponentModel(AM),t.registerComponentView(PM)}),i(bp,OM=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){OM.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 r,o=n.name;i.push(o),n.legendVisualProvider&&(o=n.legendVisualProvider.getAllNames(),t.isSeriesFiltered(n)||(i=i.concat(o)),o.length)?e=e.concat(o):r=!0,r&&Ji(n)&&e.push(n.name)}),this._availableNames=i,this.get("data")||e),r=X(),n=g(n,function(t){return(b(t)||T(t))&&(t={name:t}),r.get(t.name)?null:(r.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 OM,LM,EM=bp,RM=_,NM=f,BM=Jy,zM=(i(Sp,LM=Mb),Sp.prototype.init=function(){this.group.add(this._contentGroup=new BM),this.group.add(this._selectorGroup=new BM),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,r,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(r=t.get("align"),n=t.get("orient"),r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===n?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(r,t,e,i,a,n,s=!a||s&&"auto"!==s?s:"horizontal"===n?"end":"start"),o=ba(e=t.getBoxLayoutParams(),n={width:i.getWidth(),height:i.getHeight()},i=t.get("padding")),o=ba(h({width:(r=this.layoutInner(t,r,o,l,a,s)).width,height:r.height},e),n,i),this.group.x=o.x-r.x,this.group.y=o.y-r.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=r,s=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,r,o,a){var s=this.getContentGroup(),h=X(),u=e.get("selectedMode"),c=[];i.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),NM(e.getData(),function(r,o){var a,p,d,f,g=r.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,o,r,e,t,f,d,p,u,n)).on("click",RM(Tp,g,null,n,c)).on("mouseover",RM(Mp,a.name,null,n,c)).on("mouseout",RM(Ip,a.name,null,n,c)),i.ssr&&f.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,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,o,r,e,t,{},s,p,u,n)).on("click",RM(Tp,null,g,n,c)).on("mouseover",RM(Mp,null,g,n,c)).on("mouseout",RM(Ip,null,g,n,c)),i.ssr&&d.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),h.set(g,!0))},this))):((d=new BM).newline=!0,s.add(d))},this),r&&this._createSelector(r,e,n,o,a)},Sp.prototype._createSelector=function(t,e,i,n,r){var o=this.getSelectorGroup();NM(t,function(t){var n=t.type,r=new Pv({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});o.add(r),Bo(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),kr(r)})},Sp.prototype._createItem=function(t,e,i,n,r,o,a,s,l,h,u){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),m=n.get("icon"),a=function(t,e,i,n,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),NM(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[r]),"inherit"===h.stroke&&(h.stroke=n[t]),"inherit"===h.opacity&&(h.opacity=("fill"===r?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),o||(r=e.get("inactiveBorderWidth"),i=h[t],h.lineWidth="auto"===r?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 BM,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"===o?p+5:-5),u=o,t=r.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:Fo(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")&&Oo({el:a,componentModel:r,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!h,this.getContentGroup().add(s),kr(s),s.__legendDataIndex=i,s},Sp.prototype.layoutInner=function(t,e,i,n,r,o){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(),r?(tw("horizontal",p,t.get("selectorItemGap",!0)),a=[-(r=p.getBoundingRect()).x,-r.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",h=0===t?"height":"width",u=0===t?"y":"x","end"===o?a[t]+=i[l]+s:d[t]+=r[l]+s,a[1-t]+=i[h]/2-r[h]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(o={x:0,y:0})[l]=i[l]+s+r[l],o[h]=Math.max(i[h],r[h]),o[u]=Math.min(0,r[u]+a[1-t]),o):(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,FM=EM),Pp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Pp.prototype.init=function(t,e,i){var n=Ca(t);FM.prototype.init.call(this,t,e,i),Op(this,t,n)},Pp.prototype.mergeOption=function(t,e){FM.prototype.mergeOption.call(this,t,e),Op(this,this.option,t)},Pp.type="legend.scroll",Pp.defaultOption=(G_=EM.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({},G_,!0),p_,!0));var FM,VM,YM=Pp,HM=Jy,WM=["width","height"],XM=["x","y"],UM=(i(Lp,VM=zM),Lp.prototype.init=function(){VM.prototype.init.call(this),this.group.add(this._containerGroup=new HM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new HM)},Lp.prototype.resetInner=function(){VM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Lp.prototype.renderInner=function(t,e,i,n,r,o,a){function s(t,i){var r=t+"DataIndex",i=Do(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:$f(l._pageGo,l,r,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=(VM.prototype.renderInner.call(this,t,e,i,n,r,o,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,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,h=WM[l],u=XM[l],c=WM[1-l],p=XM[1-l],d=(r&&tw("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(i),i=(r&&(y[h]=i[h]-f[h]-d),this._layoutContentAndController(t,n,y,l,h,c,p,u));return r&&("end"===o?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,r,o,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[r]>i[r],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[r]-p[r]:e[n]+=p[r]+g),s[1-n]+=c[o]/2-p[o]/2,l.setPosition(f),h.setPosition(e),u.setPosition(s),{x:0,y:0}),c=(f[r]=(d?i:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-n]),h.__rectSize=i[r],d?((e={x:0,y:0})[r]=Math.max(i[r]-p[r]-g,0),e[o]=f[o],h.setClipPath(new Iv({shape:e})),h.__rectSize=e[r]):u.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&lo(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 r=null!=e[n+"DataIndex"],n=i.childOfName(n);n&&(n.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),n.cursor=r?"pointer":"default")}),i.childOfName("pageText")),r=t.get("pageFormatter"),o=e.pageIndex,o=null!=o?o+1:0,a=e.pageCount;n&&r&&n.setStyle("text",b(r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):r({current:o,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+o}var n=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,t=t.getOrient().index,a=WM[t],s=XM[t],n=this._findTargetItemIndex(n),l=r.children(),h=l[n],u=l.length,c=u?1:0,p={contentPosition:[r.x,r.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(h){r=e(h),p.contentPosition[t]=-r.s;for(var d=n+1,f=r,g=r,y=null;d<=u;++d)(!(y=e(l[d]))&&g.e>f.s+o||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=r,g=r,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,r){n=n.__legendDataIndex,null==i&&null!=n&&(i=r),n===t&&(e=r)}),null!=e?e:i):0},Lp.type="legend.scroll",Lp);Du(function(t){Du(Dp),t.registerComponentModel(YM),t.registerComponentView(UM),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 GM=rn(),jM=a,qM=$f;Ep.prototype.render=function(t,e,i,n){var r,o,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,r=this._handle,s&&"hide"!==s?(n&&n.show(),r&&r.show(),this.makeElOption(s={},a,t,e,i),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),n?(o=_(Rp,e,o),this.updatePointerEl(n,s,o),this.updateLabelEl(n,s,o,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(),r&&r.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"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===n||null==n?(i=this.animationThreshold,o&&r.getBandWidth()>i||!!e&&(o=pp(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>i)):!0===n)},Ep.prototype.makeElOption=function(t,e,i,n,r){},Ep.prototype.createPointerEl=function(t,e,i,n){var r=e.pointer;r&&(r=GM(t).pointerEl=new gx[r.type](jM(e.pointer)),t.add(r))},Ep.prototype.createLabelEl=function(t,e,i,n){e.label&&(e=GM(t).labelEl=new Pv(jM(e.label)),t.add(e),Np(e,n))},Ep.prototype.updatePointerEl=function(t,e,i){(t=GM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),i(t,{shape:e.pointer.shape}))},Ep.prototype.updateLabelEl=function(t,e,i,n){(t=GM(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,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,n=this._handle=Do(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_g(t.event)},onmousedown:qM(this._onHandleDragMove,this,0,0),drift:qM(this._onHandleDragMove,this),ondragend:qM(this._onHandleDragEnd,this)}),i.add(n)),zp(n,e,!1),n.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=r.get("size"))||(a=[a,a]),n.scaleX=a[0]/2,n.scaleY=a[1]/2,_l(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(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)),GM(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,ZM=Ep),Hp.prototype.makeElOption=function(t,e,i,n,r){var o,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&&(o=(a=n).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=QM[h](s,c,u)).style=o,t.graphicKey=a.type,t.pointer=a),$c(l.model,i));h=e,s=t,c=p,u=i,o=n,a=r,l=fM.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),Fp(s,u,o,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,r=i.grid,o=i.getGlobalExtent(!0),r=Wp(r,i).getOtherAxis(i).getGlobalExtent(),i="x"===i.dim?0:1,a=[t.x,t.y],e=(a[i]+=e[i],a[i]=Math.min(o[1],a[i]),a[i]=Math.max(o[0],a[i]),(r[1]+r[0])/2),o=[e,e];return o[i]=a[i],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][i]}};var ZM,KM=Hp,QM={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()),r=i[1]-i[0];return{type:"Rect",shape:(e=[e-n/2,i[0]],i=[n,r],n=Xp(t),{x:e[n=n||0],y:e[1-n],width:i[n],height:i[1-n]})}}};i(Up,$M=aw),Up.type="axisPointer",Up.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 $M,JM=Up,tI=rn(),eI=f;i(Kp,iI=Mb),Kp.prototype.render=function(t,e,i){var e=e.getComponent("tooltip"),n=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Gp("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,rI=rn();i(od,oI=aw),od.type="tooltip",od.dependencies=["axisPointer"],od.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 oI,aI=od,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,r=this._styleCoord;i.innerHTML?n.cssText=uI+ud(t,!this._firstShow,this._longHide)+hd(r[0],r[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,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,h,c,p="";if(b(r)&&"item"===i.get("trigger")&&!ad(i)&&(i=i,n=n,p=b(r=r)&&"inside"!==r?(a=i.get("backgroundColor"),i=i.get("borderWidth"),n=_a(n),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",d=Math.max(1.5*Math.round(i),6),s="",l=hI+":",-1<u(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==r?225:45)+"deg)"),c=c*Math.PI/180,c=(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+=";"+r+":-"+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))o.innerHTML=t+p;else if(t){o.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==o&&o.appendChild(t[f]);p&&o.childNodes.length&&((d=document.createElement("div")).innerHTML=p,o.appendChild(d))}}},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,r){var o=this,a=(C(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){o.el.style[t]=i.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},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,r=this.el;r&&(yd(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],i=fd((n=r.style).borderWidth||0),n=gd(n),r.x=t+i+n.left,r.y=e+i+n.top,r.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=Mb),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");Gp("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,r=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r&&(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 r,o,a,s;n.from!==this.uid&&!Pf.node&&i.getDom()&&(r=_d(n,i),this._ticket="",s=n.dataByCoordSys,(o=function(t,e,i){var n=an(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o,e=sn(e,r,n.get(r),{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 o=e,!0}),o))return{componentMainType:r,componentIndex:e.componentIndex,el:o}}}(n,e,i))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:n.position,positionDefault:"bottom"},r)):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},r)):s?this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},r):null!=n.seriesIndex?this._manuallyAxisShowTip(t,e,i,n)||(a=(o=Qp(n,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:n.position,positionDefault:"bottom"},r)):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},r)))},md.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;this._tooltipModel&&r.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 r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a&&(a=e.getSeriesByIndex(r))&&(e=vd([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0},md.prototype._tryShow=function(t,e){var i,n,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(i=t.dataByCoordSys)&&i.length?this._showAxisTooltip(i,t):o?"legend"!==Rv(o).ssrType&&(Bl(o,function(t){return null!=Rv(t).dataIndex?(n=t,1):null!=Rv(t).tooltipConfig&&(r=t,1)},!(this._lastDataByCoordSys=null)),n?this._showSeriesItemTooltip(t,n,e):r?this._showComponentItemTooltip(t,r,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,r=[e.offsetX,e.offsetY],o=vd([e.tooltipOption],n),a=this._renderMode,s=[],h=Us("section",{blocks:[],noHeader:!0}),u=[],c=new bb,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,r,o=i.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;o&&null!=p&&(e=Vp(p,o.axis,i,t.seriesDataIndices,t.valueLabelOpt),r=Us("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),h.blocks.push(r),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=Cu(o.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"),r.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=o.get("order"),e=Ks(h,c,a,e,i.get("useUTC"),o.get("textStyle")),e=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),d=u.join(e);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,d,s,Math.random()+"",r[0],r[1],p,null,c)})},md.prototype._showSeriesItemTooltip=function(t,e,i){var n,r,o,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),r=new bb,n.marker=r.makeTooltipMarker("item",_a(n.color),g),y=vs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),o=y.frag,a=o?Ks(e?l({valueFormatter:e},o):o,r,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,r)}),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,r=Rv(e),o=r.tooltipConfig.option||{},s=o.encodeHTMLContent,s=(b(o)&&(o={content:o,formatter:o},s=!0),s&&n&&o.content&&((o=a(o)).content=yt(o.content)),[o]),n=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(n&&s.push(n),s.push({formatter:o.content}),t.positionDefault),l=vd(s,this._tooltipModel,r?{position:r}: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,r,o,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([r,o],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")?Qo(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,r,o,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,r,o,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,r,o,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([i,n],o,r.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(i=Ai(e[0],l),n=Ai(e[1],h)):C(e)?((o=e).width=u[0],o.height=u[1],i=(o=ba(o,{width:l,height:h})).x,n=o.y,p=c=null):(i=(s=b(e)&&a?function(t,e,i,n){var r=i[0],o=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-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+h/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+h/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+h+a,l=e.y+u/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth")):function(t,e,i,n,r,o,a){var i=i.getSize(),s=i[0],i=i[1];return null!=o&&(n<t+s+o+2?t-=s+o:t+=o),null!=a&&(r<e+i+a?e-=i+a:e+=a),[t,e]}(i,n,r,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)&&(o=i,a=n,e=l,d=h,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),i=(s=[o,a])[0],n=s[1]),r.moveTo(i,n)},md.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&f(i,function(i,o){var i=i.dataByAxis||[],a=(t[o]||{}).dataByAxis||[];(r=r&&i.length===a.length)&&f(i,function(t,i){var i=a[i]||{},o=t.seriesDataIndices||[],s=i.seriesDataIndices||[];(r=r&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&o.length===s.length)&&f(o,function(t,e){e=s[e],r=r&&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&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},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(rd),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=rn(),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 r=this.mainType;i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),o=mI(t)[r];i&&i.data?(o?o._mergeOption(i,e,!0):(n&&wd(i),f(i.data,function(t){t instanceof Array?(wd(t[0]),wd(t[1])):wd(t)}),l(o=this.createMarkerModelFromSeries(i,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),mI(t)[r]=o):mI(t)[r]=null},this)},bd.prototype.formatTooltip=function(t,e,i){var n=this.getData(),r=this.getRawValue(t),n=n.getName(t);return Us("section",{header:this.name,blocks:[Us("nameValue",{name:n,value:r,noName:!n,noValue:null==r})]})},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=rn(),g_=(i(kd,xI=Mb),kd.prototype.init=function(){this.markerGroupMap=X()},kd.prototype.render=function(t,e,i){var n=this,r=this.markerGroupMap;r.each(function(t){SI(t).keep=!1}),e.eachSeries(function(t){var r=vI.getMarkerModelFromSeries(t,n.type);r&&n.renderSeries(t,r,e,i)}),r.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?vr:_r)(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 r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,s=s.get(o)||s.set(o,new zC),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 r=new wT(n,i),i=g(i.get("data"),_(Cd,e));return t&&(i=m(i,_(Md,t))),t=function(t,e){return t?function(t,i,n,r){return Ss(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,i,n,r){return Ss(t.value,e[r])}}(!!t,n),r.initData(i,null,t),r}(r,t,e);e.setData(h),Ad(e.getData(),t,n),h.each(function(t){var i=h.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=i.getShallow("symbolOffset"),l=i.getShallow("symbolKeepAspect"),u=((w(n)||w(r)||w(o)||w(s))&&(u=e.getRawValue(t),c=e.getDataParams(t),w(n)&&(n=n(u,c)),w(r)&&(r=r(u,c)),w(o)&&(o=o(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:r,symbolRotate:o,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,CI=Dd;Du(function(t){t.registerComponentModel(wI),t.registerComponentView(CI),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 MI={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,r=(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)),o=[],a=0,s=n.count();a<s;a++)e=n.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},RI={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Gi(t),i=(t.length||Xi(""),[]),t=(f(t,function(t){var n=t.dimension,r=t.order,o=t.parser,t=t.incomparable,n=(null==n&&Xi(""),"asc"!==r&&"desc"!==r&&Xi(""),t&&"min"!==t&&"max"!==t&&Xi(""),"asc"!==r&&"desc"!==r&&Xi(""),e.getDimensionInfo(n)),a=(n||Xi(""),o?Ts(o):null);o&&!a&&Xi(""),i.push({dimIdx:n.index,parser:a,comparator:new lb(r,t)})}),e.sourceFormat),n=(t!==fw&&t!==gw&&Xi(""),[]),r=0,o=e.count();r<o;r++)n.push(e.getRawDataItem(r));return n.sort(function(t,n){for(var r=0;r<i.length;r++){var o=i[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx),o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0}),{data: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,r,o){this._add("C",t,e,i,n,r,o)},Yd.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},Yd.prototype.arc=function(t,e,i,n,r,o){this.ellipse(t,e,i,i,0,n,r,o)},Yd.prototype.ellipse=function(t,e,i,n,r,o,a,s){var l,h=a-o,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(o),h=e+n*BI(o),r=(this._start&&this._add("M",u,h),Math.round(r*YI));c?(c=1/this._p,this._add("A",i,n,r,1,+s,t+i*zI(o+(l=(s?1:-1)*(VI-c))),e+n*BI(o+l)),.01<c&&this._add("A",i,n,r,0,+s,u,h)):(o=t+i*zI(a),l=e+n*BI(a),this._add("A",i,n,r,+p,+s,o,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,r,o,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,UI=["lineCap","miterLimit","lineJoin"],GI=g(UI,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 r=NI[n],o=t[r[0]];null!=o&&(e[r[1]]=ik(o*i)/i)}})],polyline:[of,af],polygon:[of,af]},rk=58,ok=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,r;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",xf(e=this._oldVNode,i=t)?Mf(e,i):(r=gf(n=e.elm),wf(i),null!==r&&(pf(r,i.elm,yf(n)),Sf(r,[e],0,0))),this._oldVNode=t)},If.prototype.renderOneToVNode=function(t){return lf(t,Gd(this._id))},If.prototype.renderToVNode=function(t){t=t||{};var e,i,n,r,o,a=this.storage.getDisplayList(!0),s=this._width,l=this._height,h=Gd(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 r;return i&&"none"!==i&&(r=Xd("rect","bg",{width:t,height:e,x:"0",y:"0"}),Re(i)?hf({fill:i},r.attrs,"fill",n):Oe(i)?uf({style:{fill:i},dirty:Z,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",n):(n=Ie(i),i=n.color,n=n.opacity,r.attrs.fill=i,n<1&&(r.attrs["fill-opacity"]=n))),r}(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":"",r=" {"+n,o=n+"}",c=g(v(e),function(t){return t+r+g(v(e[t]),function(i){return i+":"+e[t][i]+";"}).join(n)+o}).join(n),a=g(v(i),function(t){return"@keyframes "+t+r+g(v(i[t]),function(e){return e+r+g(v(i[t][e]),function(n){var r=i[t][e][n];return n+":"+(r="d"===n?'path("'+r+'")':r)+";"}).join(n)+o}).join(n)+o}).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 Ud(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,r,o,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=(r=y[w],o=b,h=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(h=l[r.id])||(s={id:h=a.zrId+"-c"+a.clipPathIdx++},S[l[r.id]=h]=Xd("clipPath",h,s,[sf(r,a)])),o["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,r=this._viewport;null!=t&&(i.width=t),null!=e&&(i.height=e),n&&r&&(r.style.display="none",t=Ul(n,0,i),e=Ul(n,1,i),r.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,r&&((n=r.style).width=t+"px",n.height=e+"px"),Oe(this._backgroundColor)?this.refresh():((i=this._svgDom)&&(i.setAttribute("width",t),i.setAttribute("height",e)),(r=this._bgVNode&&this._bgVNode.elm)&&(r.setAttribute("width",t),r.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)},Ci("svg",If),e.Axis=Ux,e.ChartView=Ab,e.ComponentModel=aw,e.ComponentView=Mb,e.List=wT,e.Model=Ox,e.PRIORITY=$b,e.SeriesModel=Cb,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=Mb.extend(t),Mb.registerClass(t),t},e.extendSeriesModel=function(t){return t=Cb.extend(t),Cb.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 r=_h(t);if(r)return r}return(r=new HS(t,e,i)).id="ec_"+JS++,QS[r.id]=r,n&&ln(t,eT,r.id),BS(r),fS.trigger("afterinit",r),r},e.innerDrawElementOnCanvas=rh,e.matrix=bg,e.number=Ix,e.parseGeoJSON=Vu,e.parseGeoJson=Vu,e.registerAction=Mh,e.registerCoordinateSystem=Ih,e.registerLayout=kh,e.registerLoading=Ph,e.registerLocale=qo,e.registerMap=Oh,e.registerPostInit=Sh,e.registerPostUpdate=Th,e.registerPreprocessor=wh,e.registerProcessor=bh,e.registerTheme=xh,e.registerTransform=Lh,e.registerUpdateLifecycle=Ch,e.registerVisual=Ah,e.setCanvasCreator=function(t){n({createCanvas:t})},e.setPlatformAPI=n,e.throttle=vl,e.time=mm,e.use=Du,e.util=Cx,e.vector=sg,e.version="5.5.1",e.zrUtil=rg,e.zrender=om})}).call(e,i(306).Buffer)},2175:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];n._withStripped=!0},2176:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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)},r=[];n._withStripped=!0},2177:function(t,e,i){"use strict";function n(t){s||i(2178)}var r=i(1615),o=i(2179),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=h.exports},2178:function(t,e){},2179:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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,r){return[t.showCol(r)?i("td",{key:"td-"+n+"-"+r,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)])},r=[];n._withStripped=!0},2180:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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.btnColor},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},r=[];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)}},267: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||"确定"}}}},268: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])}}}},27:function(t,e,i){var n=i(8).f,r=i(6),o=i(3)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},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"),r=i(23),o=i(2).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("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)}},306:function(t,e,i){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,i){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(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?r(t,e):void 0!==i?"string"==typeof n?r(t,e).fill(i,n):r(t,e).fill(i):r(t,e)}function h(t,e){if(s(e),t=r(t,e<0?0:0|f(e)),!o.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"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,i);t=r(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=r(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),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function d(t,e){if(o.isBuffer(e)){var i=0|f(e.length);return t=r(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)?r(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),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var 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,r){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=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==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(r){var u=-1;for(h=i;h<s;h++)if(o(t,h)===o(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(o(t,h+p)!==o(e,p)){c=!1;break}if(c)return h}return-1}function w(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/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(U(e),t,i,n)}function T(t,e,i,n){return S(t,e,i,n)}function C(t,e,i,n){return q(j(e),t,i,n)}function M(t,e,i,n){return q(G(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=[],r=e;r<i;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=i){var l,h,u,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],h=t[r+2],128==(192&l)&&128==(192&h)&&(c=(15&o)<<12|(63&l)<<6|63&h)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],h=t[r+2],u=t[r+3],128==(192&l)&&128==(192&h)&&128==(192&u)&&(c=(15&o)<<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),r+=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 r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);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 r="",o=e;o<i;++o)r+=W(t[o]);return r}function L(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}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,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(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 r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function B(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function z(t,e,i,n,r,o){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,r){return r||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,r){return r||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,r=null,o=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.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;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function U(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function G(t,e){for(var i,n,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}function j(t){return K.toByteArray(Y(t))}function q(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function Z(t){return t!==t}var K=i(307),Q=i(308),$=i(309);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,i){return a(null,t,e,i)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,i){return l(null,t,e,i)},o.allocUnsafe=function(t){return h(null,t)},o.allocUnsafeSlow=function(t){return h(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,a=Math.min(i,n);r<a;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=o.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var a=t[i];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",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+">"},o.prototype.compare=function(t,e,i,n,r){if(!o.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===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var a=r-n,s=i-e,l=Math.min(a,s),h=this.slice(n,r),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},o.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},o.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},o.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},o.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 r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!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 C(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var 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(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},o.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},o.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},o.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]},o.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])},o.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.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},o.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},o.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},o.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]},o.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},o.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 r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},o.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 r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},o.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<i&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},o.prototype.writeDoubleLE=function(t,e,i){return V(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return V(this,t,e,!1,i)},o.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 r,a=n-i;if(this===t&&i<e&&e<n)for(r=a-1;r>=0;--r)t[r+e]=this[r+i];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},o.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 r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.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=o.isBuffer(t)?t:X(new o(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))},307: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 r(t){var e=n(t),i=e[0],r=e[1];return 3*(i+r)/4-r}function o(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,r=n(t),a=r[0],s=r[1],l=new p(o(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,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(n));return r.join("")}function h(t){for(var e,i=t.length,n=i%3,r=[],o=0,a=i-n;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===n?(e=t[i-1],r.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],r.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),r.join("")}e.byteLength=r,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},308:function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,h=l>>1,u=-7,c=i?r-1:0,p=i?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+t[e+c],c+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+t[e+c],c+=p,u-=8);if(0===o)o=1-h;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=h}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,h=8*o-r-1,u=(1<<h)-1,c=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-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,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[i+d]=255&s,d+=f,s/=256,r-=8);for(a=a<<r|s,h+=r;h>0;t[i+d]=255&a,d+=f,a/=256,h-=8);t[i+d-f]|=128*g}},309: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"),r=i(23);t.exports=function(t){return n[t]||(n[t]=r(t))}},32:function(t,e,i){var n=i(0),r=i(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version: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,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;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),r=i(0),o=i(16),a=i(36),s=i(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(40);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,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},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,r){var o=e.call(this,t,n,r);if(o)return i=n,o}),i}function r(t){return t?JSON.parse(W()(t)):t}function o(t,e){for(var i in e)t[i]&&"object"===Y()(t[i])?o(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 r(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(u,e),S?n(t):_}function s(t){var i=t-w,n=t-b,r=e-i;return T?Math.min(r,v-n):r}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=r(u,s(t))}function c(t){return x=void 0,C&&y?n(t):(y=m=void 0,_)}function p(){void 0!==x&&o(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),o=arguments.length,s=Array(o),h=0;h<o;h++)s[h]=arguments[h];if(y=s,m=this,w=t,i){if(void 0===x)return a(w);if(T)return x=r(u,e),n(w)}return void 0===x&&(x=r(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,C=!0,M=!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,C="trailing"in i?!!i.trailing:C),g.cancel=p,g.flush=d,g.pending=f,g}function v(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return h(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),m(t,e,{leading:n,trailing:r,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 C(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),r=null;return i?r={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(r={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),r?void 0!==e?"rgba("+r.r+", "+r.g+", "+r.b+", "+e+")":"rgb("+r.r+", "+r.g+", "+r.b+")":""}function M(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*i));return n}function I(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),r=i.match(n);return r&&r[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 r=t[n];if(!i.test(r))return;e.push(r.split("?")[0])}return e}function E(t){var e=JSON.parse(W()(t)),i=e.attrModules,n=void 0===i?{}:i,r=e.plan,o=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,r=null,o={},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?(r=r||{},r[h]=u):"companyIdType"===h||"companyId"===h?(s=s||{},s[h]=u):"detail"===h?(l=l||{},l[h]=u):o[h]=u)}return e&&(o.certificate=e),i&&(o.socialIns=i),n&&(o.resident=n),r&&(o.office=r),s&&(o.companyCertificate=s),l&&(o.companyAddress=l),o};if(n.plan&&(r=f(n.plan)),o&&(d.applicant={},o&&(d.applicant=f(o))),s||r){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),r&&(_.plan=r),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=F()(d.makeup,S))}}return d}function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=URL.createObjectURL(new Blob).toString();return URL.revokeObjectURL(e),(e.substring(e.lastIndexOf("/")+1)||"").replace(new RegExp("-","g"),"").substring(0,t)}function N(t){if("string"!=typeof t)return!1;var e=t.toLowerCase();try{return"pdf"===new URL(e.startsWith("http")?e:"https://"+e).pathname.split(".").pop()}catch(t){return/.pdf($|\?|#)/.test(e)}}function B(t){try{if(!t||"string"!=typeof t)return{id:"",originalName:"",error:"输入参数无效"};var e=t.trim();if(e.startsWith("http://")||e.startsWith("https://")){var i=e.split("/");if(0===i.length)return{id:"",originalName:"",error:"URL格式错误"};e=i.pop().split("?")[0]}if(!e.includes("~~"))return{id:"",originalName:e,error:"文件名不包含~~分隔符"};var n=e.split("~~");if(n.length<2)return{id:"",originalName:e,error:"文件名格式错误"};var r=n[0]||"",o=n[1].replace(/\.[^.]+$/,"");if(!o)return{id:r,originalName:"",error:"Base64编码部分为空"};for(var a=o.replace(/-/g,"+").replace(/_/g,"/");a.length%4;)a+="=";var s="";try{s=atob(a)}catch(t){return{id:r,originalName:"",error:"Base64解码失败: "+t.message}}var l="";try{var h=Uint8Array.from(s,function(t){return t.charCodeAt(0)});l=new TextDecoder("utf-8").decode(h)}catch(t){try{l=decodeURIComponent(s)}catch(t){l=s}}return{id:r,originalName:l,error:null}}catch(t){return console.error("parseEncodedFile 解析错误:",t),{id:"",originalName:"",error:t&&t.message||"未知错误"}}}i.d(e,"K",function(){return at}),i.d(e,"x",function(){return st}),e.e=n,e.d=r,e.c=o,e.p=a,e.D=s,e.z=l,e.A=h,e.q=u,e.y=c,e.r=p,e.E=d,e.s=f,e.t=g,e.C=y,e.b=m,e.J=v,e.w=_,e.h=x,e.f=w,e.g=b,e.i=S,e.F=T,e.o=C,e.H=M,e.m=I,e.u=k,e.I=A,e.l=D,e.n=P,e.k=O,e.j=E,i.d(e,"v",function(){return lt}),e.a=R,e.B=N,e.G=B;var z=i(28),F=i.n(z),V=i(79),Y=i.n(V),H=i(58),W=i.n(H),X="undefined"!=typeof window,U=X&&window.navigator.userAgent.toLowerCase(),G=U&&/msie|trident/.test(U),j=U&&U.indexOf("msie 9.0")>0,q=U&&U.indexOf("edge/")>0,Z=U&&U.indexOf("android")>0,K=U&&/iphone|ipad|ipod|ios/.test(U),Q=U&&/arkweb|harmony/.test(U),$=U&&/chrome\/\d+/.test(U)&&!q,J=U&&/MicroMessenger/i.test(U),tt=U&&/wxwork/i.test(U),et=U&&/mucxiaoyusan/i.test(U),it=U&&/muckacabao/i.test(U),nt=U&&/mucyanxuan/i.test(U),rt=et||it,ot=U&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(U),at={isIE:G,isMobile:ot,isIE9:j,isEdge:q,isAndroid:Z,isIOS:K,isHarmonyOS:Q,isChrome:$,isWx:J,isWxWork:tt,isApp:rt,isXysApp:et,isKcbApp:it,isYxApp:nt},st=/MucWebAutoTester/.test(window.navigator.userAgent),lt=function(){return!("undefined"==typeof window||!window)&&(/iphone/gi.test(window.navigator.userAgent)&&window.screen.height>=812)}},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e,i){var n=i(10),r=i(2).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},45:function(t,e,i){"use strict";var n=i(16),r=i(13),o=i(49),a=i(7),s=i(18),l=i(69),h=i(27),u=i(73),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 C)return C[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,C=t.prototype,M=C[c]||C["@@iterator"]||g&&C[g],I=M||w(g),k=g?S?w("entries"):I:void 0,A="Array"==e?C.entries||M:M;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&&M&&"values"!==M.name&&(T=!0,I=function(){return M.call(this)}),n&&!m||!p&&!T&&C[c]||a(C,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 C||o(C,_,v[_]);else r(r.P+r.F*(p||T),e,v);return v}},46:function(t,e,i){var n=i(9),r=i(70),o=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(41)("iframe"),n=o.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[o[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:r(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)}},48:function(t,e,i){t.exports=!i(5)&&!i(12)(function(){return 7!=Object.defineProperty(i(41)("div"),"a",{get:function(){return 7}}).a})},49:function(t,e,i){t.exports=i(7)},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){var n=i(6),r=i(11),o=i(71)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=r(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++])&&(~o(h,i)||h.push(i));return h}},51:function(t,e,i){var n=i(50),r=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},53:function(t,e,i){"use strict";var n=i(68)(!0);i(45)(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})})},54:function(t,e,i){var n=i(11),r=i(51).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},55:function(t,e,i){"use strict";var n=i(2),r=i(6),o=i(5),a=i(13),s=i(49),l=i(78).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(80),v=i(9),_=i(10),x=i(24),w=i(11),b=i(34),S=i(22),T=i(46),C=i(54),M=i(87),I=i(35),k=i(8),A=i(15),D=M.f,P=k.f,O=C.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,U=!X||!X.prototype||!X.prototype.findChild,G=o&&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),r(V,e)?(i.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),G(t,e,i)):P(t,e,i)},K=function(t,e){v(t);for(var i,n=y(e=w(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],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&&r(V,t)&&!r(Y,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==H||!r(V,e)||r(Y,e)){var i=D(t,e);return!i||!r(V,e)||r(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],o=0;i.length>o;)r(V,e=i[o++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===H,n=O(i?Y:w(t)),o=[],a=0;n.length>a;)!r(V,e=n[a++])||i&&!r(H,e)||o.push(V[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===H&&e.call(Y,i),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),G(this,t,S(1,i))};return o&&U&&G(H,t,{configurable:!0,set:e}),j(t)},s(L.prototype,"toString",function(){return this._k}),M.f=J,k.f=Z,i(51).f=C.f=tt,i(25).f=$,I.f=et,o&&!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 rt=A(d.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!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],r=1;arguments.length>r;)n.push(arguments[r++]);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(7)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},56:function(t,e,i){i(74);for(var n=i(2),r=i(7),o=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]&&r(c,a,h),o[h]=o.Array}},57:function(t,e,i){var n=i(13),r=i(0),o=i(12);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(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),r=Math.min;t.exports=function(t){return t>0?r(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 r=i(65),o=i.n(r),a=i(97),s=i.n(a),l=i(28),h=i.n(l),u=i(100),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"===o()(h()({},n)).join("")}catch(t){return!1}}()?h.a:function(t,e){for(var i,r,o=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)d.call(i,s)&&(o[s]=i[s]);if(p){r=p(i);for(var l=0;l<r.length;l++)f.call(i,r[l])&&(o[r[l]]=i[r[l]])}}return o};e.a=g},64:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},65:function(t,e,i){t.exports={default:i(94),__esModule:!0}},67:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},68:function(t,e,i){var n=i(30),r=i(29);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),h=s.length;return l<0||l>=h?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===h||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},69:function(t,e,i){"use strict";var n=i(46),r=i(22),o=i(27),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},7:function(t,e,i){var n=i(8),r=i(22);t.exports=i(5)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(8),r=i(9),o=i(15);t.exports=i(5)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},71:function(t,e,i){var n=i(11),r=i(59),o=i(72);t.exports=function(t){return function(e,i,a){var s,l=n(e),h=r(l.length),u=o(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}}},72:function(t,e,i){var n=i(30),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},73:function(t,e,i){var n=i(6),r=i(24),o=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},74:function(t,e,i){"use strict";var n=i(75),r=i(67),o=i(18),a=i(11);t.exports=i(45)(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,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},75:function(t,e){t.exports=function(){}},78:function(t,e,i){var n=i(23)("meta"),r=i(10),o=i(6),a=i(8).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(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},p=function(t,e){if(!o(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)&&!o(t,n)&&u(t),t},f=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},79:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(88),o=n(r),a=i(90),s=n(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},8:function(t,e,i){var n=i(9),r=i(48),o=i(34),a=Object.defineProperty;e.f=i(5)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)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}},80: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),r=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,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),r=i(15),o=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=o.f,p=a.f;h>u;)for(var d,f=l(arguments[u++]),g=c?r(f).concat(c(f)):r(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),r=i(35),o=i(25);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.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),r=i(22),o=i(11),a=i(34),s=i(6),l=i(48),h=Object.getOwnPropertyDescriptor;e.f=i(5)?h:function(t,e){if(t=o(t),e=a(e,!0),l)try{return h(t,e)}catch(t){}if(s(t,e))return r(!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(53),i(56),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(55),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},945:function(t,e,i){"use strict";var n=i(119),r=i(108),o=i(64),a=i(116),s=i(268),l=i(267),h=i(19),u=i(152);e.a={name:"ActPicker",mixins:[o.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 r=0;r<i;r++){var o=this._getSelectIndex(this.wheels[r]);this._indexes[r]=o;var a=null,s="";this.finalData[r].length&&(a=this.finalData[r][o][this.valueKey],s=this.finalData[r][o][this.textKey]),this._values[r]!==a&&(t=!0),this._values[r]=a,e[r]=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,r=n.children[t].querySelector(".act-picker-wheel-scroll"),o=!!this.wheels&&this.wheels[t],a=0;if(r&&o){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=o.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(){o=i._createWheel(n,t),o.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 r=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});r.on("scrollStart",function(){r.inScroll=!0}),r.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(r)),r.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:r.a}}},95:function(t,e,i){var n=i(24),r=i(15);i(57)("keys",function(){return function(t){return r(n(t))}})},97:function(t,e,i){t.exports={default:i(98),__esModule:!0}},98:function(t,e,i){i(99);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},99:function(t,e,i){i(57)("getOwnPropertyNames",function(){return i(54).f})}})});
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 r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.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=2161)}({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,r,o,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),o&&(h._scopeId=o);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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),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){t.exports={default:i(101),__esModule:!0}},101:function(t,e,i){i(55),t.exports=i(0).Object.getOwnPropertySymbols},102: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(o.a)(h),n[h]=t[l]}else i[l]=t[l];return e.on=Object(r.a)(n,e.on),e.props=Object(r.a)(i,e.props),e}e.a=n;var r=i(62),o=i(103),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},103: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 r=i(28),o=i.n(r),a=i(4),s=function(t){for(var e=!1,i=!1,n=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,n=i,i=!0,r++):i&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),n=i,i=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=i,i=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({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))}},104:function(t,e,i){"use strict";function n(t,e,i,n){var o=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(r.p)(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var r=i(4)},105:function(t,e,i){"use strict";var n=i(19),r=i(64);e.a={name:"ActPopup",mixins:[n.a,r.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)}}}},1051:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),r=i(1052);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createPicker=Object(n.a)(r.a,t)},e.default=r.a},1052:function(t,e,i){"use strict";function n(t){s||i(1053)}var r=i(945),o=i(1054),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-65cf9f1c",null);h.options.__file="src\\components\\Picker\\src\\index.vue",e.a=h.exports},1053:function(t,e){},1054:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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)},r=[];n._withStripped=!0},106:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.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}},107:function(t,e,i){var n=i(26),r=i(3)("toStringTag"),o="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),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},108:function(t,e,i){"use strict";function n(t){s||i(120)}var r=i(105),o=i(121),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.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),r=i(29);t.exports=function(t){return n(r(t))}},115:function(t,e,i){var n=i(107),r=i(3)("iterator"),o=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},116:function(t,e,i){"use strict";function n(t){t.preventDefault()}var r={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=r},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},119:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(154);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e){},121:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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)}})])])},r=[];n._withStripped=!0},123:function(t,e,i){t.exports={default:i(186),__esModule:!0}},13:function(t,e,i){var n=i(2),r=i(0),o=i(38),a=i(7),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?r:r[e]||(r[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?o(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?o(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(r.a)(i),l=Object(o.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 r=i(102),o=i(104)},15:function(t,e,i){var n=i(50),r=i(33);t.exports=Object.keys||function(t){return n(t,r)}},152:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(4),r=function(){var t=!0;if(n.K.isIOS){var e=Object(n.l)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},154:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(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 r=0;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}function o(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),r(a,o)}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 o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,r({bubbles:s,cancelable:l},o))}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,r,o,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=o?Math.max(n-o/4,n-o/g*l):n,f=c):y>r&&(y=o?Math.min(r+o/4,r+o/g*l):r,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 C(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 M(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,r=!1,o=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){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}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},U={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},G={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;C.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)}},C.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},C.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)}},C.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 r=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=r+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}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"}},C.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[H.transitionDuration]=t+"ms"},C.prototype.transitionTimingFunction=function(t){this.indicatorStyle[H.transitionTimingFunction]=t},C.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},C.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")},C.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 r=this.x+i,o=this.y+n;this._pos(r,o)},C.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,r=void 0===n?G.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,r))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},C.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})},C.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)},C.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}},C.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},C.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t),this._handleMoveEvents(t)},C.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},C.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,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),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 r=this.items[n].node,o=this.items[n].data;r&&!M(r)||o||(t||(t=n),r&&this.scrollerEl.removeChild(r))}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&&(M(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,r=this.items[i].data;if(n){if(!M(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var o=r?this.options.render(r,t.pop()):this._getTombStone();o.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(o),this.items[i].node=o}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 r=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+r[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,r[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].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=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=r({},U,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],r=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=r}})}},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,r=!1,o=0;o<i.length;o++){var a=i[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){r=!0;break}}n?t.refresh():r&&(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,o=i.height;n===t&&r===o||this.refresh(),n=t,r=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,r=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,r=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=r;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+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);r=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,r=this.hasVerticalScroll?r:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=r>0?K:r<0?Z:0;var l=this.x+i,h=this.y+r,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+r/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),r=e-this.absStartX,o=i-this.absStartY;if(this.directionX=r>0?$:r<0?Q:0,this.directionY=o>0?K:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,G.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=G.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||G.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(w=G.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)),r=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+r]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,G.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.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,G.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(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(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,r=void 0===n?25:n,a=0;a<this.items.length;a++){var s=r*(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,r){function o(){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=r(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(o)),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),o()},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]:G.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]:G.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,G.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,r){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=u(t);o.left-=this.wrapperOffset.left,o.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)),o.left-=i||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,r)}},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]:G.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var r=this.y,o=Math.round(r);return!this.hasVerticalScroll||o>this.minScrollY?r=this.minScrollY:o<this.maxScrollY&&(r=this.maxScrollY),(i!==this.x||r!==this.y)&&(this.scrollTo(i,r,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)),r=0;r<i;r++){var o=n[r],a=A(o,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,r=e.stepY||t.wrapperHeight,o=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]=[]),o=Math.max(-f.left,t.maxScrollX),a=Math.max(-f.top,t.maxScrollY),s=o-Math.round(f.width/2),l=a-Math.round(f.height/2),t.pages[c][d]={x:o,y:a,width:f.width,height:f.height,cx:s,cy:l},o>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(r/2);o>-t.scrollerWidth;){for(t.pages[h]=[],u=0,a=0;a>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:r,cx:o-s,cy:a-l},a-=r,u++;o-=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 r=0;r<n;r++)if(e>=this.pages[0][r].cy){e=this.pages[0][r].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),r===this.currentPage.pageY&&(r+=this.directionY,r<0?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),e=this.pages[0][r].y),{x:t,y:e,pageX:i,pageY:r}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],r=this.options.snap;if(r&&this.pages&&this.pages.length&&(n=n||r.easing||G.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 o=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?r.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var r=this.options.snap;if(r&&this.pages&&this.pages.length){if(r.loop){var o=void 0;r._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-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?r({},this.currentPage,{pageX:this.currentPage.pageX-1}):r({},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,r=e.interactive,o=void 0!==r&&r;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new C(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new C(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,r=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,r,this.options.bounceTime,G.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,G.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,r=void 0===n?20:n,o=i.invert,a=void 0!==o&&o,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*r,u=-t.deltaY*r):(h=-t.deltaX,u=-t.deltaY);break;case"wheelDeltaX"in t:h=t.wheelDeltaX/120*r,u=t.wheelDeltaY/120*r;break;case"wheelDelta"in t:h=u=t.wheelDelta/120*r;break;case"detail"in t:h=u=-t.detail/3*r;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,G.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,r=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(i,r),a),this.setScale(this.scale),this.scrollerStyle[H.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var r=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(r-1)),a=Math.round(this.startY-(i-this.relativeY)*(r-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),r=n.left,o=n.top,a=e+r-this.x,s=i+o-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),r=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,r),this.startScale=this.scale;var o=c(this.wrapper),s=o.left,l=o.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),r=Math.abs(e.pageY-i.pageY),o=a(n,r),s=o/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,r=e.max,o=void 0===r?4:r,a=this.scale>o?o: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},16:function(t,e){t.exports=!0},1612:function(t,e,i){"use strict";var n=i(65),r=i.n(n),o=i(123),a=i.n(o),s=i(4),l=i(2163),h=i(2170),u=i(2177),c=i(1051);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.p)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var r=this.chartConfig[n];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.p)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([\d]+)([+*/-])([\d]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([\d]+)([+*/-])([\d]+)/g,function(t,r,o,a){e=r,i=a,n=o}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),r=n.firstParamColsType,o=n.secondParamColsType,a=n.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,h=[];if(s=this.findTablesIndex(r,i.colsType),l=this.findTablesIndex(o,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=[],r=[],o=[],h=this.isCps?Object(s.d)(l.b):Object(s.d)(l.a),u=Object(s.d)(h.showType2),c=Object(s.d)(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(r){var a=void 0,p=r.colsType,d=i.findTablesIndex(p,e.colsType);if(!d)return"continue";var f=Number(r.showType),g=r.name||l.c[p],y=r.titleName||r.name||l.c[p],m=i.getExpressionData(r.tipsExpression,t,e),v=r.lineStyle,_=r.boxConfig;if(!(2!==f||v&&_)){u.length||(u=Object(s.d)(h.showType2));var x=u.shift();v=x.lineStyle,_=x.boxConfig}if(3===f&&!v){c.length||(c=Object(s.d)(h.showType3));v=c.shift().lineStyle}o.push(g);var w=[],b=r.multcolType||0;if(31===b){var S=r.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 C=!0;i.notShowLineTypes.includes(p)&&(C=!1),a={showType:f,colsType:p,name:g,titleName:y,problemText:r.problemText,tableRowIndex:d,lineStyle:v,boxConfig:_,tipsText:r.tipsText,markPoint:w,displayLine:C,negativeText:r.negativeText||""},m&&(a.expressionData=m),n.push(a)})(y)}var m=e.rows.map(function(t){for(var e=[],i=n,o=Array.isArray(i),s=0,i=o?i:a()(i);;){var l;if(o){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&&r.push(t[h.tableRowIndex]),e.push(t[h.tableRowIndex])}return e});return m.unshift(o),{chartConfig:n,dataSource:m,xAxisData:r}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){var e=this.validateData();this.selectIndex=this.selectDefaultVal,e?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1613:function(t,e,i){"use strict";var n=i(65),r=i.n(n),o=i(2172),a=i(4);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.b)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},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 r=parseInt(getComputedStyle(i).fontSize);if(r<=12)break;i.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(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()}}}}},1614:function(t,e,i){"use strict";var n=i(65),r=i.n(n),o=i(123),a=i.n(o),s=i(106),l=i.n(s),h=i(4),u=i(2174);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,r=n/375*10;return n?t*r:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=this,e=[],i=[],n=this.getXAxisName(),r=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var s=this.chartConfig[o];if([2,3].includes(s.showType)&&s.displayLine){var c={};Object(h.p)(s.lineStyle.areaStyleColor)?c.color=new u.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(h.D)(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,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,i=Array.isArray(e),n=0,e=i?e:a()(e);;){var o;if(i){if(n>=e.length)break;o=e[n++]}else{if(n=e.next(),n.done)break;o=n.value}var s=o;if(s.seriesName===r){var l=s.encode.y[0],h=s.value[l];return r+"<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;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1615:function(t,e,i){"use strict";var n=i(119);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,{})})}}}}},18:function(t,e){t.exports={}},186:function(t,e,i){i(56),i(53),t.exports=i(187)},187:function(t,e,i){var n=i(9),r=i(115);t.exports=i(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},19:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{preOverflowValue:"",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}},beforeDestroy:function(){this.hide()}};e.a=n},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)},2161:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),r=i(2162);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChart=Object(n.a)(r.a,t)},e.default=r.a},2162:function(t,e,i){"use strict";var n=i(1612),r=i(2180),o=i(1),a=Object(o.a)(n.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2163:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2164),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2165),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2166),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2167),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2168),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2169),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2164: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=="},2165: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="},2166: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"},2167: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="},2168: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="},2169: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"},2170:function(t,e,i){"use strict";function n(t){s||i(2171)}var r=i(1613),o=i(2176),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=h.exports},2171:function(t,e){},2172:function(t,e,i){"use strict";function n(t){s||i(2173)}var r=i(1614),o=i(2175),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=h.exports},2173:function(t,e){},2174: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 r(){return Kf++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Yf.call(t);if("[object Array]"===i){if(!Y(t))for(var e=[],n=0,r=t.length;n<r;n++)e[n]=a(t[n])}else if(Vf[i]){if(!Y(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),n=0,r=t.length;n<r;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(!C(e)||!C(t))return i?a(e):t;for(var n in e){var r,o;e.hasOwnProperty(n)&&n!==Zf&&(r=t[n],!C(o=e[n])||!C(r)||x(o)||x(r)||k(o)||k(r)||M(o)||M(r)||Y(o)||Y(r)?!i&&n in t||(t[n]=a(e[n])):s(r,o,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),r=0;r<n.length;r++){var o=n[r];(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}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,r=t.prototype;for(n in i.prototype=e.prototype,t.prototype=new i,r)r.hasOwnProperty(n)&&(t.prototype[n]=r[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),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}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,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function g(t,e,i){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===Gf)return t.map(e,i);for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.call(i,t[r],r,t));return n}function y(t,e,i,n){if(t&&e){for(var r=0,o=t.length;r<o;r++)i=e.call(n,i,t[r],r,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=[],r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t)&&n.push(t[r]);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(Uf.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 C(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function M(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 Uf.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 U(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}function G(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 rt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ot(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,r,o){var a,s=n+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/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&r||(c+=(d%2?-1:1)*t[i][p]*pt(t,e-1,u,h,r|f,o),d++)}return o[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={},r=pt(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*pt(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function ft(t,e,i,n,r){if(e.getBoundingClientRect&&Pf.domSupported&&!gt(e)){var o=e[pg]||(e[pg]={}),e=function(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=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&&o&&p===o[c]&&u===o[1+c],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&r?r:(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"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,h=(o>>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",r[h]+":0",n[1-l]+":auto",r[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}}return i}(e,o),o,r);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,r=e.clientX,e=e.clientY;if(gt(t))return n=t.getBoundingClientRect(),i.zrX=r-n.left,void(i.zrY=e-n.top);if(ft(mg,t,r,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 Ct(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 Mt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=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]=r,t[2]=o,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 r=e[0],o=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]=r*i+s*h,t[1]=-r*h+s*i,t[2]=o*i+l*h,t[3]=-o*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],r=e[4],o=e[1],a=e[3],e=e[5],s=i*a-o*n;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-n*s,t[3]=i*s,t[4]=(n*e-a*r)*s,t[5]=(o*r-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,r){var o=Rg.call(this)||this;return o._hovered=new Bg(0,0),o.storage=t,o.painter=e,o.painterRoot=n,o._pointerSize=r,i=i||new Ng,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new hg(o),o}function Nt(t,e,i,n,r){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(!(o=!!n.ignoreClip||o)){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(r=!0),a=n.__hostTarget,n=a||n.parent}return!r||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 r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;r<i&&n(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<i&&0<=n(t[r],t[r-1]);)r++;return r-e}function Ft(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var o,a=t[n],s=e,l=n;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;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,r,o){var a=0,s=0,l=1;if(0<o(t,e[i+r])){for(s=n-r;l<s&&0<o(t,e[i+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[i+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);n=a,a=r-(l=s<l?s:l),l=r-n}for(a++;a<l;){var h=a+(l-a>>>1);0<o(t,e[i+h])?a=h+1:l=h}return l}function Yt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;l<s&&o(t,e[i+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var h=a,a=r-(l=s<l?s:l),l=r-h}else{for(s=n-r;l<s&&0<=o(t,e[i+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var u=a+(l-a>>>1);o(t,e[i+u])<0?l=u:a=u+1}return l}function Ht(t,e){function i(i){var l=n[i],h=r[i],u=n[i+1],c=r[i+1],i=(r[i]=h+c,i===a-3&&(n[i+1]=n[i+2],r[i+1]=r[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=o;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=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((o=b)<1&&(o=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,T=h,C=u,M=c,I=0;for(I=0;I<M;I++)s[I]=t[C+I];var k=S+T-1,A=M-1,D=C+M-1,P=0,O=0;if(t[D--]=t[k--],0==--T)for(P=D-(M-1),I=0;I<M;I++)t[P+I]=s[I];else if(1===M){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=o;;){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==--M){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==--M){N=!0;break}if(0!=(R=M-Vt(t[k],s,0,M,M-1,e))){for(M-=R,O=1+(D-=R),P=1+(A-=R),I=0;I<R;I++)t[O+I]=s[P+I];if(M<=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((o=L)<1&&(o=1),1===M){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===M)throw new Error;for(P=D-(M-1),I=0;I<M;I++)t[P+I]=s[I]}}}}var n,r,o=Hg,a=0,s=[];return n=[],r=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&r[t-1]<=r[t]+r[t+1]||2<=t&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;i(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&r[t-1]<r[t+1]&&t--,i(t)}},pushRun:function(t,e){n[a]=t,r[a]=e,a+=1}}}function Wt(t,e,i,n){var r=(n=n||t.length)-(i=i||0);if(!(r<2)){var o=0;if(r<Yg)Ft(t,i,n,i+(o=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}(r);do{}while((o=zt(t,i,n,e))<l&&(Ft(t,i,i+(a=l<(a=r)?l:r),i+o,e),o=a),s.pushRun(i,o),s.mergeRuns(),i+=o,0!=(r-=o));s.forceMergeRuns()}}}function Xt(){Ug||(Ug=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ut(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Gt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ut}function jt(t){return-Qg<t&&t<Qg}function qt(t){return Qg<t||t<-Qg}function Zt(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Kt(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function Qt(t,e,i,n,r,o){var a,s,n=n+3*(e-i)-t,i=3*(i-2*e+t),e=3*(e-t),t=t-r,r=i*i-3*n*e,l=i*e-9*n*t,t=e*e-3*i*t,h=0;return jt(r)&&jt(l)?jt(i)?o[0]=0:0<=(a=-e/i)&&a<=1&&(o[h++]=a):jt(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-i/n+t)&&a<=1&&(o[h++]=a),0<=s&&s<=1&&(o[h++]=s)):0<e?(e=r*i+1.5*n*(-l-(t=Kg(e))),0<=(a=(-i-((t=(t=r*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&&(o[h++]=a)):(t=(2*r*i-3*n*l)/(2*Kg(r*r*r)),e=Math.acos(t)/3,a=(-i-2*(l=Kg(r))*(t=Math.cos(e)))/(3*n),s=(-i+l*(t+$g*Math.sin(e)))/(3*n),r=(-i+l*(t-$g*Math.sin(e)))/(3*n),0<=a&&a<=1&&(o[h++]=a),0<=s&&s<=1&&(o[h++]=s),0<=r&&r<=1&&(o[h++]=r)),h}function $t(t,e,i,n,r){var o,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<=(o=-i/a)&&o<=1&&(r[e++]=o):jt(t=a*a-4*n*i)?r[0]=-a/(2*n):0<t&&(t=(-a-(i=Kg(t)))/(2*n),0<=(o=(-a+i)/(2*n))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function Jt(t,e,i,n,r,o){var a=(e-t)*r+t,e=(i-e)*r+e,i=(n-i)*r+i,s=(e-a)*r+a,e=(i-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=i,o[7]=n}function te(t,e,i,n,r,o,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,r,a,m),ey[1]=Zt(e,n,o,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,r,a,f=c-g),ey[1]=Zt(e,n,o,s,f),d=ag(ey,ty),0<=f&&d<y?(c=f,y=d):(iy[0]=Zt(t,i,r,a,p),iy[1]=Zt(e,n,o,s,p),f=ag(iy,ty),p<=1&&f<y?(c=p,y=f):g*=.5);return u&&(u[0]=Zt(t,i,r,a,c),u[1]=Zt(e,n,o,s,c)),Kg(y)}function ee(t,e,i,n){var r=1-n;return r*(r*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 re(t,e,i,n,r){var o=(e-t)*n+t,e=(i-e)*n+e,n=(e-o)*n+o;r[0]=t,r[1]=o,r[2]=n,r[3]=n,r[4]=e,r[5]=i}function oe(t,e,i,n,r,o,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,r,p),ey[1]=ee(e,n,o,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,r,f),ey[1]=ee(e,n,o,f),ag(ey,ty));0<=f&&y<c?(h=f,c=y):(iy[0]=ee(t,i,r,g),iy[1]=ee(e,n,o,g),f=ag(iy,ty),g<=1&&f<c?(h=g,c=f):u*=.5)}return l&&(l[0]=ee(t,i,r,h),l[1]=ee(e,n,o,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]),r=+F(t[2]),o=+F(t[3]);if(!isNaN(i+n+r+o))return e=[],function(t){return t<=0?0:1<=t?1:Qt(0,i,r,1,t,e)&&Zt(0,n,o,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,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,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<=(r=parseInt(i.slice(1,4),16))&&r<=4095?(ye(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<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<=(r=parseInt(i.slice(1,7),16))&&r<=16777215?(ye(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===n?parseInt(i.slice(7),16)/255:1),ve(t,e),e):void ye(e,0,0,0,1):void 0;var r=i.indexOf("("),o=i.indexOf(")");if(-1!==r&&o+1===n){var n=i.substr(0,r),a=i.substr(r+1,o-(r+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]),r=de(t[2]),n=r<=.5?r*(n+1):r+n-r*n,r=2*r-n;return ye(e=e||[],ue(255*fe(r,n,i+1/3)),ue(255*fe(r,n,i)),ue(255*fe(r,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,r,o;if(e&&e.length&&0<=t&&t<=1)return i=i||[],t*=e.length-1,n=Math.floor(t),o=Math.ceil(t),r=e[n],e=e[o],i[0]=ue(ge(r[0],e[0],o=t-n)),i[1]=ue(ge(r[1],e[1],o)),i[2]=ue(ge(r[2],e[2],o)),i[3]=ce(ge(r[3],e[3],o)),i}function Se(t,e,i){var n,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,n=Math.floor(t),r=Math.ceil(t),a=_e(e[n]),e=_e(e[r]),a=Te([ue(ge(a[0],e[0],o=t-n)),ue(ge(a[1],e[1],o)),ue(ge(a[2],e[2],o)),ce(ge(a[3],e[3],o))],"rgba"),i?{color:a,leftIndex:n,rightIndex:r,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 Ce(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 Me(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,r=E(t.scaleX,1),o=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===r&&1===o||s.push("scale("+r+","+o+")"),(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 r=e.length,o=0;o<r;o++)t[o]=Fe(e[o],i[o],n);return t}function Ye(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+i[o]*n;return t}function He(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+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 Ue(t){return 4===t||5===t}function Ge(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?o("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(r){var o;i[n].call(t,r),(o=e).touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)})}),f(Iy.mouse,function(n){ii(e,n,function(r){r=_t(r),e.touching||i[n].call(t,r)})}))}function ei(t,e){function i(i){ii(e,i,function(n){var r;n=_t(n),Je(t,n.target)||(r=n,n=xt(t.dom,new Py(t,r),!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,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(i=t.domTarget,r=a[n=e],o=t.listenerOpts[e],i.removeEventListener(n,r,o));t.mounted={}}function ri(t,e){var i=Sy.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=e,i._localHandlerScope=new Ey(t,Oy),My&&(i._globalHandlerScope=new Ey(document,Ly)),ti(i,i._localHandlerScope),i}function oi(t){return 5e-5<t||t<-5e-5}function ai(){}function si(t,e){for(var i=0;i<Uy.length;i++){var n=Uy[i];t[n]=e[n]}}function li(t,e){var i=Gy[e=e||Nf],n=(i=i||(Gy[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 r=((t||"")+"").split("\n");if(1===r.length)return hi(r[0],e,i,n);for(var o=new Og(0,0,0,0),a=0;a<r.length;a++){var s=hi(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}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",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/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-=r,h+=s,u="right",c="middle";break;case"right":l+=r+a,h+=s,c="middle";break;case"top":l+=a/2,h-=r,u="center",c="bottom";break;case"bottom":l+=a/2,h+=o+r,u="center";break;case"inside":l+=a/2,h+=s,u="center",c="middle";break;case"insideLeft":l+=r,h+=s,c="middle";break;case"insideRight":l+=a-r,h+=s,u="right",c="middle";break;case"insideTop":l+=a/2,h+=r,u="center";break;case"insideBottom":l+=a/2,h+=o-r,u="center",c="bottom";break;case"insideTopLeft":l+=r,h+=r;break;case"insideTopRight":l+=a-r,h+=r,u="right";break;case"insideBottomLeft":l+=r,h+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,h+=o-r,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 r(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]=[],r(this,t)),this[e]},set:function(t){this[i]=t[0],this[n]=t[1],this[e]=t,r(this,t)}})}function vi(t,e,i,n,r){function o(){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,r,o,a,s,l){for(var h=v(r),c=o.duration,p=o.delay,f=o.additive,g=o.setToFinal,y=!C(a),_=e.animators,x=[],w=0;w<h.length;w++){var b=h[w],S=r[b];null!=S&&null!=n[b]&&(y||a[b])?!C(S)||d(S)||A(S)?x.push(b):i?l||(n[b]=S,e.updateDuringAnimation(i)):t(e,b,n[b],S,o,a&&a[b],s,l):l||(n[b]=S,e.updateDuringAnimation(i),x.push(b))}var T=x.length;if(!f&&T)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===i&&k.stopTracks(x)&&(M=u(_,k),_.splice(M,1));if(o.force||(x=m(x,function(t){return!wi(r[t],n[t])}),T=x.length),0<T||o.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]=r[b]:n[b]=r[b];else if(g)for(O={},I=0;I<T;I++)b=x[I],O[b]=We(n[b]),xi(n,r,b);(k=new xy(n,!1,!1,f?m(_,function(t){return t.targetName===i}):null)).targetName=i,o.scope&&(k.scope=o.scope),g&&D&&k.whenWithKeys(0,D,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:r,x).delay(p||0),e.addAnimator(k,i),s.push(k)}}(t,"",t,e,i=i||{},n,s,r),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(o),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 r=e[i],o=t[i],a=r.length;if(d(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?_i(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else _i(o,r,a);o.length=r.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,r=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t,new Gg),a=i.renderer||"canvas",a=(tm[a]||(a=v(tm)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect,new tm[a](e,o,i,t)),e=i.ssr||a.ssrOnly,t=(this.storage=o,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(o,a,t,a.root,n),this.animation=new Cy({stage:{update:e?null:function(){return r._flush(!0)}}}),e||this.animation.start()}function Ti(t,e){return t=new rm(Kf++,t,e),em[t.id]=t}function Ci(t,e){tm[t]=e}function Mi(t){if("function"==typeof im)return im(t)}function Ii(t){im=t}function ki(t,e,i,n){var r=e[0],e=e[1],o=i[0],i=i[1],a=e-r,s=i-o;if(0==a)return 0==s?o:(o+i)/2;if(n)if(0<a){if(t<=r)return o;if(e<=t)return i}else{if(r<=t)return o;if(t<=e)return i}else{if(t===r)return o;if(t===e)return i}return(t-r)/a*s+o}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),r=t/n,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*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 Ui(t,e,i){return(e-t)*i+t}function Gi(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,r=i.length;n<r;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function qi(t){return!C(t)||x(t)||t instanceof Date?t:t.value}function Zi(t,e,i){var n,r,o,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){C(t)||(e[i]=null)}),function(t,e,i){var n=[];if("replaceAll"!==i)for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||tn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}(t,m,i));return(d||g)&&(n=i,r=t,o=m,f(a=e,function(t,e){var i,s,l;t&&null!=t.id&&(i=Qi(t.id),null!=(s=o.get(i)))&&(z(!(l=n[s]).newOption,'Duplicated option on id "'+i+'".'),l.newOption=t,l.existing=r[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,r=t.keyInfo;if(C(n)){if(r.name=null!=n.name?Qi(n.name):i?i.name:lm+e,i)r.id=Qi(i.id);else if(null!=n.id)r.id=Qi(n.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.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,r,o=t.newOption;C(o)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,o=o,t=t.existing,r=i,o.type||(t?t.subType:r.determineSubType(n,o))))})}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 rn(){var t="__ec_inner_"+um++;return function(e){return e[t]||(e[t]={})}}function on(t,e,i){var e=an(e,i),n=e.mainTypeSpecified,r=e.queryOptionMap,o=e.others,a=i?i.defaultMainType:null;return!n&&a&&r.set(a,{}),r.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}),o[n+"Models"]=e.models,o[n+"Model"]=e.models[0]}),o}function an(t,e){var i=b(t)?((i={})[t+"Index"]=0,i):t,n=X(),r={},o=!1;return f(i,function(t,i){var a;"dataIndex"===i||"dataIndexInside"===i?r[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||(o=o||!!a,(n.get(a)||n.set(a,{}))[i]=t))}),{mainTypeSpecified:o,queryOptionMap:n,others:r}}function sn(t,e,i,n){n=n||cm;var r=i.index,o=i.id,i=i.name,a={models:null,specified:null!=r||null!=o||null!=i};return a.specified?"none"===r||!1===r?(z(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===r&&(z(n.enableAll,'`"all"` is not a valid value on index option.'),r=o=i=null),a.models=t.queryComponents({mainType:e,index:r,id:o,name:i})):(r=void 0,a.models=n.useDefault&&(r=t.getComponent(e))?[r]:[]),a}function ln(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(T(n))return Di(p=Ui(i||0,n,r),o?Math.max(Pi(i||0),Pi(n)):e);if(b(n))return r<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]=(r<1&&s?s:l)[u]:(p=Ui(d=s&&s[u]?s[u]:0,c=l[u],r),a[u]=Di(p,o?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 r.apply(this,arguments)||this}var n,r,o,a=this;return w(o=a)&&/^class\s/.test(Function.prototype.toString.call(o))?(i(e,r=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 r=e[t];if(r&&r[dm]&&(r=i?r[i]:null),n&&!r)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return r},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,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];n&&0<=u(n,s)||r&&u(r,s)<0||null!=(s=i.getShallow(s,e))&&(o[t[a][0]]=s)}return o}}function mn(){}function vn(t,e,i,n,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!i||(i={hostEl:i,cb:n,cbPayload:r},(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,r){if(!e)return"";var o=(t+"").split("\n");r=bn(e,i,n,r);for(var a=0,s=o.length;a<s;a++)o[a]=Sn(o[a],r);return o.join("\n")}function bn(t,e,i,n){for(var r=l({},n=n||{}),o=(r.font=e,i=E(i,"..."),r.maxIterations=E(n.maxIterations,2),r.minChar=E(n.minChar,0)),a=(r.cnCharWidth=li("国",e),r.ascCharWidth=li("a",e)),s=(r.placeholder=E(n.placeholder,""),t=Math.max(0,t-1)),h=0;h<o&&a<=s;h++)s-=a;return n=li(i,e),s<n&&(i="",n=0),s=t-n,r.ellipsis=i,r.ellipsisWidth=n,r.contentWidth=s,r.containerWidth=t,r}function Sn(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=li(t,n);if(!(o<=i)){for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,i,n){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?i:n}return o}(t,r,e.ascCharWidth,e.cnCharWidth):0<o?Math.floor(t.length*r/o):0,o=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 r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},h=_m.lastIndex=0;null!=(r=_m.exec(t));){var u=r.index;h<u&&Cn(n,t.substring(h,u),e,l),Cn(n,r[2],e,l,r[1]),h=_m.lastIndex}h<t.length&&Cn(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,C=T?T[1]+T[3]:0,M=D.font=S.font||e.font,I=(D.contentHeight=di(M),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,M)):(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!=o?o-w:null)&&k<D.width?!A||k<C?(D.text="",D.width=D.contentWidth=0):(D.text=wn(D.text,k-C,M,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=li(D.text,M)):D.contentWidth=li(D.text,M)),D.width+=C,w+=D.width,S&&(x=Math.max(x,D.lineHeight))}i(_,w,x)}for(n.outerWidth=n.width=E(o,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 Cn(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},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&&(o=e.split("\n"),c=!0),n.accumWidth=t):(t=Mn(e,u,n.width,n.breakAll,n.accumWidth),n.accumWidth=t.accumWidth+i,a=t.linesWidths,o=t.lines)):o=e.split("\n");for(var p=0;p<o.length;p++){var d,f,g=o[p],y=new xm;y.styleName=r,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 Mn(t,e,i,n,r){for(var o,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=o=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||Sm[o]),(a.length?i<c+d:i<r+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+=r),{accumWidth:c,lines:a,linesWidths:s}}function In(t){return nm.call(this,t)||this}function kn(t,e,i,n,r,o){r[0]=Pm(t,i),r[1]=Pm(e,n),o[0]=Om(t,i),o[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,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&n+r<a||a<e-r&&a<n-r||t+r<o&&i+r<o||o<t-r&&o<i-r)&&(t===i?Math.abs(o-t)<=r/2:(o=(s=(e-n)/(t-i))*o-a+(t*n-i*e)/(t-i))*o/(s*s+1)<=r/2*r/2)}function On(t){return(t%=av)<0&&(t+=av),t}function Ln(t,e,i,n,r,o){return e<o&&n<o||o<e&&o<n||n===e?0:(i=(o=(o-e)/(n-e))*(i-t)+t)===r?1/0:r<i?1!=o&&0!=o?n<e?1:-1:n<e?.5:-.5:0}function En(t,e,i,n,r,o,a,s,l,h){if(e<h&&n<h&&o<h&&s<h||h<e&&h<n&&h<o&&h<s)return 0;var u=Qt(e,n,o,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,r,a,m)<l||(d<0&&(d=$t(e,n,o,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,o,s,pv[0]),1<d)&&(g=Zt(e,n,o,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,r,o,a,s){if(e<s&&n<s&&o<s||s<e&&s<n&&s<o)return 0;c=cv,u=(l=e)-2*(h=n)+(u=o),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,o);if(0<=g&&g<=1){for(var y=0,m=ee(e,n,o,g),v=0;v<f;v++){var _=0===cv[v]||1===cv[v]?.5:1;ee(t,i,r,cv[v])<a||(cv[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===cv[0]||1===cv[0]?.5:1,ee(t,i,r,cv[0])<a?0:o<e?_:-_}function Nn(t,e,i,n,r){for(var o,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,r))),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,r))return!0}else l+=Ln(h,u,a[d],a[d+1],n,r)||0;h=a[d++],u=a[d++];break;case lv.C:if(i){if(function(t,e,i,n,r,o,a,s,l,h,u){if(0!==l)return!(e+(l=l)<u&&n+l<u&&o+l<u&&s+l<u||u<e-l&&u<n-l&&u<o-l&&u<s-l||t+l<h&&i+l<h&&r+l<h&&a+l<h||h<t-l&&h<i-l&&h<r-l&&h<a-l)&&te(t,e,i,n,r,o,a,s,h,u,null)<=l/2}(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,r))return!0}else l+=En(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,r)||0;h=a[d++],u=a[d++];break;case lv.Q:if(i){if(function(t,e,i,n,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&n+a<l&&o+a<l||l<e-a&&l<n-a&&l<o-a||t+a<s&&i+a<s&&r+a<s||s<t-a&&s<i-a&&s<r-a)&&oe(t,e,i,n,r,o,s,l,null)<=a/2}(h,u,a[d++],a[d++],a[d],a[d+1],e,n,r))return!0}else l+=Rn(h,u,a[d++],a[d++],a[d],a[d+1],n,r)||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,C=(g?(c=S,p=T):l+=Ln(h,u,S,T,n,r),(n-y)*_/v+y);if(i){if(function(t,e,i,n,r,o,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-r)%sv<1e-4||((r=o?(e=n,n=On(r),On(e)):(n=On(n),On(r)))<n&&(r+=sv),(t=Math.atan2(l,s))<0&&(t+=sv),n<=t&&t<=r)||n<=t+sv&&t+sv<=r)}(y,m,_,x,x+w,b,e,C,r))return!0}else l+=function(t,e,i,n,r,o,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-r))<1e-4)return 0;if(hv-1e-4<=i)return r=hv,u=o?1:-1,a>=cv[n=0]+t&&a<=cv[1]+t?u:0;r<n&&(e=n,n=r,r=e),n<0&&(n+=hv,r+=hv);for(var l=0,h=0;h<2;h++){var u,c=cv[h];a<c+t&&(u=o?1:-1,n<=(c=(c=Math.atan2(s,c))<0?hv+c:c)&&c<=r||n<=c+hv&&c+hv<=r)&&(l+=u=c>Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,C,r);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,r)||Pn(S,p,S,T,e,n,r)||Pn(S,T,c,T,e,n,r)||Pn(c,T,c,p,e,n,r))return!0}else l=(l+=Ln(S,p,S,T,n,r))+Ln(c,T,c,p,n,r);break;case lv.Z:if(i){if(Pn(h,u,c,p,e,n,r))return!0}else l+=Ln(h,u,c,p,n,r);h=c,u=p}}return i||(t=u,o=p,Math.abs(t-o)<uv)||(l+=Ln(h,u,c,p,n,r)||0),0!==l}function Bn(t){return nv.call(this,t)||this}function zn(){return null!==rv&&rv.apply(this,arguments)||this}function Fn(){return null!==wv&&wv.apply(this,arguments)||this}function Vn(t,e,i){var n,r,o;if(e)return n=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=n,t.x2=r,t.y1=o,t.y2=e,(i=i&&i.lineWidth)&&(Tv(2*n)===Tv(2*r)&&(t.x1=t.x2=Hn(n,i,!0)),Tv(2*o)===Tv(2*e))&&(t.y1=t.y2=Hn(o,i,!0)),t}function Yn(t,e,i){var n,r,o;if(e)return n=e.x,r=e.y,o=e.width,e=e.height,t.x=n,t.y=r,t.width=o,t.height=e,(i=i&&i.lineWidth)&&(t.x=Hn(n,i,!0),t.y=Hn(r,i,!0),t.width=Math.max(Hn(n+o,i,!1)-t.x,0===o?0:1),t.height=Math.max(Hn(r+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 Un(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 Gn(t,e){for(var i=0;i<Ev.length;i++){var n=Ev[i],r=e[n];null!=r&&(t[n]=r)}}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 tr(t){return null!=t&&"none"!==t}function er(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function ir(t){er(t,"emphasis",Hv)}function nr(t){t.hoverState===Hv&&er(t,"normal",Vv)}function rr(t){er(t,"blur",Yv)}function or(t){t.hoverState===Yv&&er(t,"normal",Vv)}function ar(t){t.selected=!0}function sr(t){t.selected=!1}function lr(t,e,i){e(t,i)}function hr(t,e,i){lr(t,e,i),t.isGroup&&t.traverse(function(t){lr(t,e,i)})}function ur(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 cr(t,e,i){var n=0<=u(t.currentStates,e),r=t.style.opacity,t=n?null:function(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[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(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(i=i||{}).style||{};return null==e.opacity&&(i=l({},i),e=l({opacity:n?r:.1*t.opacity},e),i.style=e),i}function pr(t,e){var i,n,r,o,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&&(r=zv(i),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,tr(o)||tr(e))&&("inherit"===(r=(n=n||{}).style||{}).fill?(a=!0,n=l({},n),(r=l({},r)).fill=o):!tr(r.fill)&&tr(o)?(a=!0,n=l({},n),(r=l({},r)).fill=Me(o)):!tr(r.stroke)&&tr(e)&&(a||(n=l({},n),r=l({},r)),r.stroke=Me(e)),n.style=r),n&&null==n.z2&&(a||(n=l({},n)),o=i.z2EmphasisLift,n.z2=i.z2+(null!=o?o:10)),n;if("blur"===t)return cr(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=l({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function dr(t){t.stateProxy=pr;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=pr),t&&(t.stateProxy=pr)}function fr(t,e){br(t,e)||t.__highByOuter||hr(t,ir)}function gr(t,e){br(t,e)||t.__highByOuter||hr(t,nr)}function yr(t,e){t.__highByOuter|=1<<(e||0),hr(t,ir)}function mr(t,e){(t.__highByOuter&=~(1<<(e||0)))||hr(t,nr)}function vr(t){hr(t,rr)}function _r(t){hr(t,or)}function xr(t){hr(t,ar)}function wr(t){hr(t,sr)}function br(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Sr(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,r){var o=Fv(r),e="series"===e,a=e?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);e||n.push(a),o.isBlured&&(a.group.traverse(function(t){or(t)}),e)&&i.push(r),o.isBlured=!1}),f(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function Tr(t,e,i,n){function r(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&_r(n)}}var o,a,s,l=n.getModel();i=i||"coordinateSystem",null!=t&&e&&"none"!==e&&(o=l.getSeriesByIndex(t),(a=o.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=o===t,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||rr(t)}),d(e))r(t.getData(),e);else if(C(e))for(var u=v(e),c=0;c<u.length;c++)r(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 Cr(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){rr(t)})}function Mr(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;if(!(t=n.getModel().getComponent(t,e)))return r;if(!(e=n.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(i),s=0;s<a.length;s++)if("self"===Rv(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function Ir(t){f(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){(t.isSelected(i,n)?xr:wr)(e)})})}function kr(t,e,i){Pr(t,!0),hr(t,dr),t=Rv(t),null!=e?(t.focus=e,t.blurScope=i):t.focus&&(t.focus=null)}function Ar(t,e,i,n){n?Pr(t,!1):kr(t,e,i)}function Dr(t,e,i,n){i=i||"itemStyle";for(var r=0;r<Kv.length;r++){var o=Kv[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[Qv[i]]()}}function Pr(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 Or(t){return!(!t||!t.__highDownDispatcher)}function Lr(t){return(t=t.type)===jv||t===qv||t===Zv}function Er(t){return(t=t.type)===Uv||t===Gv}function Rr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Nr(t,e){return(t[0]*e[0]+t[1]*e[1])/(Rr(t)*Rr(e))}function Br(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Nr(t,e))}function zr(t,e,i,n,r,o,a,s,l,h,u){var l=l*(o_/180),c=r_(l)*(t-i)/2+n_(l)*(e-n)/2,p=-1*n_(l)*(t-i)/2+r_(l)*(e-n)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=i_(d),s*=i_(d)),(r===o?-1:1)*i_((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+i)/2+r_(l)*r-n_(l)*d,i=(e+n)/2+n_(l)*r+r_(l)*d,e=Br([1,0],[(c-r)/a,(p-d)/s]),n=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Br(n,c);Nr(n,c)<=-1&&(r=o_),(r=1<=Nr(n,c)?0:r)<0&&(p=Math.round(r/o_*1e6)/1e6,r=2*o_+p%2*o_),u.addData(h,t,i,a,s,e,r,l,o)}function Fr(){return null!==l_&&l_.apply(this,arguments)||this}function Vr(t){return null!=t.setData}function Yr(t,e){var i=function(t){var e=new ov;if(t){var i,n=0,r=0,o=n,a=r,s=ov.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,C=r,M=void 0,I=void 0;switch(c){case"l":n+=d[y++],r+=d[y++],p=s.L,e.addData(p,n,r);break;case"L":n=d[y++],r=d[y++],p=s.L,e.addData(p,n,r);break;case"m":n+=d[y++],r+=d[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="l";break;case"M":n=d[y++],r=d[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="L";break;case"h":n+=d[y++],p=s.L,e.addData(p,n,r);break;case"H":n=d[y++],p=s.L,e.addData(p,n,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,n,r);break;case"V":r=d[y++],p=s.L,e.addData(p,n,r);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],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r),n+=d[y-2],r+=d[y-1];break;case"S":m=n,v=r,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=r-I[M-3]),p=s.C,T=d[y++],C=d[y++],n=d[y++],r=d[y++],e.addData(p,m,v,T,C,n,r);break;case"s":m=n,v=r,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=r-I[M-3]),p=s.C,T=n+d[y++],C=r+d[y++],n+=d[y++],r+=d[y++],e.addData(p,m,v,T,C,n,r);break;case"Q":T=d[y++],C=d[y++],n=d[y++],r=d[y++],p=s.Q,e.addData(p,T,C,n,r);break;case"q":T=d[y++]+n,C=d[y++]+r,n+=d[y++],r+=d[y++],p=s.Q,e.addData(p,T,C,n,r);break;case"T":m=n,v=r,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=r-I[M-3]),n=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,n,r);break;case"t":m=n,v=r,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=r-I[M-3]),n+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,n,r);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(T=n,C=r,n=d[y++],r=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],zr(T=n,C=r,n+=d[y++],r+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),n=o,r=a),i=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Vr(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 r,o,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(r=l[y++],m=y,o=0,r){case u:case p:o=1;break;case c:o=3;break;case g:o=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<o;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 Hr(t){return h_.call(this,t)||this}function Wr(t){return d_.call(this,t)||this}function Xr(t,e,i,n,r,o,a){var s=t-i,l=e-n,a=(a?o:-o)/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,o=r-o,s=s*i-e*t,i=(c<0?-1:1)*T_(C_(0,o*o*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*(r/o-1),y1:t*(r/o-1)}}function Ur(t,e){var i,n,r,o,a,s,l,h,u,c,p,d,f,g,y,m,v,_,w,b,S,T,C,M,I,k,A,D,P,O,L=C_(e.r,0),E=C_(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,r=e.cy,o=!!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),r+L*__(R)),t.arc(n,r,L,R,i,!o),I_<E&&(t.moveTo(n+E*x_(i),r+E*__(i)),t.arc(n,r,E,i,R,o))):(T=S=b=w=_=v=c=u=k=I=M=C=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,C=M_(e,l),M=M_(e,h),I=M_(e,a),k=M_(e,s),v=u=C_(C,M),_=c=C_(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,r,o,a,s){var l=(s-=o)*(i-=t)-(a-=r)*(n-=e);if(!(l*l<I_))return[t+(l=(a*(e-o)-s*(t-r))/l)*i,e+l*n]}(p,d,S,T,w,b,f,g))&&(C=p-e[0],M=d-e[1],I=w-e[0],k=b-e[1],m=1/__(w_((C*I+M*k)/(T_(C*C+M*M)*T_(I*I+k*k)))/2),C=T_(e[0]*e[0]+e[1]*e[1]),v=M_(u,(L-C)/(1+m)),_=M_(c,(E-C)/(m-1))),y?I_<v?(A=M_(l,v),D=M_(h,v),P=Xr(S,T,p,d,L,A,o),O=Xr(w,b,f,g,L,D,o),t.moveTo(n+P.cx+P.x0,r+P.cy+P.y0),v<u&&A===D?t.arc(n+P.cx,r+P.cy,v,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<A&&t.arc(n+P.cx,r+P.cy,A,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(n,r,L,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),!o),0<D&&t.arc(n+O.cx,r+O.cy,D,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.moveTo(n+p,r+d),t.arc(n,r,L,R,i,!o)):t.moveTo(n+p,r+d),I_<E&&y?I_<_?(A=M_(a,_),P=Xr(f,g,w,b,E,-(D=M_(s,_)),o),O=Xr(p,d,S,T,E,-A,o),t.lineTo(n+P.cx+P.x0,r+P.cy+P.y0),_<c&&A===D?t.arc(n+P.cx,r+P.cy,_,b_(P.y0,P.x0),b_(O.y0,O.x0),!o):(0<D&&t.arc(n+P.cx,r+P.cy,D,b_(P.y0,P.x0),b_(P.y1,P.x1),!o),t.arc(n,r,E,b_(P.cy+P.y1,P.cx+P.x1),b_(O.cy+O.y1,O.cx+O.x1),o),0<A&&t.arc(n+O.cx,r+O.cy,A,b_(O.y1,O.x1),b_(O.y0,O.x0),!o))):(t.lineTo(n+f,r+g),t.arc(n,r,E,i,R,o)):t.lineTo(n+f,r+g)):t.moveTo(n,r),t.closePath()))}function Gr(t){return y_.call(this,t)||this}function jr(t){return D_.call(this,t)||this}function qr(t,e,i){var n=e.smooth,r=e.points;if(r&&2<=r.length){if(n)for(var o=function(t,e,i,n){var r,o,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)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Q(t[p]));continue}r=t[p-1],o=t[p+1]}J(s,o,r),it(s,s,e);var g=rt(f,r),y=rt(f,o),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}(r,n,i,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(i?a:a-1);s++){var l=o[2*s],h=o[2*s+1],u=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}function Zr(t){return L_.call(this,t)||this}function Kr(t){return N_.call(this,t)||this}function Qr(t){return F_.call(this,t)||this}function $r(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(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 Jr(t){return U_.call(this,t)||this}function to(t){return j_.call(this,t)||this}function eo(){var t=null!==K_&&K_.apply(this,arguments)||this;return t.type="compound",t}function io(t){this.colorStops=t||[]}function no(t,e,i,n,r,o){return r=J_.call(this,r)||this,r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==i?1:i,r.y2=null==n?0:n,r.type="linear",r.global=o||!1,r}function ro(t,e,i,n,r){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=r||!1,n}function oo(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 ao(){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 so(t,e,i,n,r,o,a){var s,l,h,u,c,p,d=!1,f=(w(r)?(a=o,o=r,r=null):C(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,n=(g=n)&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(h=(h=g.ecModel.getUpdatePayload())&&h.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=u=r=void 0,c=l?(r=E(l.duration,200),u=E(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),u=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=h&&(null!=h.duration&&(r=h.duration),null!=h.easing&&(u=h.easing),null!=h.delay)?h.delay:c)&&(c=c(s,n)),{duration:(r=w(r)?r(s):r)||0,delay:c,easing:u}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(i,p):e.animateTo(i,p)):(e.stopAnimation(),d||e.attr(i),a&&a(1),o&&o())}function lo(t,e,i,n,r,o){so("update",t,e,i,n,r,o)}function ho(t,e,i,n,r,o){so("enter",t,e,i,n,r,o)}function uo(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 co(t,e,i,n,r,o){uo(t)||so("leave",t,e,i,n,r,o)}function po(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),co(t,{style:{opacity:0}},e,i,n)}function fo(t){return yv.extend(t)}function go(t,e){return dx(t,e)}function yo(t,e){px[t]=e}function mo(t){if(px.hasOwnProperty(t))return px[t]}function vo(t,e,i,n){return t=new u_(Yr(t,e)),i&&("center"===n&&(i=xo(i,t.getBoundingRect())),bo(t,i)),t}function _o(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(xo(e,t)))}});return n}function xo(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 wo(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}return(e=new yv(e)).createPathProxy(),e.buildPath=function(t){var e;Vr(t)&&(t.appendPath(i),e=t.getContext())&&t.rebuildPath(e,1)},e}function bo(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function So(t,e){return Vn(t,t,{lineWidth:e}),t}function To(t,e){for(var i=Tt([]);t&&t!==e;)Mt(i,t.getLocalTransform(),i),t=t.parent;return i}function Co(t,e,i){return e&&!d(e)&&(e=Xy.getLocalTransform(e)),st([],t,e=i?Dt([],e):e)}function Mo(t){return!t.isGroup}function Io(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 r,o;t&&e&&(o={},t.traverse(function(t){Mo(t)&&t.anid&&(o[t.anid]=t)}),r=o,e.traverse(function(t){var e,o;Mo(t)&&t.anid&&(e=r[t.anid])&&(o=n(t),t.attr(n(e)),lo(t,o,i,Rv(t).dataIndex))}))}function ko(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 Ao(t,e){var i=ux(t.x,e.x),n=cx(t.x+t.width,e.x+e.width),r=ux(t.y,e.y),t=cx(t.y+t.height,e.y+e.height);if(i<=n&&r<=t)return{x:i,y:r,width:n-i,height:t-r}}function Do(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)):vo(t.replace("path://",""),e,i,"center")}function Po(t,e,i,n,r,o,a,s){var l,i=i-t,n=n-e,a=a-r,s=s-o,h=a*n-i*s;return!((l=h)<=1e-6&&-1e-6<=l||(r=((l=t-r)*n-i*(t=e-o))/h)<0||1<r||(n=(l*s-a*t)/h)<0||1<n)}function Oo(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,e=b(e)?{formatter:e}:e,r=i.mainType,i=i.componentIndex,o={componentType:r,name:n,$vars:["name"]},a=(o[r+"Index"]=i,t.formatterParamsExtra),t=(a&&f(v(a),function(t){q(o,t)||(o[t]=a[t],o.$vars.push(t))}),Rv(t.el));t.componentMainType=r,t.componentIndex=i,t.tooltipConfig={name:n,option:h({content:n,encodeHTMLContent:!0,formatterParams:o},e)}}function Lo(t,e){var i;(i=t.isGroup?e(t):i)||t.traverse(e)}function Eo(t,e){if(t)if(x(t))for(var i=0;i<t.length;i++)Lo(t[i],e);else Lo(t,e)}function Ro(t,e){for(var i=0;i<Wv.length;i++){var n=Wv[i],r=e[n],n=t.ensureState(n);n.style=n.style||{},n.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function No(t,e,i){for(var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:n=null==(n=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null):n)?w(t.defaultText)?t.defaultText(o,t,i):t.defaultText:n},h=0;h<Wv.length;h++){var u=Wv[h],c=e[u];l[u]=E(r?r.getFormattedLabel(o,u,null,a,c&&c.get("formatter")):null,n)}return l}function Bo(t,e,i,n){i=i||yx;for(var r=t instanceof Pv,o=!1,a=0;a<Xv.length;a++)if((p=e[Xv[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Pv,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=No(i,e),h=e.normal,u=!!h.getShallow("show"),c=Fo(h,n&&n.normal,i,!1,!r);for(c.text=l.normal,r||t.setTextConfig(Vo(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=Fo(p,n&&n[g],i,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=Vo(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=No(i,e,t),Ro(s,t)})}else s&&(s.ignore=!0);t.dirty()}function zo(t,e){for(var i={normal:t.getModel(e=e||"label")},n=0;n<Wv.length;n++){var r=Wv[n];i[r]=t.getModel([r,e])}return i}function Fo(t,e,i,n,r){var o,a={},s=a,h=t,u=i,c=n,p=r;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),r=0;r<n.length;r++){e[n[r]]=1}}t=t.parentModel}return e}(h);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(o=h.getModel(["rich",y]),Yo(d[y]={},o,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),Yo(s,h,f,u,c,p,!0,!1),e&&l(a,e),a}function Vo(t,e,i){e=e||{};var n={},r=t.getShallow("rotate"),o=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!=r&&(r*=Math.PI/180,n.rotation=r),null!=o&&(n.distance=o),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",n}function Yo(t,e,i,n,r,o,a,s){i=!r&&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),o||(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=r||null!=c||s?c:n&&n.defaultOpacity)&&(t.opacity=c),r||o||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 Ho(t,e,i,n,r){var o,a,s,l=xx(t);l.valueAnimation&&l.prevValue!==l.value&&(o=l.defaultInterpolatedText,a=E(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?ho:lo)(t,{percent:1},n,e,null,function(n){var h=hn(i,l.precision,a,s,n),n=(l.interpolatedValue=1===n?null:h,No({labelDataIndex:e,labelFetcher:r,defaultText:o?o(h):h+""},l.statesModels,h));Ro(t,n)}))}function Wo(){}function Xo(){}function Uo(){}function Go(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function jo(t){return[t||"",Lx++].join("_")}function qo(t,e){t=t.toUpperCase(),zx[t]=new Ox(e),Bx[t]=e}function Zo(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ko(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 Qo(t,e,i,n){var t=Ni(t),r=t[ta(i)](),o=t[ea(i)]()+1,a=Math.floor((o-1)/3)+1,s=t[ia(i)](),l=t["get"+(i?"UTC":"")+"Day"](),h=t[na(i)](),u=(h-1)%12+1,c=t[ra(i)](),p=t[oa(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,r+"").replace(/{yy}/g,Zo(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,Zo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Zo(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Zo(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Zo(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Zo(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Zo(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Zo(t,3)).replace(/{S}/g,t+"")}function $o(t,e){var t=Ni(t),i=t[ea(e)]()+1,n=t[ia(e)](),r=t[na(e)](),o=t[ra(e)](),a=t[oa(e)](),t=0===t[aa(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===n;return r&&1===i?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Jo(t,e,i){var n=T(t)?Ni(t):t;switch(e=e||$o(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[ra(i)]();case"second":return n[oa(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 ra(t){return t?"getUTCMinutes":"getMinutes"}function oa(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 r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?Ni(t):t;if(!isNaN(+o))return Qo(o,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}return"ordinal"===e?S(t)?n(t):T(t)&&r(t)?t+"":"-":r(o=Vi(t))?da(o):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 r=e[0].$vars||[],o=0;o<r.length;o++){var a=Kx[o];t=t.replace(ya(a),ya(a,0))}for(var s=0;s<n;s++)for(var l=0;l<r.length;l++){var h=e[s][r[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,r=(e=t.extraCssText,t.renderMode||"html");return i?"html"===r?"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:r,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:C(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,r){var o=0,a=0,s=(null==n&&(n=1/0),null==r&&(r=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=o+c)||l.newline?(o=0,u=c,a+=s+i,d.height):Math.max(s,d.height)):(c=d.height+(h?-h.y+d.y:0),r<(p=a+c)||l.newline?(o+=s+i,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+i:a=p+i)})}function ba(t,e,i){i=Zx(i||0);var n=e.width,r=e.height,o=Ai(t.left,n),a=Ai(t.top,r),e=Ai(t.right,n),s=Ai(t.bottom,r),l=Ai(t.width,n),h=Ai(t.height,r),u=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(l)&&(l=n-e-c-o),isNaN(h)&&(h=r-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(n/r<p?l=.8*n:h=.8*r),isNaN(l)&&(l=p*h),isNaN(h))&&(h=l/p),isNaN(o)&&(o=n-e-l-c),isNaN(a)&&(a=r-s-h-u),t.left||t.right){case"center":o=n/2-l/2-i[3];break;case"right":o=n-l-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-i[0];break;case"bottom":a=r-h-u}return o=o||0,a=a||0,isNaN(l)&&(l=n-c-o-(e||0)),isNaN(h)&&(h=r-u-a-(s||0)),p=new Og(o+i[3],a+i[0],l,h),p.margin=i,p}function Sa(t){return t=t.layoutMode||t.constructor.layoutMode,C(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){r(e,t)&&(a[t]=h[t]=e[t]),o(a,t)&&l++,o(h,t)&&u++}),s[n])o(e,i[1])?h[i[2]]=null:o(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(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return h}function r(t,e){return t.hasOwnProperty(e)}function o(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 Ca(t){return e={},(i=t)&&e&&Qx($x,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e;var e,i}function Ma(t,e,i){return t=ew.call(this,t,e,i)||this,t.uid=jo("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 r(t){return t=t.dimsDef,t?t.length:1}var o,a,s,l,h,u={},c=Aa(e);return c&&t&&(o=[],a=[],e=e.ecModel,e=bw(e).datasetMap,c=c.uid+"_"+i.seriesLayoutBy,f(t=t.slice(),function(e,i){e=C(e)?e:t[i]={name:e},"ordinal"===e.type&&null==s&&(s=i,l=r(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=r(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(o,0,t)):(i=h.categoryWayDim,n(u[l],i,t),n(a,i,t),h.categoryWayDim+=t)}),o.length&&(u.itemName=o),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,r,o,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,h=t.dimensionsDefine,u=t.startIndex,c=e;if(!I(a)){if(h&&(C(h=h[c])?(r=h.name,o=h.type):b(h)&&(r=h)),null!=o)return"ordinal"===o?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(!r)return ww.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(n=i(v[r])))return n}else if(s===yw){if(h=a,!r)return ww.Not;if(!(d=h[r])||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,r;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])})):(r=$i(e,null),m(i,function(e){return e&&null!=r&&e[t]===r}))}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(Gi(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 r=Bw[i],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Ya(t,e,i){var n,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(n=t[e].normal,r=t[e].emphasis,n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),r)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=r).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.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 r=0,o=hm.length;r<o;r++){var a=hm[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Xa(t){t&&(Ha(t),Wa(t,"label"),t.emphasis)&&Wa(t.emphasis,"label")}function Ua(t){return x(t)?t:t?[t]:[]}function Ga(t){return(x(t)?t[0]:t)||{}}function ja(t,e){Rw(Ua(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),r=(n&&Xa(n),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!I(o))for(var a=0;a<o.length;a++)Xa(o[a]);f(t.categories,function(t){Ha(t)})}if(r&&!I(r))for(a=0;a<r.length;a++)Xa(r[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(Ua(t[e]),function(t){t&&(Wa(t,"axisLabel"),Wa(t.axisPointer,"label"))})}),Rw(Ua(t.parallel),function(t){t=t&&t.parallelAxisDefault,Wa(t,"axisLabel"),Wa(t&&t.axisPointer,"label")}),Rw(Ua(t.calendar),function(t){Ya(t,"itemStyle"),Wa(t,"dayLabel"),Wa(t,"monthLabel"),Wa(t,"yearLabel")}),Rw(Ua(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(Ua(t.geo),function(t){Nw(t)&&(Xa(t),Rw(Ua(t.regions),function(t){Xa(t)}))}),Rw(Ua(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){C(t)&&(Ya(t,"label"),Ya(t,"itemStyle"))})}),Rw(Ua(t.toolbox),function(t){Ya(t,"iconStyle"),Rw(t.feature,function(t){Ya(t,"iconStyle")})}),Wa(Ga(t.axisPointer),"label"),Wa(Ga(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],r=Vw[i][0];null!=e[n]&&(e[r]=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=Gi(t.series),f(t.series,function(t){if(C(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 r=function(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}(t,"pointer.color");if(null!=r){for(var o,a=t,s="itemStyle.color",l=s.split(","),u=a,c=0;c<l.length-1;c++)null==u[o=l[c]]&&(u[o]={}),u=u[o];null!=u[l[c]]||(u[l[c]]=r)}}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=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,h,u){var c,p,d=a.get(e.stackedDimension,u);if(isNaN(d))return r;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,r=function(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:rs(r),startIndex:a,dimensionsDetectedCount:o};var s;return e===fw?(s=t,"auto"===n||null==n?os(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,s,10):a=T(n)?n:n?1:0,r||1!==a||(r=[],os(function(t,e){r[e]=null!=t?t+"":""},i,s,1/0)),o=r?r.length:i===xw?s.length:s[0]?s[0].length:null):e===gw?r=r||function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e)return v(e)}(t):e===yw?r||(r=[],f(t,function(t,e){r.push(e)})):e===dw&&(n=qi(t[0]),o=x(n)&&n.length||1),{startIndex:a,dimensionsDefine:rs(r),dimensionsDetectedCount:o}}(t,i,n,e.sourceHeader,e.dimensions);return new Yw({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.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 r=t[i];if(null!=r){if(x(r)||I(r)){e=fw;break}if(C(r)){e=gw;break}}}}else if(C(t))for(var o in t)if(q(t,o)&&d(t[o])){e=yw;break}return e}function rs(t){var e;if(t)return e=X(),g(t,function(t,i){var n,t={name:(t=C(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 os(t,e,i,n){if(e===xw)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&r<n;r++)t(o[r],r)}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 Gw[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,r,e=t.getRawDataItem(e);if(null!=e)return n=(r=t.getStore()).getSource().sourceFormat,null!=i?(t=t.getDimensionIndex(i),i=r.getDimensionProperty(t),fs(n)(e,t,i)):(r=e,n===dw?qi(e):r)}}function ms(){}function vs(t){var e,i;return C(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 ob.get(t)}function Cs(t,e){T(e)||Xi(""),this._opFn=ab[t],this._rvalFloat=Vi(e)}function Ms(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=[],r=0,o=i.length;r<o;r++)n.push(i[r].slice());return n}if(e===gw){for(n=[],r=0,o=i.length;r<o;r++)n.push(l({},i[r]));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=Gi(t),t=i.length;t||Xi("");for(var n=0,r=t;n<r;n++)e=function(t,e){e.length||Xi(""),C(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,r=e.data,o=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(o,_w),c=(t.__isBuiltIn&&(i.getRawDataItem=function(t){return u(r,a,s,t)},i.getRawData=$f(As,null,e)),i.cloneRawData=$f(Ds,null,e),ps(o,_w)),p=(i.count=$f(c,null,r,a,s),fs(o)),d=(i.retrieveValue=function(t,e){return t=u(r,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(Gi(n.transform({upstream:i[0],upstreamList:i,config:a(t.config)})),function(t,i){C(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!==r-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,r){if(i=yb[i||"float"],r){var o=t[e],a=o&&o.length;if(a!==n){for(var s=new i(n),l=0;l<a;l++)s[l]=o[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,r=t.fontWeight||"400",o=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(r+""),valueStyle:"font-size:"+yt(a+"")+"px;color:"+yt(o)+";font-weight:"+yt(t+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}function Us(t,e){return e.type=t,e}function Gs(t){return"section"===t.type}function js(t){return Gs(t)?qs:Zs}function qs(t,e,i,n){var r,o=e.noHeader,a=(h=function t(e){var i,n,r;return Gs(e)?(i=0,n=e.blocks.length,r=1<n||0<n&&!e.noHeader,f(e.blocks,function(e){var n=t(e);i<=n&&(i=n+ +(r&&(!n||Gs(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)?(r=new lb(c[u],null),h.sort(function(t,e){return r.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&h.reverse()),f(h,function(i,r){var o=e.valueFormatter,o=js(i)(o?l(l({},t),{valueFormatter:o}):t,i,0<r?a.html:0,n);null!=o&&s.push(o)}),"richText"===t.renderMode?s.join(a.richText):Qs(s.join(""),o?i:a.html));return o?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 r,o,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(o)?o[e]:o,d)})};if(!h||!u)return r=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":ga(p,"ordinal",d),o=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?"":r)+(h?"":$s(t,p,s))+(u?"":function(t,e,i,n,r){return r=[r],n=n?10:20,i&&r.push({padding:[0,0,0,n],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,r)}(t,f,e,a,n)):Qs((c?"":r)+(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,r,o){if(t)return js(t)({useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}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(Us("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(u.push(t),c.push(e.type)))}var i,n,r,o,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,o=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,o,t),t)}):f(T,e),i=(a={inlineValues:u,inlineValueTypes:c,blocks:p}).inlineValueTypes,n=a.blocks,r=(a=a.inlineValues)[0]):_?(T=m.getDimensionInfo(v[0]),r=a=ys(m,g,v[0]),i=T.type):r=a=b?w[0]:w;var _=Ji(d),v=_&&d.name||"",T=m.getName(g),b=t?v:T;return Us("section",{header:v,noHeader:t||!_,sortParam:r,blocks:[Us("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 rl(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 ol(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(U(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=jo("viewComponent")}function pl(){var t=rn();return function(e){var i=t(e),e=e.pipelineContext,n=!!i.large,r=!!i.progressiveRender,o=i.large=!(!e||!e.large),i=i.progressiveRender=!(!e||!e.progressiveRender);return!(n==o&&r==i)&&"reset"}}function dl(){this.group=new Jy,this.uid=jo("viewChart"),this.renderTask=_s({plan:yl,reset:ml}),this.renderTask.context={view:this}}function fl(t,e,i){t&&Or(t)&&("emphasis"===e?yr:mr)(t,i)}function gl(t,e,i){var n,r=nn(t,e),o=e&&null!=e.highlightKey?(e=e.highlightKey,n=null==(n=Bv[e])&&Nv<=32?Bv[e]=Nv++:n):null;null!=r?f(Gi(r),function(e){fl(t.getItemGraphicEl(e),i,o)}):t.eachItemGraphicEl(function(t){fl(t,i,o)})}function yl(t){return kb(t.model)}function ml(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&Ib(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,i,n,r),Db[o]}function vl(t,e,i){function n(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o=(new Date).getTime(),s=this,l=t;var d=h||e,f=h||i;h=null,a=o-(f?u:c)-d,clearTimeout(p),f?p=setTimeout(n,d):0<=a?n():p=setTimeout(n,-a),u=o}var o,a,s,l,h,u=0,c=0,p=null;return e=e||0,r.clear=function(){p&&(clearTimeout(p),p=null)},r.debounceNextCall=function(t){h=t},r}function _l(t,e,i,n){var r=t[e];if(r){var o=r[Pb]||r,a=r[Lb];if(r[Ob]!==i||a!==n){if(null==i||!n)return t[e]=o;(r=t[e]=vl(o,i,"debounce"===n))[Pb]=o,r[Lb]=n,r[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 Cl(t){return t.overallProgress&&Ml}function Ml(){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=Gi(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,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.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,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,a=t.seriesIndex,s=t.option.selectedMap,h=r.selected,u=0;u<h.length;u++)h[u].seriesIndex===a&&(n=nn(e=t.getData(),r.fromActionPayload),i.trigger(o,{type:o,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,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?_o(t.slice(8),new Og(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?vo(t.slice(7),{},new Og(e,i,n,r),a?"center":"cover"):new nS({shape:{symbolType:t,x:e,y:i,width:n,height:r}})).__isEmptyBrush=s,a.setColor=Fl,o&&a.setColor(o),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,r,o,a,s,l,h,u,c,p="radial"===e.type?(n=t,r=e,a=(o=i).width,s=o.height,l=Math.min(a,s),h=null==r.x?.5:r.x,u=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(h=h*a+o.x,u=u*s+o.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)):(r=t,a=i,o=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||(o=o*a.width+a.x,l=l*a.width+a.x,n=n*a.height+a.y,h=h*a.height+a.y),o=Hl(o)?o:0,l=Hl(l)?l:1,n=Hl(n)?n:0,h=Hl(h)?h:0,r.createLinearGradient(o,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 Ul(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=i[n]&&"auto"!==i[n]?parseFloat(i[n]):(i=document.defaultView.getComputedStyle(t),(t[r]||Xl(i[n])||Xl(t.style[n]))-(Xl(i[o])||0)-(Xl(i[e])||0)|0)}function Gl(t){var e,i=t.style,n=i.lineDash&&0<i.lineWidth&&(r=i.lineDash,n=i.lineWidth,r&&"solid"!==r&&0<n?"dashed"===r?[4*n,2*n]:"dotted"===r?[n]:T(r)?[r]:x(r)?r:null:null),r=i.lineDashOffset;return n&&(e=i.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(n=g(n,function(t){return t/e}),r/=e),[n,r]}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,r){var o,a=!1;if(!n&&e===(i=i||{}))return!1;!n&&e.opacity===i.opacity||(ih(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Cm.opacity:o),!n&&e.blend===i.blend||(a||(ih(t,r),a=!0),t.globalCompositeOperation=e.blend||Cm.blend);for(var s=0;s<oS.length;s++){var l=oS[s];!n&&e[l]===i[l]||(a||(ih(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!n&&e.shadowColor===i.shadowColor||(a||(ih(t,r),a=!0),t.shadowColor=e.shadowColor||Cm.shadowColor),a}function th(t,e,i,n,r){var o=nh(e,r.inHover),a=n?null:i&&nh(i,r.inHover)||{};if(o!==a){var s=Jl(t,o,a,n,r);(n||o.fill!==a.fill)&&(s||(ih(t,r),s=!0),ql(o.fill))&&(t.fillStyle=o.fill),(n||o.stroke!==a.stroke)&&(s||(ih(t,r),s=!0),ql(o.stroke))&&(t.strokeStyle=o.stroke),!n&&o.opacity===a.opacity||(s||(ih(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(i=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==i)&&(s||(ih(t,r),s=!0),t.lineWidth=i);for(var l=0;l<aS.length;l++){var h=aS[l],u=h[0];!n&&o[u]===a[u]||(s||(ih(t,r),s=!0),t[u]=o[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 rh(t,e){oh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function oh(t,e,i,n){var r=e.transform;if(e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){var o=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}}(o,a)){if(a&&a.length&&(ih(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length){ih(t,i),t.save();for(var h=o,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=o}if(i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,T,C,M,I,k,A,D,P,O,L,E,R,N,a=i.prevEl,B=(a||(l=s=!0),e instanceof yv&&e.autoBatch&&(o=e.style,B=Zl(o),f=jl(o),!(o.lineDash||!(+B^+f)||B&&"string"!=typeof o.fill||f&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),s=(s||(f=r,o=a.transform,f&&o?f[0]!==o[0]||f[1]!==o[1]||f[2]!==o[2]||f[3]!==o[3]||f[4]!==o[4]||f[5]!==o[5]:f||o)?(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(),r=t,o=e,H=B,k=jl(m=s),A=Zl(m),D=m.strokePercent,P=D<1,O=!o.path,o.silent&&!P||!O||o.createPathProxy(),L=o.path||rS,E=o.__dirty,H||(v=m.fill,N=m.stroke,_=A&&!!v.colorStops,x=k&&!!N.colorStops,w=A&&!!v.image,b=k&&!!N.image,R=M=C=T=S=void 0,(_||x)&&(R=o.getBoundingRect()),_&&(S=E?Wl(r,v,R):o.__canvasFillGradient,o.__canvasFillGradient=S),x&&(T=E?Wl(r,N,R):o.__canvasStrokeGradient,o.__canvasStrokeGradient=T),w&&(C=E||!o.__canvasFillPattern?$l(r,v,o):o.__canvasFillPattern,o.__canvasFillPattern=C),b&&(M=E||!o.__canvasStrokePattern?$l(r,N,o):o.__canvasStrokePattern,o.__canvasStrokePattern=C),_?r.fillStyle=S:w&&(C?r.fillStyle=C:A=!1),x?r.strokeStyle=T:b&&(M?r.strokeStyle=M:k=!1)),R=o.getGlobalScale(),L.setScale(R[0],R[1],o.segmentIgnoreThreshold),r.setLineDash&&m.lineDash&&(I=(v=Gl(o))[0],Y=v[1]),N=!0,(O||E&Xg)&&(L.setDPR(r.dpr),P?L.setContext(null):(L.setContext(r),N=!1),L.reset(),o.buildPath(L,o.shape,H),L.toStatic(),o.pathUpdated()),N&&L.rebuildPath(r,P?D:1),I&&(r.setLineDash(I),r.lineDashOffset=Y),H||(m.strokeFirst?(k&&Ql(r,m),A&&Kl(r,m)):(A&&Kl(r,m),k&&Ql(r,m))),I&&r.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!=(C=(w=s).text)&&(C+=""),C&&(_.font=w.font||Nf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,T=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Gl(S))[0],T=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=T),w.strokeFirst?(jl(w)&&_.strokeText(C,w.x,w.y),Zl(w)&&_.fillText(C,w.x,w.y)):(Zl(w)&&_.fillText(C,w.x,w.y),jl(w)&&_.strokeText(C,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof bv)i.lastDrawType!==lS&&(l=!0,i.lastDrawType=lS),b=a,M=l,Jl(t,nh(e,(R=i).inHover),b&&nh(b,R.inHover),M,R),v=t,O=s,(o=(E=e).__image=vn(O.image,E.__image,E,E.onload))&&xn(o)&&(N=O.x||0,L=O.y||0,P=E.getWidth(),E=E.getHeight(),D=o.width/o.height,null==P&&null!=E?P=E*D:null==E&&null!=P?E=P/D:null==P&&null==E&&(P=o.width,E=o.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(o,g,y,O.sWidth,O.sHeight,N,L,P,E)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(o,g,y,P-g,E-y,N,L,P,E)):v.drawImage(o,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(),U=(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++)(G=W[z]).beforeBrush&&G.beforeBrush(),G.innerBeforeBrush(),oh(V,G,U,z===F-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),U.prevEl=G;for(var G,j=0,q=X.length;j<q;j++)(G=X[j]).beforeBrush&&G.beforeBrush(),G.innerBeforeBrush(),oh(V,G,U,j===q-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),U.prevEl=G;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(),r="svg"===n.painter.type,e=(t.dirty&&cS.delete(t),cS.get(t));if(e)return e;for(var o,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&&(o=l.join(",")+(r?"-svg":""),w=pS.get(o))&&(r?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(T(e))return[[o=Math.ceil(e),o]];for(var i=!0,n=0;n<e.length;++n)if(!T(e[n])){i=!1;break}if(i)return t([e]);var r=[];for(n=0;n<e.length;++n){var o;T(e[n])?(o=Math.ceil(e[n]),r.push([o,o])):(o=g(e[n],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(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 r=[];for(n=0;n<e.length;++n)b(e[n])?r.push([e[n]]):r.push(e[n]);return r}(a.symbol),v=function(t){return g(t,sh)}(f),_=sh(y),w=!r&&zf.createCanvas(),S=r&&{tag:"g",attrs:{},key:"dcl",children:[]},C=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 r=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();w&&(w.width=C.width*i,w.height=C.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 M=0,I=0;I<y.length;++I)M+=y[I];if(!(M<=0))for(var k=-_,A=0,D=0,P=0;k<C.height;){if(A%2==0){for(var O=D/2%m.length,L=0,E=0,R=0;L<2*C.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,o,s,l){var h=r?1:i,l=Vl(l,t*h,e*h,o*h,s*h,a.color,a.symbolKeepAspect);r?(t=n.painter.renderOneToVNode(l))&&S.children.push(t):rh(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(o,w||S),s.image=w,s.svgElement=S,s.svgWidth=C.width,s.svgHeight=C.height,e.rotation=a.rotation,e.scaleX=e.scaleY=r?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 r=VS.call(this,new Ub)||this,t=(r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},b(e)&&(e=ZS[e]),r._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}),r._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=(r._ssr=i.ssr,r._throttledZrFlush=vl($f(t.flush,t),17),(e=a(e))&&$a(e,!0),r._theme=e,r._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),r._coordSysMgr=new Ow,r._api=NS(r));return Wt(qS,n),Wt(GS,n),r._scheduler=new Vb(r,i,GS,qS),r._messageCenter=new YS,r._initEvents(),r.resize=$f(r.resize,r),t.animation.on("frame",r._onframe,r),PS(t,r),OS(t,r),V(r),r}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 r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}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,r){var o=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),h=0;h<l.length;h++)r=Math.max(t(l[h],i,n,r),r);else e.z=i,e.zlevel=n,r=Math.max(e.z2,r);return o&&(o.z=i,o.zlevel=n,isFinite(r))&&(o.z2=r+2),a&&(s=e.textGuideLineConfig,a.z=i,a.zlevel=n,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1)),r}(t,i,n,-1/0),!0}))}function yh(t,e){e.eachRendered(function(t){var e,i;uo(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"),r=0<t?{duration:t,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){var e,i,o;t.states&&t.states.emphasis&&(uo(t)||(t instanceof yv&&((o=zv(i=t)).normalFill=i.style.fill,o.normalStroke=i.style.stroke,i=i.states.select||{},o.selectFill=i.style&&i.style.fill||null,o.selectStroke=i.style&&i.style.stroke||null),t.__dirty&&(o=t.prevStates)&&t.useStates(o),n&&(t.stateTransition=r,i=t.getTextContent(),e=t.getTextGuideLine(),i&&(i.stateTransition=r),e)&&(e.stateTransition=r),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(GS,t,e,2e3)}function Sh(t){Ch("afterinit",t)}function Th(t){Ch("afterupdate",t)}function Ch(t,e){fS.on(t,e)}function Mh(t,e,i){w(e)&&(i=e,e="");var n=C(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,US[e]||(z(_S.test(n)&&_S.test(e)),XS[n]||(XS[n]={action:i,actionInfo:t}),US[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,r){(w(e)||C(e))&&(i=e,e=n),0<=u(iT,i)||(iT.push(i),(n=Vb.wrapStageHandler(i,r)).__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,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||Rh,this._newKeyGetter=n||Rh,this.context=r,this._diffModeMultiple="multiple"===o}function Bh(t,e){this._encode=t,this._schema=e}function zh(t,e){var i={},n=i.encode={},r=X(),o=[],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||(r.set(u,1),"ordinal"!==(l=h.type)&&"time"!==l&&(o[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=(r.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&&(o=u.slice()),n.tooltip);return u&&u.length?a=u.slice():a.length||(a=o.slice()),n.defaultedLabel=o,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=C(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,r=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),o=(Yh(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!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),(o[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),r&&(c.storeDimIndex=u)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(n=this._dimIdxToName=X(),f(a,function(t){n.set(o[t].storeDimIndex,t)}))}function Uh(t,e){function i(t){var e,i,n,r=x[t];return r<0?(e=C(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[r]}function n(t,e,i){null!=pw.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,c.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}ts(t)||(t=is(t));for(var o,a,s=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],c=X(),p=[],d=(g=t,o=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,o.length,u.length,v||0),f(o,function(t){C(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 r,t=Gi(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(r=_.set(e,[]),f(t,function(t,o){null!=(t=b(t)?m.get(t):t)&&t<d&&n(i(r[o]=t),e,o)}))});var S=0;f(s,function(t){b(t)?(a=t,o={}):(a=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=l({},o)).ordinalMeta=t,e=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var e,r,o,a,s=_.get(a);if(!1!==s){if(!(s=Gi(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!=o.type&&(t.type=o.type),n(h(t,o),a,s),null==t.name&&e&&(C(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),r&&h(t.otherDims,r)})}});var T=e.generateCoord,M=null!=(I=e.generateCoordCount),I=T?I||1:0,k=T||"value";if(g)f(p,function(t){r(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,M),D.coordDimIndex=0,(!T||I<=0)&&(D.isExtraCoord=!0),I--),r(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 Gh(t){return"category"===t.get("type")}function jh(t,e,i){var n,r,o,a,s,l,h,u,c,p=(i=i||{}).byIndex,d=i.stackedCoordDimension,g=(Yh(e.schema)?(r=e.schema,n=r.dimensions,o=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},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(h,i),t.storeDimIndex=o.ensureCalculationDimension(l,i)),r.appendCalculationDimension(e),r.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,r,o,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=(r=t,c=(c=e).get("coordinateSystem"),c=Ow.get(c),p=(p=r&&r.coordSysDims?g(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=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=Uh(n,c),d=(c=p.dimensions,o=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(),o)&&(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=++CT}function Jh(t){return C(t)&&null!=t.value?t.value:t+""}function tu(t){return"interval"===t.type||"log"===t.type}function eu(t,e,i,n){var r={},o=t[1]-t[0],o=r.interval=Fi(o/e,!0),e=(null!=i&&o<i&&(o=r.interval=i),null!=n&&n<o&&(o=r.interval=n),r.intervalPrecision=nu(o)),i=r.niceTickExtent=[Di(Math.ceil(t[0]/o)*o,e),Di(Math.floor(t[1]/o)*o,e)];return n=i,o=t,isFinite(n[0])||(n[0]=o[0]),isFinite(n[1])||(n[1]=o[1]),ru(n,0,o),ru(n,1,o),n[0]>n[1]&&(n[0]=n[1]),r}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 ru(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function ou(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 MT({}))&&(e=new MT({categories:g(e,function(t){return C(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,r=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),a=0,s=o.count();a<s;++a){var l=o.get(r,a);i[n]?i[n].push(l):i[n]=[l]}}),{});for(e in i)if(i.hasOwnProperty(e)){var r=i[e];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];0<s&&(o=null===o?s:Math.min(o,s))}n[e]=o}}return n}(t),r=[];return f(t,function(t){var e,i,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent(),s=(e="category"===o.type?o.getBandWidth():"value"===o.type||"time"===o.type?(e=o.dim+"_"+o.index,e=n[e],s=Math.abs(a[1]-a[0]),i=o.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");r.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:h,barCategoryGap:u,axisKey:pu(o),stackId:cu(t)})}),e={},f(r,function(t,i){var n=t.axisKey,r=t.bandWidth,r=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks,n=(e[n]=r,t.stackId),a=(o[n]||r.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),a=(a&&!o[n].width&&(o[n].width=a,a=Math.min(r.remainedWidth,a),r.remainedWidth-=a),t.barMaxWidth),a=(a&&(o[n].maxWidth=a),t.barMinWidth),o=(a&&(o[n].minWidth=a),t.barGap),n=(null!=o&&(r.gap=o),t.barCategoryGap);null!=n&&(r.categoryGap=n)}),i={},f(e,function(t,e){i[e]={};var n,r=t.stacks,o=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(r).length,a=Math.max(35-4*s,15)+"%"),Ai(a,o)),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(r,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(r,function(t,e){t.width||(t.width=c),p+=(n=t).width*(1+l)}),n&&(p-=n.width*l),-p/2);f(r,function(t,n){i[e][n]=i[e][n]||{bandWidth:o,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,r,o,a,s=t.type,l=(l=e,h=(u=t).getExtent(),(c=u.rawExtentInfo)||(c=new GT(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))&&(r=1/0,f(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,f(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(n=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/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,r=e.get("splitNumber"),o=(t instanceof UT&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setExtent(n[0],n[1]),t.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?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,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):b(r)?(i=r,function(e){return e=t.scale.getLabel(e),i.replace("{value}",null!=e?e:"")}):w(r)?(e=r,function(i,n){return null!=o&&(n=i.value-o),e(Cu(t,i),n,null!=i.level?{level:i.level}:null)}):function(e){return t.scale.getLabel(e)}}function Cu(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Mu(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=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:o[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));r?r.union(g):r=g}return r}}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,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];n+=Ln(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return Pu(r[0],s[0])&&Pu(r[1],s[1])||(n+=Ln(r[0],r[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 r=0;r<t.length;r++){var o=t[r];(o=n?n.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(lt(e,e,o),ht(i,i,o))}}function Ru(t){this.name=t}function Nu(t,e,i){return t=tC.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=i&&[i[0],i[1]],t}function Bu(t,e){return t=eC.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=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);n.push([(r=s+=r)/i,(o=l+=o)/i])}return n}function Vu(t,e){var i,n,r;return g(m((t=(i=t).UTF8Encoding?(null==(r=(n=i).UTF8Scale)&&(r=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,r);break;case"Polygon":case"MultiLineString":zu(n,i,r);break;case"MultiPolygon":f(n,function(t,e){return zu(t,i[e],r)})}}),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,r=[];switch(n.type){case"Polygon":var o=n.coordinates;r.push(new iC(o[0],o.slice(1)));break;case"MultiPolygon":f(n.coordinates,function(t){t[0]&&r.push(new iC(t[0],t.slice(1)))});break;case"LineString":r.push(new nC([n.coordinates]));break;case"MultiLineString":r.push(new nC(n.coordinates))}return t=new rC(i[e||"name"],r,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,r,o,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?(r=(a=t).getLabelModel(),o=Xu(a,r),!r.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(r=(i=t).scale.getTicks(),n=Tu(i),{labels:g(r,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,r,o,a,s=t.getTickModel().get("customValues");return s?{ticks:Yu(t,s)}:"category"===t.type?(s=e,r=Uu(e=t,"ticks"),o=Iu(s),(a=Gu(r,o))||(s.get("show")&&!e.scale.isBlank()||(i=[]),i=w(o)?Zu(e,o,!0):"auto"===o?(a=Xu(e,e.getLabelModel()),n=a.labelCategoryInterval,g(a.labels,function(t){return t.tickValue})):qu(e,n=o,!0),ju(r,o,{ticks:i,tickCategoryInterval:n}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Xu(t,e){var i,n=Uu(t,"labels"),e=Iu(e),r=Gu(n,e);return r||ju(n,e,{labels:w(e)?Zu(t,e):qu(t,i="auto"===e?null!=(n=oC(r=t).autoInterval)?n:oC(r).autoInterval=r.calculateCategoryInterval():e),labelCategoryInterval:i})}function Uu(t,e){return oC(t)[e]||(oC(t)[e]=[])}function Gu(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:r(e),rawLabel:o.getLabel(e),tickValue:t})}for(var r=Tu(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),e=a[0],u=o.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,r=Tu(t),o=[];return f(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}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,r,o,a,s){var l=r-t,h=o-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-r)*(h-r)+(s-o)*(s-o))}function Ju(t,e,i,n,r,o,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(r,t),i),i=a[1]=Math.min(Math.max(o,e),n),Math.sqrt((t-r)*(t-r)+(i-o)*(i-o))}function tc(t,e,i){for(var n,r,o,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 lC.M:p=f=m[x++],d=g=m[x++];break;case lC.L:b=$u(p,d,m[x],m[x+1],v,_,uC,!0),p=m[x++],d=m[x++];break;case lC.C:b=te(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,uC),p=m[x++],d=m[x++];break;case lC.Q:b=oe(p,d,m[x++],m[x++],m[x],m[x+1],v,_,uC),p=m[x++],d=m[x++];break;case lC.A:var S=m[x++],T=m[x++],C=m[x++],M=m[x++],I=m[x++],k=m[x++],A=(x+=1,!!(1-m[x++])),D=Math.cos(I)*C+S,P=Math.sin(I)*M+T;x<=1&&(f=D,g=P),P=(D=I)+k,A=A,a=(v-S)*(o=M)/C+S,s=_,l=uC,c=u=h=void 0,a-=n=S,s-=r=T,h=Math.sqrt(a*a+s*s),u=(a/=h)*o+n,c=(s/=h)*o+r,b=Math.abs(D-P)%sC<1e-4||((P=A?(A=D,D=On(P),On(A)):(D=On(D),On(P)))<D&&(P+=sC),(A=Math.atan2(s,a))<0&&(A+=sC),D<=A&&A<=P)||D<=A+sC&&A+sC<=P?(l[0]=u,l[1]=c,h-o):(c=((A=o*Math.cos(D)+n)-a)*(A-a)+((u=o*Math.sin(D)+r)-s)*(u-s))<(n=((h=o*Math.cos(P)+n)-a)*(h-a)+((D=o*Math.sin(P)+r)-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)*C+S,d=Math.sin(I+k)*M+T;break;case lC.R:b=Ju(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,uC);break;case lC.Z:b=$u(p,d,f,g,v,_,uC,!0),p=f,d=g}b<y&&(y=b,i.set(uC[0],uC[1]))}return y}function ec(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||hC,s=n.getBoundingRect().clone(),l=(s.applyTransform(n.getComputedTransform()),1/0),h=r.anchor,u=t.getComputedTransform(),c=u&&Dt([],u),p=e.get("length2")||0;h&&dC.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=cC,w=fC,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(pC,cC,fC,p),pC.transform(c),y=t.getBoundingRect(),y=h?h.distance(pC):t instanceof yv?tc(pC,t.path,dC):(m=dC,d=Ju((d=y).x,y.y,y.width,y.height,pC.x,pC.y,uC),m.set(uC[0],uC[1]),d),y<l&&(l=y,pC.transform(u),dC.transform(u),dC.toArray(o[0]),pC.toArray(o[1]),cC.toArray(o[2]))}n=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,cC.fromArray(n[0]),pC.fromArray(n[1]),dC.fromArray(n[2]),Sg.sub(fC,cC,pC),Sg.sub(gC,dC,pC),e=fC.len(),f=gC.len(),e<.001||f<.001||(fC.scale(1/e),gC.scale(1/f),e=fC.dot(gC),Math.cos(r)<e&&(f=$u(pC.x,pC.y,dC.x,dC.y,cC.x,cC.y,yC,!1),mC.fromArray(yC),mC.scaleAndAdd(gC,f/Math.tan(Math.PI-r)),e=dC.x!==pC.x?(mC.x-pC.x)/(dC.x-pC.x):(mC.y-pC.y)/(dC.y-pC.y),isNaN(e)||(e<0?Sg.copy(mC,pC):1<e&&Sg.copy(mC,dC),mC.toArray(n[1]))))),i.setShape({points:o})}}}function ic(t,e,i,n){var r="normal"===i,i=r?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());r?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=og(n[0],n[1]),r=og(n[1],n[2]);e&&r?(i=Math.min(e,r)*i,e=at([],n[1],n[0],i/e),i=at([],n[1],n[2],i/r),r=at([],e,i,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[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 o=1;o<n.length;o++)t.lineTo(n[o][0],n[o][1])}function rc(t){for(var e=[],i=0;i<t.length;i++){var n,r,o,a,s,l,h=t[i];h.defaultAttr.ignore||(r=(n=h.label).getComputedTransform(),o=n.getBoundingRect(),a=!r||r[1]<1e-5&&r[2]<1e-5,l=n.style.margin||0,(s=o.clone()).applyTransform(r),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new sx(o,r):null,e.push({label:n,labelLine:h.labelLine,rect:s,localRect:o,obb:l,priority:h.priority,defaultAttr:h.defaultAttr,layoutOption:h.computedLayoutOption,axisAligned:a,transform:r}))}return e}function oc(t,e,i,n,r,o){function a(){_=w.rect[e]-n,x=r-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,r){0!==i&&(d=!0);for(var o=n;o<r;o++){var a=t[o];a.rect[e]+=i,a.label[e]+=i}}function h(n,r){for(var o=[],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);o.push(h),a+=h}if(a){var u=Math.min(Math.abs(n)/a,r);if(0<n)for(s=0;s<c-1;s++)l(o[s]*u,0,s+1);else for(s=c-1;0<s;s--)l(-o[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&&o&&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)),r=0;r<t.length;r++){for(var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,h=o.label,u=o.labelLine,c=(n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,o.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",o.defaultAttr.ignore),u&&u.attr("ignore",o.defaultAttr.labelGuideIgnore),i.push(o))}}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 r=i[n];null!=e[r]&&(t[r]=e[r])}}function hc(){this._labelList=[],this._chartViewList=[]}function uc(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){(TC(e).labelManager||(TC(e).labelManager=new SC)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=TC(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(),r=e.getWidth(),e=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=e*i,n}function pc(t,e,i){var n,r=CC.call(this)||this,t=(r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,i=i||Ny,"string"==typeof t?n=cc(t,e,i):C(t)&&(t=(n=t).id),r.id=t,(r.dom=n).style);return t&&(j(n),n.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=i,r}function dc(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Ny,this._singleCanvas=r,(this.root=t).style&&(j(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=i.width&&(o=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new MC(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[IC]=o).zlevel=IC,e.push(IC),this._domRoot=t):(this._width=Ul(t,0,i),this._height=Ul(t,1,i),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}function fc(){var t=null!==AC&&AC.apply(this,arguments)||this;return t.type="dataset",t}function gc(){var t=null!==PC&&PC.apply(this,arguments)||this;return t.type="dataset",t}function yc(t){t.registerComponentModel(DC),t.registerComponentView(OC)}function mc(){var t=null!==LC&&LC.apply(this,arguments)||this;return t.type=mc.type,t.hasSymbolVisual=!0,t}function vc(t,e){var i,n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r)return null!=(i=ys(t,e,n[0]))?i+"":null;if(r){for(var o=[],a=0;a<n.length;a++)o.push(ys(t,e,n[a]));return o.join(" ")}}function _c(t,e,i,n){var r=RC.call(this)||this;return r.updateData(t,e,i,n),r}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||C(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:zo(t),cursorStyle:t.get("cursor")}}function Tc(t){this.group=new Jy,this._SymbolCtor=t||NC}function Cc(t,e,i){var n=t.getBaseAxis(),r=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}(r,i),n=n.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(n),s="x"===r||"radius"===r?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:r,baseAxisDim:n,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mc(t,e,i,n){var r=NaN,o=(t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function Ic(t,e){return isNaN(t)||isNaN(e)}function kc(t,e,i,n,r,o,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(r<=d||d<0)break;if(Ic(g,y)){if(l){d+=o;continue}break}if(d===i)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-h,v=y-u;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<n;)f++,d+=o,x=e[2*(_+=o)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;Ic(x,w)&&b<n;)b++,x=e[2*(_+=o)],w=e[2*_+1];var S,T,C,M,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,C=y-u,M=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(C))*a,O=A=g,y+P*(k=Math.abs(M))*a):(I=Math.sqrt(S*S+C*C),A=g-m*a*(1-(S=(k=Math.sqrt(T*T+M*M))/(k+I))),D=y-v*a*(1-S),L=y+v*a*S,O=FC(O=g+m*a*S,VC(x,g)),L=FC(L,VC(w,y)),O=VC(O,FC(x,g)),D=y-(v=(L=VC(L,FC(w,y)))-y)*I/k,A=FC(A=g-(m=O-g)*I/k,VC(h,g)),D=FC(D,VC(u,y)),O=g+(m=g-(A=VC(A,FC(h,g))))*k/I,y+(v=y-(D=VC(D,FC(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+=o}return f}function Ac(t){return t=BC.call(this,t)||this,t.type="ec-polyline",t}function Dc(){return null!==WC&&WC.apply(this,arguments)||this}function Pc(t){return t=UC.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,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}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(),r="x"===e.dim||"radius"===e.dim?0:1,o=[],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],o.push(l[0],l[1]),i){case"end":s[r]=h[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=[];s[r]=c[r]=(l[r]+h[r])/2,s[1-r]=l[1-r],c[1-r]=h[1-r],o.push(s[0],s[1]),o.push(c[0],c[1]);break;default:s[r]=l[r],s[1-r]=h[1-r],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function Bc(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=n.length-1;0<=o;o--){var a,s=t.getDimensionInfo(n[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=n[o];break}}if(r){var l=e.getAxis(a),e=g(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=e.length,u=r.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,r,o=[],a=t.length,s=0;s<a;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(e<h){r?o.push(i(r,l,e)):n&&o.push(i(n,l,0),i(n,l,e));break}n&&(o.push(i(n,l,0)),n=null),o.push(l),r=l}}return o}(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 r,o,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(),r=(isNaN(n)&&(n=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*NC.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return;return 1}(a,e)))return r=e.mapDimension(a.dim),o={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function 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 r,o,a,s,l,h,u,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},x=Yc(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,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,ho(_,{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,ho(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Wc(){return null!==jC&&jC.apply(this,arguments)||this}function Xc(){return null!==QC&&QC.apply(this,arguments)||this}function Uc(){return null!==JC&&JC.apply(this,arguments)||this}function Gc(t,e,n,r){f(iM,function(o,a){function l(){var t=null!==h&&h.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var h,u=s(s({},eM[a],!0),r,!0),u=(i(l,h=n),l.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ca(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=MT.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!==rM&&rM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=nM,t}function Qc(t,e,i,n,r){return t=aM.call(this,t,e,i)||this,t.index=0,t.type=n||"value",t.position=r||"bottom",t}function $c(t,e,i){i=i||{};var t=t.coordinateSystem,n=e.axis,r={},o=n.getAxesOnZeroOf()[0],a=n.position,s=o?"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=(o&&(u=o.toGlobalCoord(o.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),r.position=["y"===n?h[l[s]]:t[0],"x"===n?h[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===n?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),L(i.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-u:u,r.z2=1,r}function Jc(t){return"cartesian2d"===t.get("coordinateSystem")}function tp(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(i,n){var r=n.replace(/Model$/,""),r=t.getReferringComponents(r,cm).models[0];e[n]=r}),e}function ep(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nM,this._initCartesian(t,e,i),this.model=t}function ip(t,e){return t.getCoordSysModel()===e}function np(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],t=i.model,e=t.get(["axisLine","onZero"]),i=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=i)rp(a[i])&&(o=a[i]);else for(var s in a)if(a.hasOwnProperty(s)&&rp(a[s])&&!n[r(a[s])]){o=a[s];break}o&&(n[r(o)]=!0)}}function rp(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 op(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(),r=e&&e.getBoundingRect().clone();if(n&&r)return kt(i=Tt([]),i,-t.rotation),n.applyTransform(Mt([],i,t.getLocalTransform())),r.applyTransform(Mt([],i,e.getLocalTransform())),n.intersect(r)}function lp(t){return"middle"===t||"center"===t}function hp(t,e,i,n,r){for(var o=[],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}));So(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function up(t,e){var i,n,r,o,s,l,u,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i=c,e=e,r=(n=t).getComponent("tooltip"),o=n.getComponent("axisPointer"),s=o.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,r,p){var d,g,y=p.model.getModel("axisPointer",o),m=y.get("show");m&&("auto"!==m||e||dp(y))&&(null==r&&(r=y.get("triggerTooltip")),m=(y=e?function(t,e,i,n,r,o){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!o,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===r&&(r=s.get(["label","show"]),e.show=null==r||r,o||(r=l.lineStyle=s.get("crossStyle"))&&h(e,r.textStyle)),t.model.getModel("axisPointer",new Ox(l,i,n))}(p,c,o,n,e,r):y).get("snap"),e=y.get("triggerEmphasis"),d=fp(p.model),g=r||m||"category"===p.type,r=i.axesInfo[d]={key:d,axis:p,coordSys:t,axisPointerModel:y,triggerTooltip:r,triggerEmphasis:e,involveSeries:g,snap:m,useHandle:dp(y),seriesModels:[],linkGroup:null},u[d]=r,i.seriesInvolved=i.seriesInvolved||g,null!=(e=function(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(cp(o[n+"AxisId"],i.id)||cp(o[n+"AxisIndex"],i.componentIndex)||cp(o[n+"AxisName"],i.name))return r}}(s,p)))&&((m=l[e]||(l[e]={axesInfo:{}})).axesInfo[d]=r,m.mapper=s[e].mapper,r.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",r),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&r&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(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!==hM&&hM.apply(this,arguments)||this;return t.type=gp.type,t}function yp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=yp.type,t.axisPointerClass="CartesianAxisPointer",t}function mp(){var t=null!==cM&&cM.apply(this,arguments)||this;return t.type=mp.type,t}function vp(){var t=null!==SM&&SM.apply(this,arguments)||this;return t.type=bM.type,t}function _p(){var t=null!==CM&&CM.apply(this,arguments)||this;return t.type="grid",t}function xp(){var t=null!==kM&&kM.apply(this,arguments)||this;return t.type=xp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function wp(){var t=null!==DM&&DM.apply(this,arguments)||this;return t.type=wp.type,t}function bp(){var t=null!==OM&&OM.apply(this,arguments)||this;return t.type=bp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Sp(){var t=null!==LM&&LM.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}),Mp(t,e,i,n)}function Cp(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;n<r&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function Mp(t,e,i,n){Cp(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Ip(t,e,i,n){Cp(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,r={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&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),r.hasOwnProperty(t)?r[t]=r[t]&&e:r[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Dp(t){t.registerComponentModel(EM),t.registerComponentView(zM),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!==FM&&FM.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!==VM&&VM.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 C(e)&&C(i)?(n=!0,f(i,function(i,r){n=n&&t(e[r],i)}),!!n):e===i}(GM(i).lastProp,n)&&(GM(i).lastProp=n,e?lo(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"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function Fp(t,e,i,n,r){var o=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(o,s),h=r.position,u=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(h[0]-=u),"center"===c&&(h[0]-=u/2),r.verticalAlign),n=("bottom"===c&&(h[1]-=l),"middle"===c&&(h[1]-=l/2),r=h,c=u,u=l,n=(l=n).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,n)-c,r[1]=Math.min(r[1]+u,l)-u,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),i.get("backgroundColor"));n&&"auto"!==n||(n=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Fo(i,{text:o,font:s,fill:i.getTextColor(),padding:a,backgroundColor:n}),z2:10}}function Vp(t,e,i,n,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:Cu(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&&o.seriesData.push(e)}),b(r)?a=r.replace("{value}",a):w(r)&&(a=r(o))),a}function Yp(t,e,i){var n=St();return kt(n,n,i.rotation),It(n,n,i.position),Co([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Hp(){return null!==ZM&&ZM.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 Up(){var t=null!==$M&&$M.apply(this,arguments)||this;return t.type=Up.type,t}function Gp(t,e,i){function n(t,e){o.on(t,function(t){function i(t){var e=r[t.type];e?e.push(t):(t.dispatchAction=i,n.dispatchAction(t))}n=a;var n,r,s={dispatchAction:i,pendings:r={showTip:[],hideTip:[]}};eI(tI(o).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 r,o,a;Pf.node||(r=e.getZr(),tI(r).records||(tI(r).records={}),a=e,tI(o=r).initialized||(tI(o).initialized=!0,n("click",_(qp,"click")),n("mousemove",_(qp,"mousemove")),n("globalout",jp)),(tI(r).records[t]||(tI(r).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,r,o,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),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=i.mapDimension(e),(o=[])[t]=i.get(e,s),o[1-t]=i.get(i.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(i.getValues(g(r.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,r,o,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),r=w.axesInfo,o=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 o=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}}(r,t);a||!i||r&&!l||null!=(l=null!=(l=l&&l.value)||n?l:o.pointToData(x))&&Jp(t,l,h,!1,s)})}),u={},f(o,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(o[e],t,h,!0,s)}),c=l,w=o,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=o,w=(t=i).getZr(),b="axisPointerLastHighlights",d=rI(w)[b]||{},g=rI(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,r){var o,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 r=t.getAxisTooltipData(n,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=t.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;r=t.getData().get(n[0],o[0])}null!=r&&isFinite(r)&&(n=a-r,(i=Math.abs(n))<=p)&&((i<p||0<=n&&d<0)&&(p=i,d=n,u=r,c.length=0),f(o,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(o={payloadBatch:c,snapToValue:u}).snapToValue,(g=o.payloadBatch)[0]&&null==r.seriesIndex&&l(r,g[0]),!n&&t.snap&&m.containData(y)&&null!=y&&(e=y),i.showPointer(t,e,g),i.showTooltip(t,o,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 r,o,i=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&i.length&&(r=fp(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value: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 rd(t){mM.registerAxisPointerClass("CartesianAxisPointer",KM),t.registerComponentModel(JM),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 od(){var t=null!==oI&&oI.apply(this,arguments)||this;return t.type=od.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,r,o=[],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 o.push("box-shadow:"+u+"px "+c+"px "+l+"px "+h),e&&a&&o.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&&o.push("background-color:"+s),f(["width","color","radius"],function(e){var i="border-"+e,n=fa(i),n=t.get(n);null!=n&&o.push(i+":"+n+("color"===e?"":"px"))}),o.push((r=[],e=(n=p).get("fontSize"),(a=n.getTextColor())&&r.push("color:"+a),r.push("font:"+n.getFont()),e&&r.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&&r.push("text-shadow:"+i+"px "+u+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=n.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=d&&o.push("padding:"+Zx(d).join("px ")+"px"),o.join(";")+";"}function cd(t,e,i,n,r){var o,a,s=e&&e.painter;i?(o=s&&s.getViewportRoot())&&(a=t,i=i,ft(dg,o,n,r,!0))&&ft(a,i,dg[0],dg[1]):(t[0]=n,t[1]=r,(o=s&&s.getViewportRootOffset())&&(t[0]+=o.offsetLeft,t[1]+=o.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())),r=(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(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=n.handler,xt(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._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,r=i?(r=new Ox(i,n,n),new Ox(e.option,r,n)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(b(a=a instanceof Ox?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new Ox(a,r,n))}return r}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,r,o){var a=[],s=qh(e,n)?e.getCalculationInfo("stackResultDimension"):n,t=Id(e,s,t),t=e.indicesOfNearest(s,t)[0],r=(a[r]=e.get(i,t),a[o]=e.get(s,t),e.get(n,t)),i=Pi(e.get(n,t));return 0<=(i=Math.min(i,20))&&(a[o]=+a[o].toFixed(i)),[a,r]}function Cd(t,e){if(e){var i,n=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(i=e,(isNaN(parseFloat(i.x))||isNaN(parseFloat(i.y)))&&!x(e.coord)&&x(o)&&(i=function(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(function(t,e){return(t=t.getData().getDimensionInfo(e))&&t.coordDim}(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}(e,n,r,t),(e=a(e)).type&&bI[e.type]&&i.baseAxis&&i.valueAxis?(r=u(o,i.baseAxis.dim),t=u(o,i.valueAxis.dim),i=bI[e.type](n,i.baseDataDim,i.valueDataDim,r,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(o))for(var s=e.coord,l=0;l<2;l++)bI[s[l]]&&(s[l]=Id(n,n.mapDimension(o[l]),s[l]));else e.coord=[];return e}}function Md(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,r;return"average"===i?(r=n=0,t.each(e,function(t,e){isNaN(t)||(n+=t,r++)}),n/r):"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(r){var o,a,s,l=t.getItemModel(r),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,r)):n&&(o=t.get(n.dimensions[0],r),a=t.get(n.dimensions[1],r),s=n.dataToPoint([o,a])):s=[h,l],isNaN(h)||(s[0]=h),isNaN(l)||(s[1]=l),t.setItemLayout(r,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(o=(o=t).not)||Xi(""),(l=new PI).child=Bd(o,i),l.child||Xi(""),l;for(var n=t,r=e,o=r.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||r.valueGetterAttrMap.get(p)||(c=q(MI,p)?MI[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=o,l.valueParser=h,l.getValue=r.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 C(t)&&!d(t)}function Vd(t,e){this._cond=Bd(t,e)}function Yd(){}function Hd(t,e,i,n){var r=null==e.opacity?1:e.opacity;if(i instanceof bv)t("opacity",r);else if(null!=(o=(o=e).fill)&&o!==WI?(t("fill",(o=Ie(e.fill)).color),o=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r,(n||o<1)&&t("fill-opacity",o)):t("fill",WI),null!=(o=(o=e).stroke)&&o!==WI){var o=Ie(e.stroke),a=(t("stroke",o.color),e.strokeNoScale?i.getLineScale():1),a=a?(e.lineWidth||0)/a:0,o=null!=e.strokeOpacity?e.strokeOpacity*o.opacity*r:o.opacity*r,r=e.strokeFirst;!n&&1==a||t("stroke-width",a),(n||r)&&t("paint-order",r?"stroke":"fill"),(n||o<1)&&t("stroke-opacity",o),e.lineDash?(r=(a=Gl(i))[0],o=a[1],r&&(o=XI(o||0),t("stroke-dasharray",r.join(",")),o||n)&&t("stroke-dashoffset",o)):n&&t("stroke-dasharray",WI);for(var s=0;s<UI.length;s++){var l=UI[s];(n||e[l]!==dv[l])&&(l=e[l]||dv[l])&&t(GI[s],l)}}else n&&t("stroke",WI)}function Wd(t){return document.createElementNS(jI,t)}function Xd(t,e,i,n,r){return{tag:t,attrs:i||{},children:n,text:r,key:e}}function Ud(t,e){var i=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,r=e.tag,o=e.attrs,e=e.text;return function(t,e){var i=[];if(e)for(var n in e){var r=e[n];!1!==r&&(!0!==r&&null!=r&&(n+='="'+r+'"'),i.push(n))}return"<"+t+" "+i.join(" ")+">"}(r,o)+("style"!==r?yt(e):e||"")+(n?i+g(n,t).join(i)+i:"")+"</"+r+">"}(t)}function Gd(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 r=t.animators,o=r.length,a=[];if(t instanceof Q_){if(h=function(t,e,i){var n,r,t=t.shape.paths,o={};if(f(t,function(t){var e=Gd(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[r=e[s-1]];for(l in u){var c=u[l];o[l]=o[l]||{d:""},o[l].d+=c.d||""}for(h in a){var p=a[h].animation;0<=p.indexOf(r)&&(n=p)}}}),n)return e.d=!1,t=qd(o,i),n.replace(r,t)}(t,e,i))a.push(h);else if(!o)return}else if(!o)return;for(var s,h,u,c={},p=0;p<o;p++){var d=r[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(r){function o(t,e,i){for(var n=t.getTracks(),r=t.getMaxTime(),o=0;o<n.length;o++){var a=n[o];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/r*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=r[1],u=h.length,c={},p={},d={},f="animation-timing-function",g=0;g<u;g++)(O=(P=h[g]).targetName)?"shape"===O&&o(P,p):n||o(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,C,M=!0;for(D in p){d[D]=d[D]||{};var I=!s,x=p[D][f],k=(s=I?new ov:s).len(),A=(s.reset(),d[D].d=(S=p[D],C=s,A=void 0,A=l({},(w=t).shape),l(A,S),w.buildPath(C,A),(S=new HI).reset(Be(w)),C.rebuildPath(S,1),S.generateStr(),S.getStr()),s.len());if(!I&&k!==A){M=!1;break}x&&(d[D][f]=x)}if(!M)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)&&o(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)+" "+r[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 r=JSON.stringify(t),o=i.cssStyleCache[r];o||(o=i.zrId+"-cls-"+$I++,i.cssStyleCache[r]=o,i.cssNodes["."+o+(n?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}function $d(t){return t&&b(t.src)}function Jd(t){return t&&w(t.toDataURL)}function tf(t,e,i,n){Hd(function(r,o){var a="fill"===r||"stroke"===r;a&&Re(o)?hf(e,t,r,n):a&&Oe(o)?uf(i,t,r,n):t[r]=a&&"none"===o?"transparent":o},e,i,!1);var r=t,o=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=o.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=o.zrId+"-s"+o.shadowIdx++,o.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}r.filter=Ne(l)}}function ef(t,e){var i=Mi(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 rf(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 of(t,e,i){for(var n=t.points,r=[],o=0;o<n.length;o++)r.push(ik(n[o][0]*i)/i),r.push(ik(n[o][1]*i)/i);e.points=r.join(" ")}function af(t){return!t.smooth}function sf(t,e){var i,n,r,o,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(),r=(n=t).__svgPathBuilder,n.__svgPathVersion===c&&r&&d===n.__svgPathStrokePercent||((r=r||(n.__svgPathBuilder=new HI)).reset(f),i.rebuildPath(r,d),r.generateStr(),n.__svgPathVersion=c,n.__svgPathStrokePercent=d),u.d=r.getStr()):(p=t.type,i=Math.pow(10,f),h[0](l,u,i)),rf(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=(r=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(o=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||o)&&(f=Me(h)),(o=r.lineWidth)&&(o/=!r.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),r.stroke&&(a.stroke=r.stroke),o&&(a["stroke-width"]=o),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,r=i.style,o=r.image;if(o&&!b(o)&&($d(o)?o=o.src:Jd(o)&&(o=o.toDataURL())),o)return a=r.x||0,s=r.y||0,o={href:o,width:r.width,height:r.height},a&&(o.x=a),s&&(o.y=s),rf(o,i.transform),tf(o,r,i,n),ef(o,i),n.animation&&Kd(i,o,n),Xd("image",i.id+"",o)}else if(t instanceof vv){var a=t,s=e,r=a.style,n=r.text;if(null!=n&&(n+=""),n&&!isNaN(r.x)&&!isNaN(r.y)){var i=r.font||Nf,o=r.x||0,l=(t=r.y||0,e=di(i),"top"===(l=r.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":gy[r.textAlign]||r.textAlign};if(jn(r)){var t="",h=r.fontStyle,u=Un(r.fontSize);if(!parseFloat(u))return;var c=r.fontFamily||Rf,p=r.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"),o&&(e.x=o),l&&(e.y=l),rf(e,a.transform),tf(e,r,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 r,t=t[i],o={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Le(t))r="linearGradient",o.x1=t.x,o.y1=t.y,o.x2=t.x2,o.y2=t.y2;else{if(!Ee(t))return;r="radialGradient",o.cx=E(t.x,.5),o.cy=E(t.y,.5),o.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=Ud(Xd(r,"",o,s)),d=n.gradientCache,f=d[t];f||(f=n.zrId+"-g"+n.gradientIdx++,d[t]=f,o.id=f,n.defs[f]=Xd(r,f,o,s)),e[i]=Ne(f)}function uf(t,e,i,n){var r,o,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)?(o=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(o,c="Image width/height must been given explictly in svg-ssr renderer."),z(s,c)):null!=o&&null!=s||(l=function(t,e){var i,n;t&&(i=t.elm,n=o||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(r,t)}))&&c.width&&c.height&&(o=o||c.width,s=s||c.height)),r=Xd("image","img",{href:y,width:o,height:s}),g.width=o,g.height=s):d.svgElement&&(r=a(d.svgElement),g.width=d.svgWidth,g.height=d.svgHeight),r&&(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=Ud(u=Xd("pattern","",g,[r])),(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,[r])),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 r=t.elm=Wd(n);if(Tf(ak,t),x(i))for(e=0;e<i.length;++e){var o=i[e];null!=o&&ff(r,wf(o))}else _f(t.text)&&!C(t.text)&&ff(r,cf(t.text))}else t.elm=cf(t.text);return t.elm}function bf(t,e,i,n,r){for(;n<=r;++n){var o=i[n];null!=o&&pf(t,wf(o),e)}}function Sf(t,e,i,n){for(;i<=n;++i){var r=e[i];null!=r&&(_f(r.tag)?df(gf(r.elm),r.elm):df(t,r.elm))}}function Tf(t,e){var i,n=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(i in o){var a=o[i];r[i]!==a&&(!0===a?n.setAttribute(i,""):!1===a?n.removeAttribute(i):"style"===i?n.style.cssText=a:i.charCodeAt(0)!==ok?n.setAttribute(i,a):"xmlns:xlink"===i||"xmlns"===i?n.setAttributeNS(ZI,i,a):i.charCodeAt(3)===rk?n.setAttributeNS(KI,i,a):i.charCodeAt(5)===rk?n.setAttributeNS(qI,i,a):n.setAttribute(i,a))}for(i in r)i in o||n.removeAttribute(i)}}function Cf(t,e,i){for(var n,r,o,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)?(Mf(h,p),h=e[++a],p=i[++s]):xf(u,d)?(Mf(u,d),u=e[--l],d=i[--c]):xf(h,d)?(Mf(h,d),pf(t,h.elm,yf(u.elm)),h=e[++a],d=i[--c]):(xf(u,p)?(Mf(u,p),pf(t,u.elm,h.elm),u=e[--l]):(vf(n)&&(n=function(t,e,i){for(var n={},r=e;r<=i;++r){var o=t[r].key;void 0!==o&&(n[o]=r)}return n}(e,a,l)),vf(r=n[p.key])||(o=e[r]).tag!==p.tag?pf(t,wf(p),h.elm):(Mf(o,p),e[r]=void 0,pf(t,o.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 Mf(t,e){var i=e.elm=t.elm,n=t.children,r=e.children;t!==e&&(Tf(t,e),vf(e.text)?_f(n)&&_f(r)?n!==r&&Cf(i,n,r):_f(r)?(_f(t.text)&&mf(i,""),bf(i,null,r,0,r.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=(rg=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),rg.svgSupported="undefined"!=typeof SVGRect,rg.touchEventsSupported="ontouchstart"in window&&!sg.ie&&!sg.edge,rg.pointerEventsSupported="onpointerdown"in window&&(sg.edge||sg.ie&&11<=+sg.version),rg.domSupported="undefined"!=typeof document,Qf=document.documentElement.style,rg.transform3dSupported=(sg.ie&&"transition"in Qf||sg.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Qf)&&!("OTransition"in Qf),rg.transformSupported=rg.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),r=(t.charCodeAt(i)-20)/100;e[n]=r}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,r=0;if(0<=e.indexOf("mono"))r=n*t.length;else for(var o=0;o<t.length;o++){var a=Bf[t[o]];r+=null==a?n:a*n}return{width:r}},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,Uf=Hf.slice,Gf=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(Uf.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,rg=Object.freeze({__proto__:null,HashMap:ig,RADIAN_TO_DEGREE:ng,assert:z,bind:$f,clone:a,concatArray:U,createCanvas:Qf,createHashMap:X,createObject:G,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,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return t[n]},guid:r,hasOwn:q,indexOf:u,inherits:c,isArray:x,isArrayLike:d,isBuiltInObject:M,isDom:k,isFunction:w,isGradientObject:A,isImagePatternObject:D,isNumber:T,isObject:C,isPrimitive:Y,isRegExp:P,isString:b,isStringSafe:S,isTypedArray:I,keys:v,logError:o,map:g,merge:s,mergeAll:function(t,e){for(var i=t[0],n=1,r=t.length;n<r;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}),og=rt,ag=ot,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:og,distSquare:ag,distance:rt,distanceSquare:ot,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,r,o=this._draggingTarget;o&&(e=t.offsetX,i=t.offsetY,n=e-this._x,r=i-this._y,this._x=e,this._y=i,o.drift(n,r,t),this.handler.dispatchToElement(new lg(o,t),"drag",t.event),n=this.handler.findHover(e,i,o).target,r=this._dropTarget,o!==(this._dropTarget=n))&&(r&&n!==r&&this.handler.dispatchToElement(new lg(r,t),"dragleave",t.event),n)&&n!==r&&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 r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),i&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;o={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},e=r[t].length-1,n=r[t][e],n&&n.callAtLast?r[t].splice(e,0,o):r[t].push(o)}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=[],r=0,o=i[t].length;r<o;r++)i[t][r].h!==e&&n.push(i[t][r]);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],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},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],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!r||!r.filter||null==h.query||r.filter(t,h.query))switch(o){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,o-1))}}r&&r.afterTrigger&&r.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 r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o<a;o++){var s=n[o],l=mt(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},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 Ct(e,t),e},copy:Ct,create:St,identity:Tt,invert:Dt,mul:Mt,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 r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},Pt),Tg=Math.min,Cg=Math.max,Mg=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=Cg(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Cg(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,r,o,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,r=Math.abs(p-f),o=Math.abs(g-c),a=Math.abs(u-y),s=Math.abs(t-d),l=Math.min(r,o),h=Math.min(a,s),p<f||g<c?n<l&&(n=l,r<o?Sg.set(Pg,-r,0):Sg.set(Pg,o,0)):l<i&&(i=l,r<o?Sg.set(Dg,r,0):Sg.set(Dg,-o,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,r,o,a;i?i[1]<1e-5&&-1e-5<i[1]&&i[2]<1e-5&&-1e-5<i[2]?(n=i[0],r=i[3],o=i[4],a=i[5],t.x=e.x*n+o,t.y=e.y*r+a,t.width=e.width*n,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Mg.x=kg.x=e.x,Mg.y=Ag.y=e.y,Ig.x=Ag.x=e.x+e.width,Ig.y=kg.y=e.y+e.height,Mg.transform(i),Ag.transform(i),Ig.transform(i),kg.transform(i),t.x=Tg(Mg.x,Ig.x,kg.x,Ag.x),t.y=Tg(Mg.y,Ig.y,kg.y,Ag.y),o=Cg(Mg.x,Ig.x,kg.x,Ag.x),a=Cg(Mg.y,Ig.y,kg.y,Ag.y),t.width=o-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),r=this._hovered,o=r.target,n=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.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"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(n,"mousemove",t),e&&e!==o&&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 r="on"+e,o={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[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget||n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},Rt.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new Bg(t,e);if(Nt(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],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)&&o.push(u))}if(o.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(o,r,t+d*Math.cos(f),e+d*Math.sin(f),i),r.target)return r}return r},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,r=e.zrX,o=e.zrY,a=Bt(this,r,o);if("mouseup"===t&&a||(n=(i=this.findHover(r,o)).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<og(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Yg=32,Hg=7,Wg=1,Xg=4,Ug=!1;Gt.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},Gt.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},Gt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;n<r;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Wt(i,Ut)},Gt.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 r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),r=(o=r).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=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)}},Gt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Gt.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)}},Gt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Gt.prototype.getRoots=function(){return this._roots},Gt.prototype.dispose=function(){this._displayList=null,this._roots=null};var Gg=Gt,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,r=n/i,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-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 ry=se,oy=function(t){this.value=t},ay=(le.prototype.insert=function(t){return t=new oy(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,r=this._list,o=this._map,a=null;return null==o[t]&&(n=r.len(),i=this._lastRemovedEntry,n>=this._maxSize&&0<n&&(n=r.head,r.remove(n),delete o[n.key],a=n.value,this._lastRemovedEntry=n),i?i.value=e:i=new oy(e),i.key=t,r.insertEntry(i),o[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:Me,lum:Ce,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 r=_e(t);if(t)return r=function(t){var e,i,n,r,o,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),r=((n=Math.max(u,e,i))+s)/2,0==(h=n-s)?a=o=0:(a=r<.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?o=h-l:e===n?o=1/3+s-h:i===n&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),u=[360*o,a,r],null!=t[3]&&u.push(t[3]),u}(r),null!=e&&(r[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=i&&(r[1]=de(i)),null!=n&&(r[2]=de(n)),Te(xe(r),"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,r=this.keyframes,o=r.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===o?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)),r.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),r=i.length,o=i[r-1],a=this.discrete,s=Ge(n),l=Ue(n),h=0;h<r;h++){var u=i[h],c=u.value,p=o.value;if(u.percent=u.time/t,!a)if(s&&h!==r-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){C=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},C=u;C<Math.max(w,b);C++)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 M=i[0].value,h=0;h<r;h++)0===n?i[h].additiveValue=i[h].value-M:3===n?i[h].additiveValue=Ye([],i[h].value,M,-1):Ge(n)&&(i[h].additiveValue=(1===n?Ye:He)([],i[h].value,M,-1))}},je.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o,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,r=0==d?1:f((e-i.percent)/d,1),n.easingFunc&&(r=n.easingFunc(r)),f=a?this._additiveValue:p?vy:t[c],(Ge(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?i:n).rawValue:Ge(l)?(1===l?Ve:function(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Fe(e[a][s],i[a][s],n)}})(f,i[s],n[s],r):Ue(l)?(d=i[s],o=n[s],t[c]={type:(l=4===l)?"linear":"radial",x:Fe(d.x,o.x,r),y:Fe(d.y,o.y,r),colorStops:g(d.colorStops,function(t,e){return e=o.colorStops[e],{offset:Fe(t.offset,e.offset,r),color:Xe(Ve([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Fe(d.x2,o.x2,r),t[c].y2=Fe(d.y2,o.y2,r)):t[c].r=Fe(d.r,o.r,r)):p?(Ve(f,i[s],n[s],r),a||(t[c]=Xe(f))):(l=Fe(i[s],n[s],r),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 r=this._tracks,o=0;o<i.length;o++){var a=i[o];if(!(l=r[a])){var s,l=r[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 r=i[n].getTrack(t);r&&(e=r)}return e},qe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,i=this,n=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,h=l.length;s.prepare(r,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 ry({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(i._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(i._target,t);var a=i._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](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,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<n.length;r++)if(!i[n[r]].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 r=e[n],o=this._tracks[r];o&&!o.isFinished()&&(o=(o=o.keyframes)[i?0:o.length-1])&&(t[r]=We(o.rawValue))}}},qe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var i=0;i<e.length;i++){var n,r=e[i],o=this._tracks[r];o&&1<(n=o.keyframes).length&&(n=n.pop(),o.addKeyframe(n.time,t[r]),o.prepare(this._maxTime,o.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 r=n.next,n=(n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),r);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,Cy=Ke,My=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(ri,Sy=ug),ri.prototype.dispose=function(){ni(this._localHandlerScope),My&&ni(this._globalHandlerScope)},ri.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},ri.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,My&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?ei(this,e):ni(e))},ri),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 oi(this.rotation)||oi(this.x)||oi(this.y)||oi(this.scaleX-1)||oi(this.scaleY-1)||oi(this.skewX)||oi(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?Mt(i,t,i):Ct(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,r;t&&(r=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),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,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(),Mt(Yy,e.invTransform,t),t=Yy),e=this.originX,i=this.originY,(e||i)&&(Hy[4]=e,Hy[5]=i,Mt(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,r=t.scaleX,o=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)*r-c*(s=n+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&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),Uy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Gy={},jy="__zr_normal__",qy=Uy.concat(["ignore"]),Zy=y(Uy,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,r,o,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,r=!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,o=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===o?(a=.5*h.width,.5*h.height):(a=fi(o[0],h.width),fi(o[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),(o=t.offset)&&(e.x+=o[0],e.y+=o[1],u||(e.originX=-o[0],e.originY=-o[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),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||(r=!0,s.fill=l,s.stroke=h,s.autoStroke=u,s.align=i,s.verticalAlign=n,c.setDefaultTextStyle(s)),c.__dirty|=Wg,r&&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],r=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(r?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(C(t))for(var i=v(t),n=0;n<i.length;n++){var r=i[n];this.attrKV(r,t[r])}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],r=n.__fromStateTransition;n.getLoop()||r&&r!==jy||(r=(r=n.targetName)?e[r]:e,n.saveTo(r))}},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 r=i[n];null==t[r]||r in e||(e[r]=this[r])}},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 r=t===jy,a=this.hasState();if(a||!r){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=u(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!r?this.stateProxy(t):s)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||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),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wg),s;o("State "+t+" not exists.")}}},yi.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],h=void 0;(h=(h=this.stateProxy?this.stateProxy(l,t):h)||this.states[l])&&n.push(h)}var u=n[o-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),r=0<=u(n,e);0<=t?r?n.splice(t,1):n[t]=e:i&&!r&&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 r=t[n];l(i,r),r.textConfig&&l(e=e||{},r.textConfig)}return e&&(i.textConfig=e),i},yi.prototype._applyStateObj=function(t,e,i,n,r,o){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=r&&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(!r)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,o)},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,r=[],o=0;o<n;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,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 r=vi(this,e,i,n),o=0;o<r.length;o++)r[o].__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 r=i[n];t.call(e,r,n)}return this},bi.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&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=[],r=null,o=0;o<i.length;o++){var a,s=i[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(n))?(Og.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||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 Ce(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;r<n;r++)i+=Ce(e[r].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,rm=Si,om=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in em)em.hasOwnProperty(t)&&em[t].dispose();em={}},getElementSSRData:Mi,getInstance:function(t){return em[t]},init:Ti,registerPainter:Ci,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()),Cm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Im=(Cm[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 r=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)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].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,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(n=this.style).shadowBlur||0,i=n.shadowOffsetX||0,n=n.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new Og(0,0,0,0)),r?Og.applyTransform(o,t,r):o.copy(t),(e||i||n)&&(o.width+=2*e+Math.abs(i),o.height+=2*e+Math.abs(n),o.x=Math.min(o.x,o.x+i-e),o.y=Math.min(o.y,o.y+n-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},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 G(Cm,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,r,o){nm.prototype._applyStateObj.call(this,t,e,i,n,r,o);var a,s=!(e&&n);if(e&&e.style?r?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(r){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},o,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 r=t[n];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(i.style=e),i},In.prototype._mergeStyle=function(t,e){return l(t,e),t},In.prototype.getAnimationStyleProps=function(){return Mm},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=[],Um=[],Gm=[],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),r=i>this._ux||n>this._uy;return this.addData(Ym.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=i*i+n*n)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},Dn.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(Ym.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,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,r,o){this._drawPendingPt(),iv[0]=n,iv[1]=r,s=o,(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=(r=iv[1])-(n=iv[0]);return this.addData(Ym.A,t,e,i,i,n,u,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=Km(r)*i+t,this._yi=Qm(r)*i+e,this},Dn.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),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,r=0;r<e;r++)i+=t[r].len();for(ev&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},Dn.prototype.addData=function(t,e,i,n,r,o,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]=Gm[0]=Gm[1]=Number.MAX_VALUE,Um[0]=Um[1]=jm[0]=jm[1]=-Number.MAX_VALUE;for(var t,e=this.data,i=0,n=0,r=0,o=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(r=i=e[a],o=n=e[a+1]),s){case Ym.M:i=r=e[a++],n=o=e[a++],Gm[0]=r,Gm[1]=o,jm[0]=r,jm[1]=o;break;case Ym.L:kn(i,n,e[a],e[a+1],Gm,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=Gm,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],C=e[a+1],A=Gm,O=jm,t=k=t=M=void 0,M=ee,t=Om(Pm((k=ne)(_,P,D),1),0),k=Om(Pm(k(F,I,C),1),0),P=M(_,P,D,t),t=M(F,I,C,k),A[0]=Pm(_,D,P),A[1]=Pm(F,C,t),O[0]=Om(_,D,P),O[1]=Om(F,C,t),i=e[a++],n=e[a++];break;case Ym.A:var C,M=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&&(r=Km(D)*k+M,o=Qm(D)*A+I),X=C=W=H=Y=V=F=z=B=N=R=E=L=void 0,M),E=I,R=k,N=A,B=D,z=P,F=O,V=Gm,Y=jm,H=lt,W=ht;if((C=Math.abs(B-z))%Rm<1e-4&&1e-4<C)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&&(C=z,z=B,B=C);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+M,n=Qm(P)*A+I;break;case Ym.R:kn(r=i=e[a++],o=n=e[a++],r+e[a++],o+e[a++],Gm,jm);break;case Ym.Z:i=r,n=o}lt(Xm,Xm,Gm),ht(Um,Um,jm)}return 0===a&&(Xm[0]=Xm[1]=Um[0]=Um[1]=0),new Og(Xm[0],Xm[1],Um[0]-Xm[0],Um[1]-Xm[1])},Dn.prototype._calculateLength=function(){for(var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=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=r=t[c],s=o=t[c+1]),-1);switch(p){case Ym.M:r=a=t[c++],o=s=t[c++];break;case Ym.L:var g=t[c++],y=(_=t[c++])-o;($m(I=g-r)>i||$m(y)>n||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);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,r,o,a,s,l){for(var h=t,u=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Zt(t,i,r,a,d),d=Zt(e,n,o,s,d),g=f-h,y=d-u;c+=Math.sqrt(g*g+y*y),h=f,u=d}return c}(r,o,m,v,g,_,x,w),r=x,o=w;break;case Ym.Q:f=function(t,e,i,n,r,o,a){for(var s=t,l=e,h=0,u=1;u<=10;u++){var c=.1*u,p=ee(t,i,r,c),c=ee(e,n,o,c),d=p-s,f=c-l;h+=Math.sqrt(d*d+f*f),s=p,l=c}return h}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),r=g,o=_;break;case Ym.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],T=t[c++],C=t[c++],M=C+T;c+=1,d&&(a=Km(T)*b+x,s=Qm(T)*S+w),f=Zm(b,S)*qm(tv,Math.abs(C)),r=Km(M)*b+x,o=Qm(M)*S+w;break;case Ym.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Ym.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},Dn.prototype.rebuildPath=function(t,e){var i,n,r,o,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=r=u[v],n=o=u[v+1]),_!==Ym.L&&0<m&&(t.lineTo(l,h),m=0),_){case Ym.M:i=r=u[v++],n=o=u[v++],t.moveTo(r,o);break;case Ym.L:var w=u[v++],b=u[v++],S=$m(w-r),T=$m(b-o);if(c<S||p<T){if(f){if(s<g+(H=a[y++])){var C=(s-g)/H;t.lineTo(r*(1-C)+w*C,o*(1-C)+b*C);break t}g+=H}t.lineTo(w,b),r=w,o=b,m=0}else S=S*S+T*T,m<S&&(l=w,h=b,m=S);break;case Ym.C:var M=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(r,M,k,T,C=(s-g)/H,Hm),Jt(o,I,A,S,C,Wm),t.bezierCurveTo(Hm[1],Wm[1],Hm[2],Wm[2],Hm[3],Wm[3]);break t}g+=H}t.bezierCurveTo(M,I,k,A,T,S),r=T,o=S;break;case Ym.Q:if(M=u[v++],I=u[v++],k=u[v++],A=u[v++],f){if(s<g+(H=a[y++])){re(r,M,k,C=(s-g)/H,Hm),re(o,I,A,C,Wm),t.quadraticCurveTo(Hm[1],Wm[1],Hm[2],Wm[2]);break t}g+=H}t.quadraticCurveTo(M,I,k,A),r=k,o=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),r=Km(V)*O+D,o=Qm(V)*L+P;break;case Ym.R:i=r=u[v],n=o=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++])){C=(s-g)/H,t.lineTo(r*(1-C)+i*C,o*(1-C)+n*C);break t}g+=H}t.closePath(),r=i,o=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,rv,ov=Dn,av=2*Math.PI,sv=2*Math.PI,lv=ov.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},Cm),fv={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mm.style)},gv=Uy.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,r=(n.buildPath===Bn.prototype.buildPath&&(n.buildPath=function(e){t.buildPath(e,t.shape)}),n.silent=!0,n.style);for(i in e)r[i]!==e[i]&&(r[i]=e[i]);r.fill=e.fill?e.decal:null,r.decal=null,r.shadowColor=null,e.strokeFirst&&(r.stroke=null);for(var o=0;o<gv.length;++o)n[gv[o]]=this[gv[o]];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 r=e[n],o=t[r];"style"===r?this.style?l(this.style,o):this.useStyle(o):"shape"===r?l(this.shape,o):nv.prototype.attrKV.call(this,r,o)}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=Ce(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())==Ce(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 ov(!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,r=!i;return r&&(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||r)&&(t.copy(i),e=n.strokeNoScale?this.getLineScale():1,r=n.lineWidth,this.hasFill()||(n=this.strokeContainThreshold,r=Math.max(r,null==n?4:n)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):i},Bn.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){if(i=this.path,this.hasStroke()&&(n=r.lineWidth,1e-10<(r=r.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),Nn(i,n/r,!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 G(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,r,o){nv.prototype._applyStateObj.call(this,t,e,i,n,r,o);var a,s=!(e&&n);if(e&&e.shape?r?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(r){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},o)}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 r=t[n];r.shape&&this._mergeStyle(e=e||{},r.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,r,o=e;for(r in t)"function"==typeof t[r]&&(o.prototype[r]=t[r]);return o},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,rv=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 G(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},Cm),xv={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mm.style)};i(Fn,wv=py),Fn.prototype.createStyle=function(t){return G(_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,Cv=function(){this.x=0,this.y=0,this.width=0,this.height=0},Mv={},Iv=(i(Wn,Sv=yv),Wn.prototype.getDefaultShape=function(){return new Cv},Wn.prototype.buildPath=function(t,e){var i,n,r,o,a,s,l,h,u,c,p,d,f,g;this.subPixelOptimize?(i=(a=Yn(Mv,e,this.style)).x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(i=e.x,n=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=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,r,o)},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},Mm.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,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(i);o?(t.copy(a),t.applyTransform(o),(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 r=i[n];t[r]=t[r]||{},l(t[r],e[r])}},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,r=function(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=di(o),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?Mn(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,o,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],o),g);return null==c&&(c=g),t=g,r&&(u+=r[0]+r[2],t+=r[1]+r[3],c+=r[1]+r[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),o=Jn(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,h=r.contentWidth,u=r.lines,c=r.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=pi(f,r.contentHeight,y),_=((o||n)&&(t=ci(d,l,g),f=pi(f,s,y),o)&&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),o=!1,x=(Kn(("fill"in e?e:(o=!0,p)).fill)),w=(Zn("stroke"in e?e.stroke:a||p.autoStroke&&!o?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=r.calculatedLineHeight,C=0;C<u.length;C++){var M=this._getOrCreateChild(vv),I=M.createStyle();M.useStyle(I),I.text=u[C],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,Gn(I,e),v+=c,S&&M.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,r=e.outerHeight,o=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,r,l),u=a,c=h,p=(o&&(u+=o[3],c+=o[0]),u+i),d=(Jn(t)&&this._renderBackground(t,t,a,h,n,r),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=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,r,o,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"===o?r-t.width:"center"===o?r-t.width/2:r,h-t.height/2,t.width,t.height);var l=!!s.backgroundColor,n=t.textPadding,i=(n&&(r=Qn(r,o,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=r,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=o,n.textBaseline="middle",n.font=t.font||Nf,n.opacity=R(s.opacity,e.opacity,1),Gn(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,r,o){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=r,l.height=o,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=r,l.height=o),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,Un(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=rn(),Nv=1,Bv={},zv=rn(),Fv=rn(),Vv=0,Yv=1,Hv=2,Wv=["emphasis","blur","select"],Xv=["normal","emphasis","blur","select"],Uv="highlight",Gv="downplay",jv="select",qv="unselect",Zv="toggleSelect",Kv=["emphasis","blur","select"],Qv={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},$v=ov.CMD,Jv=[[],[],[]],t_=Math.sqrt,e_=Math.atan2,i_=Math.sqrt,n_=Math.sin,r_=Math.cos,o_=Math.PI,a_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,s_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;i(Fr,l_=yv),Fr.prototype.applyTransform=function(t){};var l_,h_,u_=Fr,c_=function(){this.cx=0,this.cy=0,this.r=0},p_=(i(Hr,h_=yv),Hr.prototype.getDefaultShape=function(){return new c_},Hr.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)},Hr);p_.prototype.type="circle";var d_,f_=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},g_=(i(Wr,d_=yv),Wr.prototype.getDefaultShape=function(){return new f_},Wr.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(i-r,n),t.bezierCurveTo(i-r,n-a,i-o,n-e,i,n-e),t.bezierCurveTo(i+o,n-e,i+r,n-a,i+r,n),t.bezierCurveTo(i+r,n+a,i+o,n+e,i,n+e),t.bezierCurveTo(i-o,n+e,i-r,n+a,i-r,n),t.closePath()},Wr);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,C_=Math.max,M_=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(Gr,y_=yv),Gr.prototype.getDefaultShape=function(){return new k_},Gr.prototype.buildPath=function(t,e){Ur(t,e)},Gr.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Gr);A_.prototype.type="sector";var D_,P_=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},O_=(i(jr,D_=yv),jr.prototype.getDefaultShape=function(){return new P_},jr.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},jr);O_.prototype.type="ring";var L_,E_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},R_=(i(Zr,L_=yv),Zr.prototype.getDefaultShape=function(){return new E_},Zr.prototype.buildPath=function(t,e){qr(t,e,!0)},Zr);R_.prototype.type="polygon";var N_,B_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},z_=(i(Kr,N_=yv),Kr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Kr.prototype.getDefaultShape=function(){return new B_},Kr.prototype.buildPath=function(t,e){qr(t,e,!1)},Kr);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(Qr,F_=yv),Qr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Qr.prototype.getDefaultShape=function(){return new Y_},Qr.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(i=(o=Vn(V_,e,this.style)).x1,n=o.y1,r=o.x2,o):(i=e.x1,n=e.y1,r=e.x2,e)).y2;var i,n,r,o,e=e.percent;0!==e&&(t.moveTo(i,n),e<1&&(r=i*(1-e)+r*e,o=n*(1-e)+o*e),t.lineTo(r,o))},Qr.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Qr);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(Jr,U_=yv),Jr.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Jr.prototype.getDefaultShape=function(){return new X_},Jr.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=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&&(re(i,a,r,e,W_),a=W_[1],r=W_[2],re(n,s,o,e,W_),s=W_[1],o=W_[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(Jt(i,a,l,r,e,W_),a=W_[1],l=W_[2],r=W_[3],Jt(n,s,h,o,e,W_),s=W_[1],h=W_[2],o=W_[3]),t.bezierCurveTo(a,s,l,h,r,o)))},Jr.prototype.pointAt=function(t){return $r(this.shape,t,!1)},Jr.prototype.tangentAt=function(t){return t=$r(this.shape,t,!0),nt(t,t)};var U_,G_=Jr;G_.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(to,j_=yv),to.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},to.prototype.getDefaultShape=function(){return new q_},to.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+i,l*r+n),t.arc(i,n,r,o,a,!e)},to);Z_.prototype.type="arc",i(eo,K_=yv),eo.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()},eo.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)},eo.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},eo.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},eo.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yv.prototype.getBoundingRect.call(this)};var K_,Q_=eo;io.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var $_=io;i(no,J_=$_);var J_,tx=no;i(ro,ex=$_);var ex,ix,$_=ro,nx=[0,0],rx=[0,0],ox=new Sg,ax=new Sg,sx=(oo.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,t),i[3].set(r,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])},oo.prototype.intersect=function(t,e){var i=!0,n=!e;return ox.set(1/0,1/0),ax.set(0,0),!this._intersectCheckOneSide(this,t,ox,ax,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,ox,ax,n,-1)&&(i=!1,n)||n||Sg.copy(e,i?ox:ax),i},oo.prototype._intersectCheckOneSide=function(t,e,i,n,r,o){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,rx),nx[1]<rx[0]||rx[1]<nx[0]){if(a=!1,r)return a;var h=Math.abs(rx[0]-nx[1]),u=Math.abs(nx[0]-rx[1]);Math.min(h,u)>n.len()&&(h<u?Sg.scale(n,l,-h*o):Sg.scale(n,l,u*o))}else i&&(h=Math.abs(rx[0]-nx[1]),u=Math.abs(nx[0]-rx[1]),Math.min(h,u)<i.len())&&(h<u?Sg.scale(i,l,h*o):Sg.scale(i,l,-u*o))}return a},oo.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++)var h=e[l].dot(n)+r[t],a=Math.min(h,a),s=Math.max(h,s);i[0]=a,i[1]=s},oo),lx=[],py=(i(ao,ix=py),ao.prototype.traverse=function(t,e){t.call(e,this)},ao.prototype.useStyle=function(){this.style={}},ao.prototype.getCursor=function(){return this._cursor},ao.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ao.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ao.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ao.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ao.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},ao.prototype.getDisplayables=function(){return this._displayables},ao.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ao.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])},ao.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},ao.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},ao.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},ao),hx=rn(),ux=Math.max,cx=Math.min,px={},dx=function(t,e){function n(t){return t=r.call(this,t)||this,t.applyTransform=o.applyTransform,t.buildPath=o.buildPath,t}var r,o=Yr(t,e);return i(n,r=u_),n},fx=Hn;yo("circle",p_),yo("ellipse",g_),yo("sector",A_),yo("ring",O_),yo("polygon",R_),yo("polyline",z_),yo("rect",Iv),yo("line",H_),yo("bezierCurve",G_),yo("arc",Z_);var gx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:G_,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:Co,clipPointsByRect:ko,clipRectByRect:Ao,createIcon:Do,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:To,groupTransition:Io,initProps:ho,isElementRemoved:uo,lineLineIntersect:Po,linePolygonIntersect:function(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Po(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,removeElement:co,removeElementWithFadeOut:function(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||po(t,e,i,n)}):po(t,e,i,n)},resizePath:bo,setTooltipConfig:Oo,subPixelOptimize:fx,subPixelOptimizeLine:So,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]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),n=Co(["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0],e,i);return Math.abs(n[0])>Math.abs(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"},traverseElements:Eo,updateProps:lo}),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=rn(),bx=["textStyle","color"],Sx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Tx=new Pv,fx=(Wo.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(bx):null)},Wo.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},Wo.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()},Wo),Cx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mx=yn(Cx),Ix=(Xo.prototype.getLineStyle=function(t){return Mx(this,t)},Xo),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=(Uo.prototype.getItemStyle=function(t,e){return Ax(this,t,e)},Uo);Go.prototype.init=function(t,e,i){},Go.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Go.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Go.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},Go.prototype.getModel=function(t,e){var i=null!=t,t=i?this.parsePath(t):null;return new Go(i?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Go.prototype.isEmpty=function(){return null==this.option},Go.prototype.restoreData=function(){},Go.prototype.clone=function(){return new this.constructor(a(this.option))},Go.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Go.prototype.resolveParentPath=function(t){return t},Go.prototype.isAnimationEnabled=function(){if(!Pf.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Go.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=Go;cn(Ox),Ux=Ox,Px=["__\0is_clz",gm++].join("_"),Ux.prototype[Px]=!0,Ux.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;qo(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:". "}}}}),qo(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}"},Ux="{yyyy}-{MM}-{dd}",Gx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ux,hour:Ux+" "+Xx.hour,minute:Ux+" "+Xx.minute,second:Ux+" "+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,rw,ow=rn(),aw=(i(Ma,ew=Ox),Ma.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},Ma.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ca(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&Ta(t,n,i)},Ma.prototype.mergeOption=function(t,e){s(this.option,t,!0);var i=Sa(this);i&&Ta(this.option,t,i)},Ma.prototype.optionUpdated=function(t,e){},Ma.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[fm])return t.defaultOption;var e=ow(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;0<=a;a--)o=s(o,i[a],!0);e.defaultOption=o}return e.defaultOption},Ma.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)},Ma.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")}},Ma.prototype.getZLevelKey=function(){return""},Ma.prototype.setZLevel=function(t){this.option.zlevel=t},Ma.protoInitialize=((Ix=Ma.prototype).type="component",Ix.id="",Ix.name="",Ix.mainType="",Ix.subType="",void(Ix.componentIndex=0)),Ma);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},rw=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 r(t){0===--h[t].entryCount&&c.push(t)}function o(t){p[t]=!0,r(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,i,n=Ia(s,t),r=n.originalDeps=rw(t),r=(e=a,i=[],f(r,function(t){0<=u(e,t)&&i.push(t)}),i);n.entryCount=r.length,0===n.entryCount&&l.push(t),f(r,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?o:r)}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=rn(),Sw=X(),Tw=rn(),Cw=(rn(),Pa.prototype.getColorFromPalette=function(t,e,i){var n=Gi(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=Tw;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=null!=i&&r?Oa(r,i):n)||n)&&r.length?(i=r[o],t&&(e[t]=i),a.paletteIdx=(o+1)%r.length,i):void 0},Pa.prototype.clearColorPalette=function(){var t,e;(e=Tw)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Pa),Mw="\0_ec_inner",Iw=(i(La,uw=Ox),La.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new Ox(n),this._locale=new Ox(r),this._optionManager=o},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,r=this._optionManager;return t&&"recreate"!==t||(i=r.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=r.getTimelineOption(this))&&(n=!0,this._mergeOption(i,e)),t&&"recreate"!==t&&"media"!==t||(i=r.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,r=this._componentsCount,o=[],h=X(),u=e&&e.replaceMergeMainTypeMap;bw(this).datasetMap=X(),f(t,function(t,e){null!=t&&(aw.hasClass(e)?e&&(o.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)&&(o.push(e),h.set(e,!0))}),aw.topologicalTravel(o,aw.getAllClassMainTypes(),function(e){var o,a=function(t,e,i){return(e=(e=Sw.get(e))&&e(t))?i.concat(e):i}(this,e,Gi(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),r.set(e,0),[]),p=[],d=0;f(s,function(t,i){var n=t.existing,r=t.newOption;if(r){var a=aw.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(o)return;o=!0}n&&n.constructor===a?(n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1)):(i=l({componentIndex:i},t.keyInfo),l(n=new a(r,this,this,i),i),t.brandNew&&(n.__requireNewView=!0),n.init(r,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),r.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=Gi(e),r=n.length,o=!1,a=r-1;0<=a;a--)n[a]&&!tn(n[a])?o=!0:(n[a]=null,o||r--);n.length=r,t[i]=n}}),delete t[Mw],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,r,o,a=t.mainType;return a&&(e=t.index,i=t.id,n=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],f(Gi(e),function(t){r[t]&&o.push(r[t])})):o=null!=i?Ea("id",i,r):null!=n?Ea("name",n,r):m(r,function(t){return!!t}),Ra(o,t)):[]},La.prototype.findComponents=function(t){var e,i=t.query,n=t.mainType,r=(r=n+"Index",o=n+"Id",e=n+"Name",!(i=i)||null==i[r]&&null==i[o]&&null==i[e]?null:{mainType:n,index:i[r],id:i[o],name:i[e]}),o=r?this.queryComponents(r):m(this._componentsMap.get(n),function(t){return!!t});return i=Ra(o,t),t.filter?m(i,t.filter):i},La.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(w(t)){var r=e,o=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}})}else for(var a=b(t)?n.get(t):C(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 r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,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 r=this._componentsMap.get("series")[n];t.call(e,r,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[Mw]=1,t._componentsMap=X({series:[]}),t._componentsCount=X();var i,n,r=e.aria;C(r)&&null==r.enabled&&(r.enabled=!0),i=e,r=t._theme.option,n=i.color&&!i.colorLayer,f(r,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,Cw);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,r){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(Gi(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(Gi(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 r,o,a=[],s=t.baseOption,l=t.timeline,h=t.options,u=t.media,c=!!t.media,p=!!(h||l||s&&s.timeline);return s?(o=s).timeline||(o.timeline=l):((p||c)&&(t.options=t.media=null),o=t),c&&x(u)&&f(u,function(t){t&&t.option&&(t.query?a.push(t):r=r||t)}),n(o),f(h,n),f(a,function(t){return n(t.option)}),{baseOption:o,timelineOptions:h||[],mediaDefault:r,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,r=this._mediaDefault,o=[],s=[];if(n.length||r){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},r=!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)||(r=!1))}),r}(n[u].query,e,i)||o.push(u);(o=!o.length&&r?[-1]:o).length&&(l=o,h=this._currentMediaIndices,l.join(",")!==h.join(","))&&(s=g(o,function(t){return a((-1===t?r:n[t]).option)})),this._currentMediaIndices=o}return s},Fa),Rw=f,Nw=C,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,r=i.sourceFormat,o=i.seriesLayoutBy,a=i.startIndex,i=i.dimensionsDefine;l(t,kw[gs(r,o)]),r===mw?(t.getItem=Hw,t.count=Xw,t.fillStorage=Ww):(n=us(r,o),t.getItem=$f(n,null,e,a,i),n=ps(r,o),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,r=n*t,o=0;o<n;o++)e[o]=i[r+o];return e},Ww=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;a<o;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=r[p*o+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]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},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,Uw=ss;(Ux={})[fw+"_"+_w]=function(t,e,i,n){return t[n+e]},Ux[fw+"_"+xw]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},Ux[gw]=hs,Ux[yw]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=t[i[a].name];o[a]=s?s[n]:null}return o},Ux[dw]=hs;var Gw=Ux;(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),r=i.getRawIndex(t),o=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:o,dataIndex:r,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,r,o){e=e||"normal";var a=this.getData(i),i=this.getDataParams(t,i);return o&&(i.value=o.interpolatedValue),null!=n&&x(i.value)&&(i.value=i.value[n]),w(r=r||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(i.status=e,i.dimensionIndex=n,r(i)):b(r)?ma(r,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=o&&x(o.interpolatedValue)&&0<=(i=a.getDimensionIndex(i))?o.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,r=this._upstream,o=t&&t.skip,a=(this._dirty&&r&&((a=this.context).data=a.outputData=r.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(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(o)),this._modBy=l,this._modDataCount=h,a=t&&t.step,this._dueEnd=r?r._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(!o&&(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,r){rb.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:rb.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,rb=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}},ob=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=(Cs.prototype.evaluate=function(t){return T(t)?this._opFn(t,this._rvalFloat):this._opFn(Vi(t),this._rvalFloat)},Cs);Ms.prototype.evaluate=function(t,e){var i=T(t)?t:Vi(t),n=T(e)?e:Vi(e),r=isNaN(i),o=isNaN(n);return r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o&&(r=b(t),o=b(e),r&&(i=o?t:0),o)&&(n=r?e:0),i<n?this._resultLT:n<i?-this._resultLT:0};var lb=Ms;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(),r=this.defaultDimValueGetter=ub[n.sourceFormat];this._dimValueGetter=i||r,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,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new yb[e||"float"](this._rawCount),this._rawExtent[r]=Ns(),r},zs.prototype.collectOrdinalMeta=function(t,e){for(var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length,s=(0===o&&(r[t]=Ns()),r[t]),l=o;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,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;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<r;p++){var d=n[p],f=ub.arrayRows.call(this,t[c]||h,d.property,c,p),g=(i[p][u]=f,o[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,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),h=0;h<a;h++){var u=o[h];s[h]||(s[h]=Ns()),Bs(r,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=n.getItem(p,c),d=0;d<a;d++){var f=r[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!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 r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;r<o;r++)i.push(this.get(n[r],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 r=this.get(t,i);isNaN(r)||(e+=r)}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,r=this._count-1;n<=r;){var o=(n+r)/2|0;if(e[o]<t)n=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},zs.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],r=[];if(n){null==i&&(i=1/0);for(var o=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<o||c===o&&0<=u&&a<0)&&(o=c,a=u,s=0),u===a)&&(r[s++]=l)}r.length=s}return r},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),r=0;r<i;r++)n[r]=t[r];else n=new e(t.buffer,0,i)}else for(n=new(e=Rs(this._rawCount))(this.count()),r=0;r<n.length;r++)n[r]=r;return n},zs.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=new(Rs(i._rawCount))(n),o=[],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++)o[d]=h[t[d]][p];o[d]=u,c=e.apply(null,o)}c&&(r[s++]=p)}return s<n&&(i._indices=r),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),r=n.length;if(!r)return this;var o=e.count(),a=new(Rs(e._rawCount))(o),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===r){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===r){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===r)for(f=0;f<o;f++){var w=e.getRawIndex(f);(h<=(_=c[n[0]][w])&&_<=u||isNaN(_))&&(a[s++]=w)}else for(f=0;f<o;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<r;S++){var T=n[S];((_=c[T][w])<t[T][0]||_>t[T][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(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,r=[],o=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<o;p++)s[p]=n[e[p]][c];s[o]=u;var d=i&&i.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),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),r=n._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),h=new(Rs(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));h[a++]=l;for(var u=1;u<o-1;u+=s){for(var c=Math.min(u+s,o-1),p=Math.min(u+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[T=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=u,m=Math.min(u+s,o),v=u-1,_=r[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var T,y=r[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(o-1),n._count=a,n._indices=h,n.getRawIndex=this._getRawIdx,n},zs.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],h=this.count(),u=r._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 r._count=p,r._indices=c,r._updateGetRawIdx(),r},zs.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=r,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(r=this._extent[t])return r.slice();for(var r,o=(r=i)[0],a=r[1],s=0;s<n;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,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,r=0;r<n.length;r++)i.push(n[r][e]);return i},zs.prototype.clone=function(t,e){var i,n,r=new zs,o=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(i=o[s],n=void 0,(n=i.constructor)===Array?i.slice():new n(i)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},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,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),h=!!l.length;Hs(s)?(n=s,r=t=o=void 0,e=h?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=I(o=n.get("data",!0))?mw:dw,[]),n=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=E(n.seriesLayoutBy,r.seriesLayoutBy)||null,i=E(n.sourceHeader,r.sourceHeader),n=E(n.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!i!=!!r.sourceHeader||n?[es(o,{seriesLayoutBy:a,sourceHeader:i,dimensions:n},t)]:[]):(o=s,e=h?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[es(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Vs.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),r=i.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&Ws(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Ws(""),o.push(e),s.push(t._getVersionSign())}),n?e=Ls(n,o,i.componentIndex):null!=r&&(e=[new Yw({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},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,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[i];return r||(n=this._getUpstreamSourceManagers()[0],Hs(this._sourceHost)&&n?r=n._innerGetDataStore(t,e,i):(r=new mb).initData(new Uw(e,t.length),t),o[i]=r),r},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=rn();i(nl,Tb=aw),nl.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=_s({count:ol,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,rl(this),this._initSelectedMapFromData(t)},nl.prototype.mergeDefaultAndTheme=function(t,e){var i=Sa(this),n=i?Ca(t):{},r=this.subType;aw.hasClass(r),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,rl(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 Cw.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,r=this.getData(e);if("series"===n||"all"===i)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=il(r,t[o]);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 r=t[e[n]];0<=r&&i.push(r)}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,r=e.length;if(n&&r)if("series"===n)i.selectedMap="all";else if("multiple"===n){C(i.selectedMap)||(i.selectedMap={});for(var o=i.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=il(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==n&&!0!==n||(s=il(t,n=e[r-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=((Ux=nl.prototype).type="series.__base__",Ux.seriesIndex=0,Ux.ignoreStyleOnData=!1,Ux.hasSymbolVisual=!1,Ux.defaultSymbol="circle",Ux.visualStyleAccessPath="itemStyle",void(Ux.visualDrawType="fill"));var Tb,Cb=nl;p(Cb,Kw),p(Cb,Cw),pn(Cb,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 Mb=cl;cn(Mb),gn(Mb);var Ib=rn(),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){Eo(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=rn(),Rb={itemStyle:yn(kx,!0),lineStyle:yn(Cx,!0)},Nb={lineStyle:"stroke",itemStyle:"fill"},Ix={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=wl(t,n)(r),r=r.getShallow("decal"),a=(r&&(i.setVisual("decal",r),r.dirty=!0),bl(t,n)),r=o[a],s=w(r)?r:null,n="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!n||(r=t.getColorFromPalette(t.name,null,e.getSeriesCount()),o[a]||(o[a]=r,i.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||w(o.fill)?r:o.fill,o.stroke="auto"===o.stroke||w(o.stroke)?r:o.stroke),i.setVisual("style",o),i.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=l({},o);r[a]=s(n),e.setItemVisual(i,"style",r)}}}},Bb=new Ox,mm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,n,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=wl(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var o=t.getRawDataItem(e);o&&o[i]&&(Bb.option=o[i],o=n(Bb),l(t.ensureUniqueItemVisual(e,"style"),o),Bb.option.decal&&(t.setItemVisual(e,"decal",Bb.option.decal),Bb.option.decal.dirty=!0),r in o)&&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,r,o,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(i=e.getRawData(),n={},r=e.getData(),o=Eb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bl(e,a),r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(t){var a,l=n[t];r.getItemVisual(l,"colorFromPalette")&&(l=r.ensureUniqueItemVisual(l,"style"),t=i.getName(t)||t+"",a=i.count(),l[s]=e.getColorFromPalette(t,o,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,r=t.get("large")&&n>=t.get("largeThreshold"),n="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:e,modDataCount:n,large:r}},Sl.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=X();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,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 r=t.get(n.uid)||t.set(n.uid,{});z(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},Sl.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},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 r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var o=!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){r(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)&&(o=!0)):l&&l.each(function(s,l){r(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)&&(o=!0)}))}),this.unfinished=o||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 r(e){var r=e.uid,r=s.set(r,a&&a.get(r)||_s({plan:kl,reset:Al,count:Pl}));r.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,r)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=X(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(r):e?i.eachRawSeriesByType(e,r):l&&l(i,n).each(r)},Sl.prototype._createOverallStageTask=function(t,e,i,n){function r(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,_s({reset:Cl,onDirty:Il})));e.context={model:t,overallProgress:u},e.agent=a,e.__block=u,o._pipe(t,e)}var o=this,a=e.overallTask=e.overallTask||_s({reset:Tl}),s=(a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o},a.agentStubMap),l=a.agentStubMap=X(),e=t.seriesType,h=t.getTargetSeries,u=!0,c=!1;z(!t.createOnAllSeries,""),e?i.eachRawSeriesByType(e,r):h?h(i,n).each(r):(u=!1,f(i.getSeries(),r)),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=jo("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"],Ux={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",Cx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],fx={darkMode:!0,color:Cx,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:Cx},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"}}},Ub=(fx.categoryAxis.splitLine.show=!1,El.prototype.normalizeQuery=function(t){var e,i,n,r={},o={},a={};return b(t)?(e=un(t),r.mainType=e.main||null,r.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))&&(r.mainType=u,r[h.toLowerCase()]=t,s=!0)}n.hasOwnProperty(e)&&(o[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:r,dataQuery:o,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,r,o,a,s,l=this.eventInfo;return!l||(n=l.targetEl,r=l.packedEvent,o=l.model,l=l.view,!o)||!l||(a=e.cptQuery,s=e.dataQuery,i(a,o,"mainType")&&i(a,o,"subType")&&i(a,o,"index","componentIndex")&&i(a,o,"name")&&i(a,o,"id")&&i(s,r,"name")&&i(s,r,"dataIndex")&&i(s,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,n,r)))},El.prototype.afterTrigger=function(){this.eventInfo=null},El),Gb=["symbol","symbolSize","symbolRotate","symbolOffset"],jb=Gb.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,r={},o={},a=!1,s=0;s<Gb.length;s++){var h=Gb[s],u=t.get(h);w(u)?(a=!0,o[h]=u):r[h]=u}if(r.symbol=r.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t))return n=v(o),{dataEach:a?function(e,i){for(var r=t.getRawValue(i),a=t.getDataParams(i),s=0;s<n.length;s++){var l=n[s];e.setItemVisual(i,l,o[l](r,a))}}:null}}}},Cx={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 r=jb[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}: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,r=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+r,n+e),t.lineTo(i-r,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,r=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+r,n),t.lineTo(i,n+e),t.lineTo(i-r,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,r=e.width/5*3,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=n-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),h=Math.cos(a),u=.6*r,c=.7*r;t.moveTo(i-s,e+o),t.arc(i,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(i+s-l*u,e+o+h*u,i,n-c,i,n),t.bezierCurveTo(i,n-c,i-s+l*u,e+o+h*u,i-s,e+o),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,r=e.x,e=e.y,n=n/3*2;t.moveTo(r,e),t.lineTo(r+n,e+i),t.lineTo(r,e+i/4*3),t.lineTo(r-n,e+i),t.lineTo(r,e),t.closePath()}}),eS={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){i=Math.min(i,n),r.x=t,r.y=e,r.width=i,r.height=i},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.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,r=e.symbolType;"none"!==r&&(n=(n=iS[r])||iS[r="rect"],eS[r](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,i))}})),rS=new ov(!0),oS=["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,CS,MS,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),CS.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,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(n),t.performDataProcessorTasks(n),IS(this,n),t.performVisualTasks(n),RS(this,this._model,r,"remain",{}),0<(i-=+new Date-o)&&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{C(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=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:r},jS);var n,r,o,a,s={seriesTransition:o,optionChanged:!0};if(i)this[mS]={silent:n,updateParams:s},this[yS]=!1,this.getZr().wakeUp();else{try{bS(this),CS.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,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,i=[],n=this,f(r,function(t){e.eachComponent({mainType:t},function(t){t=n._componentsMap[t.__viewId],t.group.ignore||(i.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(i,function(t){t.group.ignore=!1}),r;this.id},ph.prototype.getConnectedDataURL=function(t){var e,i,n,r,o,s,l,h,u,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,$S[i]?(s=o=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(),o=n(c.left,o),s=n(c.top,s),l=r(c.right,l),h=r(c.bottom,h),u.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(o*=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-o,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-o,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},ph.prototype.convertToPixel=function(t,e){return MS(this,"convertToPixel",t,e)},ph.prototype.convertFromPixel=function(t,e){return MS(this,"convertFromPixel",t,e)},ph.prototype.containPixel=function(t,e){var i;if(!this._disposed)return f(on(this._model,t),function(t,n){0<=n.indexOf("Models")&&f(t,function(t){var r=t.coordinateSystem;r&&r.containPoint?i=i||!!r.containPoint(e):"seriesModels"===n&&(r=this._chartsMap[t.__viewId])&&r.containPoint&&(i=i||r.containPoint(e,t))},this)},this),!!i;this.id},ph.prototype.getVisual=function(t,e){var t=on(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,r=t,o=e;switch(o){case"color":return n.getItemVisual(r,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(r,o)}},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,r,o,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&&(r=i.componentType,o=i.componentIndex,"markLine"!==r&&"markPoint"!==r&&"markArea"!==r||(r="series",o=i.seriesIndex),o=(r=r&&null!=o&&a.getComponent(r,o))&&n["series"===r.mainType?"_chartsMap":"_componentsMap"][r.__viewId],i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:r,view:o},n.trigger(t,i))}e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),f(US,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),CS.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:(C(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=US[t.type],e},ph.prototype.dispatchAction=function(t,e){var i;this._disposed?this.id:(C(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?Mb.getClass(i.main,i.sub):Ab.getClass(i.sub))).init(n,l),a[u]=h,o.push(h),s.add(h.group)),t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||r.prepareView(h,t,n,l)}for(var n=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,h=0;h<o.length;h++)o[h].__alive=!1;for(e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i),h=0;h<o.length;){var u=o[h];u.__alive?h++:(e||u.renderTask.dispose(),s.remove(u.group),u.dispose(n,l),o.splice(h,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},TS=function(t,e,i,n,r){function o(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},r&&(a.subType=r),null!=(r=i.excludeSeriesId)&&(s=X(),f(Gi(r),function(t){null!=(t=$i(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var n,r,o=s&&null!=s.get(e.id);if(!o)if(Er(i))if(e instanceof Cb){if(i.type===Uv&&!i.notBlur&&!e.get(["emphasis","disabled"])){var o=e,a=i,l=t._api,h=o.seriesIndex,u=o.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?Tr(h,(a=Rv(c)).focus,a.blurScope,l):(a=o.get(["emphasis","focus"]),o=o.get(["emphasis","blurScope"]),null!=a&&Tr(h,a,o,l))}}}else h=Mr(e.mainType,e.componentIndex,i.name,t._api),a=h.focusSelf,o=h.dispatchers,i.type===Uv&&a&&!i.notBlur&&Cr(e.mainType,e.componentIndex,t._api),o&&f(o,function(t){(i.type===Uv?yr:mr)(t)});else Lr(i)&&e instanceof Cb&&(l=e,o=i,t._api,Lr(o)&&(n=o.dataType,x(r=nn(l.getData(n),o))||(r=[r]),l[o.type===Zv?"toggleSelect":o.type===jv?"select":"unselect"](r,n)),Ir(e),zS(t))},t),l&&l.eachComponent(a,function(e){s&&null!=s.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),o)},CS={prepareAndUpdate:function(t){bS(this),CS.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;i&&(i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),o.create(i,n),a.performDataProcessorTasks(i,t),IS(this,i),o.update(i,n),dh(i),a.performVisualTasks(i,t),LS(this,i,n,t,e),o=i.get("backgroundColor")||"transparent",a=i.get("darkMode"),r.setBackgroundColor(o),null!=a&&"auto"!==a&&r.setDarkMode(a),fS.trigger("afterupdate",i,n))},updateTransform:function(t){var e,i,n=this,r=this._model,o=this._api;r&&(r.setUpdatePayload(t),e=[],r.eachComponent(function(i,a){"series"!==i&&(i=n.getViewOfComponentModel(a))&&i.__alive&&(!i.updateTransform||(a=i.updateTransform(a,r,o,t))&&a.update)&&e.push(i)}),i=X(),r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,r,o,t))&&a.update)&&i.set(e.uid,1)}),dh(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:i}),RS(this,r,o,t,{},i),fS.trigger("afterupdate",r,o))},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,r){"series"!==n&&(n=e.getViewOfComponentModel(r))&&n.__alive&&n.updateVisual(r,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){CS.update.call(this,t)}},MS=function(t,e,i,n){if(t._disposed)t.id;else for(var r=t._model,o=t._coordSysMgr.getCoordinateSystems(),a=on(r,i),s=0;s<o.length;s++){var l=o[s];if(l[e]&&null!=(l=l[e](r,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,r=this,o=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})),[]),_=Lr(t),x=Er(t);if(x&&Sr(this._api),f(p,function(e){var n,o;(i=(i=u.action(e,r._model,r._api))||l({},e)).type=c.event||i.type,v.push(i),x?(n=(o=an(t)).queryOptionMap,o=o.mainTypeSpecified?n.keys()[0]:"series",TS(r,d,e,o),zS(r)):_?(TS(r,d,e,"series"),zS(r)):y&&TS(r,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[mS]?(bS(this),CS.update.call(this,t),this[mS]=null):CS[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=[],o.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,r,o,a=Bl(t.target,Or);a&&(a=a,i=t,t=e._api,n=Rv(a),r=(o=Mr(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,r?(o&&Cr(n.componentMainType,n.componentIndex,t),f(r,function(t){return fr(t,i)})):(Tr(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&Cr(n.componentMainType,n.componentIndex,t),fr(a,i)),zS(e))}).on("mouseout",function(t){var i,n,r=Bl(t.target,Or);r&&(r=r,i=t,Sr(t=e._api),(n=Mr((n=Rv(r)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?f(n,function(t){return gr(t,i)}):gr(r,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,r){var o,a,s,l,h,u,c;h=[],c=!(u=[]),(o=e).eachComponent(function(t,e){var i=e.get("zlevel")||0,n=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?u:h).push({zlevel:i,z:n,idx:e.componentIndex,type:t,key:r})}),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=o.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,r),f(t._chartsViews,function(t){t.__alive=!1}),RS(t,e,i,n,r),f(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},ES=function(t,e,i,n,r,o){f(o||t._componentsViews,function(t){var r=t.__model;yh(0,t),t.render(r,e,i,n),gh(r,t),mh(r,t)})},RS=function(t,e,i,n,r,o){var a,s,h,u,c=t._scheduler,p=(r=l(r||{},{updatedSeries:e.getSeries()}),fS.trigger("series:beforeupdate",e,i,r),!1);e.eachSeries(function(e){var i,r=t._chartsMap[e.__viewId],a=(r.__alive=!0,r.renderTask);c.updatePayload(a,n),yh(0,r),o&&o.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),r.group.silent=!!e.get("silent"),a=r,i=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=i)}),Ir(e)}),c.unfinished=p||c.unfinished,fS.trigger("series:layoutlabels",e,i,r),fS.trigger("series:transition",e,i,r),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,r)},zS=function(t){t[vS]=!0,t.getZr().wakeUp()},FS=function(t){t[vS]&&(t.getZr().storage.traverse(function(t){uo(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){yr(e,i),zS(t)},e.prototype.leaveEmphasis=function(e,i){mr(e,i),zS(t)},e.prototype.enterBlur=function(e){vr(e),zS(t)},e.prototype.leaveBlur=function(e){_r(e),zS(t)},e.prototype.enterSelect=function(e){xr(e),zS(t)},e.prototype.leaveSelect=function(e){wr(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(US,function(i,n){t._messageCenter.on(n,function(i){var n,r;!$S[t.group]||0===t[xS]||i&&i.escapeConnect||(n=t.makeActionFromEvent(i),r=[],f(QS,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),f(r,function(t){1!==t[xS]&&t.dispatchAction(n)}),e(r,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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),n.off(t,i)},i)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),XS={},US={},GS=[],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,Cx),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,r=new Iv({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=(n.add(r),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:o,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=o.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}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Mh({type:Uv,event:Uv,update:Uv},Z),Mh({type:Gv,event:Gv,update:Gv},Z),Mh({type:jv,event:jv,update:jv},Z),Mh({type:qv,event:qv,update:qv},Z),Mh({type:Zv,event:Zv,update:Zv},Z),xh("light",Ux),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),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=n[o],l=i[s],h=Eh(l);1<h?(a=l.shift(),1===l.length&&(i[s]=l[0]),this._update&&this._update(a,o)):1===h?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},Nh.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[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(o,n)},Nh.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=Eh(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},Nh.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[n](t[o],o);r||(i[o]=l),e&&(0===(s=Eh(a=e[l]))?(e[l]=o,r&&i.push(l)):1===s?e[l]=[a,o]:a.push(o))}};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 rT,oT,aT,sT,lT,hT,uT,cT=Bh,pT=function(t){this.otherDims={},null!=t&&l(this,t)},dT=rn(),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="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,h=void 0,u=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,h=c.type,u=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,h=s.type),r.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:r,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,r=this.dimensions[i];r&&r.storeDimIndex===e?(r.isCalculationCoord||(n=r.name),i++):(r=this.getSourceDimension(e))&&(n=r.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=C,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,r,o=this;(n=t instanceof mb?t:n)||(r=this.dimensions,t=ts(t)||d(t)?new Uw(t,r.length):t,n=new mb,r=mT(r,function(t){return{type:o._dimInfos[t].type,property:t}}),n.initData(t,r,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,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=i;o<n;o++)this._nameList[o]=e[o-i],r&&uT(this,o)},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),r=this._idList;if(i.getSource().sourceFormat===dw&&!i.pure)for(var o=[],a=t;a<e;a++){var s,l=i.getItem(a,o);this.hasItemOption||!C(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==r[a])&&null!=l&&(r[a]=$i(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)uT(this,a);rT(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 oT(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 r=e._getStoreDimIndex(n);i[r]=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 r=hT(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},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 oT(t,e)},function(t){return oT(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,r,o,a=this.hostModel&&this.hostModel.seriesIndex;i=a,n=this.dataType,r=t,(a=e)&&((o=Rv(a)).dataIndex=r,o.dataType=n,o.seriesIndex=i,o.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=Rv(t),t.seriesIndex=i,t.dataIndex=r,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=(rT=function(t){var e=t._invertedIndicesMap;f(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new vT(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},aT=function(t,e,i){return $i(t._getCategory(e,i),null)},oT=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,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];null==a&&null!=r&&(i[e]=a=aT(t,r,e)),null==s&&null!=o&&(n[e]=s=aT(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(i=t._nameRepeatCount)[a]=(i[a]||0)+1)&&(s+="__ec__"+r),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 r=t.getReferringComponents("xAxis",cm).models[0],t=t.getReferringComponents("yAxis",cm).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",t),Gh(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),Gh(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),Gh(t)&&(n.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var t=t.getReferringComponents("polar",cm).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",t),Gh(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),Gh(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 r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=r.getComponent("parallelAxis",t),s=o[a];i.set(s,t),Gh(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 CT=0,MT=($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 ou(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=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[i[r]=s]=r}for(var l=0;r<o;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}}},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 ou(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,r=this._intervalPrecision,o=[];if(e){i[0]<n[0]&&o.push(t?{value:DT(n[0]-e,r)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(o.push({value:a}),(a=DT(a+e,r))!==o[o.length-1].value);)if(1e4<o.length)return[];var s=o.length?o[o.length-1].value:n[1];i[1]>s&&o.push(t?{value:DT(s+e,r)}:{value:i[1]})}return o},hu.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],h=(o.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,r=n[1]-n[0];isFinite(r)&&(r<0&&n.reverse(),r=eu(n,t,e,i),this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.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 Qo(t.value,Gx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ko(this._minLevelUnit))]||Gx.second,e,this.getSetting("locale"))},gu.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),r=this.getSetting("locale"),o=null;if(b(i))o=i;else if(w(i))o=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=$o(t.value,n);if(u[c])o=u[c];else if(u.inherit){for(s=qx.indexOf(c)-1;0<=s;--s)if(u[c]){o=u[c];break}o=o||a.none}x(o)&&(e=null==t.level?0:0<=t.level?t.level:o.length+t.level,o=o[e=Math.min(e,o.length-1)])}return Qo(new Date(t.value),o,n,r)},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 r=qx,o=0,a=[],s=[],l=0,h=0,u=0;u<r.length&&o++<1e4;++u){var c=Ko(r[u]);if(function(t){return t===Ko(t)}(r[u])){!function(t,r,o){var a=[],s=!r.length;if(!function(t,e,i,n){function r(t){return Jo(c,t,n)===Jo(p,t,n)}function o(){return r("year")}function a(){return o()&&r("month")}function s(){return a()&&r("day")}function l(){return s()&&r("hour")}function h(){return l()&&r("minute")}function u(){return h()&&r("second")}var c=Ni(e),p=Ni(i);switch(t){case"year":return o();case"month":return a();case"day":return s();case"hour":return l();case"minute":return h();case"second":return u();case"millisecond":return u()&&r("millisecond")}}(Ko(t),n[0],n[1],i)){s&&(r=[{value:function(t,e,i){var n=new Date(t);switch(Ko(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<r.length-1;u++){var c=r[u].value,p=r[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=ra(i),g=ua(i);break;case"second":d=yu(e,!1),f=oa(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<o.length&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u])}}(r[u],a[a.length-1]||[],s);if(c!==(r[u+1]?Ko(r[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===r[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 r=i+n>>>1;t[r][1]<e?i=1+r:n=r}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 ou(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,UT=(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 ou(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=UT.prototype,Kb.getMinorTicks=FT.getMinorTicks,Kb.getLabel=FT.getLabel,TT.registerClass(UT),_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,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),r=(null==r&&(r=e.get("startValue",!0)),this._modelMinRaw=r),r=(w(r)?this._modelMinNum=xu(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=xu(t,r)),this._modelMaxRaw=e.get("max",!0));w(r)?this._modelMaxNum=xu(t,r({min:i[0],max:i[1]})):"dataMax"!==r&&(this._modelMaxNum=xu(t,r)),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,r=this._boundaryGapInner,o=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-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),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),r=this._determinedMax;return null!=i&&(a=i,l=!0),null!=r&&(s=r,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 GT=_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 Uh(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 Fo(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qh,enableDataStack:jh,getStackedDimension:Zh},enableHoverEmphasis:kr,getECData:Rv,getLayoutRect:ba,mixinAxisModelCommonMethods:function(t){p(t,ZT)}}),KT=[],QT={registerPreprocessor:wh,registerProcessor:bh,registerPostInit:Sh,registerPostUpdate:Th,registerUpdateLifecycle:Ch,registerAction:Mh,registerCoordinateSystem:Ih,registerLayout:kh,registerVisual:Ah,registerTransform:Lh,registerLoading:Ph,registerMap:Oh,registerImpl:function(t,e){gS[t]=e},PRIORITY:$b,ComponentModel:aw,ComponentView:Mb,SeriesModel:Cb,ChartView:Ab,registerComponentModel:function(t){aw.registerClass(t)},registerComponentView:function(t){Mb.registerClass(t)},registerSeriesModel:function(t){Cb.registerClass(t)},registerChartView:function(t){Ab.registerClass(t)},registerSubTypeDefaulter:function(t,e){aw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ci(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 tC,eC,iC=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},nC=function(t){this.type="linestring",this.points=t},rC=(i(Nu,tC=tS),Nu.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var r=e[n],o=r.exterior,o=o&&o.length;i<o&&(t=r,i=o)}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,r=i.length;n<r;n++){var o=i[n];if("polygon"===o.type){var a=o.exterior,s=o.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 r=this.getBoundingRect(),o=r.width/r.height,o=(i?n=n||i/o:i=o*n,new Og(t,e,i,n)),a=r.calculateTransform(o),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)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.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,eC=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;)Mt(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}),r=100*n,o=g(e,function(t){return Math.floor(t)}),a=y(o,function(t,e){return t+e},0),s=g(e,function(t,e){return t-o[e]});a<r;){for(var l=Number.NEGATIVE_INFINITY,h=null,u=0,c=s.length;u<c;++u)s[u]>l&&(l=s[u],h=u);++o[h],s[h]=0,++a}return g(o,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 r=t[n].interval,o=t[n].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-i),e=r[a],i=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(n,1):n++}return t},remRadian:Ei,round:Di}),mm=Object.freeze({__proto__:null,format:Qo,parse:Ni}),Dx=Object.freeze({__proto__:null,Arc:Z_,BezierCurve:G_,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:ko,clipRectByRect:Ao,createIcon:Do,extendPath:go,extendShape:fo,getShapeClass:mo,getTransform:To,initProps:ho,makeImage:_o,makePath:vo,mergePath:wo,registerShape:yo,resizePath:bo,updateProps:lo}),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"](),r=e[i+"Month"]()+1,o=e[i+"Date"](),a=e[i+"Hours"](),s=e[i+"Minutes"](),l=e[i+"Seconds"](),e=e[i+"Milliseconds"]();return t=t.replace("MM",Zo(r,2)).replace("M",r).replace("yyyy",n).replace("yy",Zo(n%100+"",2)).replace("dd",Zo(o,2)).replace("d",o).replace("hh",Zo(a,2)).replace("h",a).replace("mm",Zo(s,2)).replace("m",s).replace("ss",Zo(l,2)).replace("s",l).replace("SSS",Zo(e,3))},formatTpl:ma,getTextRect:function(t,e,i,n,r,o,a,s){return new Pv({style:{text:t,font:e,align:i,verticalAlign:n,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:va,normalizeCssArray:Zx,toCamelCase:fa,truncateText:wn}),Cx=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:C,isString:b,map:g,merge:s,reduce:y}),oC=rn(),aC=[0,1],Ux=(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,aC,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,aC,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,r,o,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],r=n[1]={coord:h[1]}):(a=n[l-1].tickValue-n[0].tickValue,o=(n[l-1].coord-n[0].coord)/a,f(n,function(t){t.coord-=o/2}),i=1+(a=i.scale.getExtent())[1]-n[l-1].tickValue,r={coord:n[l-1].coord+o*i},n.push(r)),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],r.coord)&&(t?r.coord=h[1]:n.pop()),t)&&e(r.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(){r=(i=d=this).getLabelModel();var t={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()},e=Tu(d),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=(r=d.scale).getExtent(),r=r.count();if(n[1]-n[0]<1)return 0;for(var o=1,a=(40<r&&(o=Math.max(1,Math.floor(r/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+=o)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=oC(d.model),l=d.getExtent(),d=i.lastAutoInterval,f=i.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-r)<=1&&s<d&&i.axisExtent0===l[0]&&i.axisExtent1===l[1]?s=d:(i.lastTickCount=r,i.lastAutoInterval=s,i.axisExtent0=l[0],i.axisExtent1=l[1]),s},Ku),sC=2*Math.PI,lC=ov.CMD,hC=["top","right","bottom","left"],uC=[],cC=new Sg,pC=new Sg,dC=new Sg,fC=new Sg,gC=new Sg,yC=[],mC=new Sg,vC=["align","verticalAlign","width","height","fontSize"],_C=new Xy,xC=rn(),wC=rn(),bC=["x","y","rotation"],SC=(hc.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},hc.prototype._addLabel=function(t,e,i,n,r){var o,a=n.style,s=n.__hostTarget.textConfig||{},l=n.getComputedTransform(),h=n.getBoundingRect().plain(),l=(Og.applyTransform(h,h,l),l?_C.setLocalTransform(l):(_C.x=_C.y=_C.rotation=_C.originX=_C.originY=0,_C.scaleX=_C.scaleY=1),_C.rotation=On(_C.rotation),n.__hostTarget),u=(l&&(o=l.getBoundingRect().plain(),u=l.getComputedTransform(),Og.applyTransform(o,o,u)),o&&l.getTextGuideLine());this._labelList.push({label:n,labelLine:u,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:h,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:u&&u.ignore,x:_C.x,y:_C.y,scaleX:_C.scaleX,scaleY:_C.scaleY,rotation:_C.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 r=t.getTextContent(),t=Rv(t);r&&!r.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,i,r,n)})},hc.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var r=this._labelList[n],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0,l=w(r.layoutOption)?r.layoutOption(sc(r,a)):r.layoutOption,h=(r.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?(o.x=Ai(l.x,e),o.setStyle("x",0),u=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Ai(l.y,i),o.setStyle("y",0),u=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),u=!1),xC(o).needsUpdateLabelLine=u,o.rotation=null!=l.rotate?l.rotate*h:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<vC.length;p++){var d=vC[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){ec(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},hc.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),i=rc(this._labelList),n=m(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=m(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});oc(n,"x","width",0,e,void 0),oc(r,"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,r=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!n,a=e.getTextContent();(o=!o&&a?xC(a).needsUpdateLabelLine:o)&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)})})},hc.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=Rv(t),r=n.dataIndex;if(i&&null!=r){var i=e.getData(n.dataType),e=i.getItemModel(r),n={},r=i.getItemVisual(r,"style"),r=(r&&(i=i.getVisual("drawType"),n.stroke=r[i]),e.getModel("labelLine")),o=t,a=function(t,e){for(var i={normal:t.getModel(e=e||"labelLine")},n=0;n<Wv.length;n++){var r=Wv[n];i[r]=t.getModel([r,e])}return i}(e),i=n,s=o.getTextGuideLine(),l=o.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_,o.setTextGuideLine(s),y||!c&&u||ic(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),ic(s,!1,f,g)))}s&&(h(s.style,i),s.style.fill=null,i=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=i||!1,s.buildPath=nc)}else s&&o.removeTextGuideLine();ec(t,r)}},hc.prototype._animateLabels=function(t,e){var i,n,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||uo(t))||(o=(r=xC(s)).oldLayout,i=(n=Rv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},n=e.getData(n.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=u(t,"select")&&s.attr(r.oldLayoutSelect),0<=u(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),lo(s,a,e,i)):(s.attr(a),xx(s).valueAnimation||(t=E(s.style.opacity,1),s.style.opacity=0,ho(s,{style:{opacity:t}},e,i))),r.oldLayout=a,s.states.select&&(lc(t=r.oldLayoutSelect={},a,bC),lc(t,s.states.select,bC)),s.states.emphasis&&(lc(t=r.oldLayoutEmphasis={},a,bC),lc(t,s.states.emphasis,bC)),Ho(s,i,n,e,e)),!l||l.ignore||l.invisible||(o=(r=wC(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),lo(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ho(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},hc),TC=rn();Du(uc),i(pc,CC=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 r(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,r=0,o=0;o<a.length;++o){var u=a[o];if(u.intersect(t)){var c=new Og(0,0,0,0);c.copy(u),c.union(t),a[o]=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,r=o)}l&&(a[r].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 o,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)&&r(p),o=d&&(c.__dirty&Wg||!c.__isRendered)?c.getPaintRect():null)&&r(o);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())&&r(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,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i)&&this.ctxBack.scale(i,i)},pc.prototype.clear=function(t,e,i){function n(t,i,n,r){var a;o.clearRect(t,i,n,r),e&&"transparent"!==e&&(a=void 0,A(e)?(a=(e.global||e.__width===n&&e.__height===r)&&e.__canvasGradient||Wl(o,e,{x:0,y:0,width:n,height:r}),e.__canvasGradient=a,e.__width=n,e.__height=r):D(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=$l(o,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,i,n,r),o.restore()),l&&(o.save(),o.globalAlpha=h,o.drawImage(p,t,i,n,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.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(r,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 CC,MC=pc,IC=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 r=0;r<n.length;r++){var o,a=n[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},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,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(i=i||(this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),oh(n,a,r,o===e-1))}n&&n.restore()}},dc.prototype.getHoverLayer=function(){return this.getLayer(1e5)},dc.prototype.paintOne=function(t,e){rh(t,e)},dc.prototype._paintList=function(t,e,i,n){var r,o,a;this._redrawId===n&&(i=i||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,i)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?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(IC).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,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||i)&&r.push(s)}for(var l=!0,h=!1,u=this,c=0;c<r.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 r=t[p];if(r.__inHover&&(h=!0),n._doPaintEl(r,d,o,e,i,p===d.__endIndex-1),m&&15<Date.now()-v)break}i.prevElClipPaths&&f.restore()}var c,p,d=r[a],f=d.ctx,g=o&&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,r,o){e=e.ctx,i?(i=t.getPaintRect(),(!n||i&&i.intersect(n))&&(oh(e,t,r,o),t.setPrevPaintRect(i))):oh(e,t,r,o)},dc.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=IC);var i=this._layers[t];return i||((i=new MC("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,r=this._zlevelList,o=r.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<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=n[r[l]]}r.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 r=i[n];t.call(e,this._layers[r],r)}},dc.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},dc.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},dc.prototype.getLayers=function(){return this._layers},dc.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var n,r=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__||o("ZLevel "+h+" has been used by unkown layer "+u.id),u!==r&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),r=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 r=this._zlevelList[n];r!==t&&r!==t+.01||s(this._layers[r],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),r=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=Ul(r,0,n),e=Ul(r,1,n),i.style.display="",this._width!==t||e!==this._height){for(var o in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(IC).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[IC].dom;var e=new MC("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,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var h=a[s];oh(i,h,o,s===l-1)}return e.dom},dc.prototype.getWidth=function(){return this._width},dc.prototype.getHeight=function(){return this._height};var kC=dc;i(fc,AC=aw),fc.prototype.init=function(t,e,i){AC.prototype.init.call(this,t,e,i),this._sourceManager=new vb(this),Ys(this)},fc.prototype.mergeOption=function(t,e){AC.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 AC,DC=fc;i(gc,PC=Mb),gc.type="dataset";var PC,OC=gc;Du([function(t){t.registerPainter("canvas",kC)},yc]),Du(uc),i(mc,LC=Cb),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,r=.8*t.itemHeight,r=Vl(i,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),n=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?n:t.iconRotate||0);return r.rotation=n*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<i.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.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 LC,EC=mc;i(_c,RC=Jy),_c.prototype._createSymbol=function(t,e,i,n,r){this.removeAll(),r=Vl(t,-1,-1,2,2,null,r),r.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),r.drift=xc,this._symbolType=t,this.add(r)},_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(){yr(this.childAt(0))},_c.prototype.downplay=function(){mr(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 r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,h=_c.getSymbolSize(t,e),u=s!==this._symbolType,c=n&&n.disableAnimation;u?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,h,r)):((o=this.childAt(0)).silent=!1,a={scaleX:h[0]/2,scaleY:h[1]/2},c?o.attr(a):lo(o,a,l,e),hx(s=o).oldStyle=s.style),this._updateCommon(t,e,h,i,n),u&&(o=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,ho(o,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},_c.prototype._updateCommon=function(t,e,i,n,r){var o,a,s,h,u,c,p,d,f=this.childAt(0),g=t.hostModel,y=(n&&(o=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||(o=(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=zo(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,r&&r.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),r&&r.useNameLabel);Bo(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=o,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),Ar(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),r=Rv(this).dataIndex,o=i&&i.animation;this.silent=n.silent=!0,i&&i.fadeLabel?(i=n.getTextContent())&&co(i,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}}):n.removeTextContent(),co(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},_c.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var RC,NC=_c;Tc.prototype.updateData=function(t,e){this._progressiveEls=null,e=bc(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Sc(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add(function(n){var r,a=h(n);wc(t,a,n,e)&&((r=new o(t,n,s,l)).setPosition(a),t.setItemGraphicEl(n,r),i.add(r))}).update(function(u,c){var p,d,c=r.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 o(t,u,s,l)).setPosition(f)):(c.updateData(t,u,s,l),d={x:f[0],y:f[1]},a?c.attr(d):lo(c,d,n)),i.add(c),t.setItemGraphicEl(u,c)):i.remove(c)}).remove(function(t){var e=r.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 r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);wc(e,a,r,i)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(n),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},Tc.prototype.eachRendered=function(t){Eo(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 BC,zC=Tc,FC=Math.min,VC=Math.max,YC=function(){this.smooth=0,this.smoothConstraint=!0},HC=(i(Ac,BC=yv),Ac.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ac.prototype.getDefaultShape=function(){return new YC},Ac.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;0<r&&Ic(i[2*r-2],i[2*r-1]);r--);for(;n<r&&Ic(i[2*n],i[2*n+1]);n++);}for(;n<r;)n+=kc(t,i,n,r,r,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,r=this.path.data,o=ov.CMD,a="x"===e,s=[],l=0;l<r.length;){var h=void 0,u=void 0;switch(r[l++]){case o.M:i=r[l++],n=r[l++];break;case o.L:var c,h=r[l++],u=r[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 o.C:h=r[l++],u=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[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,WC=YC);var WC,XC=Dc;i(Pc,UC=yv),Pc.prototype.getDefaultShape=function(){return new XC},Pc.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<o&&Ic(i[2*o-2],i[2*o-1]);o--);for(;r<o&&Ic(i[2*r],i[2*r+1]);r++);}for(;r<o;){var s=kc(t,i,r,o,o,1,e.smooth,a,e.connectNulls);kc(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var UC,GC=Pc;i(Wc,jC=Ab),Wc.prototype.init=function(){var t=new Jy,e=new zC;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Wc.prototype.render=function(t,e,i){function n(t){o._changePolyState(t)}var r,o=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=Cc(a,l,x),w=_&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),r=uu(2*n),o=0;o<n;o++){var a=Mc(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(a,l,w),b=t.get("showSymbol"),S=t.get("connectNulls"),T=b&&!d&&zc(t,l,a),C=this._data,M=(C&&C.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),C.setItemGraphicEl(e,null))}),b||g.remove(),s.add(v),!d&&t.get("step")),I=(a&&a.getArea&&t.get("clip",!0)&&(null!=(r=a.getArea()).width?(r.x-=.1,r.y-=.1,r.width+=.2,r.height+=.2):r.r0&&(r.r0-=.5,r.r+=.5)),this._clipShapeForSymbol=r,Bc(l,a,i)||l.getVisual("style")[l.getVisual("drawType")]),f=(y&&f.type===a.type&&M===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())?ho(f,{shape:Hc(this,a,!1,t).shape},t):v.setClipPath(Hc(this,a,!0,t)),b&&g.updateData(l,{isIgnore:T,clipShape:r,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,M,x,S):(M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,S)),y.setShape({points:p}),m&&m.setShape({points:p,stackedOnPoints:w})))):(b&&g.updateData(l,{isIgnore:T,clipShape:r,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,r),M&&(p=Nc(p,a,M,S),w=w&&Nc(w,a,M,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"})),Dr(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,Ar(y,i,b,g),Rc(t.get("smooth"))),e=t.get("smoothMonotone");y.setShape({smooth:T,smoothMonotone:e,connectNulls:S}),m&&(r=l.getCalculationInfo("stackedOnSeries"),_=0,m.useStyle(h(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),r&&(_=Rc(r.get("smooth"))),m.setShape({smooth:T,stackedOnSmooth:_,smoothMonotone:e,connectNulls:S}),Dr(m,t,"areaStyle"),Rv(m).seriesIndex=t.seriesIndex,Ar(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=M,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 r=t.getData(),o=nn(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,h=t.get("zlevel")||0,u=t.get("z")||0,s=((l=new NC(r,o)).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,r.setItemGraphicEl(o,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 r,o=t.getData(),a=nn(o,n);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):Ab.prototype.downplay.call(this,t,e,i,n)},Wc.prototype._changePolyState=function(t){var e=this._polygon;ur(this._polyline,t),e&&ur(e,t)},Wc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new HC({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 GC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i},Wc.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse,o=("cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0),t.hostModel),s=o.get("animationDuration"),l=(w(s)&&(s=s(null)),o.get("animationDelay")||0),h=w(l)?l(null):l;t.eachItemGraphicEl(function(t,o){var u,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=u=void 0,i&&(f=r?(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(o):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,r,o,a=t.getModel("endLabel");Yc(t)?(n=t.getData(),r=this._polyline,(o=n.getLayout("points"))?(this._endLabel||((this._endLabel=new Pv({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),0<=(o=Fc(o))&&(Bo(r,zo(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,i){if(null==i)return vc(n,t);var r=n,o=i,a=r.mapDimensionsAll("defaultedLabel");if(!x(o))return o+"";for(var s=[],l=0;l<a.length;l++){var h=r.getDimensionIndex(a[l]);0<=h&&s.push(o[h])}return s.join(" ")},enableTextSetter:!0},(i=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:i.get("align")||a,verticalAlign:i.get("verticalAlign")||o}})),r.textConfig.position=null)):(r.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Wc.prototype._endLabelOnDuring=function(t,e,i,n,r,o,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=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,u=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,h=0;h<o;h++)if(r=t[2*h+a],!isNaN(r)&&!isNaN(t[2*h+1-a])){if(0!==h){if(n<=e&&e<=r||e<=n&&r<=e){l=h;break}s=h}n=r}return{range:[s,l],t:(e-n)/(r-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]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+u,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=hn(i,h,f,g,c.t))),n.lastFrameIndex=p[0]):(y=Vc(s,v=1===t||0<n.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+u,y:y[1]+o})),r)&&"function"==typeof(a=xx(m)).setLabelText&&a.setLabelText(d)},Wc.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,h=t.hostModel,e=function(t,e,i,n,r,o){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],h=[],u=[],c=[],p=[],d=[],f=[],g=Cc(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],T=y[1+b],C=m[w],M=m[w+1];(isNaN(S)||isNaN(T))&&(S=C,T=M),l.push(S,T),h.push(C,M),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,C=r.dataToPoint([e.get(T[0],S),e.get(T[1],S)]),w=2*S,l.push(C[0],C[1]),h.push(m[w],m[w+1]),M=Mc(g,r,e,S),u.push(M[0],M[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(o=l.length),k=uu(o),A=uu(o),D=uu(o),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(r&&(u=Nc(e.current,i,r,a),c=Nc(e.stackedOnCurrent,i,r,a),p=Nc(e.next,i,r,a),d=Nc(e.stackedOnNext,i,r,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(),lo(s,i,h),l&&(l.setShape({points:u,stackedOnPoints:c}),l.stopAnimation(),lo(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 jC,qC=Wc,ZC={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 r=t[n],o=Math.abs(r);e<o&&(e=o,i=r)}return isFinite(i)?i:NaN},nearest:function(t){return t[0]}},KC=function(t){return Math.round(t.length/2)};Du(function(t){var e;t.registerChartView(qC),t.registerSeriesModel(EC),t.registerLayout((e=!0,{seriesType:"line",plan:pl(),reset:function(t){var i,n,r,o,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),r=s.getStore(),o=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=r.get(o,p),l.dataToPoint(f,null,c)):(u[0]=r.get(o,p),u[1]=r.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,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(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"===o&&t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/i)),s=void 0,b(o)?s=ZC[o]:w(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/i,s,KC))}})}),i(Xc,QC=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 QC,$C=Xc;i(Uc,JC=aw),Uc.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cm).models[0]},Uc.type="cartesian2dAxis";var JC,tM=Uc;p(tM,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),eM={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)},iM={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 nM=["x","y"];i(Kc,rM=qc),Kc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,i,n,r=this.getAxis("x").scale,o=this.getAxis("y").scale;Zc(r)&&Zc(o)&&(r=r.getExtent(),o=o.getExtent(),n=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],i=o[1]-o[0],t)&&i&&(t=(e[0]-n[0])/t,e=(e[1]-n[1])/i,i=n[0]-r[0]*t,r=n[1]-o[0]*e,n=this._transform=[t,0,0,e,i,r],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,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?st(i,t,this._transform):(t=this.getAxis("x"),n=this.getAxis("y"),i[0]=t.toGlobalCoord(t.dataToCoord(r,e)),i[1]=n.toGlobalCoord(n.dataToCoord(o,e)),i)},Kc.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),i=i.parse(t[0]),n=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e},Kc.prototype.pointToData=function(t,e){var i,n,r=[];return this._invTransform?st(r,t,this._invTransform):(i=this.getAxis("x"),n=this.getAxis("y"),r[0]=i.coordToData(i.toLocalCoord(t[0]),e),r[1]=n.coordToData(n.toLocalCoord(t[1]),e),r)},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,r=Math.min(i[0],i[1])-t,e=Math.max(e[0],e[1])-n+t,i=Math.max(i[0],i[1])-r+t;return new Og(n,r,e,i)};var rM,oM=Kc;i(Qc,aM=Ux),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 aM,sM=Qc,lM=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 r=[],o=n-1;0<=o;o--){var a=t[+i[o]],s=a.model,l=a.scale;tu(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(bu(l,s),tu(l)&&(e=a))}r.length&&(e||bu((e=r.pop()).scale,e.model),f(r,function(t){var i=t.scale,t=t.model,n=e.scale,r=PT.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,n=r.getInterval.call(n),l=(t=wu(i,t)).extent,h=t.fixMin,t=t.fixMax,u=("log"===i.type&&(u=lM(i.base),l=[lM(l[0])/u,lM(l[1])/u]),i.setExtent(l[0],l[1]),i.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:t}),r.getExtent.call(i)),c=(h&&(l[0]=u[0]),t&&(l[1]=u[1]),r.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=(o[0].value-a[0].value)/n,t=(o[s].value-a[s].value)/n,r.setExtent.call(i,p+c*h,d+c*t),r.setInterval.call(i,c),(h||t)&&r.setNiceExtent.call(i,p+c,d-c)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var r={};f(n.x,function(t){np(n,"y",t,r)}),f(n.y,function(t){np(n,"x",t,r)}),this.resize(this.model,e)},ep.prototype.resize=function(t,e,i){function n(){f(a,function(t){var e,i,n=t.isHorizontal(),r=n?[0,o.width]:[0,o.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),r=t,e=n?o.x:o.y,a=r.getExtent(),i=a[0]+a[1],r.toGlobalCoord="x"===r.dim?function(t){return t+e}:function(t){return i-t+e},r.toLocalCoord="x"===r.dim?function(t){return t-e}:function(t){return i-t+e}})}var r=t.getBoxLayoutParams(),i=!i&&t.get("containLabel"),o=ba(r,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=o,this._axesList);n(),i&&(f(a,function(t){var e,i,n;t.model.get(["axisLabel","inside"])||(e=Mu(t))&&(i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]),o[i]-=e[i]+n,"top"===t.position?o.y+=e.height+n:"left"===t.position&&(o.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];C(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,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",cm).models[0],o=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):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?i=this.getAxis("x",r.componentIndex):o?i=this.getAxis("y",o.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 r,h;ip(i,t)&&(r=i.get("position"),"x"===e?"top"!==r&&"bottom"!==r&&(r=a.bottom?"top":"bottom"):"left"!==r&&"right"!==r&&(r=a.left?"right":"left"),a[r]=!0,h="category"===(r=new sM(e,Su(i),[0,0],i.get("type"),r)).type,r.onBand=h&&i.get("boundaryGap"),r.inverse=i.get("inverse"),(i.axis=r).model=i,r.grid=o,r.index=n,o._axesList.push(r),s[e][n]=r,l[e]++)}}var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",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,o){var o="x"+i+"y"+o,a=new oM(o);a.master=r,a.model=t,r._coordsMap[o]=a,r._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,r;f((i=t,n=e.dim,r={},f(i.mapDimensionsAll(n),function(t){r[Zh(i,t)]=!0}),v(r)),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,r;Jc(t)&&(r=(n=tp(t)).xAxisModel,n=n.yAxisModel,ip(r,e))&&ip(n,e)&&(r=this.getCartesian(r.componentIndex,n.componentIndex),n=t.getData(),t=r.getAxis("x"),r=r.getAxis("y"),i(n,t),i(n,r))},this)},ep.prototype.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),n=n.getOtherAxis(r);u(e,r)<0&&e.push(r),u(i,n)<0&&i.push(n)}),{baseAxes:e,otherAxes:i}},ep.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,r){var o=new ep(n,t,e);o.name="grid_"+r,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),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=nM;var hM,uM,cM,pM=ep,dM=Math.PI,fM=(op.prototype.hasBuilder=function(t){return!!gM[t]},op.prototype.add=function(t){gM[t](this.opt,this.axisModel,this.group,this._transformGroup)},op.prototype.getGroup=function(){return this.group},op.innerTextLayout=function(t,e,i){var n,e=Ei(e-t),t=Ri(e)?(n=0<i?"top":"bottom","center"):Ri(e-dM)?(n=0<i?"bottom":"top","center"):(n="middle",0<e&&e<dM?0<i?"right":"left":0<i?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:n}},op.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},op.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},op),gM={axisLine:function(t,e,i,n){var r,o,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,r=[p[0],0],o=[p[1],0],a=o[0]<r[0],n&&(st(r,r,n),st(o,o,n)),s=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),So((p=new H_({shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[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((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[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?o:r)[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 r,o,a,s,l,u=function(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var a=o.getModel("lineStyle"),n=n.tickDirection*o.get("length"),s=hp(r.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 r,o,a,s,l,h,u,c,p=i.axis,d=L(n.axisLabelShow,i.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return r=i.getModel("axisLabel"),o=r.get("margin"),a=p.getViewLabels(),d=(L(n.labelRotate,r.get("rotate"))||0)*dM/180,s=fM.innerTextLayout(n.rotation,d,n.labelDirection),l=i.getCategories&&i.getCategories(!0),h=[],u=fM.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=r,_=(v=l&&l[g]&&C(_=l[g])&&_.textStyle?new Ox(_.textStyle,r,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),M=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||s.textVerticalAlign,I=E(v.getShallow("verticalAlignMinLabel",!0),M),k=E(v.getShallow("verticalAlignMaxLabel",!0),M),x=new Pv({x:x,y:n.labelOffset+n.labelDirection*o,rotation:s.rotation,silent:u,z2:10+(d.level||0),style:Fo(v,{text:y,align:0===f?S:f===a.length-1?T:b,verticalAlign:0===f?I:f===a.length-1?k:M,fill:w(_)?_("category"===p.type?m:"value"===p.type?g+"":g,f):_})});x.anid="label_"+g,c&&((d=fM.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=(o=c,u=u,ku((r=e).axis)||(y=r.get(["axisLabel","showMinLabel"]),r=r.get(["axisLabel","showMaxLabel"]),u=u||[],_=(o=o||[])[0],m=o[1],a=o[o.length-1],o=o[o.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===r?(ap(a),ap(l)):sp(o,a)&&(r?(ap(o),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 M=hp(x[T],d.transform,b,S,"minorticks_"+T),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&ac(rc(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,i,n){var r,o,a,s,l,h,u,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,r=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,o=(u=e.axis.getExtent())[0]>u[1]?-1:1,o=["start"===c?u[0]-o*h:"end"===c?u[1]+o*h:(u[0]+u[1])/2,lp(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*dM/180),lp(c)?a=fM.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,i,n){var r,i=Ei(i-t),t=n[0]>n[1],n="start"===e&&!t||"start"!==e&&t;return e=Ri(i-dM/2)?(r=n?"bottom":"top","center"):Ri(i-1.5*dM)?(r=n?"top":"bottom","center"):(r="middle",i<1.5*dM&&dM/2<i?n?"left":"right":n?"right":"left"),{rotation:i,textAlign:e,textVerticalAlign:r}}(t.rotation,c,h||0,u),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=r.getFont(),h=(c=e.get("nameTruncate",!0)||{}).ellipsis,u=L(t.nameTruncateMaxWidth,c.maxWidth,s),Oo({el:t=new Pv({x:o[0],y:o[1],rotation:a.rotation,silent:fM.isLabelSilent(e),style:Fo(r,{text:p,font:l,overflow:"truncate",width:u,ellipsis:h,fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:r.get("align")||a.textAlign,verticalAlign:r.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=fM.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,Rv(t).eventData=c),n.add(t),t.updateTransform(),i.add(t),t.decomposeTransform())}},yM={},mM=(i(gp,hM=Mb),gp.prototype.render=function(t,e,i,n){var r,o,a,s,l,h;this.axisPointerClass&&(r=pp(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,h=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=dp(l),null==h&&(a.status=l?"show":"hide"),(h=o.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=r.axis.scale.isBlank()?"hide":"show"),hM.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),hM.prototype.dispose.apply(this,arguments)},gp.prototype._doUpdateAxisPointerClass=function(t,e,i){var n,r=gp.getAxisPointerClass(this.axisPointerClass);r&&((n=(n=pp(n=t))&&n.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).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){yM[t]=e},gp.getAxisPointerClass=function(t){return t&&yM[t]},gp.type="axis",gp),vM=rn(),_M=["axisLine","axisTickLabel","axisName"],xM=["splitArea","splitLine","minorSplitLine"],tS=(i(yp,uM=mM),yp.prototype.render=function(t,e,i,n){this.group.removeAll();var r,o,a=this._axisGroup;this._axisGroup=new Jy,this.group.add(this._axisGroup),t.get("show")&&(o=$c(r=t.getCoordSysModel(),t),o=new fM(t,l({handleAutoShown:function(e){for(var i=r.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(tu(i[n].getOtherAxis(t.axis).scale))return!0;return!1}},o)),f(_M,o.add,o),this._axisGroup.add(o.getGroup()),f(xM,function(e){t.get([e,"show"])&&wM[e](this,this._axisGroup,t,r)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||Io(a,this._axisGroup,t),uM.prototype.render.call(this,t,e,i,n))},yp.prototype.remove=function(){vM(this).splitAreaColors=null},yp.type="cartesianAxis",yp),wM={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank())for(var i=i.getModel("splitLine"),o=i.getModel("lineStyle"),a=x(a=o.get("color"))?a:[a],s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=0,c=r.getTicksCoords({tickModel:i}),p=[],d=[],f=o.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),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});So(m.shape,f.lineWidth),e.add(m)}},minorSplitLine:function(t,e,i,n){var r=i.axis,i=i.getModel("minorSplitLine").getModel("lineStyle"),o=n.coordinateSystem.getRect(),a=r.isHorizontal(),s=r.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=r.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=o.y,h[0]=d,h[1]=o.y+o.height):(l[0]=o.x,l[1]=d,h[0]=o.x+o.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}));So(d.shape,u.lineWidth),e.add(d)}},splitArea:function(t,e,i,n){var r=e,e=n,o=(n=i).axis;if(!o.scale.isBlank()){var n=n.getModel("splitArea"),i=n.getModel("areaStyle"),a=i.get("color"),s=e.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,c=vM(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=o.toGlobalCoord(l[0].coord),m=i.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=o.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=o.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),r.add(new 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}vM(t).splitAreaColors=p}}}},bM=(i(mp,cM=tS),mp.type="xAxis",mp);i(vp,SM=tS),vp.type="yAxis";var SM,TM=vp;i(_p,CM=Mb),_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 CM,MM=_p,IM={offset:0};Du(function(t){t.registerComponentView(MM),t.registerComponentModel($C),t.registerCoordinateSystem("cartesian2d",pM),Gc(t,"x",tM,IM),Gc(t,"y",tM,IM),t.registerComponentView(bM),t.registerComponentView(TM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),i(xp,kM=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 kM,AM=xp;i(wp,DM=Mb),wp.prototype.render=function(t,e,i){var n,r,o,a,s,l,h,u,c;this.group.removeAll(),t.get("show")&&(n=this.group,h=t.getModel("textStyle"),r=t.getModel("subtextStyle"),u=t.get("textAlign"),c=E(t.get("textBaseline"),t.get("textVerticalAlign")),s=(h=new Pv({style:Fo(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new Pv({style:Fo(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),h.silent=!o&&!s,r.silent=!a&&!s,o&&h.on("click",function(){xa(o,"_"+t.get("target"))}),a&&r.on("click",function(){xa(a,"_"+t.get("subtarget"))}),Rv(h).eventData=Rv(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),l&&n.add(r),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}),r.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 DM,PM=wp;Du(function(t){t.registerComponentModel(AM),t.registerComponentView(PM)}),i(bp,OM=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){OM.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 r,o=n.name;i.push(o),n.legendVisualProvider&&(o=n.legendVisualProvider.getAllNames(),t.isSeriesFiltered(n)||(i=i.concat(o)),o.length)?e=e.concat(o):r=!0,r&&Ji(n)&&e.push(n.name)}),this._availableNames=i,this.get("data")||e),r=X(),n=g(n,function(t){return(b(t)||T(t))&&(t={name:t}),r.get(t.name)?null:(r.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 OM,LM,EM=bp,RM=_,NM=f,BM=Jy,zM=(i(Sp,LM=Mb),Sp.prototype.init=function(){this.group.add(this._contentGroup=new BM),this.group.add(this._selectorGroup=new BM),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,r,o,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(r=t.get("align"),n=t.get("orient"),r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===n?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(r,t,e,i,a,n,s=!a||s&&"auto"!==s?s:"horizontal"===n?"end":"start"),o=ba(e=t.getBoxLayoutParams(),n={width:i.getWidth(),height:i.getHeight()},i=t.get("padding")),o=ba(h({width:(r=this.layoutInner(t,r,o,l,a,s)).width,height:r.height},e),n,i),this.group.x=o.x-r.x,this.group.y=o.y-r.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=r,s=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,r,o,a){var s=this.getContentGroup(),h=X(),u=e.get("selectedMode"),c=[];i.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),NM(e.getData(),function(r,o){var a,p,d,f,g=r.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,o,r,e,t,f,d,p,u,n)).on("click",RM(Tp,g,null,n,c)).on("mouseover",RM(Mp,a.name,null,n,c)).on("mouseout",RM(Ip,a.name,null,n,c)),i.ssr&&f.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,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,o,r,e,t,{},s,p,u,n)).on("click",RM(Tp,null,g,n,c)).on("mouseover",RM(Mp,null,g,n,c)).on("mouseout",RM(Ip,null,g,n,c)),i.ssr&&d.eachChild(function(t){t=Rv(t),t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),h.set(g,!0))},this))):((d=new BM).newline=!0,s.add(d))},this),r&&this._createSelector(r,e,n,o,a)},Sp.prototype._createSelector=function(t,e,i,n,r){var o=this.getSelectorGroup();NM(t,function(t){var n=t.type,r=new Pv({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});o.add(r),Bo(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),kr(r)})},Sp.prototype._createItem=function(t,e,i,n,r,o,a,s,l,h,u){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),m=n.get("icon"),a=function(t,e,i,n,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),NM(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[r]),"inherit"===h.stroke&&(h.stroke=n[t]),"inherit"===h.opacity&&(h.opacity=("fill"===r?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),o||(r=e.get("inactiveBorderWidth"),i=h[t],h.lineWidth="auto"===r?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 BM,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"===o?p+5:-5),u=o,t=r.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:Fo(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")&&Oo({el:a,componentModel:r,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!h,this.getContentGroup().add(s),kr(s),s.__legendDataIndex=i,s},Sp.prototype.layoutInner=function(t,e,i,n,r,o){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(),r?(tw("horizontal",p,t.get("selectorItemGap",!0)),a=[-(r=p.getBoundingRect()).x,-r.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",h=0===t?"height":"width",u=0===t?"y":"x","end"===o?a[t]+=i[l]+s:d[t]+=r[l]+s,a[1-t]+=i[h]/2-r[h]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(o={x:0,y:0})[l]=i[l]+s+r[l],o[h]=Math.max(i[h],r[h]),o[u]=Math.min(0,r[u]+a[1-t]),o):(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,FM=EM),Pp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Pp.prototype.init=function(t,e,i){var n=Ca(t);FM.prototype.init.call(this,t,e,i),Op(this,t,n)},Pp.prototype.mergeOption=function(t,e){FM.prototype.mergeOption.call(this,t,e),Op(this,this.option,t)},Pp.type="legend.scroll",Pp.defaultOption=(G_=EM.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({},G_,!0),p_,!0));var FM,VM,YM=Pp,HM=Jy,WM=["width","height"],XM=["x","y"],UM=(i(Lp,VM=zM),Lp.prototype.init=function(){VM.prototype.init.call(this),this.group.add(this._containerGroup=new HM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new HM)},Lp.prototype.resetInner=function(){VM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Lp.prototype.renderInner=function(t,e,i,n,r,o,a){function s(t,i){var r=t+"DataIndex",i=Do(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:$f(l._pageGo,l,r,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=(VM.prototype.renderInner.call(this,t,e,i,n,r,o,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,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,h=WM[l],u=XM[l],c=WM[1-l],p=XM[1-l],d=(r&&tw("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(i),i=(r&&(y[h]=i[h]-f[h]-d),this._layoutContentAndController(t,n,y,l,h,c,p,u));return r&&("end"===o?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,r,o,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[r]>i[r],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[r]-p[r]:e[n]+=p[r]+g),s[1-n]+=c[o]/2-p[o]/2,l.setPosition(f),h.setPosition(e),u.setPosition(s),{x:0,y:0}),c=(f[r]=(d?i:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-n]),h.__rectSize=i[r],d?((e={x:0,y:0})[r]=Math.max(i[r]-p[r]-g,0),e[o]=f[o],h.setClipPath(new Iv({shape:e})),h.__rectSize=e[r]):u.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&lo(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 r=null!=e[n+"DataIndex"],n=i.childOfName(n);n&&(n.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),n.cursor=r?"pointer":"default")}),i.childOfName("pageText")),r=t.get("pageFormatter"),o=e.pageIndex,o=null!=o?o+1:0,a=e.pageCount;n&&r&&n.setStyle("text",b(r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):r({current:o,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+o}var n=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,t=t.getOrient().index,a=WM[t],s=XM[t],n=this._findTargetItemIndex(n),l=r.children(),h=l[n],u=l.length,c=u?1:0,p={contentPosition:[r.x,r.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(h){r=e(h),p.contentPosition[t]=-r.s;for(var d=n+1,f=r,g=r,y=null;d<=u;++d)(!(y=e(l[d]))&&g.e>f.s+o||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=r,g=r,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,r){n=n.__legendDataIndex,null==i&&null!=n&&(i=r),n===t&&(e=r)}),null!=e?e:i):0},Lp.type="legend.scroll",Lp);Du(function(t){Du(Dp),t.registerComponentModel(YM),t.registerComponentView(UM),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 GM=rn(),jM=a,qM=$f;Ep.prototype.render=function(t,e,i,n){var r,o,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,r=this._handle,s&&"hide"!==s?(n&&n.show(),r&&r.show(),this.makeElOption(s={},a,t,e,i),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),n?(o=_(Rp,e,o),this.updatePointerEl(n,s,o),this.updateLabelEl(n,s,o,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(),r&&r.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"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===n||null==n?(i=this.animationThreshold,o&&r.getBandWidth()>i||!!e&&(o=pp(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>i)):!0===n)},Ep.prototype.makeElOption=function(t,e,i,n,r){},Ep.prototype.createPointerEl=function(t,e,i,n){var r=e.pointer;r&&(r=GM(t).pointerEl=new gx[r.type](jM(e.pointer)),t.add(r))},Ep.prototype.createLabelEl=function(t,e,i,n){e.label&&(e=GM(t).labelEl=new Pv(jM(e.label)),t.add(e),Np(e,n))},Ep.prototype.updatePointerEl=function(t,e,i){(t=GM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),i(t,{shape:e.pointer.shape}))},Ep.prototype.updateLabelEl=function(t,e,i,n){(t=GM(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,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,n=this._handle=Do(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_g(t.event)},onmousedown:qM(this._onHandleDragMove,this,0,0),drift:qM(this._onHandleDragMove,this),ondragend:qM(this._onHandleDragEnd,this)}),i.add(n)),zp(n,e,!1),n.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=r.get("size"))||(a=[a,a]),n.scaleX=a[0]/2,n.scaleY=a[1]/2,_l(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(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)),GM(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,ZM=Ep),Hp.prototype.makeElOption=function(t,e,i,n,r){var o,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&&(o=(a=n).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=QM[h](s,c,u)).style=o,t.graphicKey=a.type,t.pointer=a),$c(l.model,i));h=e,s=t,c=p,u=i,o=n,a=r,l=fM.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),Fp(s,u,o,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,r=i.grid,o=i.getGlobalExtent(!0),r=Wp(r,i).getOtherAxis(i).getGlobalExtent(),i="x"===i.dim?0:1,a=[t.x,t.y],e=(a[i]+=e[i],a[i]=Math.min(o[1],a[i]),a[i]=Math.max(o[0],a[i]),(r[1]+r[0])/2),o=[e,e];return o[i]=a[i],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][i]}};var ZM,KM=Hp,QM={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()),r=i[1]-i[0];return{type:"Rect",shape:(e=[e-n/2,i[0]],i=[n,r],n=Xp(t),{x:e[n=n||0],y:e[1-n],width:i[n],height:i[1-n]})}}};i(Up,$M=aw),Up.type="axisPointer",Up.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 $M,JM=Up,tI=rn(),eI=f;i(Kp,iI=Mb),Kp.prototype.render=function(t,e,i){var e=e.getComponent("tooltip"),n=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Gp("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,rI=rn();i(od,oI=aw),od.type="tooltip",od.dependencies=["axisPointer"],od.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 oI,aI=od,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,r=this._styleCoord;i.innerHTML?n.cssText=uI+ud(t,!this._firstShow,this._longHide)+hd(r[0],r[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,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,h,c,p="";if(b(r)&&"item"===i.get("trigger")&&!ad(i)&&(i=i,n=n,p=b(r=r)&&"inside"!==r?(a=i.get("backgroundColor"),i=i.get("borderWidth"),n=_a(n),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",d=Math.max(1.5*Math.round(i),6),s="",l=hI+":",-1<u(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==r?225:45)+"deg)"),c=c*Math.PI/180,c=(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+=";"+r+":-"+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))o.innerHTML=t+p;else if(t){o.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==o&&o.appendChild(t[f]);p&&o.childNodes.length&&((d=document.createElement("div")).innerHTML=p,o.appendChild(d))}}},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,r){var o=this,a=(C(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){o.el.style[t]=i.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},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,r=this.el;r&&(yd(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],i=fd((n=r.style).borderWidth||0),n=gd(n),r.x=t+i+n.left,r.y=e+i+n.top,r.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=Mb),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");Gp("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,r=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r&&(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 r,o,a,s;n.from!==this.uid&&!Pf.node&&i.getDom()&&(r=_d(n,i),this._ticket="",s=n.dataByCoordSys,(o=function(t,e,i){var n=an(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o,e=sn(e,r,n.get(r),{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 o=e,!0}),o))return{componentMainType:r,componentIndex:e.componentIndex,el:o}}}(n,e,i))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:n.position,positionDefault:"bottom"},r)):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},r)):s?this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},r):null!=n.seriesIndex?this._manuallyAxisShowTip(t,e,i,n)||(a=(o=Qp(n,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:n.position,positionDefault:"bottom"},r)):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},r)))},md.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;this._tooltipModel&&r.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 r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a&&(a=e.getSeriesByIndex(r))&&(e=vd([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0},md.prototype._tryShow=function(t,e){var i,n,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(i=t.dataByCoordSys)&&i.length?this._showAxisTooltip(i,t):o?"legend"!==Rv(o).ssrType&&(Bl(o,function(t){return null!=Rv(t).dataIndex?(n=t,1):null!=Rv(t).tooltipConfig&&(r=t,1)},!(this._lastDataByCoordSys=null)),n?this._showSeriesItemTooltip(t,n,e):r?this._showComponentItemTooltip(t,r,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,r=[e.offsetX,e.offsetY],o=vd([e.tooltipOption],n),a=this._renderMode,s=[],h=Us("section",{blocks:[],noHeader:!0}),u=[],c=new bb,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,r,o=i.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;o&&null!=p&&(e=Vp(p,o.axis,i,t.seriesDataIndices,t.valueLabelOpt),r=Us("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),h.blocks.push(r),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=Cu(o.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"),r.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=o.get("order"),e=Ks(h,c,a,e,i.get("useUTC"),o.get("textStyle")),e=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),d=u.join(e);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,d,s,Math.random()+"",r[0],r[1],p,null,c)})},md.prototype._showSeriesItemTooltip=function(t,e,i){var n,r,o,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),r=new bb,n.marker=r.makeTooltipMarker("item",_a(n.color),g),y=vs(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),o=y.frag,a=o?Ks(e?l({valueFormatter:e},o):o,r,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,r)}),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,r=Rv(e),o=r.tooltipConfig.option||{},s=o.encodeHTMLContent,s=(b(o)&&(o={content:o,formatter:o},s=!0),s&&n&&o.content&&((o=a(o)).content=yt(o.content)),[o]),n=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(n&&s.push(n),s.push({formatter:o.content}),t.positionDefault),l=vd(s,this._tooltipModel,r?{position:r}: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,r,o,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([r,o],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")?Qo(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,r,o,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,r,o,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,r,o,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([i,n],o,r.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(i=Ai(e[0],l),n=Ai(e[1],h)):C(e)?((o=e).width=u[0],o.height=u[1],i=(o=ba(o,{width:l,height:h})).x,n=o.y,p=c=null):(i=(s=b(e)&&a?function(t,e,i,n){var r=i[0],o=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-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+h/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+h/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+h+a,l=e.y+u/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth")):function(t,e,i,n,r,o,a){var i=i.getSize(),s=i[0],i=i[1];return null!=o&&(n<t+s+o+2?t-=s+o:t+=o),null!=a&&(r<e+i+a?e-=i+a:e+=a),[t,e]}(i,n,r,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)&&(o=i,a=n,e=l,d=h,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),i=(s=[o,a])[0],n=s[1]),r.moveTo(i,n)},md.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&f(i,function(i,o){var i=i.dataByAxis||[],a=(t[o]||{}).dataByAxis||[];(r=r&&i.length===a.length)&&f(i,function(t,i){var i=a[i]||{},o=t.seriesDataIndices||[],s=i.seriesDataIndices||[];(r=r&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&o.length===s.length)&&f(o,function(t,e){e=s[e],r=r&&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&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},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(rd),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=rn(),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 r=this.mainType;i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),o=mI(t)[r];i&&i.data?(o?o._mergeOption(i,e,!0):(n&&wd(i),f(i.data,function(t){t instanceof Array?(wd(t[0]),wd(t[1])):wd(t)}),l(o=this.createMarkerModelFromSeries(i,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),mI(t)[r]=o):mI(t)[r]=null},this)},bd.prototype.formatTooltip=function(t,e,i){var n=this.getData(),r=this.getRawValue(t),n=n.getName(t);return Us("section",{header:this.name,blocks:[Us("nameValue",{name:n,value:r,noName:!n,noValue:null==r})]})},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=rn(),g_=(i(kd,xI=Mb),kd.prototype.init=function(){this.markerGroupMap=X()},kd.prototype.render=function(t,e,i){var n=this,r=this.markerGroupMap;r.each(function(t){SI(t).keep=!1}),e.eachSeries(function(t){var r=vI.getMarkerModelFromSeries(t,n.type);r&&n.renderSeries(t,r,e,i)}),r.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?vr:_r)(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 r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,s=s.get(o)||s.set(o,new zC),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 r=new wT(n,i),i=g(i.get("data"),_(Cd,e));return t&&(i=m(i,_(Md,t))),t=function(t,e){return t?function(t,i,n,r){return Ss(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,i,n,r){return Ss(t.value,e[r])}}(!!t,n),r.initData(i,null,t),r}(r,t,e);e.setData(h),Ad(e.getData(),t,n),h.each(function(t){var i=h.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=i.getShallow("symbolOffset"),l=i.getShallow("symbolKeepAspect"),u=((w(n)||w(r)||w(o)||w(s))&&(u=e.getRawValue(t),c=e.getDataParams(t),w(n)&&(n=n(u,c)),w(r)&&(r=r(u,c)),w(o)&&(o=o(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:r,symbolRotate:o,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,CI=Dd;Du(function(t){t.registerComponentModel(wI),t.registerComponentView(CI),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 MI={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,r=(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)),o=[],a=0,s=n.count();a<s;a++)e=n.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},RI={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=Gi(t),i=(t.length||Xi(""),[]),t=(f(t,function(t){var n=t.dimension,r=t.order,o=t.parser,t=t.incomparable,n=(null==n&&Xi(""),"asc"!==r&&"desc"!==r&&Xi(""),t&&"min"!==t&&"max"!==t&&Xi(""),"asc"!==r&&"desc"!==r&&Xi(""),e.getDimensionInfo(n)),a=(n||Xi(""),o?Ts(o):null);o&&!a&&Xi(""),i.push({dimIdx:n.index,parser:a,comparator:new lb(r,t)})}),e.sourceFormat),n=(t!==fw&&t!==gw&&Xi(""),[]),r=0,o=e.count();r<o;r++)n.push(e.getRawDataItem(r));return n.sort(function(t,n){for(var r=0;r<i.length;r++){var o=i[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx),o=(o.parser&&(a=o.parser(a),s=o.parser(s)),o.comparator.evaluate(a,s));if(0!==o)return o}return 0}),{data: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,r,o){this._add("C",t,e,i,n,r,o)},Yd.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},Yd.prototype.arc=function(t,e,i,n,r,o){this.ellipse(t,e,i,i,0,n,r,o)},Yd.prototype.ellipse=function(t,e,i,n,r,o,a,s){var l,h=a-o,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(o),h=e+n*BI(o),r=(this._start&&this._add("M",u,h),Math.round(r*YI));c?(c=1/this._p,this._add("A",i,n,r,1,+s,t+i*zI(o+(l=(s?1:-1)*(VI-c))),e+n*BI(o+l)),.01<c&&this._add("A",i,n,r,0,+s,u,h)):(o=t+i*zI(a),l=e+n*BI(a),this._add("A",i,n,r,+p,+s,o,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,r,o,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,UI=["lineCap","miterLimit","lineJoin"],GI=g(UI,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 r=NI[n],o=t[r[0]];null!=o&&(e[r[1]]=ik(o*i)/i)}})],polyline:[of,af],polygon:[of,af]},rk=58,ok=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,r;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",xf(e=this._oldVNode,i=t)?Mf(e,i):(r=gf(n=e.elm),wf(i),null!==r&&(pf(r,i.elm,yf(n)),Sf(r,[e],0,0))),this._oldVNode=t)},If.prototype.renderOneToVNode=function(t){return lf(t,Gd(this._id))},If.prototype.renderToVNode=function(t){t=t||{};var e,i,n,r,o,a=this.storage.getDisplayList(!0),s=this._width,l=this._height,h=Gd(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 r;return i&&"none"!==i&&(r=Xd("rect","bg",{width:t,height:e,x:"0",y:"0"}),Re(i)?hf({fill:i},r.attrs,"fill",n):Oe(i)?uf({style:{fill:i},dirty:Z,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",n):(n=Ie(i),i=n.color,n=n.opacity,r.attrs.fill=i,n<1&&(r.attrs["fill-opacity"]=n))),r}(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":"",r=" {"+n,o=n+"}",c=g(v(e),function(t){return t+r+g(v(e[t]),function(i){return i+":"+e[t][i]+";"}).join(n)+o}).join(n),a=g(v(i),function(t){return"@keyframes "+t+r+g(v(i[t]),function(e){return e+r+g(v(i[t][e]),function(n){var r=i[t][e][n];return n+":"+(r="d"===n?'path("'+r+'")':r)+";"}).join(n)+o}).join(n)+o}).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 Ud(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,r,o,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=(r=y[w],o=b,h=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(h=l[r.id])||(s={id:h=a.zrId+"-c"+a.clipPathIdx++},S[l[r.id]=h]=Xd("clipPath",h,s,[sf(r,a)])),o["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,r=this._viewport;null!=t&&(i.width=t),null!=e&&(i.height=e),n&&r&&(r.style.display="none",t=Ul(n,0,i),e=Ul(n,1,i),r.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,r&&((n=r.style).width=t+"px",n.height=e+"px"),Oe(this._backgroundColor)?this.refresh():((i=this._svgDom)&&(i.setAttribute("width",t),i.setAttribute("height",e)),(r=this._bgVNode&&this._bgVNode.elm)&&(r.setAttribute("width",t),r.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)},Ci("svg",If),e.Axis=Ux,e.ChartView=Ab,e.ComponentModel=aw,e.ComponentView=Mb,e.List=wT,e.Model=Ox,e.PRIORITY=$b,e.SeriesModel=Cb,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=Mb.extend(t),Mb.registerClass(t),t},e.extendSeriesModel=function(t){return t=Cb.extend(t),Cb.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 r=_h(t);if(r)return r}return(r=new HS(t,e,i)).id="ec_"+JS++,QS[r.id]=r,n&&ln(t,eT,r.id),BS(r),fS.trigger("afterinit",r),r},e.innerDrawElementOnCanvas=rh,e.matrix=bg,e.number=Ix,e.parseGeoJSON=Vu,e.parseGeoJson=Vu,e.registerAction=Mh,e.registerCoordinateSystem=Ih,e.registerLayout=kh,e.registerLoading=Ph,e.registerLocale=qo,e.registerMap=Oh,e.registerPostInit=Sh,e.registerPostUpdate=Th,e.registerPreprocessor=wh,e.registerProcessor=bh,e.registerTheme=xh,e.registerTransform=Lh,e.registerUpdateLifecycle=Ch,e.registerVisual=Ah,e.setCanvasCreator=function(t){n({createCanvas:t})},e.setPlatformAPI=n,e.throttle=vl,e.time=mm,e.use=Du,e.util=Cx,e.vector=sg,e.version="5.5.1",e.zrUtil=rg,e.zrender=om})}).call(e,i(306).Buffer)},2175:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];n._withStripped=!0},2176:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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)},r=[];n._withStripped=!0},2177:function(t,e,i){"use strict";function n(t){s||i(2178)}var r=i(1615),o=i(2179),a=i(1),s=!1,l=n,h=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=h.exports},2178:function(t,e){},2179:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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,r){return[t.showCol(r)?i("td",{key:"td-"+n+"-"+r,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)])},r=[];n._withStripped=!0},2180:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});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.btnColor},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},r=[];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)}},267: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||"确定"}}}},268: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])}}}},27:function(t,e,i){var n=i(8).f,r=i(6),o=i(3)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},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"),r=i(23),o=i(2).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("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)}},306:function(t,e,i){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,i){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(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?r(t,e):void 0!==i?"string"==typeof n?r(t,e).fill(i,n):r(t,e).fill(i):r(t,e)}function h(t,e){if(s(e),t=r(t,e<0?0:0|f(e)),!o.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"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,i);t=r(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=r(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),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function d(t,e){if(o.isBuffer(e)){var i=0|f(e.length);return t=r(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)?r(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),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var 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,r){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=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==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(r){var u=-1;for(h=i;h<s;h++)if(o(t,h)===o(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(o(t,h+p)!==o(e,p)){c=!1;break}if(c)return h}return-1}function w(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/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(U(e),t,i,n)}function T(t,e,i,n){return S(t,e,i,n)}function C(t,e,i,n){return q(j(e),t,i,n)}function M(t,e,i,n){return q(G(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=[],r=e;r<i;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=i){var l,h,u,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],h=t[r+2],128==(192&l)&&128==(192&h)&&(c=(15&o)<<12|(63&l)<<6|63&h)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],h=t[r+2],u=t[r+3],128==(192&l)&&128==(192&h)&&128==(192&u)&&(c=(15&o)<<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),r+=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 r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);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 r="",o=e;o<i;++o)r+=W(t[o]);return r}function L(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}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,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(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 r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function B(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function z(t,e,i,n,r,o){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,r){return r||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,r){return r||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,r=null,o=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.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;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function U(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function G(t,e){for(var i,n,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}function j(t){return K.toByteArray(Y(t))}function q(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function Z(t){return t!==t}var K=i(307),Q=i(308),$=i(309);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,i){return a(null,t,e,i)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,i){return l(null,t,e,i)},o.allocUnsafe=function(t){return h(null,t)},o.allocUnsafeSlow=function(t){return h(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,a=Math.min(i,n);r<a;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=o.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var a=t[i];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",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+">"},o.prototype.compare=function(t,e,i,n,r){if(!o.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===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var a=r-n,s=i-e,l=Math.min(a,s),h=this.slice(n,r),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},o.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},o.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},o.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},o.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 r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!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 C(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var 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(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},o.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},o.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},o.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]},o.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])},o.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.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},o.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},o.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},o.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]},o.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},o.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 r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},o.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 r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},o.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<i&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},o.prototype.writeDoubleLE=function(t,e,i){return V(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return V(this,t,e,!1,i)},o.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 r,a=n-i;if(this===t&&i<e&&e<n)for(r=a-1;r>=0;--r)t[r+e]=this[r+i];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},o.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 r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.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=o.isBuffer(t)?t:X(new o(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))},307: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 r(t){var e=n(t),i=e[0],r=e[1];return 3*(i+r)/4-r}function o(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,r=n(t),a=r[0],s=r[1],l=new p(o(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,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(n));return r.join("")}function h(t){for(var e,i=t.length,n=i%3,r=[],o=0,a=i-n;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===n?(e=t[i-1],r.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],r.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),r.join("")}e.byteLength=r,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},308:function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,h=l>>1,u=-7,c=i?r-1:0,p=i?-1:1,d=t[e+c];for(c+=p,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+t[e+c],c+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+t[e+c],c+=p,u-=8);if(0===o)o=1-h;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=h}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,h=8*o-r-1,u=(1<<h)-1,c=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-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,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[i+d]=255&s,d+=f,s/=256,r-=8);for(a=a<<r|s,h+=r;h>0;t[i+d]=255&a,d+=f,a/=256,h-=8);t[i+d-f]|=128*g}},309: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"),r=i(23);t.exports=function(t){return n[t]||(n[t]=r(t))}},32:function(t,e,i){var n=i(0),r=i(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version: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,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;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),r=i(0),o=i(16),a=i(36),s=i(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(40);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,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},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,r){var o=e.call(this,t,n,r);if(o)return i=n,o}),i}function r(t){return t?JSON.parse(W()(t)):t}function o(t,e){for(var i in e)t[i]&&"object"===Y()(t[i])?o(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 r(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(u,e),S?n(t):_}function s(t){var i=t-w,n=t-b,r=e-i;return T?Math.min(r,v-n):r}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=r(u,s(t))}function c(t){return x=void 0,C&&y?n(t):(y=m=void 0,_)}function p(){void 0!==x&&o(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),o=arguments.length,s=Array(o),h=0;h<o;h++)s[h]=arguments[h];if(y=s,m=this,w=t,i){if(void 0===x)return a(w);if(T)return x=r(u,e),n(w)}return void 0===x&&(x=r(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,C=!0,M=!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,C="trailing"in i?!!i.trailing:C),g.cancel=p,g.flush=d,g.pending=f,g}function v(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return h(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),m(t,e,{leading:n,trailing:r,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 C(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),r=null;return i?r={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(r={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),r?void 0!==e?"rgba("+r.r+", "+r.g+", "+r.b+", "+e+")":"rgb("+r.r+", "+r.g+", "+r.b+")":""}function M(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*i));return n}function I(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),r=i.match(n);return r&&r[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 r=t[n];if(!i.test(r))return;e.push(r.split("?")[0])}return e}function E(t){var e=JSON.parse(W()(t)),i=e.attrModules,n=void 0===i?{}:i,r=e.plan,o=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,r=null,o={},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?(r=r||{},r[h]=u):"companyIdType"===h||"companyId"===h?(s=s||{},s[h]=u):"detail"===h?(l=l||{},l[h]=u):o[h]=u)}return e&&(o.certificate=e),i&&(o.socialIns=i),n&&(o.resident=n),r&&(o.office=r),s&&(o.companyCertificate=s),l&&(o.companyAddress=l),o};if(n.plan&&(r=f(n.plan)),o&&(d.applicant={},o&&(d.applicant=f(o))),s||r){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),r&&(_.plan=r),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=F()(d.makeup,S))}}return d}function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=URL.createObjectURL(new Blob).toString();return URL.revokeObjectURL(e),(e.substring(e.lastIndexOf("/")+1)||"").replace(new RegExp("-","g"),"").substring(0,t)}function N(t){if("string"!=typeof t)return!1;var e=t.toLowerCase();try{return"pdf"===new URL(e.startsWith("http")?e:"https://"+e).pathname.split(".").pop()}catch(t){return/.pdf($|\?|#)/.test(e)}}function B(t){try{if(!t||"string"!=typeof t)return{id:"",originalName:"",error:"输入参数无效"};var e=t.trim();if(e.startsWith("http://")||e.startsWith("https://")){var i=e.split("/");if(0===i.length)return{id:"",originalName:"",error:"URL格式错误"};e=i.pop().split("?")[0]}if(!e.includes("~~"))return{id:"",originalName:e,error:"文件名不包含~~分隔符"};var n=e.split("~~");if(n.length<2)return{id:"",originalName:e,error:"文件名格式错误"};var r=n[0]||"",o=n[1].replace(/\.[^.]+$/,"");if(!o)return{id:r,originalName:"",error:"Base64编码部分为空"};for(var a=o.replace(/-/g,"+").replace(/_/g,"/");a.length%4;)a+="=";var s="";try{s=atob(a)}catch(t){return{id:r,originalName:"",error:"Base64解码失败: "+t.message}}var l="";try{var h=Uint8Array.from(s,function(t){return t.charCodeAt(0)});l=new TextDecoder("utf-8").decode(h)}catch(t){try{l=decodeURIComponent(s)}catch(t){l=s}}return{id:r,originalName:l,error:null}}catch(t){return console.error("parseEncodedFile 解析错误:",t),{id:"",originalName:"",error:t&&t.message||"未知错误"}}}i.d(e,"K",function(){return at}),i.d(e,"x",function(){return st}),e.e=n,e.d=r,e.c=o,e.p=a,e.D=s,e.z=l,e.A=h,e.q=u,e.y=c,e.r=p,e.E=d,e.s=f,e.t=g,e.C=y,e.b=m,e.J=v,e.w=_,e.h=x,e.f=w,e.g=b,e.i=S,e.F=T,e.o=C,e.H=M,e.m=I,e.u=k,e.I=A,e.l=D,e.n=P,e.k=O,e.j=E,i.d(e,"v",function(){return lt}),e.a=R,e.B=N,e.G=B;var z=i(28),F=i.n(z),V=i(79),Y=i.n(V),H=i(58),W=i.n(H),X="undefined"!=typeof window,U=X&&window.navigator.userAgent.toLowerCase(),G=U&&/msie|trident/.test(U),j=U&&U.indexOf("msie 9.0")>0,q=U&&U.indexOf("edge/")>0,Z=U&&U.indexOf("android")>0,K=U&&/iphone|ipad|ipod|ios/.test(U),Q=U&&/arkweb|harmony/.test(U),$=U&&/chrome\/\d+/.test(U)&&!q,J=U&&/MicroMessenger/i.test(U),tt=U&&/wxwork/i.test(U),et=U&&/mucxiaoyusan/i.test(U),it=U&&/muckacabao/i.test(U),nt=U&&/mucyanxuan/i.test(U),rt=et||it,ot=U&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(U),at={isIE:G,isMobile:ot,isIE9:j,isEdge:q,isAndroid:Z,isIOS:K,isHarmonyOS:Q,isChrome:$,isWx:J,isWxWork:tt,isApp:rt,isXysApp:et,isKcbApp:it,isYxApp:nt},st=/MucWebAutoTester/.test(window.navigator.userAgent),lt=function(){return!("undefined"==typeof window||!window)&&(/iphone/gi.test(window.navigator.userAgent)&&window.screen.height>=812)}},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e,i){var n=i(10),r=i(2).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},45:function(t,e,i){"use strict";var n=i(16),r=i(13),o=i(49),a=i(7),s=i(18),l=i(69),h=i(27),u=i(73),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 C)return C[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,C=t.prototype,M=C[c]||C["@@iterator"]||g&&C[g],I=M||w(g),k=g?S?w("entries"):I:void 0,A="Array"==e?C.entries||M:M;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&&M&&"values"!==M.name&&(T=!0,I=function(){return M.call(this)}),n&&!m||!p&&!T&&C[c]||a(C,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 C||o(C,_,v[_]);else r(r.P+r.F*(p||T),e,v);return v}},46:function(t,e,i){var n=i(9),r=i(70),o=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(41)("iframe"),n=o.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[o[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:r(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)}},48:function(t,e,i){t.exports=!i(5)&&!i(12)(function(){return 7!=Object.defineProperty(i(41)("div"),"a",{get:function(){return 7}}).a})},49:function(t,e,i){t.exports=i(7)},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){var n=i(6),r=i(11),o=i(71)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=r(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++])&&(~o(h,i)||h.push(i));return h}},51:function(t,e,i){var n=i(50),r=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},53:function(t,e,i){"use strict";var n=i(68)(!0);i(45)(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})})},54:function(t,e,i){var n=i(11),r=i(51).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},55:function(t,e,i){"use strict";var n=i(2),r=i(6),o=i(5),a=i(13),s=i(49),l=i(78).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(80),v=i(9),_=i(10),x=i(24),w=i(11),b=i(34),S=i(22),T=i(46),C=i(54),M=i(87),I=i(35),k=i(8),A=i(15),D=M.f,P=k.f,O=C.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,U=!X||!X.prototype||!X.prototype.findChild,G=o&&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),r(V,e)?(i.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),G(t,e,i)):P(t,e,i)},K=function(t,e){v(t);for(var i,n=y(e=w(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],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&&r(V,t)&&!r(Y,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==H||!r(V,e)||r(Y,e)){var i=D(t,e);return!i||!r(V,e)||r(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],o=0;i.length>o;)r(V,e=i[o++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===H,n=O(i?Y:w(t)),o=[],a=0;n.length>a;)!r(V,e=n[a++])||i&&!r(H,e)||o.push(V[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===H&&e.call(Y,i),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),G(this,t,S(1,i))};return o&&U&&G(H,t,{configurable:!0,set:e}),j(t)},s(L.prototype,"toString",function(){return this._k}),M.f=J,k.f=Z,i(51).f=C.f=tt,i(25).f=$,I.f=et,o&&!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 rt=A(d.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!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],r=1;arguments.length>r;)n.push(arguments[r++]);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(7)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},56:function(t,e,i){i(74);for(var n=i(2),r=i(7),o=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]&&r(c,a,h),o[h]=o.Array}},57:function(t,e,i){var n=i(13),r=i(0),o=i(12);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(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),r=Math.min;t.exports=function(t){return t>0?r(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 r=i(65),o=i.n(r),a=i(97),s=i.n(a),l=i(28),h=i.n(l),u=i(100),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"===o()(h()({},n)).join("")}catch(t){return!1}}()?h.a:function(t,e){for(var i,r,o=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)d.call(i,s)&&(o[s]=i[s]);if(p){r=p(i);for(var l=0;l<r.length;l++)f.call(i,r[l])&&(o[r[l]]=i[r[l]])}}return o};e.a=g},64:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},65:function(t,e,i){t.exports={default:i(94),__esModule:!0}},67:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},68:function(t,e,i){var n=i(30),r=i(29);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),h=s.length;return l<0||l>=h?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===h||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},69:function(t,e,i){"use strict";var n=i(46),r=i(22),o=i(27),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},7:function(t,e,i){var n=i(8),r=i(22);t.exports=i(5)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(8),r=i(9),o=i(15);t.exports=i(5)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},71:function(t,e,i){var n=i(11),r=i(59),o=i(72);t.exports=function(t){return function(e,i,a){var s,l=n(e),h=r(l.length),u=o(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}}},72:function(t,e,i){var n=i(30),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},73:function(t,e,i){var n=i(6),r=i(24),o=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},74:function(t,e,i){"use strict";var n=i(75),r=i(67),o=i(18),a=i(11);t.exports=i(45)(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,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},75:function(t,e){t.exports=function(){}},78:function(t,e,i){var n=i(23)("meta"),r=i(10),o=i(6),a=i(8).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(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},p=function(t,e){if(!o(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)&&!o(t,n)&&u(t),t},f=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},79:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(88),o=n(r),a=i(90),s=n(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},8:function(t,e,i){var n=i(9),r=i(48),o=i(34),a=Object.defineProperty;e.f=i(5)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)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}},80: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),r=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,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),r=i(15),o=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=o.f,p=a.f;h>u;)for(var d,f=l(arguments[u++]),g=c?r(f).concat(c(f)):r(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),r=i(35),o=i(25);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.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),r=i(22),o=i(11),a=i(34),s=i(6),l=i(48),h=Object.getOwnPropertyDescriptor;e.f=i(5)?h:function(t,e){if(t=o(t),e=a(e,!0),l)try{return h(t,e)}catch(t){}if(s(t,e))return r(!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(53),i(56),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(55),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},945:function(t,e,i){"use strict";var n=i(119),r=i(108),o=i(64),a=i(116),s=i(268),l=i(267),h=i(19),u=i(152);e.a={name:"ActPicker",mixins:[o.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 r=0;r<i;r++){var o=this._getSelectIndex(this.wheels[r]);this._indexes[r]=o;var a=null,s="";this.finalData[r].length&&(a=this.finalData[r][o][this.valueKey],s=this.finalData[r][o][this.textKey]),this._values[r]!==a&&(t=!0),this._values[r]=a,e[r]=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,r=n.children[t].querySelector(".act-picker-wheel-scroll"),o=!!this.wheels&&this.wheels[t],a=0;if(r&&o){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=o.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(){o=i._createWheel(n,t),o.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 r=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});r.on("scrollStart",function(){r.inScroll=!0}),r.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(r)),r.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:r.a}}},95:function(t,e,i){var n=i(24),r=i(15);i(57)("keys",function(){return function(t){return r(n(t))}})},97:function(t,e,i){t.exports={default:i(98),__esModule:!0}},98:function(t,e,i){i(99);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},99:function(t,e,i){i(57)("getOwnPropertyNames",function(){return i(54).f})}})});